commit | 9c1f1be07805b397e1444010482163cc74b4fc32 | [log] [tgz] |
---|---|---|
author | Florin Malita <fmalita@chromium.org> | Wed Dec 09 13:02:50 2020 -0500 |
committer | Skia Commit-Bot <skia-commit-bot@chromium.org> | Wed Dec 09 20:07:25 2020 +0000 |
tree | e7a429c11f9c043ac0ab248df28c59353c5b00ee | |
parent | a4bd478bc21949e03c5171ea0c2e2fae112a9169 [diff] [blame] |
[svg] xml:space support Add xml:space attribute and implement related white space filters. (https://www.w3.org/TR/SVG11/text.html#WhiteSpace) Bug: skia:10840 Change-Id: I52fda50fae1cd7cf8b0dd7c1a2ee2e667ffa947b Reviewed-on: https://skia-review.googlesource.com/c/skia/+/342299 Reviewed-by: Tyler Denniston <tdenniston@google.com> Reviewed-by: Ben Wagner <bungeman@google.com> Commit-Queue: Florin Malita <fmalita@google.com>
diff --git a/modules/svg/include/SkSVGText.h b/modules/svg/include/SkSVGText.h index ae284f6..037444d 100644 --- a/modules/svg/include/SkSVGText.h +++ b/modules/svg/include/SkSVGText.h
@@ -18,11 +18,14 @@ SVG_ATTR(X, SkSVGLength, SkSVGLength(0)) SVG_ATTR(Y, SkSVGLength, SkSVGLength(0)) + SVG_ATTR(XmlSpace, SkSVGXmlSpace, SkSVGXmlSpace::kDefault) + protected: explicit SkSVGTextContainer(SkSVGTag t) : INHERITED(t) {} private: void appendChild(sk_sp<SkSVGNode>) final; + bool onPrepareToRender(SkSVGRenderContext*) const final; bool parseAndSetAttribute(const char*, const char*) override;