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

Issue 2716203003: Fix paint property under-invalidation of CSS clip on resize (Closed)

Created:
3 years, 9 months ago by Xianzhu
Modified:
3 years, 9 months ago
Reviewers:
chrishtr, pdr., trchen
CC:
blink-reviews, blink-reviews-layout_chromium.org, blink-reviews-paint_chromium.org, chromium-reviews, dshwang, eae+blinkwatch, jchaffraix+rendering, leviw+renderwatch, pdr+renderingwatchlist_chromium.org, szager+layoutwatch_chromium.org, zoltan1
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Fix paint property under-invalidation of CSS clip on resize BUG=694875 TEST=*PaintPropertyTreeUpdateTest.CSSClipDependingOnSize* CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:linux_layout_tests_slimming_paint_v2 Review-Url: https://codereview.chromium.org/2716203003 Cr-Commit-Position: refs/heads/master@{#453404} Committed: https://chromium.googlesource.com/chromium/src/+/4f2629181c9c12fcca25f436910afbb2b5789bb6

Patch Set 1 #

Total comments: 3
Unified diffs Side-by-side diffs Delta from patch set Stats (+33 lines, -0 lines) Patch
M third_party/WebKit/Source/core/layout/LayoutBox.cpp View 1 chunk +4 lines, -0 lines 3 comments Download
M third_party/WebKit/Source/core/paint/PaintPropertyTreeUpdateTests.cpp View 1 chunk +29 lines, -0 lines 0 comments Download

Messages

Total messages: 17 (7 generated)
Xianzhu
3 years, 9 months ago (2017-02-27 20:48:10 UTC) #3
pdr.
LGTM
3 years, 9 months ago (2017-02-27 21:53:11 UTC) #4
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2716203003/1
3 years, 9 months ago (2017-02-27 21:55:51 UTC) #6
commit-bot: I haz the power
Committed patchset #1 (id:1) as https://chromium.googlesource.com/chromium/src/+/4f2629181c9c12fcca25f436910afbb2b5789bb6
3 years, 9 months ago (2017-02-28 00:09:28 UTC) #9
chrishtr
https://codereview.chromium.org/2716203003/diff/1/third_party/WebKit/Source/core/layout/LayoutBox.cpp File third_party/WebKit/Source/core/layout/LayoutBox.cpp (right): https://codereview.chromium.org/2716203003/diff/1/third_party/WebKit/Source/core/layout/LayoutBox.cpp#newcode1738 third_party/WebKit/Source/core/layout/LayoutBox.cpp:1738: } else if (hasClip()) { Is this needed for ...
3 years, 9 months ago (2017-02-28 00:11:18 UTC) #11
Xianzhu
https://codereview.chromium.org/2716203003/diff/1/third_party/WebKit/Source/core/layout/LayoutBox.cpp File third_party/WebKit/Source/core/layout/LayoutBox.cpp (right): https://codereview.chromium.org/2716203003/diff/1/third_party/WebKit/Source/core/layout/LayoutBox.cpp#newcode1738 third_party/WebKit/Source/core/layout/LayoutBox.cpp:1738: } else if (hasClip()) { On 2017/02/28 00:11:18, chrishtr ...
3 years, 9 months ago (2017-02-28 00:17:20 UTC) #12
chrishtr
On 2017/02/28 at 00:17:20, wangxianzhu wrote: > https://codereview.chromium.org/2716203003/diff/1/third_party/WebKit/Source/core/layout/LayoutBox.cpp > File third_party/WebKit/Source/core/layout/LayoutBox.cpp (right): > > https://codereview.chromium.org/2716203003/diff/1/third_party/WebKit/Source/core/layout/LayoutBox.cpp#newcode1738 ...
3 years, 9 months ago (2017-02-28 00:19:47 UTC) #13
chrishtr
3 years, 9 months ago (2017-02-28 00:19:54 UTC) #15
Xianzhu
Filed crbug.com/696811 for masks (including clip-paths).
3 years, 9 months ago (2017-02-28 00:32:09 UTC) #16
trchen
3 years, 9 months ago (2017-02-28 00:43:28 UTC) #17
Message was sent while issue was closed.
https://codereview.chromium.org/2716203003/diff/1/third_party/WebKit/Source/c...
File third_party/WebKit/Source/core/layout/LayoutBox.cpp (right):

https://codereview.chromium.org/2716203003/diff/1/third_party/WebKit/Source/c...
third_party/WebKit/Source/core/layout/LayoutBox.cpp:1738: } else if (hasClip())
{
On 2017/02/28 00:17:20, Xianzhu wrote:
> On 2017/02/28 00:11:18, chrishtr wrote:
> > Is this needed for clip-path as well?
> 
> We seem not to support clip-path in paint property tree for now. Should we?

Thanks for the heads up! Yea, I think this will be needed for clip-path as well,
and definitely is needed for masks. (Because masks implicitly create a clip,
which is implemented by clip node.)

I think it makes sense to match
LayoutBox::paintedOutputOfObjectHasNoEffectRegardlessOfSize().
https://cs.chromium.org/chromium/src/third_party/WebKit/Source/core/layout/La...

Powered by Google App Engine
This is Rietveld 408576698