Index: Source/core/svg/SVGTextContentElement.cpp |
diff --git a/Source/core/svg/SVGTextContentElement.cpp b/Source/core/svg/SVGTextContentElement.cpp |
index 71feecf0996a0ccf1d26d1ce19397f2c5b42d39a..d40577362b9579447df9d77a5a76537a94a67b1f 100644 |
--- a/Source/core/svg/SVGTextContentElement.cpp |
+++ b/Source/core/svg/SVGTextContentElement.cpp |
@@ -30,6 +30,7 @@ |
#include "core/XMLNames.h" |
#include "core/editing/FrameSelection.h" |
#include "core/frame/LocalFrame.h" |
+#include "core/frame/UseCounter.h" |
#include "core/rendering/RenderObject.h" |
#include "core/rendering/svg/SVGTextQuery.h" |
@@ -224,10 +225,13 @@ void SVGTextContentElement::collectStyleForPresentationAttribute(const Qualified |
else if (name.matches(XMLNames::spaceAttr)) { |
DEFINE_STATIC_LOCAL(const AtomicString, preserveString, ("preserve", AtomicString::ConstructFromLiteral)); |
- if (value == preserveString) |
+ if (value == preserveString) { |
+ UseCounter::count(document(), UseCounter::WhiteSpacePreFromXMLSpace); |
addPropertyToPresentationAttributeStyle(style, CSSPropertyWhiteSpace, CSSValuePre); |
- else |
+ } else { |
+ UseCounter::count(document(), UseCounter::WhiteSpaceNowrapFromXMLSpace); |
addPropertyToPresentationAttributeStyle(style, CSSPropertyWhiteSpace, CSSValueNowrap); |
+ } |
} |
} |