summaryrefslogtreecommitdiffstats
path: root/layout/generic
diff options
context:
space:
mode:
authorwin7-7 <win7-7@users.noreply.github.com>2020-05-10 15:00:08 +0300
committerwin7-7 <win7-7@users.noreply.github.com>2020-05-10 15:00:08 +0300
commitf9047ff63de90e8c0242a5e7170a8c70f93f99b1 (patch)
treeeac800990e47ce0b8d0186acc0ac6a57472653ae /layout/generic
parent64ffe81c5551d1fabb12aa2d529ed5711bbbe965 (diff)
downloadUXP-f9047ff63de90e8c0242a5e7170a8c70f93f99b1.tar
UXP-f9047ff63de90e8c0242a5e7170a8c70f93f99b1.tar.gz
UXP-f9047ff63de90e8c0242a5e7170a8c70f93f99b1.tar.lz
UXP-f9047ff63de90e8c0242a5e7170a8c70f93f99b1.tar.xz
UXP-f9047ff63de90e8c0242a5e7170a8c70f93f99b1.zip
Issue #1355 - Fix the nit, remove nsPoint offset in nsFrame.cpp and change PresShellState member order
Diffstat (limited to 'layout/generic')
-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 8ba0bbf12..1c31f517d 100644
--- a/layout/generic/nsFrame.cpp
+++ b/layout/generic/nsFrame.cpp
@@ -2707,8 +2707,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;