зеркало из https://github.com/mozilla/gecko-dev.git
Bug 504221 part 4. Switch MarkFramesForDisplayList to nsFrameList. r+sr=roc
This commit is contained in:
Родитель
6f3f5929ed
Коммит
5488eaf4ad
|
@ -220,12 +220,12 @@ nsDisplayListBuilder::LeavePresShell(nsIFrame* aReferenceFrame,
|
|||
}
|
||||
|
||||
void
|
||||
nsDisplayListBuilder::MarkFramesForDisplayList(nsIFrame* aDirtyFrame, nsIFrame* aFrames,
|
||||
nsDisplayListBuilder::MarkFramesForDisplayList(nsIFrame* aDirtyFrame,
|
||||
const nsFrameList& aFrames,
|
||||
const nsRect& aDirtyRect) {
|
||||
while (aFrames) {
|
||||
mFramesMarkedForDisplay.AppendElement(aFrames);
|
||||
MarkOutOfFlowFrameForDisplay(aDirtyFrame, aFrames, aDirtyRect);
|
||||
aFrames = aFrames->GetNextSibling();
|
||||
for (nsFrameList::Enumerator e(aFrames); !e.AtEnd(); e.Next()) {
|
||||
mFramesMarkedForDisplay.AppendElement(e.get());
|
||||
MarkOutOfFlowFrameForDisplay(aDirtyFrame, e.get(), aDirtyRect);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -277,14 +277,15 @@ public:
|
|||
void SetInTransform(PRBool aInTransform) { mInTransform = aInTransform; }
|
||||
|
||||
/**
|
||||
* Mark aFrames and its (next) siblings to be displayed if they
|
||||
* intersect aDirtyRect (which is relative to aDirtyFrame). If the
|
||||
* frame(s) have placeholders that might not be displayed, we mark the
|
||||
* placeholders and their ancestors to ensure that display list construction
|
||||
* descends into them anyway. nsDisplayListBuilder will take care of
|
||||
* unmarking them when it is destroyed.
|
||||
* Mark the frames in aFrames to be displayed if they intersect aDirtyRect
|
||||
* (which is relative to aDirtyFrame). If the frames have placeholders
|
||||
* that might not be displayed, we mark the placeholders and their ancestors
|
||||
* to ensure that display list construction descends into them
|
||||
* anyway. nsDisplayListBuilder will take care of unmarking them when it is
|
||||
* destroyed.
|
||||
*/
|
||||
void MarkFramesForDisplayList(nsIFrame* aDirtyFrame, nsIFrame* aFrames,
|
||||
void MarkFramesForDisplayList(nsIFrame* aDirtyFrame,
|
||||
const nsFrameList& aFrames,
|
||||
const nsRect& aDirtyRect);
|
||||
|
||||
/**
|
||||
|
|
Загрузка…
Ссылка в новой задаче