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 #Messages
Total messages: 25 (18 generated)
|