Index: Source/core/svg/SVGTests.cpp |
diff --git a/Source/core/svg/SVGTests.cpp b/Source/core/svg/SVGTests.cpp |
index 9da4a2a8719a21d36181824575484b06ba4881a6..35f117f429c7f29fe7c55a6169855b585a84604b 100644 |
--- a/Source/core/svg/SVGTests.cpp |
+++ b/Source/core/svg/SVGTests.cpp |
@@ -24,8 +24,9 @@ |
#include "core/SVGNames.h" |
#include "core/dom/DOMImplementation.h" |
-#include "platform/Language.h" |
+#include "core/frame/UseCounter.h" |
#include "core/svg/SVGElement.h" |
+#include "platform/Language.h" |
namespace blink { |
@@ -47,15 +48,17 @@ bool SVGTests::hasExtension(const String&) |
return false; |
} |
-bool SVGTests::isValid() const |
+bool SVGTests::isValid(Document& document) const |
{ |
if (m_requiredFeatures->isSpecified()) { |
const Vector<String>& requiredFeatures = m_requiredFeatures->value()->values(); |
Vector<String>::const_iterator it = requiredFeatures.begin(); |
Vector<String>::const_iterator itEnd = requiredFeatures.end(); |
for (; it != itEnd; ++it) { |
- if (it->isEmpty() || !DOMImplementation::hasFeature(*it, String())) |
+ if (it->isEmpty() || !DOMImplementation::hasFeature(*it, String())) { |
+ UseCounter::count(document, UseCounter::SVGRequiredFeatures); |
kouhei (in TOK)
2014/11/08 23:51:42
This UseCounter is counted if requiredFeatures is
|
return false; |
+ } |
} |
} |