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

Issue 211683003: Return an infinite rect when calling RenderLayerClipper::parentClipRects on the root context layer (Closed)

Created:
6 years, 9 months ago by chrishtr
Modified:
6 years, 9 months ago
Reviewers:
Ian Vollick, hartmanng, ojan
CC:
blink-reviews, bemjb+rendering_chromium.org, dsinclair, zoltan1, eae+blinkwatch, leviw+renderwatch, blink-layers+watch_chromium.org, jchaffraix+rendering, pdr., rune+blink
Visibility:
Public.

Description

Return an infinite rect when calling RenderLayerClipper::parentClipRects on the root context layer When calling RenderLayerClipper::backgroundClipRect on the RenderLayerClipper object corresponding to the RenderLayer which is equal to clipRectsContext.rootLayer, it first calls parentClipRects on the clipper of that RenderLayer's parent. In turn, this starts a recursive walk up the RenderLayer tree in updateClipRects. This is incorrect, since a RenderLayerClipper object is unable to clip above rootLayer in the render tree. In particular, the recursion condition in updateClipRects depends on the recursion starting at a layer which is below or equal to rootLayer. BUG=336563 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=170234

Patch Set 1 #

Patch Set 2 : Fix. #

Patch Set 3 : Add a test. #

Patch Set 4 : Adjust. #

Patch Set 5 : Comment. #

Total comments: 2

Patch Set 6 : Fixed nit. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+91 lines, -7 lines) Patch
A LayoutTests/compositing/squashing/abspos-under-abspos-overflow-scroll.html View 1 2 3 1 chunk +34 lines, -0 lines 0 comments Download
A LayoutTests/compositing/squashing/abspos-under-abspos-overflow-scroll-expected.html View 1 2 3 1 chunk +33 lines, -0 lines 0 comments Download
M Source/core/rendering/RenderLayerClipper.h View 1 chunk +2 lines, -0 lines 0 comments Download
M Source/core/rendering/RenderLayerClipper.cpp View 1 2 3 4 5 7 chunks +22 lines, -7 lines 0 comments Download

Messages

Total messages: 13 (0 generated)
chrishtr
6 years, 9 months ago (2014-03-25 23:17:07 UTC) #1
Ian Vollick
On 2014/03/25 23:17:07, chrishtr wrote: I'm a bit worried about how this will affect code ...
6 years, 9 months ago (2014-03-27 17:30:06 UTC) #2
Ian Vollick
https://codereview.chromium.org/211683003/diff/110001/Source/core/rendering/RenderLayerClipper.cpp File Source/core/rendering/RenderLayerClipper.cpp (right): https://codereview.chromium.org/211683003/diff/110001/Source/core/rendering/RenderLayerClipper.cpp#newcode365 Source/core/rendering/RenderLayerClipper.cpp:365: } nit: this could probably be moved above the ...
6 years, 9 months ago (2014-03-27 17:30:28 UTC) #3
chrishtr
In the case you cited, the clipping context is explicitly w.r.t. the ancestor composited layer. ...
6 years, 9 months ago (2014-03-27 22:41:28 UTC) #4
Ian Vollick
On 2014/03/27 22:41:28, chrishtr wrote: > In the case you cited, the clipping context is ...
6 years, 9 months ago (2014-03-27 23:06:21 UTC) #5
hartmanng
lgtm2
6 years, 9 months ago (2014-03-27 23:34:59 UTC) #6
chrishtr
The CQ bit was checked by chrishtr@chromium.org
6 years, 9 months ago (2014-03-27 23:46:20 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/chrishtr@chromium.org/211683003/150001
6 years, 9 months ago (2014-03-27 23:46:29 UTC) #8
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 9 months ago (2014-03-27 23:51:18 UTC) #9
commit-bot: I haz the power
Try jobs failed on following builders: tryserver.blink on linux_blink_dbg
6 years, 9 months ago (2014-03-27 23:51:19 UTC) #10
chrishtr
The CQ bit was checked by chrishtr@chromium.org
6 years, 9 months ago (2014-03-27 23:53:47 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/chrishtr@chromium.org/211683003/150001
6 years, 9 months ago (2014-03-27 23:54:02 UTC) #12
commit-bot: I haz the power
6 years, 9 months ago (2014-03-28 01:03:09 UTC) #13
Message was sent while issue was closed.
Change committed as 170234

Powered by Google App Engine
This is Rietveld 408576698