From 3a1bebfb87d994b810574fdfeba09683e80cd2c9 Mon Sep 17 00:00:00 2001 From: win7-7 Date: Sun, 10 May 2020 15:00:08 +0300 Subject: Issue #1355 - Fix the nit, remove nsPoint offset in nsFrame.cpp and change PresShellState member order --- layout/generic/nsFrame.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'layout/generic') diff --git a/layout/generic/nsFrame.cpp b/layout/generic/nsFrame.cpp index 95d79bcc4..95420d0d5 100644 --- a/layout/generic/nsFrame.cpp +++ b/layout/generic/nsFrame.cpp @@ -2709,8 +2709,7 @@ nsIFrame::BuildDisplayListForChild(nsDisplayListBuilder* aBuilder, // dirty rect in child-relative coordinates NS_ASSERTION(aBuilder->GetCurrentFrame() == this, "Wrong coord space!"); - nsPoint offset = child->GetOffsetTo(this); - nsRect dirty = aBuilder->GetDirtyRect() - offset; + nsRect dirty = aBuilder->GetDirtyRect() - child->GetOffsetTo(this); if (childType == nsGkAtoms::placeholderFrame) { isPlaceholder = true; -- cgit v1.2.3