Update nsDisplayRemote to new nsDisplayItem interface

This commit is contained in:
Chris Jones 2010-08-23 22:23:37 -05:00
Родитель 1cdac44b1d
Коммит e67843deff
2 изменённых файлов: 4 добавлений и 3 удалений

Просмотреть файл

@ -388,7 +388,7 @@ nsSubDocumentFrame::BuildDisplayList(nsDisplayListBuilder* aBuilder,
// We're the subdoc for <browser remote="true"> and it has // We're the subdoc for <browser remote="true"> and it has
// painted content. Display its shadow layer tree. // painted content. Display its shadow layer tree.
return aLists.Content() return aLists.Content()
->AppendNewToTop(new (aBuilder) nsDisplayRemote(this, rfp)); ->AppendNewToTop(new (aBuilder) nsDisplayRemote(aBuilder, this, rfp));
} }
} }
#endif #endif

Просмотреть файл

@ -102,8 +102,9 @@ class nsDisplayRemote : public nsDisplayItem
typedef mozilla::layout::RenderFrameParent RenderFrameParent; typedef mozilla::layout::RenderFrameParent RenderFrameParent;
public: public:
nsDisplayRemote(nsIFrame* aFrame, RenderFrameParent* aRemoteFrame) nsDisplayRemote(nsDisplayListBuilder* aBuilder, nsIFrame* aFrame,
: nsDisplayItem(aFrame) RenderFrameParent* aRemoteFrame)
: nsDisplayItem(aBuilder, aFrame)
, mRemoteFrame(aRemoteFrame) , mRemoteFrame(aRemoteFrame)
{} {}