Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(557)

Issue 1540443003: Fix LayoutObject::mapToVisibleRectInContainerSpace() (Closed)

Created:
5 years ago by Xianzhu
Modified:
5 years ago
Reviewers:
pdr., chrishtr, szager1
CC:
blink-reviews, blink-reviews-layout_chromium.org, chromium-reviews, eae+blinkwatch, jchaffraix+rendering, leviw+renderwatch, pdr+renderingwatchlist_chromium.org, szager+layoutwatch_chromium.org, zoltan1
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Fix LayoutObject::mapToVisibleRectInContainerSpace() The original code missed scroll offset adjustment when the paint invalidation container has overflow clip. BUG=567875 Committed: https://crrev.com/c42f3abcd2c3c45380c21b751d057b46c21cf534 Cr-Commit-Position: refs/heads/master@{#366178}

Patch Set 1 #

Total comments: 5

Patch Set 2 : #

Total comments: 2

Patch Set 3 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+17 lines, -1 line) Patch
M third_party/WebKit/Source/core/layout/LayoutObject.cpp View 1 2 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/core/layout/LayoutObjectTest.cpp View 1 chunk +16 lines, -0 lines 0 comments Download

Dependent Patchsets:

Messages

Total messages: 21 (7 generated)
Xianzhu
5 years ago (2015-12-17 23:43:44 UTC) #2
Xianzhu
The issue didn't cause many problems because LayoutInline's and LayoutBox's versions of mapToVisibleRectInContainerSpace() are correct. ...
5 years ago (2015-12-18 00:08:19 UTC) #3
Xianzhu
5 years ago (2015-12-18 00:48:20 UTC) #5
chrishtr
https://codereview.chromium.org/1540443003/diff/1/third_party/WebKit/Source/core/layout/LayoutBox.h File third_party/WebKit/Source/core/layout/LayoutBox.h (right): https://codereview.chromium.org/1540443003/diff/1/third_party/WebKit/Source/core/layout/LayoutBox.h#newcode801 third_party/WebKit/Source/core/layout/LayoutBox.h:801: void applyCachedClipAndScrollOffsetForPaintInvalidationIfNeeded(const LayoutBoxModelObject* paintInvalidationContainer, LayoutRect& paintRect) const; Document that ...
5 years ago (2015-12-18 01:58:08 UTC) #6
szager1
https://codereview.chromium.org/1540443003/diff/1/third_party/WebKit/Source/core/layout/LayoutObject.cpp File third_party/WebKit/Source/core/layout/LayoutObject.cpp (left): https://codereview.chromium.org/1540443003/diff/1/third_party/WebKit/Source/core/layout/LayoutObject.cpp#oldcode1604 third_party/WebKit/Source/core/layout/LayoutObject.cpp:1604: if (o != paintInvalidationContainer && o->hasOverflowClip()) { Doh! Thanks ...
5 years ago (2015-12-18 17:30:51 UTC) #8
Xianzhu
chrishtr@ is on vacation. szager@ and pdr@ can you ptal the updated patch? https://codereview.chromium.org/1540443003/diff/1/third_party/WebKit/Source/core/layout/LayoutBox.h File ...
5 years ago (2015-12-18 18:28:24 UTC) #9
szager1
https://codereview.chromium.org/1540443003/diff/20001/third_party/WebKit/Source/core/layout/LayoutBox.cpp File third_party/WebKit/Source/core/layout/LayoutBox.cpp (right): https://codereview.chromium.org/1540443003/diff/20001/third_party/WebKit/Source/core/layout/LayoutBox.cpp#newcode956 third_party/WebKit/Source/core/layout/LayoutBox.cpp:956: if (isPaintInvalidationContainer()) This doesn't work for the IntersectionObserver use ...
5 years ago (2015-12-18 18:49:21 UTC) #10
Xianzhu
https://codereview.chromium.org/1540443003/diff/20001/third_party/WebKit/Source/core/layout/LayoutBox.cpp File third_party/WebKit/Source/core/layout/LayoutBox.cpp (right): https://codereview.chromium.org/1540443003/diff/20001/third_party/WebKit/Source/core/layout/LayoutBox.cpp#newcode956 third_party/WebKit/Source/core/layout/LayoutBox.cpp:956: if (isPaintInvalidationContainer()) On 2015/12/18 18:49:21, szager1 wrote: > This ...
5 years ago (2015-12-18 19:30:51 UTC) #11
Xianzhu
Uploaded a much simpler patch. Will address the naming issues with later changes.
5 years ago (2015-12-18 19:56:01 UTC) #13
pdr.
LGTM
5 years ago (2015-12-18 19:57:12 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1540443003/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1540443003/40001
5 years ago (2015-12-18 20:22:55 UTC) #16
commit-bot: I haz the power
Committed patchset #3 (id:40001)
5 years ago (2015-12-18 21:56:29 UTC) #18
commit-bot: I haz the power
Patchset 3 (id:??) landed as https://crrev.com/c42f3abcd2c3c45380c21b751d057b46c21cf534 Cr-Commit-Position: refs/heads/master@{#366178}
5 years ago (2015-12-18 21:57:09 UTC) #20
szager1
5 years ago (2015-12-18 23:38:28 UTC) #21
Message was sent while issue was closed.
lgtm, thanks

Powered by Google App Engine
This is Rietveld 408576698