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

Issue 132233010: [SVG] SVGAnimatedRect migration to new SVG property impl. (Closed)

Created:
6 years, 11 months ago by kouhei (in TOK)
Modified:
6 years, 11 months ago
Reviewers:
haraken, pdr.
CC:
blink-reviews, shans, eae+blinkwatch, apavlov+blink_chromium.org, adamk+blink_chromium.org, pdr, Steve Block, dino_apple.com, rwlbuis, Nils Barth (inactive), Nate Chapin, arv+blink, alancutter (OOO until 2018), bemjb+rendering_chromium.org, Timothy Loh, abarth-chromium, marja+watch_chromium.org, dglazkov+blink, jchaffraix+rendering, Eric Willigers, rjwright, zoltan1, sof, krit, darktears, dstockwell, kojih, jsbell+bindings_chromium.org, leviw+renderwatch, Mike Lawther (Google), f(malita), Inactive, Stephen Chennney, watchdog-blink-watchlist_google.com
Visibility:
Public.

Description

[SVG] SVGAnimatedRect migration to new SVG property impl. This CL replaces SVGAnimatedRect class with NewSVGProperty implementation. This CL changes the behavior of SVGViewSpec.viewBox readonly animated property. In the previous implementation, changes to readonly property was silently ignored. This CL uses new implementation of animated property which follows the spec. It throws exception when they are tried to be modified. For details, see design doc: https://docs.google.com/document/d/1bg7CUyUszqdwmENY3JX6_PoQD6uHRCNcRPJMlC4qlkw/edit?usp=sharing BUG=308818 R=haraken@chromium.org, pdr@chromium.org Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=165382

Patch Set 1 #

Total comments: 8

Patch Set 2 : comment fixes #

Total comments: 13

Patch Set 3 : haraken #

Patch Set 4 : viewspec.viewbox #

Patch Set 5 : include stringbuilder #

Patch Set 6 : rebased #

Patch Set 7 : rebsaed #

Unified diffs Side-by-side diffs Delta from patch set Stats (+535 lines, -494 lines) Patch
M LayoutTests/TestExpectations View 1 2 3 4 5 6 1 chunk +3 lines, -0 lines 0 comments Download
M LayoutTests/platform/win/svg/custom/viewbox-syntax-expected.txt View 1 chunk +8 lines, -8 lines 0 comments Download
M LayoutTests/platform/win/svg/hixie/error/010-expected.txt View 1 chunk +1 line, -1 line 0 comments Download
M LayoutTests/platform/win/svg/hixie/error/011-expected.txt View 1 chunk +1 line, -1 line 0 comments Download
M LayoutTests/svg/custom/immutable-properties-expected.txt View 1 chunk +1 line, -2 lines 0 comments Download
M LayoutTests/svg/custom/script-tests/immutable-properties.js View 1 chunk +1 line, -4 lines 0 comments Download
M LayoutTests/svg/dom/SVGViewSpec-invalid-ref-crash.html View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M LayoutTests/svg/dom/SVGViewSpec-invalid-ref-crash-expected.txt View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M Source/bindings/scripts/code_generator_v8.pm View 1 2 3 4 5 6 2 chunks +1 line, -1 line 0 comments Download
M Source/core/core.gypi View 1 2 3 4 5 6 2 chunks +3 lines, -1 line 0 comments Download
M Source/core/css/CSSCursorImageValue.cpp View 1 2 3 4 5 6 1 chunk +1 line, -0 lines 0 comments Download
M Source/core/dom/Element.cpp View 1 2 3 4 5 6 1 chunk +1 line, -0 lines 0 comments Download
M Source/core/rendering/svg/RenderSVGModelObject.h View 2 chunks +3 lines, -3 lines 0 comments Download
M Source/core/rendering/svg/RenderSVGModelObject.cpp View 2 chunks +2 lines, -2 lines 0 comments Download
M Source/core/rendering/svg/RenderSVGResourceMarker.cpp View 1 chunk +1 line, -1 line 0 comments Download
M Source/core/rendering/svg/RenderSVGRoot.cpp View 1 chunk +1 line, -1 line 0 comments Download
M Source/core/rendering/svg/SVGTextQuery.h View 2 chunks +2 lines, -2 lines 0 comments Download
M Source/core/rendering/svg/SVGTextQuery.cpp View 1 chunk +2 lines, -2 lines 0 comments Download
M Source/core/svg/SVGAnimatedRect.h View 1 chunk +38 lines, -43 lines 0 comments Download
D Source/core/svg/SVGAnimatedRect.cpp View 1 chunk +0 lines, -102 lines 0 comments Download
M Source/core/svg/SVGAnimatedType.h View 1 2 3 4 5 6 4 chunks +0 lines, -9 lines 0 comments Download
M Source/core/svg/SVGAnimatedType.cpp View 1 2 3 4 5 6 7 chunks +3 lines, -19 lines 0 comments Download
M Source/core/svg/SVGAnimatorFactory.h View 2 chunks +1 line, -2 lines 0 comments Download
M Source/core/svg/SVGElement.h View 1 2 chunks +3 lines, -0 lines 0 comments Download
M Source/core/svg/SVGFitToViewBox.h View 1 2 3 chunks +15 lines, -12 lines 0 comments Download
M Source/core/svg/SVGFitToViewBox.cpp View 1 chunk +0 lines, -65 lines 0 comments Download
M Source/core/svg/SVGGraphicsElement.h View 1 2 3 4 5 2 chunks +6 lines, -2 lines 0 comments Download
M Source/core/svg/SVGGraphicsElement.cpp View 1 chunk +14 lines, -4 lines 0 comments Download
M Source/core/svg/SVGGraphicsElement.idl View 1 chunk +2 lines, -2 lines 0 comments Download
M Source/core/svg/SVGLength.h View 1 chunk +0 lines, -4 lines 0 comments Download
M Source/core/svg/SVGLengthTearOff.h View 1 chunk +1 line, -0 lines 0 comments Download
M Source/core/svg/SVGLengthTearOff.cpp View 1 chunk +1 line, -0 lines 0 comments Download
M Source/core/svg/SVGMarkerElement.h View 2 chunks +2 lines, -1 line 0 comments Download
M Source/core/svg/SVGMarkerElement.cpp View 4 chunks +3 lines, -3 lines 0 comments Download
M Source/core/svg/SVGPathElement.h View 1 2 3 4 5 1 chunk +1 line, -1 line 0 comments Download
M Source/core/svg/SVGPathElement.cpp View 2 chunks +2 lines, -2 lines 0 comments Download
M Source/core/svg/SVGPatternElement.h View 2 chunks +2 lines, -1 line 0 comments Download
M Source/core/svg/SVGPatternElement.cpp View 5 chunks +4 lines, -4 lines 0 comments Download
M Source/core/svg/SVGRect.h View 1 2 3 4 5 1 chunk +62 lines, -35 lines 0 comments Download
A Source/core/svg/SVGRect.cpp View 1 2 3 4 5 1 chunk +169 lines, -0 lines 0 comments Download
M Source/core/svg/SVGRect.idl View 1 2 1 chunk +8 lines, -5 lines 0 comments Download
A + Source/core/svg/SVGRectTearOff.h View 1 chunk +19 lines, -15 lines 0 comments Download
A + Source/core/svg/SVGRectTearOff.cpp View 2 chunks +45 lines, -19 lines 0 comments Download
M Source/core/svg/SVGSVGElement.h View 1 2 3 4 5 6 chunks +11 lines, -10 lines 0 comments Download
M Source/core/svg/SVGSVGElement.cpp View 11 chunks +31 lines, -26 lines 0 comments Download
M Source/core/svg/SVGSVGElement.idl View 1 2 3 4 5 1 chunk +9 lines, -9 lines 0 comments Download
M Source/core/svg/SVGSymbolElement.h View 2 chunks +3 lines, -1 line 0 comments Download
M Source/core/svg/SVGSymbolElement.cpp View 1 chunk +3 lines, -2 lines 0 comments Download
M Source/core/svg/SVGTextContentElement.h View 1 2 3 4 5 1 chunk +1 line, -1 line 0 comments Download
M Source/core/svg/SVGTextContentElement.cpp View 1 chunk +4 lines, -3 lines 0 comments Download
M Source/core/svg/SVGViewElement.h View 2 chunks +3 lines, -1 line 0 comments Download
M Source/core/svg/SVGViewElement.cpp View 1 chunk +3 lines, -2 lines 0 comments Download
M Source/core/svg/SVGViewSpec.h View 1 2 3 3 chunks +2 lines, -8 lines 0 comments Download
M Source/core/svg/SVGViewSpec.cpp View 7 chunks +18 lines, -42 lines 0 comments Download
M Source/core/svg/SVGZoomEvent.h View 2 chunks +1 line, -3 lines 0 comments Download
M Source/core/svg/SVGZoomEvent.cpp View 1 2 2 chunks +5 lines, -2 lines 0 comments Download
M Source/core/svg/graphics/SVGImage.cpp View 1 chunk +1 line, -1 line 0 comments Download
M Source/core/svg/properties/NewSVGAnimatedProperty.h View 2 chunks +4 lines, -2 lines 0 comments Download
M Source/core/svg/properties/NewSVGListPropertyHelper.h View 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 24 (0 generated)
kouhei (in TOK)
pdr, haraken: Would you take a look?
6 years, 11 months ago (2014-01-16 02:13:58 UTC) #1
pdr.
LGTM https://codereview.chromium.org/132233010/diff/1/Source/core/svg/SVGElement.h File Source/core/svg/SVGElement.h (right): https://codereview.chromium.org/132233010/diff/1/Source/core/svg/SVGElement.h#newcode183 Source/core/svg/SVGElement.h:183: friend class SVGFitToViewBox; Any reason this is listed ...
6 years, 11 months ago (2014-01-16 03:25:46 UTC) #2
kouhei (in TOK)
Thanks for the review! https://codereview.chromium.org/132233010/diff/1/Source/core/svg/SVGElement.h File Source/core/svg/SVGElement.h (right): https://codereview.chromium.org/132233010/diff/1/Source/core/svg/SVGElement.h#newcode183 Source/core/svg/SVGElement.h:183: friend class SVGFitToViewBox; On 2014/01/16 ...
6 years, 11 months ago (2014-01-16 03:42:26 UTC) #3
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/kouhei@chromium.org/132233010/160001
6 years, 11 months ago (2014-01-16 03:42:45 UTC) #4
commit-bot: I haz the power
Retried try job too often on blink_presubmit for step(s) presubmit http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=blink_presubmit&number=14096
6 years, 11 months ago (2014-01-16 04:04:25 UTC) #5
kouhei (in TOK)
haraken: Would you rubberstamp? Thanks.
6 years, 11 months ago (2014-01-16 04:05:15 UTC) #6
haraken
On 2014/01/16 04:05:15, kouhei wrote: > haraken: Would you rubberstamp? Thanks. rubberstamp LGTM. I'm a ...
6 years, 11 months ago (2014-01-16 04:06:23 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/kouhei@chromium.org/132233010/160001
6 years, 11 months ago (2014-01-16 04:08:40 UTC) #8
haraken
LGTM. https://codereview.chromium.org/132233010/diff/160001/Source/core/svg/SVGFitToViewBox.h File Source/core/svg/SVGFitToViewBox.h (right): https://codereview.chromium.org/132233010/diff/160001/Source/core/svg/SVGFitToViewBox.h#newcode52 Source/core/svg/SVGFitToViewBox.h:52: if (target->viewBox()->baseValue()->width() < 0.0f) { // check that ...
6 years, 11 months ago (2014-01-16 04:56:42 UTC) #9
kouhei (in TOK)
Thanks for your comments. I'll queue this after I try the m_viewBox lifetime issue. https://codereview.chromium.org/132233010/diff/160001/Source/core/svg/SVGFitToViewBox.h ...
6 years, 11 months ago (2014-01-16 05:12:36 UTC) #10
kouhei (in TOK)
https://codereview.chromium.org/132233010/diff/160001/Source/core/svg/SVGViewSpec.h File Source/core/svg/SVGViewSpec.h (right): https://codereview.chromium.org/132233010/diff/160001/Source/core/svg/SVGViewSpec.h#newcode73 Source/core/svg/SVGViewSpec.h:73: SVGAnimatedRect* viewBox() { return m_contextElement ? m_viewBox.get() : 0; ...
6 years, 11 months ago (2014-01-16 06:07:58 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/kouhei@chromium.org/132233010/410001
6 years, 11 months ago (2014-01-16 06:45:04 UTC) #12
commit-bot: I haz the power
Retried try job too often on linux_blink_rel for step(s) blink_platform_unittests, webkit_lint, webkit_python_tests, webkit_tests, webkit_unit_tests, wtf_unittests ...
6 years, 11 months ago (2014-01-16 07:32:05 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/kouhei@chromium.org/132233010/520001
6 years, 11 months ago (2014-01-16 08:35:43 UTC) #14
commit-bot: I haz the power
Retried try job too often on linux_blink for step(s) wtf_unittests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=linux_blink&number=7721
6 years, 11 months ago (2014-01-16 09:13:53 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/kouhei@chromium.org/132233010/320002
6 years, 11 months ago (2014-01-17 07:42:30 UTC) #16
commit-bot: I haz the power
Retried try job too often on mac_blink_rel for step(s) webkit_tests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=mac_blink_rel&number=15599
6 years, 11 months ago (2014-01-17 10:46:15 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/kouhei@chromium.org/132233010/750001
6 years, 11 months ago (2014-01-20 01:15:53 UTC) #18
commit-bot: I haz the power
Retried try job too often on linux_blink for step(s) webkit_unit_tests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=linux_blink&number=8144
6 years, 11 months ago (2014-01-20 01:50:38 UTC) #19
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/kouhei@chromium.org/132233010/750001
6 years, 11 months ago (2014-01-20 01:52:15 UTC) #20
commit-bot: I haz the power
Retried try job too often on linux_blink_rel for step(s) webkit_tests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=linux_blink_rel&number=18144
6 years, 11 months ago (2014-01-20 02:42:34 UTC) #21
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/kouhei@chromium.org/132233010/750001
6 years, 11 months ago (2014-01-20 02:55:23 UTC) #22
commit-bot: I haz the power
Retried try job too often on linux_blink_rel for step(s) webkit_unit_tests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=linux_blink_rel&number=18154
6 years, 11 months ago (2014-01-20 03:21:28 UTC) #23
kouhei (in TOK)
6 years, 11 months ago (2014-01-20 05:50:48 UTC) #24
Message was sent while issue was closed.
Committed patchset #7 manually as r165382 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698