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

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

Issue 1025883002: Oilpan: revert SVG GC mixin constructor workaround. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 9 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
« no previous file with comments | « Source/core/svg/SVGTests.h ('k') | Source/core/svg/SVGTextPathElement.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, 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 12 matching lines...) Expand all
23 #include "core/svg/SVGTests.h" 23 #include "core/svg/SVGTests.h"
24 24
25 #include "core/SVGNames.h" 25 #include "core/SVGNames.h"
26 #include "core/dom/DOMImplementation.h" 26 #include "core/dom/DOMImplementation.h"
27 #include "core/frame/UseCounter.h" 27 #include "core/frame/UseCounter.h"
28 #include "core/svg/SVGElement.h" 28 #include "core/svg/SVGElement.h"
29 #include "platform/Language.h" 29 #include "platform/Language.h"
30 30
31 namespace blink { 31 namespace blink {
32 32
33 SVGTests::SVGTests() 33 SVGTests::SVGTests(SVGElement* contextElement)
34 : m_requiredFeatures(SVGStaticStringList::create(contextElement, SVGNames::r equiredFeaturesAttr))
35 , m_requiredExtensions(SVGStaticStringList::create(contextElement, SVGNames: :requiredExtensionsAttr))
36 , m_systemLanguage(SVGStaticStringList::create(contextElement, SVGNames::sys temLanguageAttr))
34 { 37 {
35 }
36
37 void SVGTests::initialize(SVGElement* contextElement)
38 {
39 ASSERT(!m_requiredFeatures);
40 ASSERT(!m_requiredExtensions);
41 ASSERT(!m_systemLanguage);
42 ASSERT(contextElement); 38 ASSERT(contextElement);
43 39
44 m_requiredFeatures = SVGStaticStringList::create(contextElement, SVGNames::r equiredFeaturesAttr);
45 m_requiredExtensions = SVGStaticStringList::create(contextElement, SVGNames: :requiredExtensionsAttr);
46 m_systemLanguage = SVGStaticStringList::create(contextElement, SVGNames::sys temLanguageAttr);
47
48 contextElement->addToPropertyMap(m_requiredFeatures); 40 contextElement->addToPropertyMap(m_requiredFeatures);
49 contextElement->addToPropertyMap(m_requiredExtensions); 41 contextElement->addToPropertyMap(m_requiredExtensions);
50 contextElement->addToPropertyMap(m_systemLanguage); 42 contextElement->addToPropertyMap(m_systemLanguage);
51 } 43 }
52 44
53 DEFINE_TRACE(SVGTests) 45 DEFINE_TRACE(SVGTests)
54 { 46 {
55 visitor->trace(m_requiredFeatures); 47 visitor->trace(m_requiredFeatures);
56 visitor->trace(m_requiredExtensions); 48 visitor->trace(m_requiredExtensions);
57 visitor->trace(m_systemLanguage); 49 visitor->trace(m_systemLanguage);
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after
130 } 122 }
131 123
132 void SVGTests::addSupportedAttributes(HashSet<QualifiedName>& supportedAttribute s) 124 void SVGTests::addSupportedAttributes(HashSet<QualifiedName>& supportedAttribute s)
133 { 125 {
134 supportedAttributes.add(SVGNames::requiredFeaturesAttr); 126 supportedAttributes.add(SVGNames::requiredFeaturesAttr);
135 supportedAttributes.add(SVGNames::requiredExtensionsAttr); 127 supportedAttributes.add(SVGNames::requiredExtensionsAttr);
136 supportedAttributes.add(SVGNames::systemLanguageAttr); 128 supportedAttributes.add(SVGNames::systemLanguageAttr);
137 } 129 }
138 130
139 } 131 }
OLDNEW
« no previous file with comments | « Source/core/svg/SVGTests.h ('k') | Source/core/svg/SVGTextPathElement.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698