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

Issue 1516683002: Introducing LayoutObject::mapToVisibleRectInContainerSpace (Closed)

Created:
5 years ago by szager1
Modified:
5 years ago
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@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

This is a rename and slight modification to mapRectToPaintInvalidationBacking. The rename is for clarity (not for brevity, clearly). There are two changes in functionality: - Overflow clipping is done for all layers in the intermediate hierarchy; previously, only non-composited layers applied clipping. - Overflow clipping is *not* done for the paint invalidation container itself; previously it was. The reason for the change in functionality is to support the IntersectionObserver use case (see bug). BUG=540528 Committed: https://crrev.com/a7fdc1aef78ed0f3ea6d66351498b4f3e4a9c3b5 Cr-Commit-Position: refs/heads/master@{#364567}

Patch Set 1 #

Total comments: 4

Patch Set 2 : Add comment #

Patch Set 3 : Apply offset for paint invalidation container. #

Patch Set 4 : Rename to visibleRectInContainerSpace #

Total comments: 7

Patch Set 5 : rename the rename #

Patch Set 6 : Comment nits #

Patch Set 7 : Fix flipping logic #

Unified diffs Side-by-side diffs Delta from patch set Stats (+78 lines, -58 lines) Patch
M third_party/WebKit/Source/core/frame/FrameView.cpp View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/core/layout/LayoutBox.h View 1 2 3 4 2 chunks +2 lines, -1 line 0 comments Download
M third_party/WebKit/Source/core/layout/LayoutBox.cpp View 1 2 3 4 5 6 5 chunks +25 lines, -14 lines 0 comments Download
M third_party/WebKit/Source/core/layout/LayoutFlowThread.h View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/core/layout/LayoutFlowThread.cpp View 1 2 3 4 2 chunks +2 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/core/layout/LayoutInline.h View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/core/layout/LayoutInline.cpp View 1 2 3 4 4 chunks +7 lines, -4 lines 0 comments Download
M third_party/WebKit/Source/core/layout/LayoutListMarker.cpp View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/core/layout/LayoutObject.h View 1 2 3 4 5 1 chunk +5 lines, -3 lines 0 comments Download
M third_party/WebKit/Source/core/layout/LayoutObject.cpp View 1 2 3 4 2 chunks +7 lines, -4 lines 0 comments Download
M third_party/WebKit/Source/core/layout/LayoutReplaced.cpp View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/core/layout/LayoutTableCell.h View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/core/layout/LayoutTableCell.cpp View 1 2 3 4 1 chunk +3 lines, -3 lines 0 comments Download
M third_party/WebKit/Source/core/layout/LayoutText.cpp View 1 2 3 4 2 chunks +2 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/core/layout/LayoutView.h View 1 2 3 4 1 chunk +2 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/core/layout/LayoutView.cpp View 1 2 3 4 2 chunks +4 lines, -4 lines 0 comments Download
M third_party/WebKit/Source/core/layout/compositing/CompositedLayerMapping.cpp View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/core/layout/svg/LayoutSVGBlock.h View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/core/layout/svg/LayoutSVGBlock.cpp View 1 2 3 4 1 chunk +2 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/core/layout/svg/LayoutSVGRoot.h View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/core/layout/svg/LayoutSVGRoot.cpp View 1 2 3 4 3 chunks +4 lines, -4 lines 0 comments Download
M third_party/WebKit/Source/core/layout/svg/SVGLayoutSupport.cpp View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/core/paint/PaintLayer.cpp View 1 2 3 4 2 chunks +2 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/web/WebPluginContainerImpl.cpp View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 24 (9 generated)
szager1
5 years ago (2015-12-09 22:42:19 UTC) #3
leviw_travelin_and_unemployed
I'd put the IntersectionObserver bug into BUG= https://codereview.chromium.org/1516683002/diff/1/third_party/WebKit/Source/core/layout/LayoutBox.cpp File third_party/WebKit/Source/core/layout/LayoutBox.cpp (left): https://codereview.chromium.org/1516683002/diff/1/third_party/WebKit/Source/core/layout/LayoutBox.cpp#oldcode950 third_party/WebKit/Source/core/layout/LayoutBox.cpp:950: // Do ...
5 years ago (2015-12-09 23:06:26 UTC) #4
szager1
https://codereview.chromium.org/1516683002/diff/1/third_party/WebKit/Source/core/layout/LayoutBox.cpp File third_party/WebKit/Source/core/layout/LayoutBox.cpp (left): https://codereview.chromium.org/1516683002/diff/1/third_party/WebKit/Source/core/layout/LayoutBox.cpp#oldcode950 third_party/WebKit/Source/core/layout/LayoutBox.cpp:950: // Do not clip scroll layer contents because the ...
5 years ago (2015-12-09 23:21:26 UTC) #5
chrishtr
Let's rename this method in the same patch, and specify the semantics w.r.t. clipping of ...
5 years ago (2015-12-09 23:40:34 UTC) #6
chrishtr
5 years ago (2015-12-09 23:40:37 UTC) #7
szager1
PTAL
5 years ago (2015-12-10 18:52:24 UTC) #10
leviw_travelin_and_unemployed
The code looks good. I'm happy with the name. Can you clean up the description ...
5 years ago (2015-12-10 19:05:50 UTC) #11
chrishtr
https://codereview.chromium.org/1516683002/diff/60001/third_party/WebKit/Source/core/layout/LayoutObject.h File third_party/WebKit/Source/core/layout/LayoutObject.h (right): https://codereview.chromium.org/1516683002/diff/60001/third_party/WebKit/Source/core/layout/LayoutObject.h#newcode1089 third_party/WebKit/Source/core/layout/LayoutObject.h:1089: virtual void visibleRectInContainerSpace(const LayoutBoxModelObject* paintInvalidationContainer, LayoutRect&, const PaintInvalidationState*) const; ...
5 years ago (2015-12-10 19:13:36 UTC) #12
chrishtr
https://codereview.chromium.org/1516683002/diff/60001/third_party/WebKit/Source/core/layout/LayoutObject.h File third_party/WebKit/Source/core/layout/LayoutObject.h (right): https://codereview.chromium.org/1516683002/diff/60001/third_party/WebKit/Source/core/layout/LayoutObject.h#newcode1087 third_party/WebKit/Source/core/layout/LayoutObject.h:1087: // rect in the coordinate space of paintInvalidationContainer. If ...
5 years ago (2015-12-10 19:17:13 UTC) #13
szager1
Updated description and renamed to mapToVisibleRectInContainerSpace.
5 years ago (2015-12-10 19:30:12 UTC) #15
szager1
https://codereview.chromium.org/1516683002/diff/60001/third_party/WebKit/Source/core/layout/LayoutObject.h File third_party/WebKit/Source/core/layout/LayoutObject.h (right): https://codereview.chromium.org/1516683002/diff/60001/third_party/WebKit/Source/core/layout/LayoutObject.h#newcode1087 third_party/WebKit/Source/core/layout/LayoutObject.h:1087: // rect in the coordinate space of paintInvalidationContainer. If ...
5 years ago (2015-12-10 20:25:09 UTC) #16
chrishtr
lgtm https://codereview.chromium.org/1516683002/diff/60001/third_party/WebKit/Source/core/layout/LayoutObject.h File third_party/WebKit/Source/core/layout/LayoutObject.h (right): https://codereview.chromium.org/1516683002/diff/60001/third_party/WebKit/Source/core/layout/LayoutObject.h#newcode1088 third_party/WebKit/Source/core/layout/LayoutObject.h:1088: // clipping, it is applied; but overflow clipping ...
5 years ago (2015-12-10 21:19:40 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1516683002/110001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1516683002/110001
5 years ago (2015-12-10 23:46:16 UTC) #20
commit-bot: I haz the power
Committed patchset #7 (id:110001)
5 years ago (2015-12-11 01:28:51 UTC) #22
commit-bot: I haz the power
5 years ago (2015-12-11 01:29:55 UTC) #24
Message was sent while issue was closed.
Patchset 7 (id:??) landed as
https://crrev.com/a7fdc1aef78ed0f3ea6d66351498b4f3e4a9c3b5
Cr-Commit-Position: refs/heads/master@{#364567}

Powered by Google App Engine
This is Rietveld 408576698