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

Side by Side Diff: third_party/WebKit/Source/core/svg/SVGTests.cpp

Issue 1359053004: Remove SVG hasExtension() methods (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 3 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 unified diff | Download patch
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2004, 2005, 2008 Nikolas Zimmermann <zimmermann@kde.org> 2 * Copyright (C) 2004, 2005, 2008 Nikolas Zimmermann <zimmermann@kde.org>
3 * Copyright (C) 2004, 2005, 2006, 2007 Rob Buis <buis@kde.org> 3 * Copyright (C) 2004, 2005, 2006, 2007 Rob Buis <buis@kde.org>
4 * 4 *
5 * This library is free software; you can redistribute it and/or 5 * This library is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU Library General Public 6 * modify it under the terms of the GNU Library General Public
7 * License as published by the Free Software Foundation; either 7 * License as published by the Free Software Foundation; either
8 * version 2 of the License, or (at your option) any later version. 8 * version 2 of the License, or (at your option) any later version.
9 * 9 *
10 * This library is distributed in the hope that it will be useful, 10 * This library is distributed in the hope that it will be useful,
(...skipping 28 matching lines...) Expand all
39 contextElement->addToPropertyMap(m_systemLanguage); 39 contextElement->addToPropertyMap(m_systemLanguage);
40 } 40 }
41 41
42 DEFINE_TRACE(SVGTests) 42 DEFINE_TRACE(SVGTests)
43 { 43 {
44 visitor->trace(m_requiredFeatures); 44 visitor->trace(m_requiredFeatures);
45 visitor->trace(m_requiredExtensions); 45 visitor->trace(m_requiredExtensions);
46 visitor->trace(m_systemLanguage); 46 visitor->trace(m_systemLanguage);
47 } 47 }
48 48
49 bool SVGTests::hasExtension(const String&)
50 {
51 // FIXME: Implement me!
52 return false;
53 }
54
55 bool SVGTests::isValid(Document& document) const 49 bool SVGTests::isValid(Document& document) const
56 { 50 {
57 // No need to check requiredFeatures since hasFeature always returns true. 51 // No need to check requiredFeatures since hasFeature always returns true.
58 52
59 if (m_systemLanguage->isSpecified()) { 53 if (m_systemLanguage->isSpecified()) {
60 bool matchFound = false; 54 bool matchFound = false;
61 55
62 const Vector<String>& systemLanguage = m_systemLanguage->value()->values (); 56 const Vector<String>& systemLanguage = m_systemLanguage->value()->values ();
63 for (const auto& value : systemLanguage) { 57 for (const auto& value : systemLanguage) {
64 if (value == defaultLanguage().string().substring(0, 2)) { 58 if (value == defaultLanguage().string().substring(0, 2)) {
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
105 } 99 }
106 100
107 void SVGTests::addSupportedAttributes(HashSet<QualifiedName>& supportedAttribute s) 101 void SVGTests::addSupportedAttributes(HashSet<QualifiedName>& supportedAttribute s)
108 { 102 {
109 supportedAttributes.add(SVGNames::requiredFeaturesAttr); 103 supportedAttributes.add(SVGNames::requiredFeaturesAttr);
110 supportedAttributes.add(SVGNames::requiredExtensionsAttr); 104 supportedAttributes.add(SVGNames::requiredExtensionsAttr);
111 supportedAttributes.add(SVGNames::systemLanguageAttr); 105 supportedAttributes.add(SVGNames::systemLanguageAttr);
112 } 106 }
113 107
114 } 108 }
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/svg/SVGTests.h ('k') | third_party/WebKit/Source/core/svg/SVGTests.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698