diff options
author | win7-7 <win7-7@users.noreply.github.com> | 2019-05-02 16:51:25 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-05-02 16:51:25 +0300 |
commit | 9b750203d0b87e9c4644ff58826e871a37f4c2cd (patch) | |
tree | b23f97ba9acf992195ae72d0a96ed5e8cd1e8a65 /layout/base | |
parent | aca5eb2cd39336d17d1ca3540061f83eedbec89f (diff) | |
download | UXP-9b750203d0b87e9c4644ff58826e871a37f4c2cd.tar UXP-9b750203d0b87e9c4644ff58826e871a37f4c2cd.tar.gz UXP-9b750203d0b87e9c4644ff58826e871a37f4c2cd.tar.lz UXP-9b750203d0b87e9c4644ff58826e871a37f4c2cd.tar.xz UXP-9b750203d0b87e9c4644ff58826e871a37f4c2cd.zip |
patch to Bug 1377329
Diffstat (limited to 'layout/base')
-rw-r--r-- | layout/base/nsDisplayList.cpp | 2 | ||||
-rw-r--r-- | layout/base/nsDisplayList.h | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/layout/base/nsDisplayList.cpp b/layout/base/nsDisplayList.cpp index d619576ba..c830891a5 100644 --- a/layout/base/nsDisplayList.cpp +++ b/layout/base/nsDisplayList.cpp @@ -1096,7 +1096,6 @@ void nsDisplayListBuilder::MarkFramesForDisplayList(nsIFrame* aDirtyFrame, const nsFrameList& aFrames, const nsRect& aDirtyRect) { - mFramesMarkedForDisplay.SetCapacity(mFramesMarkedForDisplay.Length() + aFrames.GetLength()); for (nsIFrame* e : aFrames) { // Skip the AccessibleCaret frame when building no caret. if (!IsBuildingCaret()) { @@ -1108,6 +1107,7 @@ nsDisplayListBuilder::MarkFramesForDisplayList(nsIFrame* aDirtyFrame, } } } + mFramesMarkedForDisplay.AppendElement(e); MarkOutOfFlowFrameForDisplay(aDirtyFrame, e, aDirtyRect); } diff --git a/layout/base/nsDisplayList.h b/layout/base/nsDisplayList.h index c9f773f5b..fcdc9e4fc 100644 --- a/layout/base/nsDisplayList.h +++ b/layout/base/nsDisplayList.h @@ -1200,7 +1200,7 @@ private: PLArenaPool mPool; nsCOMPtr<nsISelection> mBoundingSelection; AutoTArray<PresShellState,8> mPresShellStates; - AutoTArray<nsIFrame*,100> mFramesMarkedForDisplay; + AutoTArray<nsIFrame*,400> mFramesMarkedForDisplay; AutoTArray<ThemeGeometry,2> mThemeGeometries; nsDisplayTableItem* mCurrentTableItem; DisplayListClipState mClipState; |