diff options
author | win7-7 <win7-7@users.noreply.github.com> | 2020-05-10 15:00:08 +0300 |
---|---|---|
committer | win7-7 <win7-7@users.noreply.github.com> | 2020-05-10 15:00:08 +0300 |
commit | f9047ff63de90e8c0242a5e7170a8c70f93f99b1 (patch) | |
tree | eac800990e47ce0b8d0186acc0ac6a57472653ae /layout/base/nsDisplayList.cpp | |
parent | 64ffe81c5551d1fabb12aa2d529ed5711bbbe965 (diff) | |
download | UXP-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/base/nsDisplayList.cpp')
-rw-r--r-- | layout/base/nsDisplayList.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/layout/base/nsDisplayList.cpp b/layout/base/nsDisplayList.cpp index 55461f7c0..73e991246 100644 --- a/layout/base/nsDisplayList.cpp +++ b/layout/base/nsDisplayList.cpp @@ -882,8 +882,7 @@ void nsDisplayListBuilder::MarkOutOfFlowFrameForDisplay(nsIFrame* aDirtyFrame, } } - nsPoint offset = aFrame->GetOffsetTo(aDirtyFrame); - nsRect dirty = dirtyRectRelativeToDirtyFrame - offset; + nsRect dirty = dirtyRectRelativeToDirtyFrame - aFrame->GetOffsetTo(aDirtyFrame); nsRect overflowRect = aFrame->GetVisualOverflowRect(); if (aFrame->IsTransformed() && |