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

Issue 1471943003: Introduce SVGPathQuery to hold SVG path query methods (Closed)

Created:
5 years ago by fs
Modified:
5 years ago
Reviewers:
pdr., f(malita)
CC:
blink-reviews, chromium-reviews, krit, gyuyoung2, kouhei+svg_chromium.org, pdr+svgwatchlist_chromium.org, rwlbuis, Stephen Chennney
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Introduce SVGPathQuery to hold SVG path query methods Rename SVGPathTraversalStateBuilder.{cpp,h} to SVGPathQuery.{cpp,h}, and similarly rename the class itself. Move the query methods in SVGPathUtilities (getSVGPathSegAtLengthFromSVGPathByteStream, getTotalLengthOfSVGPathByteStream, getPointAtLengthOfSVGPathByteStream) to that class, shortening their names in the process. Open-code the SVGPathParser driver to allow the general SVGPathConsumer interface to be simplified - incrementPathSegmentCount and continueConsuming are only used for path queries. BUG=467592 Committed: https://crrev.com/97a8817d7e51850b1e40247490b91c6c484cc74a Cr-Commit-Position: refs/heads/master@{#361351}

Patch Set 1 #

Patch Set 2 : Const-qualify. #

Total comments: 2

Patch Set 3 : Merge consumedSegment with processSegment. #

Patch Set 4 : Rebase. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+150 lines, -216 lines) Patch
M third_party/WebKit/Source/core/core.gypi View 1 2 3 1 chunk +2 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/core/svg/SVGPathBuilder.h View 1 chunk +0 lines, -3 lines 0 comments Download
M third_party/WebKit/Source/core/svg/SVGPathByteStreamBuilder.h View 1 chunk +0 lines, -3 lines 0 comments Download
M third_party/WebKit/Source/core/svg/SVGPathConsumer.h View 1 chunk +0 lines, -3 lines 0 comments Download
M third_party/WebKit/Source/core/svg/SVGPathElement.cpp View 2 chunks +4 lines, -4 lines 0 comments Download
M third_party/WebKit/Source/core/svg/SVGPathParser.cpp View 2 chunks +0 lines, -12 lines 0 comments Download
A + third_party/WebKit/Source/core/svg/SVGPathQuery.h View 1 2 chunks +12 lines, -13 lines 0 comments Download
A third_party/WebKit/Source/core/svg/SVGPathQuery.cpp View 1 2 1 chunk +132 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/svg/SVGPathStringBuilder.h View 1 chunk +0 lines, -3 lines 0 comments Download
D third_party/WebKit/Source/core/svg/SVGPathTraversalStateBuilder.h View 1 chunk +0 lines, -51 lines 0 comments Download
D third_party/WebKit/Source/core/svg/SVGPathTraversalStateBuilder.cpp View 1 chunk +0 lines, -79 lines 0 comments Download
M third_party/WebKit/Source/core/svg/SVGPathUtilities.h View 1 2 3 2 chunks +0 lines, -5 lines 0 comments Download
M third_party/WebKit/Source/core/svg/SVGPathUtilities.cpp View 1 2 3 2 chunks +0 lines, -38 lines 0 comments Download

Messages

Total messages: 12 (3 generated)
fs
5 years ago (2015-11-24 13:41:44 UTC) #3
f(malita)
LGTM https://codereview.chromium.org/1471943003/diff/20001/third_party/WebKit/Source/core/svg/SVGPathQuery.cpp File third_party/WebKit/Source/core/svg/SVGPathQuery.cpp (right): https://codereview.chromium.org/1471943003/diff/20001/third_party/WebKit/Source/core/svg/SVGPathQuery.cpp#newcode101 third_party/WebKit/Source/core/svg/SVGPathQuery.cpp:101: traversalState.consumedSegment(); Could we get rid of consumedSegment by ...
5 years ago (2015-11-24 14:22:40 UTC) #4
fs
https://codereview.chromium.org/1471943003/diff/20001/third_party/WebKit/Source/core/svg/SVGPathQuery.cpp File third_party/WebKit/Source/core/svg/SVGPathQuery.cpp (right): https://codereview.chromium.org/1471943003/diff/20001/third_party/WebKit/Source/core/svg/SVGPathQuery.cpp#newcode101 third_party/WebKit/Source/core/svg/SVGPathQuery.cpp:101: traversalState.consumedSegment(); On 2015/11/24 at 14:22:40, f(malita) wrote: > Could ...
5 years ago (2015-11-24 14:51:47 UTC) #5
f(malita)
On 2015/11/24 14:51:47, fs wrote: > https://codereview.chromium.org/1471943003/diff/20001/third_party/WebKit/Source/core/svg/SVGPathQuery.cpp > File third_party/WebKit/Source/core/svg/SVGPathQuery.cpp (right): > > https://codereview.chromium.org/1471943003/diff/20001/third_party/WebKit/Source/core/svg/SVGPathQuery.cpp#newcode101 > ...
5 years ago (2015-11-24 15:03:51 UTC) #6
f(malita)
On 2015/11/24 15:03:51, f(malita) wrote: > (I don't think it matters what happens to m_segmentIndex ...
5 years ago (2015-11-24 15:05:54 UTC) #7
fs
On 2015/11/24 at 15:03:51, fmalita wrote: > On 2015/11/24 14:51:47, fs wrote: > > https://codereview.chromium.org/1471943003/diff/20001/third_party/WebKit/Source/core/svg/SVGPathQuery.cpp ...
5 years ago (2015-11-24 15:06:42 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1471943003/60001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1471943003/60001
5 years ago (2015-11-24 15:51:11 UTC) #10
commit-bot: I haz the power
Committed patchset #4 (id:60001)
5 years ago (2015-11-24 16:09:49 UTC) #11
commit-bot: I haz the power
5 years ago (2015-11-24 16:11:12 UTC) #12
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/97a8817d7e51850b1e40247490b91c6c484cc74a
Cr-Commit-Position: refs/heads/master@{#361351}

Powered by Google App Engine
This is Rietveld 408576698