Bug 1265715 - Part 1. Pull Mode out of nsDisplayListBuilder; r=jfkthame

MozReview-Commit-ID: BBIoHfcJ6hz
This commit is contained in:
CJKu
2016-04-26 00:26:28 +08:00
parent d8859c104b
commit 5ec7adb15e
4 changed files with 47 additions and 25 deletions

View File

@@ -235,7 +235,7 @@ struct RangePaintInfo {
nsPoint mRootOffset;
RangePaintInfo(nsRange* aRange, nsIFrame* aFrame)
: mRange(aRange), mBuilder(aFrame, nsDisplayListBuilder::PAINTING, false)
: mRange(aRange), mBuilder(aFrame, nsDisplayListBuilderMode::PAINTING, false)
{
MOZ_COUNT_CTOR(RangePaintInfo);
}
@@ -5968,7 +5968,7 @@ PresShell::DoUpdateApproximateFrameVisibility(bool aRemoveOnly)
// they produce the same results (mApproximatelyVisibleFrames holds the frames the
// display list thinks are visible, beforeFrameList holds the frames the
// frame walker thinks are visible).
nsDisplayListBuilder builder(rootFrame, nsDisplayListBuilder::FRAME_VISIBILITY, false);
nsDisplayListBuilder builder(rootFrame, nsDisplayListBuilderMode::FRAME_VISIBILITY, false);
nsRect updateRect(nsPoint(0, 0), rootFrame->GetSize());
nsIFrame* rootScroll = GetRootScrollFrame();
if (rootScroll) {
@@ -6202,7 +6202,7 @@ public:
}
nsRegion region;
nsDisplayListBuilder builder(mFrame,
nsDisplayListBuilder::EVENT_DELIVERY,
nsDisplayListBuilderMode::EVENT_DELIVERY,
/* aBuildCert= */ false);
nsDisplayList list;
AutoTArray<nsIFrame*, 100> outFrames;