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

Unified Diff: Source/core/svg/SVGTests.cpp

Issue 1108293002: Make DOMImplementation.hasFeature() always return true. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: windows compilefix attempt Created 5 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Source/core/frame/UseCounter.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/svg/SVGTests.cpp
diff --git a/Source/core/svg/SVGTests.cpp b/Source/core/svg/SVGTests.cpp
index ff8120cb38209a74e75f25e7adffd3163959726f..9953105561b60f7c48d4351e361bc99052f96854 100644
--- a/Source/core/svg/SVGTests.cpp
+++ b/Source/core/svg/SVGTests.cpp
@@ -57,19 +57,7 @@ bool SVGTests::hasExtension(const String&)
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())
- return false;
- if (!DOMImplementation::hasFeature(*it, String())) {
- UseCounter::count(document, UseCounter::DOMImplementationHasFeatureReturnFalseInternal);
- return false;
- }
- }
- }
+ // No need to check requiredFeatures since hasFeature always returns true.
if (m_systemLanguage->isSpecified()) {
bool matchFound = false;
« no previous file with comments | « Source/core/frame/UseCounter.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698