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

Issue 421863002: SVGElement::parseAttribute resolves property via property map (Step 1) (Closed)

Created:
6 years, 4 months ago by kouhei (in TOK)
Modified:
6 years, 4 months ago
Reviewers:
haraken, pdr., fs
CC:
blink-reviews, Eric Willigers, Steve Block, krit, rjwright, Mike Lawther (Google), blink-reviews-animation_chromium.org, Timothy Loh, dstockwell, ed+blinkwatch_opera.com, shans, f(malita), gyuyoung.kim_webkit.org, darktears, Stephen Chennney, kouhei+svg_chromium.org, pdr., rwlbuis
Project:
blink
Visibility:
Public.

Description

SVGElement::parseAttribute resolves property via property map (Step 1) This CL introduces |SVGElement::parseAttributeNew|, a new |SVGElement::parseAttribute| implementation based on property map. Before this patch, |SVG(.*)Element::parseAttribute| used chained if stmts to resolve SVGAnimatedProperty. This patch changes it to resolve using property map. This is to replace the existing |SVGElement::parseAttribute| implementation, but as there are many callers, we would like to proceed this incrementally. a) Introduce |SVGElement::parseAttributeNew| b) Convert all overrides |SVGElement::parseAttribute| to a |parseAttributeNew| call. c) Replace existing |parseAttribute| with |parseAttributeNew|, and remove all overrides simply calling |parseAttributeNew| This patch is (a). This patch also converts |SVG{Graphics,Rect}Element::parseAttribute| to start with (b). BUG=397902 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=179019

Patch Set 1 #

Total comments: 1

Patch Set 2 : add OVERRIDE keywords #

Total comments: 4

Patch Set 3 : Add return #

Unified diffs Side-by-side diffs Delta from patch set Stats (+24 lines, -37 lines) Patch
M Source/core/svg/SVGAnimatedLength.h View 1 1 chunk +1 line, -1 line 0 comments Download
M Source/core/svg/SVGElement.h View 1 chunk +5 lines, -0 lines 0 comments Download
M Source/core/svg/SVGElement.cpp View 1 2 1 chunk +14 lines, -0 lines 0 comments Download
M Source/core/svg/SVGGraphicsElement.cpp View 1 chunk +1 line, -15 lines 0 comments Download
M Source/core/svg/SVGRectElement.cpp View 1 chunk +1 line, -20 lines 0 comments Download
M Source/core/svg/properties/SVGAnimatedProperty.h View 1 2 chunks +2 lines, -1 line 0 comments Download

Messages

Total messages: 12 (0 generated)
kouhei (in TOK)
Would you take a look? https://codereview.chromium.org/421863002/diff/1/Source/core/svg/SVGGraphicsElement.cpp File Source/core/svg/SVGGraphicsElement.cpp (left): https://codereview.chromium.org/421863002/diff/1/Source/core/svg/SVGGraphicsElement.cpp#oldcode191 Source/core/svg/SVGGraphicsElement.cpp:191: else if (SVGTests::parseAttribute(name, value)) ...
6 years, 4 months ago (2014-07-28 03:44:59 UTC) #1
haraken
https://codereview.chromium.org/421863002/diff/20001/Source/core/svg/SVGRectElement.cpp File Source/core/svg/SVGRectElement.cpp (left): https://codereview.chromium.org/421863002/diff/20001/Source/core/svg/SVGRectElement.cpp#oldcode70 Source/core/svg/SVGRectElement.cpp:70: if (!isSupportedAttribute(name)) Just help me understand: How is isSupportedAttribute(name) ...
6 years, 4 months ago (2014-07-28 04:49:14 UTC) #2
kouhei (in TOK)
https://codereview.chromium.org/421863002/diff/20001/Source/core/svg/SVGRectElement.cpp File Source/core/svg/SVGRectElement.cpp (left): https://codereview.chromium.org/421863002/diff/20001/Source/core/svg/SVGRectElement.cpp#oldcode70 Source/core/svg/SVGRectElement.cpp:70: if (!isSupportedAttribute(name)) On 2014/07/28 04:49:13, haraken wrote: > > ...
6 years, 4 months ago (2014-07-28 04:51:29 UTC) #3
haraken
On 2014/07/28 04:51:29, kouhei wrote: > https://codereview.chromium.org/421863002/diff/20001/Source/core/svg/SVGRectElement.cpp > File Source/core/svg/SVGRectElement.cpp (left): > > https://codereview.chromium.org/421863002/diff/20001/Source/core/svg/SVGRectElement.cpp#oldcode70 > ...
6 years, 4 months ago (2014-07-28 04:54:34 UTC) #4
fs
https://codereview.chromium.org/421863002/diff/20001/Source/core/svg/SVGElement.cpp File Source/core/svg/SVGElement.cpp (right): https://codereview.chromium.org/421863002/diff/20001/Source/core/svg/SVGElement.cpp#newcode612 Source/core/svg/SVGElement.cpp:612: } Should there be a 'return' here?
6 years, 4 months ago (2014-07-28 08:00:45 UTC) #5
kouhei (in TOK)
https://codereview.chromium.org/421863002/diff/20001/Source/core/svg/SVGElement.cpp File Source/core/svg/SVGElement.cpp (right): https://codereview.chromium.org/421863002/diff/20001/Source/core/svg/SVGElement.cpp#newcode612 Source/core/svg/SVGElement.cpp:612: } On 2014/07/28 08:00:45, fs wrote: > Should there ...
6 years, 4 months ago (2014-07-28 08:51:03 UTC) #6
fs
On 2014/07/28 08:51:03, kouhei wrote: > https://codereview.chromium.org/421863002/diff/20001/Source/core/svg/SVGElement.cpp > File Source/core/svg/SVGElement.cpp (right): > > https://codereview.chromium.org/421863002/diff/20001/Source/core/svg/SVGElement.cpp#newcode612 > ...
6 years, 4 months ago (2014-07-28 09:04:03 UTC) #7
kouhei (in TOK)
Thanks for review!
6 years, 4 months ago (2014-07-28 09:05:25 UTC) #8
kouhei (in TOK)
The CQ bit was checked by kouhei@chromium.org
6 years, 4 months ago (2014-07-28 09:05:28 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/kouhei@chromium.org/421863002/40001
6 years, 4 months ago (2014-07-28 09:05:51 UTC) #10
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: win_blink_rel on tryserver.blink ...
6 years, 4 months ago (2014-07-28 09:58:06 UTC) #11
commit-bot: I haz the power
6 years, 4 months ago (2014-07-28 10:34:40 UTC) #12
Message was sent while issue was closed.
Change committed as 179019

Powered by Google App Engine
This is Rietveld 408576698