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

Issue 683703005: Prefer unprefixed clip-path to (webkit) prefixed (Closed)

Created:
6 years, 1 month ago by fs
Modified:
6 years, 1 month ago
Reviewers:
pdr., f(malita)
CC:
blink-reviews, blink-reviews-rendering, zoltan1, pdr+renderingwatchlist_chromium.org, eae+blinkwatch, leviw+renderwatch, kouhei+svg_chromium.org, fs, ed+blinkwatch_opera.com, krit, f(malita), gyuyoung.kim_webkit.org, jchaffraix+rendering, Stephen Chennney, rwlbuis, pdr+svgwatchlist_chromium.org
Project:
blink
Visibility:
Public.

Description

Prefer unprefixed clip-path to (webkit) prefixed In the world of prefixes, a property without takes precedence over a property with. That tends to assume that there's not actually two properties supported though. In the case of 'clip-path' and '-webkit-clip-path', they both exist and are handled by different code. The latter also takes precedence over the former which leads to strange behavior in the cases where both the prefixed and unprefixed property is specified in a rule. Change the behavior in this case to be more in line with prefix handling in general, byt preferring the unprefixed property if it exists. This requires moving one or the other of the two code-blocks that setup the clip. In this CL the application of 'clip-path' is moved before the application of 'mask'. With this move, the rendering-clip-as-mask code-path can be simplified a bit. Also fix an edge-case where a clip-shape which referenced a non-existent filter would not be rendered (TC added.) Also clean-up the rendering-clip-as-mask handling around opacity/blend-mode/isolation, to avoid creating a (redundant) transparency layer when a clip-shape has isolation specified. BUG=391608 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=184752

Patch Set 1 #

Total comments: 6
Unified diffs Side-by-side diffs Delta from patch set Stats (+47 lines, -22 lines) Patch
M LayoutTests/TestExpectations View 1 chunk +2 lines, -0 lines 0 comments Download
A LayoutTests/svg/clip-path/clip-path-prefixed-vs-not.html View 1 chunk +13 lines, -0 lines 0 comments Download
A + LayoutTests/svg/clip-path/clip-path-prefixed-vs-not-expected.html View 0 chunks +-1 lines, --1 lines 0 comments Download
A LayoutTests/svg/clip-path/clip-path-w-broken-filter-on-shape.html View 1 chunk +8 lines, -0 lines 3 comments Download
A + LayoutTests/svg/clip-path/clip-path-w-broken-filter-on-shape-expected.html View 1 chunk +1 line, -0 lines 0 comments Download
M Source/core/rendering/svg/SVGRenderingContext.cpp View 4 chunks +24 lines, -23 lines 3 comments Download

Messages

Total messages: 8 (2 generated)
fs
Requires one updated baseline due to the change of order between mask and clip: https://storage.googleapis.com/chromium-layout-test-archives/mac_blink_rel/29316/layout-test-results/svg/filters/filter-clip-diffs.html
6 years, 1 month ago (2014-10-31 16:23:28 UTC) #2
f(malita)
I think this makes sense. https://codereview.chromium.org/683703005/diff/1/LayoutTests/svg/clip-path/clip-path-w-broken-filter-on-shape.html File LayoutTests/svg/clip-path/clip-path-w-broken-filter-on-shape.html (right): https://codereview.chromium.org/683703005/diff/1/LayoutTests/svg/clip-path/clip-path-w-broken-filter-on-shape.html#newcode4 LayoutTests/svg/clip-path/clip-path-w-broken-filter-on-shape.html:4: <text></text> Just curious: I ...
6 years, 1 month ago (2014-10-31 17:24:46 UTC) #3
fs
https://codereview.chromium.org/683703005/diff/1/LayoutTests/svg/clip-path/clip-path-w-broken-filter-on-shape.html File LayoutTests/svg/clip-path/clip-path-w-broken-filter-on-shape.html (right): https://codereview.chromium.org/683703005/diff/1/LayoutTests/svg/clip-path/clip-path-w-broken-filter-on-shape.html#newcode4 LayoutTests/svg/clip-path/clip-path-w-broken-filter-on-shape.html:4: <text></text> On 2014/10/31 17:24:46, Florin Malita wrote: > Just ...
6 years, 1 month ago (2014-10-31 19:29:22 UTC) #4
f(malita)
https://codereview.chromium.org/683703005/diff/1/LayoutTests/svg/clip-path/clip-path-w-broken-filter-on-shape.html File LayoutTests/svg/clip-path/clip-path-w-broken-filter-on-shape.html (right): https://codereview.chromium.org/683703005/diff/1/LayoutTests/svg/clip-path/clip-path-w-broken-filter-on-shape.html#newcode4 LayoutTests/svg/clip-path/clip-path-w-broken-filter-on-shape.html:4: <text></text> On 2014/10/31 19:29:22, fs wrote: > On 2014/10/31 ...
6 years, 1 month ago (2014-10-31 19:36:35 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/683703005/1
6 years, 1 month ago (2014-10-31 20:22:54 UTC) #7
commit-bot: I haz the power
6 years, 1 month ago (2014-10-31 20:25:20 UTC) #8
Message was sent while issue was closed.
Committed patchset #1 (id:1) as 184752

Powered by Google App Engine
This is Rietveld 408576698