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

Issue 2322343003: Add support for <basic-shape> to 'clip-path' on SVG elements (Closed)

Created:
4 years, 3 months ago by fs
Modified:
4 years, 3 months ago
CC:
darktears, apavlov+blink_chromium.org, blink-reviews, blink-reviews-css, blink-reviews-layout_chromium.org, blink-reviews-paint_chromium.org, blink-reviews-style_chromium.org, chromium-reviews, dglazkov+blink, dshwang, krit, eae+blinkwatch, f(malita), gyuyoung2, jchaffraix+rendering, kouhei+svg_chromium.org, leviw+renderwatch, pdr+svgwatchlist_chromium.org, pdr+renderingwatchlist_chromium.org, rwlbuis, slimming-paint-reviews_chromium.org, szager+layoutwatch_chromium.org, zoltan1
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Add support for <basic-shape> to 'clip-path' on SVG elements Use ClipPathOperation as storage for the property in SVGComputedStyle, and add support for <basic-shape>s where needed. This also means that nesting a <clipPath> with a <basic-shape> is added. Since SVGPaintContext::applyClipIfNecessary can't fail in a useful way, just drop the returned bool (test added.) An invalid clip-path will just be ignored (per spec.) BUG=633028 CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:linux_layout_tests_slimming_paint_v2 Committed: https://crrev.com/f4431bff28115f98687623c8ff242d2fc4e989ff Cr-Commit-Position: refs/heads/master@{#418387}

Patch Set 1 #

Patch Set 2 : Baselines #

Patch Set 3 : Update SPv2 expectations #

Unified diffs Side-by-side diffs Delta from patch set Stats (+169 lines, -134 lines) Patch
M third_party/WebKit/LayoutTests/FlagExpectations/enable-slimming-paint-v2 View 1 2 2 chunks +2 lines, -0 lines 0 comments Download
M third_party/WebKit/LayoutTests/platform/mac/svg/batik/text/textProperties-expected.png View 1 Binary file 0 comments Download
M third_party/WebKit/LayoutTests/svg/clip-path/clip-path-clipped-evenodd-twice-expected.png View 1 Binary file 0 comments Download
A third_party/WebKit/LayoutTests/svg/clip-path/clip-path-clipped-shape.html View 1 chunk +7 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/svg/clip-path/clip-path-clipped-shape-expected.html View 1 chunk +4 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/svg/clip-path/clip-path-invalid.html View 1 chunk +11 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/svg/clip-path/clip-path-invalid-expected.html View 1 chunk +2 lines, -0 lines 0 comments Download
A + third_party/WebKit/LayoutTests/svg/hittest/clip-path-shape.html View 2 chunks +9 lines, -11 lines 0 comments Download
M third_party/WebKit/Source/core/css/CSSProperties.in View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/core/css/ComputedStyleCSSValueMapping.cpp View 1 2 chunks +3 lines, -5 lines 0 comments Download
M third_party/WebKit/Source/core/css/parser/CSSPropertyParser.cpp View 3 chunks +3 lines, -3 lines 0 comments Download
M third_party/WebKit/Source/core/layout/svg/LayoutSVGResourceClipper.cpp View 2 chunks +2 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/core/layout/svg/SVGLayoutSupport.cpp View 2 chunks +11 lines, -9 lines 0 comments Download
M third_party/WebKit/Source/core/layout/svg/SVGLayoutTreeAsText.cpp View 1 chunk +12 lines, -8 lines 0 comments Download
M third_party/WebKit/Source/core/layout/svg/SVGResources.cpp View 1 chunk +7 lines, -4 lines 0 comments Download
M third_party/WebKit/Source/core/paint/ClipPathClipper.h View 1 chunk +11 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/core/paint/ClipPathClipper.cpp View 1 chunk +36 lines, -13 lines 0 comments Download
M third_party/WebKit/Source/core/paint/PaintLayerPainter.cpp View 1 2 1 chunk +2 lines, -1 line 0 comments Download
M third_party/WebKit/Source/core/paint/SVGClipPainter.h View 1 chunk +2 lines, -6 lines 0 comments Download
M third_party/WebKit/Source/core/paint/SVGClipPainter.cpp View 8 chunks +14 lines, -17 lines 0 comments Download
M third_party/WebKit/Source/core/paint/SVGPaintContext.h View 4 chunks +3 lines, -11 lines 0 comments Download
M third_party/WebKit/Source/core/paint/SVGPaintContext.cpp View 5 chunks +16 lines, -31 lines 0 comments Download
M third_party/WebKit/Source/core/style/SVGComputedStyle.h View 4 chunks +5 lines, -6 lines 0 comments Download
M third_party/WebKit/Source/core/style/SVGComputedStyleDefs.h View 2 chunks +2 lines, -1 line 0 comments Download
M third_party/WebKit/Source/core/style/SVGComputedStyleDefs.cpp View 2 chunks +4 lines, -3 lines 0 comments Download

Messages

Total messages: 26 (18 generated)
fs
4 years, 3 months ago (2016-09-09 20:10:33 UTC) #9
Stephen Chennney
No test for just plain basic shapes as an SVG clip path? I see the ...
4 years, 3 months ago (2016-09-09 20:50:37 UTC) #13
Stephen Chennney
On 2016/09/09 20:50:37, Stephen Chennney wrote: > No test for just plain basic shapes as ...
4 years, 3 months ago (2016-09-09 20:53:39 UTC) #14
fs
On 2016/09/09 at 20:53:39, schenney wrote: > On 2016/09/09 20:50:37, Stephen Chennney wrote: > > ...
4 years, 3 months ago (2016-09-09 21:01:41 UTC) #15
Stephen Chennney
lgtm
4 years, 3 months ago (2016-09-12 13:35:15 UTC) #16
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/2322343003/30001
4 years, 3 months ago (2016-09-13 21:59:45 UTC) #23
commit-bot: I haz the power
Committed patchset #3 (id:30001)
4 years, 3 months ago (2016-09-13 22:06:03 UTC) #24
commit-bot: I haz the power
4 years, 3 months ago (2016-09-13 22:07:21 UTC) #26
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/f4431bff28115f98687623c8ff242d2fc4e989ff
Cr-Commit-Position: refs/heads/master@{#418387}

Powered by Google App Engine
This is Rietveld 408576698