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

Issue 334373002: Clear absolute clip rects when transform changes (Closed)

Created:
6 years, 6 months ago by ajuma
Modified:
6 years, 6 months ago
CC:
blink-reviews, blink-reviews-rendering, zoltan1, eae+blinkwatch, leviw+renderwatch, blink-layers+watch_chromium.org, jchaffraix+rendering, pdr., rune+blink
Project:
blink
Visibility:
Public.

Description

Clear absolute clip rects when transform changes A layer's absolute clip rects are no longer valid when its transform or the transform of an ancestor changes, since the layer moves in absolute space. This CL clears the absolute clip rects of a layer and its descendants when the layer's transform changes. BUG=246965 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=176432

Patch Set 1 #

Total comments: 4

Patch Set 2 : Split updateTransform into two parts #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+134 lines, -30 lines) Patch
A LayoutTests/compositing/overflow/transform-should-update-absolute-clip-rects.html View 1 chunk +56 lines, -0 lines 0 comments Download
A LayoutTests/compositing/overflow/transform-should-update-absolute-clip-rects-expected.html View 1 chunk +39 lines, -0 lines 0 comments Download
M Source/core/rendering/RenderBlock.cpp View 1 1 chunk +1 line, -1 line 0 comments Download
M Source/core/rendering/RenderBlockFlow.cpp View 1 1 chunk +1 line, -1 line 0 comments Download
M Source/core/rendering/RenderBox.h View 1 1 chunk +1 line, -1 line 0 comments Download
M Source/core/rendering/RenderBox.cpp View 1 1 chunk +2 lines, -2 lines 0 comments Download
M Source/core/rendering/RenderDeprecatedFlexibleBox.cpp View 1 1 chunk +1 line, -1 line 0 comments Download
M Source/core/rendering/RenderEmbeddedObject.cpp View 1 1 chunk +1 line, -1 line 0 comments Download
M Source/core/rendering/RenderFlexibleBox.cpp View 1 1 chunk +1 line, -1 line 0 comments Download
M Source/core/rendering/RenderFrameSet.cpp View 1 1 chunk +1 line, -1 line 0 comments Download
M Source/core/rendering/RenderGrid.cpp View 1 1 chunk +1 line, -1 line 0 comments Download
M Source/core/rendering/RenderIFrame.cpp View 1 1 chunk +1 line, -1 line 0 comments Download
M Source/core/rendering/RenderLayer.h View 1 2 chunks +3 lines, -1 line 0 comments Download
M Source/core/rendering/RenderLayer.cpp View 1 3 chunks +20 lines, -11 lines 1 comment Download
M Source/core/rendering/RenderObject.cpp View 1 1 chunk +0 lines, -2 lines 1 comment Download
M Source/core/rendering/RenderReplaced.cpp View 1 1 chunk +1 line, -1 line 0 comments Download
M Source/core/rendering/RenderReplica.cpp View 1 1 chunk +1 line, -1 line 0 comments Download
M Source/core/rendering/RenderTable.cpp View 1 1 chunk +1 line, -1 line 0 comments Download
M Source/core/rendering/RenderTableSection.cpp View 1 1 chunk +1 line, -1 line 0 comments Download
M Source/core/rendering/svg/RenderSVGRoot.cpp View 1 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 11 (0 generated)
ajuma
Without this change, the bounds used for overlap testing can be incorrect (since they get ...
6 years, 6 months ago (2014-06-17 15:20:25 UTC) #1
Ian Vollick
https://codereview.chromium.org/334373002/diff/1/Source/core/rendering/RenderLayer.cpp File Source/core/rendering/RenderLayer.cpp (right): https://codereview.chromium.org/334373002/diff/1/Source/core/rendering/RenderLayer.cpp#newcode508 Source/core/rendering/RenderLayer.cpp:508: m_clipper.clearClipRectsIncludingDescendants(AbsoluteClipRects); Doesn't this mean that even if we call ...
6 years, 6 months ago (2014-06-17 15:57:28 UTC) #2
ajuma
https://codereview.chromium.org/334373002/diff/1/Source/core/rendering/RenderLayer.cpp File Source/core/rendering/RenderLayer.cpp (right): https://codereview.chromium.org/334373002/diff/1/Source/core/rendering/RenderLayer.cpp#newcode508 Source/core/rendering/RenderLayer.cpp:508: m_clipper.clearClipRectsIncludingDescendants(AbsoluteClipRects); On 2014/06/17 15:57:28, Ian Vollick wrote: > Doesn't ...
6 years, 6 months ago (2014-06-17 16:01:50 UTC) #3
Ian Vollick
lgtm https://codereview.chromium.org/334373002/diff/1/Source/core/rendering/RenderLayer.cpp File Source/core/rendering/RenderLayer.cpp (right): https://codereview.chromium.org/334373002/diff/1/Source/core/rendering/RenderLayer.cpp#newcode508 Source/core/rendering/RenderLayer.cpp:508: m_clipper.clearClipRectsIncludingDescendants(AbsoluteClipRects); On 2014/06/17 16:01:50, ajuma wrote: > On ...
6 years, 6 months ago (2014-06-17 16:07:25 UTC) #4
ajuma
https://codereview.chromium.org/334373002/diff/1/Source/core/rendering/RenderLayer.cpp File Source/core/rendering/RenderLayer.cpp (right): https://codereview.chromium.org/334373002/diff/1/Source/core/rendering/RenderLayer.cpp#newcode508 Source/core/rendering/RenderLayer.cpp:508: m_clipper.clearClipRectsIncludingDescendants(AbsoluteClipRects); On 2014/06/17 16:07:25, Ian Vollick wrote: > On ...
6 years, 6 months ago (2014-06-17 17:10:41 UTC) #5
Ian Vollick
On 2014/06/17 17:10:41, ajuma wrote: > https://codereview.chromium.org/334373002/diff/1/Source/core/rendering/RenderLayer.cpp > File Source/core/rendering/RenderLayer.cpp (right): > > https://codereview.chromium.org/334373002/diff/1/Source/core/rendering/RenderLayer.cpp#newcode508 > ...
6 years, 6 months ago (2014-06-17 17:18:42 UTC) #6
ajuma
PTAL. Turns out there was one more caller of updateTransform -- RenderBox::updateLayerTransform, that gets called ...
6 years, 6 months ago (2014-06-17 23:21:39 UTC) #7
Ian Vollick
On 2014/06/17 at 23:21:39, ajuma wrote: > PTAL. > > Turns out there was one ...
6 years, 6 months ago (2014-06-18 16:26:57 UTC) #8
ajuma
The CQ bit was checked by ajuma@chromium.org
6 years, 6 months ago (2014-06-18 16:40:57 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/ajuma@chromium.org/334373002/20001
6 years, 6 months ago (2014-06-18 16:41:38 UTC) #10
commit-bot: I haz the power
6 years, 6 months ago (2014-06-18 16:45:31 UTC) #11
Message was sent while issue was closed.
Change committed as 176432

Powered by Google App Engine
This is Rietveld 408576698