diff --git a/layout/xul/base/src/nsDeckFrame.h b/layout/xul/base/src/nsDeckFrame.h index 3e3fc548d67d..d2fbed00425a 100644 --- a/layout/xul/base/src/nsDeckFrame.h +++ b/layout/xul/base/src/nsDeckFrame.h @@ -76,7 +76,9 @@ public: virtual nsIAtom* GetType() const; +#ifndef MOZ_GFX_OPTIMIZE_MOBILE virtual PRBool ChildrenMustHaveWidgets() const { return PR_TRUE; } +#endif #ifdef NS_DEBUG NS_IMETHOD GetFrameName(nsAString& aResult) const