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

Issue 2794633002: [SPv2] Fix logic for blending effect nodes due to non-isolated children of SVG. (Closed)

Created:
3 years, 8 months ago by chrishtr
Modified:
3 years, 8 months ago
Reviewers:
trchen
CC:
blink-reviews, blink-reviews-paint_chromium.org, chromium-reviews, dshwang
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

[SPv2] Fix logic for blending effect nodes due to non-isolated children of SVG. An isolating effect node is needed if there is a non-isolated child. Previously, we didn't do this correctly for LayoutSVGRoot PaintLayers that are stacking contexts, as it relied on SVGLayoutSupport::isIsolationRequired, which only returns true if there are non-isolated descendants *and* the current node has blend mode. BUG=665259 CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:linux_layout_tests_slimming_paint_v2 Review-Url: https://codereview.chromium.org/2794633002 Cr-Commit-Position: refs/heads/master@{#461315} Committed: https://chromium.googlesource.com/chromium/src/+/5e8b428fff011c6bb85fa02a5bdc754b2360a370

Patch Set 1 #

Patch Set 2 : none #

Total comments: 4

Patch Set 3 : none #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+19 lines, -9 lines) Patch
M third_party/WebKit/LayoutTests/FlagExpectations/enable-slimming-paint-v2 View 2 chunks +0 lines, -5 lines 0 comments Download
M third_party/WebKit/Source/core/paint/PaintPropertyTreeBuilder.cpp View 1 2 1 chunk +4 lines, -4 lines 1 comment Download
M third_party/WebKit/Source/core/paint/PaintPropertyTreeBuilderTest.cpp View 1 chunk +15 lines, -0 lines 0 comments Download

Messages

Total messages: 28 (14 generated)
chrishtr
This CL works for the referenced tests. But what about this situation? <!DOCTYPE HTML> <html> ...
3 years, 8 months ago (2017-03-31 19:33:08 UTC) #6
trchen
I think the example you made is okay. I'm thinking about this case: <div style="width:100px; ...
3 years, 8 months ago (2017-03-31 20:03:14 UTC) #7
chrishtr
Done.
3 years, 8 months ago (2017-03-31 21:06:15 UTC) #11
trchen
https://codereview.chromium.org/2794633002/diff/20001/third_party/WebKit/Source/core/paint/PaintPropertyTreeBuilder.cpp File third_party/WebKit/Source/core/paint/PaintPropertyTreeBuilder.cpp (right): https://codereview.chromium.org/2794633002/diff/20001/third_party/WebKit/Source/core/paint/PaintPropertyTreeBuilder.cpp#newcode488 third_party/WebKit/Source/core/paint/PaintPropertyTreeBuilder.cpp:488: if (layer->hasNonIsolatedDescendantWithBlendMode()) if (object->hasNonIsolatedDescendantWithBlendMode()) https://codereview.chromium.org/2794633002/diff/20001/third_party/WebKit/Source/core/paint/PaintPropertyTreeBuilder.cpp#newcode491 third_party/WebKit/Source/core/paint/PaintPropertyTreeBuilder.cpp:491: if (SVGLayoutSupport::isIsolationRequired(&object)) else ...
3 years, 8 months ago (2017-03-31 21:08:31 UTC) #13
chrishtr
https://codereview.chromium.org/2794633002/diff/20001/third_party/WebKit/Source/core/paint/PaintPropertyTreeBuilder.cpp File third_party/WebKit/Source/core/paint/PaintPropertyTreeBuilder.cpp (right): https://codereview.chromium.org/2794633002/diff/20001/third_party/WebKit/Source/core/paint/PaintPropertyTreeBuilder.cpp#newcode488 third_party/WebKit/Source/core/paint/PaintPropertyTreeBuilder.cpp:488: if (layer->hasNonIsolatedDescendantWithBlendMode()) On 2017/03/31 at 21:08:31, trchen wrote: > ...
3 years, 8 months ago (2017-03-31 21:28:34 UTC) #14
trchen
lgtm
3 years, 8 months ago (2017-03-31 21:29:09 UTC) #15
trchen
Oh wait, actually not lgtm. I think SVGRoot would be unconditionally isolating if we do ...
3 years, 8 months ago (2017-03-31 21:30:42 UTC) #16
chrishtr
On 2017/03/31 at 21:30:42, trchen wrote: > Oh wait, actually not lgtm. I think SVGRoot ...
3 years, 8 months ago (2017-03-31 21:31:07 UTC) #17
trchen
Sorry for the back and forth. I think the version I just commented should work. ...
3 years, 8 months ago (2017-03-31 21:33:35 UTC) #18
trchen
Actually lgtm. The early exit checked for isSVGChild, not isSVG, so SVG root wouldn't be ...
3 years, 8 months ago (2017-03-31 21:37:12 UTC) #19
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/2794633002/40001
3 years, 8 months ago (2017-03-31 21:38:15 UTC) #21
commit-bot: I haz the power
Try jobs failed on following builders: win_chromium_rel_ng on master.tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_rel_ng/builds/413095)
3 years, 8 months ago (2017-04-01 01:34:08 UTC) #23
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/2794633002/40001
3 years, 8 months ago (2017-04-01 03:53:24 UTC) #25
commit-bot: I haz the power
3 years, 8 months ago (2017-04-01 05:26:22 UTC) #28
Message was sent while issue was closed.
Committed patchset #3 (id:40001) as
https://chromium.googlesource.com/chromium/src/+/5e8b428fff011c6bb85fa02a5bdc...

Powered by Google App Engine
This is Rietveld 408576698