Skip to content

Commit

Permalink
Fixed build
Browse files Browse the repository at this point in the history
  • Loading branch information
tmeshkova committed Mar 27, 2014
1 parent 6ea661a commit 282a6a0
Show file tree
Hide file tree
Showing 8 changed files with 16 additions and 28 deletions.
8 changes: 0 additions & 8 deletions dom/ipc/TabChild.cpp
Expand Up @@ -604,14 +604,6 @@ class TabChild::CachedFileDescriptorCallbackRunnable : public nsRunnable

StaticRefPtr<TabChild> sPreallocatedTab;

TabChildBase::TabChildBase()
: mOldViewportWidth(0.0f)
, mContentDocumentIsDisplayed(false)
, mTabChildGlobal(nullptr)
, mInnerSize(0, 0)
{
}

/*static*/ void
TabChild::PreloadSlowThings()
{
Expand Down
11 changes: 11 additions & 0 deletions embedding/embedlite/utils/EmbedLiteXulAppInfo.cpp
Expand Up @@ -177,3 +177,14 @@ NS_IMETHODIMP EmbedLiteXulAppInfo::GetDistributionID(nsACString& aResult)
aResult.AssignLiteral(MOZ_DISTRIBUTION_ID);
return NS_OK;
}

NS_IMETHODIMP
EmbedLiteXulAppInfo::GetProcessID(uint32_t* aResult)
{
#ifdef XP_WIN
*aResult = GetCurrentProcessId();
#else
*aResult = getpid();
#endif
return NS_OK;
}
3 changes: 1 addition & 2 deletions gfx/gl/GLScreenBuffer.cpp
Expand Up @@ -78,8 +78,7 @@ GLScreenBuffer::Create(GLContext* gl,
gl,
nullptr);

GLScreenBuffer* p = new GLScreenBuffer(gl, caps, factory, stream);
return p;
return new GLScreenBuffer(gl, caps, factory, stream);
}

GLScreenBuffer::~GLScreenBuffer()
Expand Down
1 change: 1 addition & 0 deletions gfx/layers/Compositor.h
Expand Up @@ -552,6 +552,7 @@ class Compositor : public RefCounted<Compositor>

private:
static LayersBackend sBackend;

};

} // namespace layers
Expand Down
5 changes: 1 addition & 4 deletions layout/base/nsPresShell.cpp
Expand Up @@ -5826,10 +5826,7 @@ PresShell::Paint(nsView* aViewToPaint,
bool isRetainingManager;
LayerManager* layerManager =
aViewToPaint->GetWidget()->GetLayerManager(&isRetainingManager);
if (!layerManager) {
NS_WARNING("LayerManager not available in paint event");
return;
}
NS_ASSERTION(layerManager, "Must be in paint event");
bool shouldInvalidate = layerManager->NeedsWidgetInvalidation();

uint32_t didPaintFlags = aFlags;
Expand Down
2 changes: 1 addition & 1 deletion toolkit/components/telemetry/Telemetry.cpp
Expand Up @@ -411,7 +411,7 @@ void TelemetryIOInterposeObserver::AddPath(const nsAString& aPath,
void TelemetryIOInterposeObserver::Observe(Observation& aOb)
{
// We only report main-thread I/O
if (!NS_IsMainThread()) {
if (!IsMainThread()) {
return;
}

Expand Down
2 changes: 1 addition & 1 deletion widget/qt/mozqwidget.cpp
Expand Up @@ -17,7 +17,7 @@ MozQWidget::MozQWidget(nsWindow* aReceiver, QWindow* aParent)
, mReceiver(aReceiver)
, mUpdatePending(false)
{
mReceiver->GetWindowType(mWindowType);
mWindowType = mReceiver->WindowType();
}

MozQWidget::~MozQWidget()
Expand Down
12 changes: 0 additions & 12 deletions widget/qt/nsWindow.cpp
Expand Up @@ -1788,18 +1788,6 @@ nsWindow::GetScreenBounds(nsIntRect &aRect)
return NS_OK;
}

NS_IMETHODIMP
nsWindow::SetForegroundColor(const nscolor &aColor)
{
return NS_ERROR_NOT_IMPLEMENTED;
}

NS_IMETHODIMP
nsWindow::SetBackgroundColor(const nscolor &aColor)
{
return NS_ERROR_NOT_IMPLEMENTED;
}

NS_IMETHODIMP
nsWindow::SetIcon(const nsAString& aIconSpec)
{
Expand Down

0 comments on commit 282a6a0

Please sign in to comment.