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

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

Issue 171333003: Pass implementation object to supplemental classes by reference (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rebase Created 6 years, 10 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 | Annotate | Revision Log
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 14 matching lines...) Expand all
25 #include "wtf/HashSet.h" 25 #include "wtf/HashSet.h"
26 26
27 namespace WebCore { 27 namespace WebCore {
28 28
29 class Attribute; 29 class Attribute;
30 class QualifiedName; 30 class QualifiedName;
31 class SVGElement; 31 class SVGElement;
32 32
33 class SVGTests { 33 class SVGTests {
34 public: 34 public:
35 static SVGStringListTearOff* requiredFeatures(SVGTests* object) { return obj ect->m_requiredFeatures->tearOff(); } 35 static SVGStringListTearOff* requiredFeatures(SVGTests& object) { return obj ect.m_requiredFeatures->tearOff(); }
36 static SVGStringListTearOff* requiredExtensions(SVGTests* object) { return o bject->m_requiredExtensions->tearOff(); } 36 static SVGStringListTearOff* requiredExtensions(SVGTests& object) { return o bject.m_requiredExtensions->tearOff(); }
37 static SVGStringListTearOff* systemLanguage(SVGTests* object) { return objec t->m_systemLanguage->tearOff(); } 37 static SVGStringListTearOff* systemLanguage(SVGTests& object) { return objec t.m_systemLanguage->tearOff(); }
38 38
39 static bool hasExtension(SVGTests*, const String&); 39 static bool hasExtension(SVGTests&, const String&);
40 bool isValid() const; 40 bool isValid() const;
41 41
42 bool parseAttribute(const QualifiedName&, const AtomicString&); 42 bool parseAttribute(const QualifiedName&, const AtomicString&);
43 bool isKnownAttribute(const QualifiedName&); 43 bool isKnownAttribute(const QualifiedName&);
44 44
45 void addSupportedAttributes(HashSet<QualifiedName>&); 45 void addSupportedAttributes(HashSet<QualifiedName>&);
46 46
47 protected: 47 protected:
48 SVGTests(SVGElement* contextElement); 48 SVGTests(SVGElement* contextElement);
49 49
50 private: 50 private:
51 RefPtr<SVGStaticStringList> m_requiredFeatures; 51 RefPtr<SVGStaticStringList> m_requiredFeatures;
52 RefPtr<SVGStaticStringList> m_requiredExtensions; 52 RefPtr<SVGStaticStringList> m_requiredExtensions;
53 RefPtr<SVGStaticStringList> m_systemLanguage; 53 RefPtr<SVGStaticStringList> m_systemLanguage;
54 }; 54 };
55 55
56 } // namespace WebCore 56 } // namespace WebCore
57 57
58 #endif // SVGTests_h 58 #endif // SVGTests_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698