diff --git a/content/canvas/src/WebGLContext.cpp b/content/canvas/src/WebGLContext.cpp index d2f284e1fd1..c58c3e0c95f 100644 --- a/content/canvas/src/WebGLContext.cpp +++ b/content/canvas/src/WebGLContext.cpp @@ -614,7 +614,8 @@ WebGLContext::SetDimensions(PRInt32 width, PRInt32 height) PRInt32 status; nsCOMPtr gfxInfo = do_GetService("@mozilla.org/gfx/info;1"); - if (mOptions.antialias && + if (mOptions.antialias && + gfxInfo && NS_SUCCEEDED(gfxInfo->GetFeatureStatus(nsIGfxInfo::FEATURE_WEBGL_MSAA, &status))) { if (status == nsIGfxInfo::FEATURE_NO_INFO || forceMSAA) { PRUint32 msaaLevel = Preferences::GetUint("webgl.msaa-level", 2); diff --git a/hal/Makefile.in b/hal/Makefile.in index 990359ee615..ec57febc693 100644 --- a/hal/Makefile.in +++ b/hal/Makefile.in @@ -66,7 +66,7 @@ CPPSRCS = \ SandboxHal.cpp \ $(NULL) -ifeq (Android,$(OS_TARGET)) +ifeq (android,$(MOZ_WIDGET_TOOLKIT)) CPPSRCS += AndroidHal.cpp else ifeq (Linux,$(OS_TARGET)) CPPSRCS += LinuxHal.cpp diff --git a/toolkit/library/Makefile.in b/toolkit/library/Makefile.in index 1162f561aea..b1ded450499 100644 --- a/toolkit/library/Makefile.in +++ b/toolkit/library/Makefile.in @@ -315,7 +315,7 @@ endif STATIC_LIBS += thebes gl ycbcr -ifeq ($(MOZ_WIDGET_TOOLKIT),android) +ifeq ($(OS_TARGET),Android) STATIC_LIBS += profiler endif diff --git a/widget/src/gonk/nsAppShell.h b/widget/src/gonk/nsAppShell.h index 632cc44d300..bb82c279da7 100644 --- a/widget/src/gonk/nsAppShell.h +++ b/widget/src/gonk/nsAppShell.h @@ -39,6 +39,7 @@ #define nsAppShell_h #include "nsBaseAppShell.h" +#include "nsTArray.h" namespace mozilla { bool ProcessNextEvent(); diff --git a/widget/src/gonk/nsWindow.h b/widget/src/gonk/nsWindow.h index a43be5b1e29..e1f59188e95 100644 --- a/widget/src/gonk/nsWindow.h +++ b/widget/src/gonk/nsWindow.h @@ -102,7 +102,6 @@ public: virtual nsIntPoint WidgetToScreenOffset(); NS_IMETHOD DispatchEvent(nsGUIEvent *aEvent, nsEventStatus &aStatus); NS_IMETHOD CaptureRollupEvents(nsIRollupListener *aListener, - nsIMenuRollup *aMenuRollup, bool aDoCapture, bool aConsumeRollupEvent) {