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

Issue 478333002: hasDescendantWithBlendMode should not be propagated outside the current stacking context. (Closed)

Created:
6 years, 4 months ago by rosca
Modified:
6 years, 2 months ago
CC:
blink-layers+watch_chromium.org, blink-reviews, blink-reviews-rendering, eae+blinkwatch, jchaffraix+rendering, leviw+renderwatch, pdr., rune+blink, zoltan1
Base URL:
https://chromium.googlesource.com/chromium/blink.git@master
Project:
blink
Visibility:
Public.

Description

hasDescendantWithBlendMode should not be propagated outside the current stacking context. If a stacking context element has descendants with blend mode, it should create a new transparency layer, so that blending descendants will blend only with the content within this stacking context (stacking context will isolate blending). With this CL, hasDescendantWithBlendMode will be set only if the descendant is right inside the current stacking context, without looking into nested stacking context elements. It also renames hasDescendantWithBlendMode to hasNonIsolatedDescendantWithBlendMode, which is more self-explanatory. This change is necessary after https://codereview.chromium.org/466193002 (Disentangle blend mode from updateDescendantDependentFlags). The "isolating" state used to be tested with DRT, but this property has been removed with https://codereview.chromium.org/466943002/ (Remove isolatesBlending from render tree dumps). We cannot test this change using layout tests. The effect is that RenderLayer doesn't create any aditional and unnecessary skia transparency layers. Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=183806

Patch Set 1 #

Patch Set 2 : adding performance test #

Patch Set 3 : rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+70 lines, -7 lines) Patch
A PerformanceTests/Blending/mix-blend-mode-propagating-isolation.html View 1 1 chunk +57 lines, -0 lines 0 comments Download
A + PerformanceTests/Blending/resources/framerate.js View 1 2 chunks +7 lines, -1 line 0 comments Download
M Source/core/paint/LayerPainter.cpp View 1 2 2 chunks +2 lines, -2 lines 0 comments Download
M Source/core/rendering/RenderLayer.h View 1 2 2 chunks +3 lines, -3 lines 0 comments Download
M Source/core/rendering/compositing/CompositingInputsUpdater.cpp View 1 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 15 (4 generated)
abarth-chromium
> We cannot test this change using layout tests. The effect is that > RenderLayer ...
6 years, 4 months ago (2014-08-18 17:54:40 UTC) #1
rosca
On 2014/08/18 17:54:40, abarth wrote: > > We cannot test this change using layout tests. ...
6 years, 4 months ago (2014-08-18 18:08:31 UTC) #2
abarth-chromium
On 2014/08/18 at 18:08:31, rosca wrote: > However, creating unnecessary transparency layers is not ok ...
6 years, 4 months ago (2014-08-18 18:10:59 UTC) #3
rosca
On 2014/08/18 18:10:59, abarth wrote: > On 2014/08/18 at 18:08:31, rosca wrote: > > I'll ...
6 years, 3 months ago (2014-09-24 11:18:08 UTC) #4
rosca
@abarth, please have a look at this when you have time. Thanks!
6 years, 2 months ago (2014-09-30 17:48:54 UTC) #5
rosca
eseidel, could you review this patch? I couldn't catch abarth the last couple of weeks ...
6 years, 2 months ago (2014-10-15 19:38:21 UTC) #7
abarth-chromium
lgtm
6 years, 2 months ago (2014-10-16 00:40:54 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/478333002/20001
6 years, 2 months ago (2014-10-16 00:41:24 UTC) #10
commit-bot: I haz the power
Failed to apply patch for Source/core/rendering/RenderLayer.cpp: While running patch -p1 --forward --force --no-backup-if-mismatch; patching file ...
6 years, 2 months ago (2014-10-16 00:41:50 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/478333002/40001
6 years, 2 months ago (2014-10-16 09:58:06 UTC) #14
commit-bot: I haz the power
6 years, 2 months ago (2014-10-16 12:04:02 UTC) #15
Message was sent while issue was closed.
Committed patchset #3 (id:40001) as 183806

Powered by Google App Engine
This is Rietveld 408576698