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

Side by Side Diff: Source/core/svg/SVGTests.h

Issue 43223002: SVGTests should not leave detached elements in the tree (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Always reattach Created 7 years, 1 month 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 | Annotate | Revision Log
« no previous file with comments | « Source/core/svg/SVGGraphicsElement.cpp ('k') | Source/core/svg/SVGTests.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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, 2010 Rob Buis <buis@kde.org> 3 * Copyright (C) 2004, 2005, 2006, 2010 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 26 matching lines...) Expand all
37 SVGStringList& requiredExtensions(); 37 SVGStringList& requiredExtensions();
38 SVGStringList& systemLanguage(); 38 SVGStringList& systemLanguage();
39 39
40 bool hasExtension(const String&) const; 40 bool hasExtension(const String&) const;
41 bool isValid() const; 41 bool isValid() const;
42 42
43 bool parseAttribute(const QualifiedName&, const AtomicString&); 43 bool parseAttribute(const QualifiedName&, const AtomicString&);
44 bool isKnownAttribute(const QualifiedName&); 44 bool isKnownAttribute(const QualifiedName&);
45 45
46 void addSupportedAttributes(HashSet<QualifiedName>&); 46 void addSupportedAttributes(HashSet<QualifiedName>&);
47 bool handleAttributeChange(SVGElement*, const QualifiedName&);
48 47
49 static SVGAttributeToPropertyMap& attributeToPropertyMap(); 48 static SVGAttributeToPropertyMap& attributeToPropertyMap();
50 49
51 protected: 50 protected:
52 SVGTests(); 51 SVGTests();
53 52
54 void synchronizeRequiredFeatures(SVGElement* contextElement); 53 void synchronizeRequiredFeatures(SVGElement* contextElement);
55 void synchronizeRequiredExtensions(SVGElement* contextElement); 54 void synchronizeRequiredExtensions(SVGElement* contextElement);
56 void synchronizeSystemLanguage(SVGElement* contextElement); 55 void synchronizeSystemLanguage(SVGElement* contextElement);
57 56
58 private: 57 private:
59 // Custom 'requiredFeatures' property 58 // Custom 'requiredFeatures' property
60 static const SVGPropertyInfo* requiredFeaturesPropertyInfo(); 59 static const SVGPropertyInfo* requiredFeaturesPropertyInfo();
61 SVGSynchronizableAnimatedProperty<SVGStringList> m_requiredFeatures; 60 SVGSynchronizableAnimatedProperty<SVGStringList> m_requiredFeatures;
62 61
63 // Custom 'requiredExtensions' property 62 // Custom 'requiredExtensions' property
64 static const SVGPropertyInfo* requiredExtensionsPropertyInfo(); 63 static const SVGPropertyInfo* requiredExtensionsPropertyInfo();
65 SVGSynchronizableAnimatedProperty<SVGStringList> m_requiredExtensions; 64 SVGSynchronizableAnimatedProperty<SVGStringList> m_requiredExtensions;
66 65
67 // Custom 'systemLanguage' property 66 // Custom 'systemLanguage' property
68 static const SVGPropertyInfo* systemLanguagePropertyInfo(); 67 static const SVGPropertyInfo* systemLanguagePropertyInfo();
69 SVGSynchronizableAnimatedProperty<SVGStringList> m_systemLanguage; 68 SVGSynchronizableAnimatedProperty<SVGStringList> m_systemLanguage;
70 }; 69 };
71 70
72 } // namespace WebCore 71 } // namespace WebCore
73 72
74 #endif // SVGTests_h 73 #endif // SVGTests_h
OLDNEW
« no previous file with comments | « Source/core/svg/SVGGraphicsElement.cpp ('k') | Source/core/svg/SVGTests.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698