Update nsDisplayRemote to new nsDisplayItem interface
authorChris Jones <jones.chris.g@gmail.com>
Mon, 23 Aug 2010 22:23:37 -0500
changeset 54023 9dff70daf36845cdaa0553b31fe1d1f9d3756085
parent 54022 702f74ce48349f4e0a6f5d423599fc1f40cc858a
child 54024 242f8b863433d4330fe20a1ec0cf468483c92378
push idunknown
push userunknown
push dateunknown
milestone2.0b5pre
Update nsDisplayRemote to new nsDisplayItem interface
layout/generic/nsFrameFrame.cpp
layout/ipc/RenderFrameParent.h
--- a/layout/generic/nsFrameFrame.cpp
+++ b/layout/generic/nsFrameFrame.cpp
@@ -383,17 +383,17 @@ nsSubDocumentFrame::BuildDisplayList(nsD
 #ifdef MOZ_IPC
   nsFrameLoader* frameLoader = FrameLoader();
   if (frameLoader) {
     RenderFrameParent* rfp = frameLoader->GetCurrentRemoteFrame();
     if (rfp) {
       // We're the subdoc for <browser remote="true"> and it has
       // painted content.  Display its shadow layer tree.
       return aLists.Content()
-        ->AppendNewToTop(new (aBuilder) nsDisplayRemote(this, rfp));
+        ->AppendNewToTop(new (aBuilder) nsDisplayRemote(aBuilder, this, rfp));
     }
   }
 #endif
 
   if (!mInnerView)
     return NS_OK;
   nsIView* subdocView = mInnerView->GetFirstChild();
   if (!subdocView)
--- a/layout/ipc/RenderFrameParent.h
+++ b/layout/ipc/RenderFrameParent.h
@@ -97,18 +97,19 @@ private:
  * layer tree (for a given RenderFrameParent) into its parent
  * process's layer tree.
  */
 class nsDisplayRemote : public nsDisplayItem
 {
   typedef mozilla::layout::RenderFrameParent RenderFrameParent;
 
 public:
-  nsDisplayRemote(nsIFrame* aFrame, RenderFrameParent* aRemoteFrame)
-    : nsDisplayItem(aFrame)
+  nsDisplayRemote(nsDisplayListBuilder* aBuilder, nsIFrame* aFrame,
+                  RenderFrameParent* aRemoteFrame)
+    : nsDisplayItem(aBuilder, aFrame)
     , mRemoteFrame(aRemoteFrame)
   {}
 
   NS_OVERRIDE
   virtual LayerState GetLayerState(nsDisplayListBuilder* aBuilder,
                                    LayerManager* aManager)
   { return mozilla::LAYER_ACTIVE; }