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

Issue 1376523002: Support 'pathLength' for stroking operations on <path> (Closed)

Created:
5 years, 2 months ago by fs
Modified:
4 years, 10 months ago
Reviewers:
davve, pdr., f(malita)
CC:
fs, blink-reviews, blink-reviews-layout_chromium.org, blink-reviews-paint_chromium.org, chromium-reviews, dshwang, krit, eae+blinkwatch, f(malita), gyuyoung2, jchaffraix+rendering, kouhei+svg_chromium.org, leviw+renderwatch, pdr+svgwatchlist_chromium.org, pdr+renderingwatchlist_chromium.org, rwlbuis, Stephen Chennney, slimming-paint-reviews_chromium.org, szager+layoutwatch_chromium.org, zoltan1
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Support 'pathLength' for stroking operations on <path> This implements support for the 'pathLength' attribute on <path>. BUG=536217 Committed: https://crrev.com/04aa03453f1e244c332d8bb9ca7bbb2dfaf47c6b Cr-Commit-Position: refs/heads/master@{#373110}

Patch Set 1 #

Patch Set 2 : Rebase; use StylePath for computed path length caching. #

Total comments: 2

Patch Set 3 : Remove double space #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+128 lines, -10 lines) Patch
A third_party/WebKit/LayoutTests/svg/dom/path-queries-pathLength.html View 1 chunk +29 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/svg/repaint/path-pathlength-change.html View 1 1 chunk +13 lines, -0 lines 0 comments Download
A + third_party/WebKit/LayoutTests/svg/repaint/path-pathlength-change-expected.txt View 1 1 chunk +2 lines, -2 lines 0 comments Download
A third_party/WebKit/LayoutTests/svg/stroke/pathlength-basic.html View 1 chunk +5 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/svg/stroke/pathlength-basic-expected.html View 1 chunk +5 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/svg/stroke/pathlength-change.html View 1 1 chunk +11 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/svg/stroke/pathlength-change-expected.html View 1 1 chunk +4 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/svg/stroke/pathlength-explicit-zero.html View 1 chunk +5 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/svg/stroke/pathlength-explicit-zero-expected.html View 1 chunk +4 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/svg/stroke/pathlength-negative.html View 1 chunk +5 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/svg/stroke/pathlength-negative-expected.html View 1 2 1 chunk +5 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/layout/svg/LayoutSVGShape.h View 1 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/Source/core/layout/svg/LayoutSVGShape.cpp View 1 4 chunks +25 lines, -2 lines 2 comments Download
M third_party/WebKit/Source/core/layout/svg/SVGLayoutSupport.h View 1 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/core/layout/svg/SVGLayoutSupport.cpp View 1 2 chunks +10 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/core/paint/SVGInlineTextBoxPainter.cpp View 1 2 chunks +2 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/core/paint/SVGShapePainter.cpp View 1 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 16 (5 generated)
fs
Possibly ironic, but https://github.com/w3c/svgwg/blob/master/master/images/painting/dash-pathlength.svg still doesn't render 100% correctly (the leftmost "dot" isn't rendered). The ...
4 years, 10 months ago (2016-02-01 16:15:22 UTC) #2
pdr.
I didn't have time to review this one today but I'll grab it tomorrow.
4 years, 10 months ago (2016-02-02 06:42:51 UTC) #3
davve
Looks awesome. Non-owner LGTM for from me. File issue on the missing dot? https://codereview.chromium.org/1376523002/diff/20001/third_party/WebKit/LayoutTests/svg/stroke/pathlength-negative-expected.html File ...
4 years, 10 months ago (2016-02-02 09:27:40 UTC) #5
davve
On 2016/02/02 09:27:40, David Vest wrote: > Looks awesome. Non-owner LGTM for from me. for ...
4 years, 10 months ago (2016-02-02 09:28:59 UTC) #6
fs
On 2016/02/02 at 09:27:40, davve wrote: ... > File issue on the missing dot? Wilco ...
4 years, 10 months ago (2016-02-02 11:16:38 UTC) #7
f(malita)
LGTM https://codereview.chromium.org/1376523002/diff/40001/third_party/WebKit/Source/core/layout/svg/LayoutSVGShape.cpp File third_party/WebKit/Source/core/layout/svg/LayoutSVGShape.cpp (right): https://codereview.chromium.org/1376523002/diff/40001/third_party/WebKit/Source/core/layout/svg/LayoutSVGShape.cpp#newcode77 third_party/WebKit/Source/core/layout/svg/LayoutSVGShape.cpp:77: if (authorPathLength < 0 || !svgStyle.strokeDashArray()->size()) Is pathLength ...
4 years, 10 months ago (2016-02-02 13:44:00 UTC) #8
fs
https://codereview.chromium.org/1376523002/diff/40001/third_party/WebKit/Source/core/layout/svg/LayoutSVGShape.cpp File third_party/WebKit/Source/core/layout/svg/LayoutSVGShape.cpp (right): https://codereview.chromium.org/1376523002/diff/40001/third_party/WebKit/Source/core/layout/svg/LayoutSVGShape.cpp#newcode77 third_party/WebKit/Source/core/layout/svg/LayoutSVGShape.cpp:77: if (authorPathLength < 0 || !svgStyle.strokeDashArray()->size()) On 2016/02/02 at ...
4 years, 10 months ago (2016-02-02 13:47:23 UTC) #9
pdr.
LGTM, this rules
4 years, 10 months ago (2016-02-02 21:23:47 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1376523002/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1376523002/40001
4 years, 10 months ago (2016-02-02 22:17:28 UTC) #13
commit-bot: I haz the power
Committed patchset #3 (id:40001)
4 years, 10 months ago (2016-02-03 01:18:12 UTC) #14
commit-bot: I haz the power
4 years, 10 months ago (2016-02-03 01:19:52 UTC) #16
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/04aa03453f1e244c332d8bb9ca7bbb2dfaf47c6b
Cr-Commit-Position: refs/heads/master@{#373110}

Powered by Google App Engine
This is Rietveld 408576698