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

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

Issue 148173018: [SVG] SVGAnimatedString{,List} migration to new SVG property impl. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: remove debug print Created 6 years, 11 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/svg/SVGStringListTearOff.cpp ('k') | Source/core/svg/SVGTests.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/svg/SVGTests.h
diff --git a/Source/core/svg/SVGTests.h b/Source/core/svg/SVGTests.h
index 7df0e223f1bb430cfa6b58e05e56657c2bf7f87d..f60b83f9e17073434123535e93dde7607a312a58 100644
--- a/Source/core/svg/SVGTests.h
+++ b/Source/core/svg/SVGTests.h
@@ -21,8 +21,7 @@
#ifndef SVGTests_h
#define SVGTests_h
-#include "core/svg/SVGStringList.h"
-#include "core/svg/properties/SVGAnimatedPropertyMacros.h"
+#include "core/svg/SVGStaticStringList.h"
#include "wtf/HashSet.h"
namespace WebCore {
@@ -33,9 +32,9 @@ class SVGElement;
class SVGTests {
public:
- SVGStringList& requiredFeatures();
- SVGStringList& requiredExtensions();
- SVGStringList& systemLanguage();
+ SVGStringListTearOff* requiredFeatures() { return m_requiredFeatures->tearOff(); }
+ SVGStringListTearOff* requiredExtensions() { return m_requiredExtensions->tearOff(); }
+ SVGStringListTearOff* systemLanguage() { return m_systemLanguage->tearOff(); }
bool hasExtension(const String&) const;
bool isValid() const;
@@ -45,27 +44,13 @@ public:
void addSupportedAttributes(HashSet<QualifiedName>&);
- static SVGAttributeToPropertyMap& attributeToPropertyMap();
-
protected:
- SVGTests();
-
- void synchronizeRequiredFeatures(SVGElement* contextElement);
- void synchronizeRequiredExtensions(SVGElement* contextElement);
- void synchronizeSystemLanguage(SVGElement* contextElement);
+ SVGTests(SVGElement* contextElement);
private:
- // Custom 'requiredFeatures' property
- static const SVGPropertyInfo* requiredFeaturesPropertyInfo();
- SVGSynchronizableAnimatedProperty<SVGStringList> m_requiredFeatures;
-
- // Custom 'requiredExtensions' property
- static const SVGPropertyInfo* requiredExtensionsPropertyInfo();
- SVGSynchronizableAnimatedProperty<SVGStringList> m_requiredExtensions;
-
- // Custom 'systemLanguage' property
- static const SVGPropertyInfo* systemLanguagePropertyInfo();
- SVGSynchronizableAnimatedProperty<SVGStringList> m_systemLanguage;
+ RefPtr<SVGStaticStringList> m_requiredFeatures;
+ RefPtr<SVGStaticStringList> m_requiredExtensions;
+ RefPtr<SVGStaticStringList> m_systemLanguage;
};
} // namespace WebCore
« no previous file with comments | « Source/core/svg/SVGStringListTearOff.cpp ('k') | Source/core/svg/SVGTests.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698