Bug 1652120 - Initialize local variable in PresShell::CreateRangePaintInfo. r=hiro

Differential Revision: https://phabricator.services.mozilla.com/D83739
This commit is contained in:
Cameron McCormack
2020-07-16 06:37:51 +00:00
parent 4bd55f537d
commit fa1ed90d5e

View File

@@ -4733,7 +4733,7 @@ static bool gDumpRangePaintList = false;
UniquePtr<RangePaintInfo> PresShell::CreateRangePaintInfo(
nsRange* aRange, nsRect& aSurfaceRect, bool aForPrimarySelection) {
nsIFrame* ancestorFrame;
nsIFrame* ancestorFrame = nullptr;
nsIFrame* rootFrame = GetRootFrame();
// If the start or end of the range is the document, just use the root