summaryrefslogtreecommitdiff
path: root/layout/generic/nsContainerFrame.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'layout/generic/nsContainerFrame.cpp')
-rw-r--r--layout/generic/nsContainerFrame.cpp5
1 files changed, 1 insertions, 4 deletions
diff --git a/layout/generic/nsContainerFrame.cpp b/layout/generic/nsContainerFrame.cpp
index 45c28c6107..125d602635 100644
--- a/layout/generic/nsContainerFrame.cpp
+++ b/layout/generic/nsContainerFrame.cpp
@@ -394,12 +394,11 @@ ReparentFrameViewTo(nsIFrame* aFrame,
nsView* aOldParentView)
{
if (aFrame->HasView()) {
-#ifdef MOZ_XUL
if (aFrame->GetType() == nsGkAtoms::menuPopupFrame) {
// This view must be parented by the root view, don't reparent it.
return;
}
-#endif
+
nsView* view = aFrame->GetView();
// Verify that the current parent view is what we think it is
//nsView* parentView;
@@ -652,7 +651,6 @@ nsContainerFrame::SyncWindowProperties(nsPresContext* aPresContext,
nsRenderingContext* aRC,
uint32_t aFlags)
{
-#ifdef MOZ_XUL
if (!aView || !nsCSSRendering::IsCanvasFrame(aFrame) || !aView->HasWidget())
return;
@@ -716,7 +714,6 @@ nsContainerFrame::SyncWindowProperties(nsPresContext* aPresContext,
nsSize maxSize = rootFrame->GetXULMaxSize(aState);
SetSizeConstraints(aPresContext, windowWidget, minSize, maxSize);
-#endif
}
void nsContainerFrame::SetSizeConstraints(nsPresContext* aPresContext,