summaryrefslogtreecommitdiffstats
path: root/layout/generic/nsFrame.cpp
diff options
context:
space:
mode:
authorwin7-7 <win7-7@users.noreply.github.com>2020-05-10 15:00:08 +0300
committerMoonchild <moonchild@palemoon.org>2020-05-20 13:49:35 +0000
commit3a1bebfb87d994b810574fdfeba09683e80cd2c9 (patch)
treebb836adff7cda14d03eddee6397c6d4face82603 /layout/generic/nsFrame.cpp
parentd3d3aad6e52397334844ed80f8db650174937854 (diff)
downloadUXP-3a1bebfb87d994b810574fdfeba09683e80cd2c9.tar
UXP-3a1bebfb87d994b810574fdfeba09683e80cd2c9.tar.gz
UXP-3a1bebfb87d994b810574fdfeba09683e80cd2c9.tar.lz
UXP-3a1bebfb87d994b810574fdfeba09683e80cd2c9.tar.xz
UXP-3a1bebfb87d994b810574fdfeba09683e80cd2c9.zip
Issue #1355 - Fix the nit, remove nsPoint offset in nsFrame.cpp and change PresShellState member order
Diffstat (limited to 'layout/generic/nsFrame.cpp')
-rw-r--r--layout/generic/nsFrame.cpp3
1 files changed, 1 insertions, 2 deletions
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;