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

Issue 2222793002: [SVGDom] Add <svg> viewBox support (Closed)

Created:
4 years, 4 months ago by f(malita)
Modified:
4 years, 4 months ago
CC:
reviews_skia.org, reed1
Base URL:
https://chromium.googlesource.com/skia.git@master
Target Ref:
refs/heads/master
Project:
skia
Visibility:
Public.

Description

[SVGDom] Add viewBox support The main feature is <svg> viewBox and proper viewport support, but the CL touches a few other things: * refactor SkSVGRenderContext to auto-restore canvas state, and split the presentation bits into a separate CoW SkSVGPresentationContext * introduce SkSVGNode::onPrepareToRender(), as a way for nodes to push their custom state before the actual onRender() call (instead of relying on non-virtual SkSVGNode to know about all possible state bits) * add a "Type" suffix to SVG types, to disambiguate (e.g. SkSVGRectType vs. SkSVGRect) R=robertphillips@google.com,stephana@google.com GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=2222793002 Committed: https://skia.googlesource.com/skia/+/397a517d1a5774653fcdd08172f9a6b5eea67621

Patch Set 1 #

Patch Set 2 : cleanup, fixes #

Patch Set 3 : minor parser tweak #

Patch Set 4 : SkSVGRenderContext initialization cleanup #

Total comments: 12

Patch Set 5 : review #

Total comments: 4

Patch Set 6 : typo #

Unified diffs Side-by-side diffs Delta from patch set Stats (+265 lines, -105 lines) Patch
M experimental/svg/model/SkSVGAttribute.h View 2 chunks +8 lines, -7 lines 0 comments Download
M experimental/svg/model/SkSVGAttribute.cpp View 1 chunk +5 lines, -5 lines 0 comments Download
M experimental/svg/model/SkSVGAttributeParser.h View 1 chunk +3 lines, -2 lines 0 comments Download
M experimental/svg/model/SkSVGAttributeParser.cpp View 1 2 3 4 3 chunks +23 lines, -4 lines 0 comments Download
M experimental/svg/model/SkSVGContainer.h View 1 chunk +1 line, -1 line 0 comments Download
M experimental/svg/model/SkSVGContainer.cpp View 1 1 chunk +2 lines, -2 lines 0 comments Download
M experimental/svg/model/SkSVGDOM.cpp View 1 2 3 4 chunks +18 lines, -3 lines 0 comments Download
M experimental/svg/model/SkSVGNode.h View 1 2 3 4 5 1 chunk +10 lines, -4 lines 0 comments Download
M experimental/svg/model/SkSVGNode.cpp View 2 chunks +9 lines, -14 lines 0 comments Download
M experimental/svg/model/SkSVGRect.cpp View 1 chunk +1 line, -7 lines 0 comments Download
M experimental/svg/model/SkSVGRenderContext.h View 1 2 3 4 3 chunks +46 lines, -11 lines 0 comments Download
M experimental/svg/model/SkSVGRenderContext.cpp View 1 2 3 5 chunks +42 lines, -9 lines 0 comments Download
M experimental/svg/model/SkSVGSVG.h View 3 chunks +6 lines, -0 lines 0 comments Download
M experimental/svg/model/SkSVGSVG.cpp View 1 3 chunks +43 lines, -0 lines 0 comments Download
M experimental/svg/model/SkSVGShape.h View 1 chunk +1 line, -1 line 0 comments Download
M experimental/svg/model/SkSVGShape.cpp View 1 chunk +5 lines, -5 lines 0 comments Download
M experimental/svg/model/SkSVGTransformableNode.h View 1 chunk +2 lines, -2 lines 0 comments Download
M experimental/svg/model/SkSVGTransformableNode.cpp View 2 chunks +12 lines, -0 lines 0 comments Download
M experimental/svg/model/SkSVGTypes.h View 2 chunks +14 lines, -20 lines 0 comments Download
M experimental/svg/model/SkSVGValue.h View 1 2 3 4 2 chunks +14 lines, -8 lines 0 comments Download

Messages

Total messages: 25 (18 generated)
f(malita)
4 years, 4 months ago (2016-08-07 01:50:28 UTC) #4
robertphillips
https://codereview.chromium.org/2222793002/diff/60001/experimental/svg/model/SkSVGAttributeParser.cpp File experimental/svg/model/SkSVGAttributeParser.cpp (right): https://codereview.chromium.org/2222793002/diff/60001/experimental/svg/model/SkSVGAttributeParser.cpp#newcode208 experimental/svg/model/SkSVGAttributeParser.cpp:208: } What happens on a partial parse that ends ...
4 years, 4 months ago (2016-08-08 13:55:28 UTC) #13
f(malita)
https://codereview.chromium.org/2222793002/diff/60001/experimental/svg/model/SkSVGAttributeParser.cpp File experimental/svg/model/SkSVGAttributeParser.cpp (right): https://codereview.chromium.org/2222793002/diff/60001/experimental/svg/model/SkSVGAttributeParser.cpp#newcode208 experimental/svg/model/SkSVGAttributeParser.cpp:208: } On 2016/08/08 13:55:28, robertphillips wrote: > What happens ...
4 years, 4 months ago (2016-08-08 17:13:29 UTC) #14
robertphillips
lgtm https://codereview.chromium.org/2222793002/diff/80001/experimental/svg/model/SkSVGNode.h File experimental/svg/model/SkSVGNode.h (right): https://codereview.chromium.org/2222793002/diff/80001/experimental/svg/model/SkSVGNode.h#newcode45 experimental/svg/model/SkSVGNode.h:45: // Implementations are expected to return true if ...
4 years, 4 months ago (2016-08-08 17:56:10 UTC) #19
f(malita)
https://codereview.chromium.org/2222793002/diff/80001/experimental/svg/model/SkSVGNode.h File experimental/svg/model/SkSVGNode.h (right): https://codereview.chromium.org/2222793002/diff/80001/experimental/svg/model/SkSVGNode.h#newcode45 experimental/svg/model/SkSVGNode.h:45: // Implementations are expected to return true if rendering ...
4 years, 4 months ago (2016-08-08 18:12:03 UTC) #20
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/2222793002/100001
4 years, 4 months ago (2016-08-08 18:14:01 UTC) #23
commit-bot: I haz the power
4 years, 4 months ago (2016-08-08 18:39:00 UTC) #25
Message was sent while issue was closed.
Committed patchset #6 (id:100001) as
https://skia.googlesource.com/skia/+/397a517d1a5774653fcdd08172f9a6b5eea67621

Powered by Google App Engine
This is Rietveld 408576698