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

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

Issue 678163002: Oilpan: move SVG property hierarchy to the heap. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rebased upto r185213 Created 6 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/SVGTests.h ('k') | Source/core/svg/SVGTextContentElement.h » ('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 24 matching lines...) Expand all
35 , m_requiredExtensions(SVGStaticStringList::create(contextElement, SVGNames: :requiredExtensionsAttr)) 35 , m_requiredExtensions(SVGStaticStringList::create(contextElement, SVGNames: :requiredExtensionsAttr))
36 , m_systemLanguage(SVGStaticStringList::create(contextElement, SVGNames::sys temLanguageAttr)) 36 , m_systemLanguage(SVGStaticStringList::create(contextElement, SVGNames::sys temLanguageAttr))
37 { 37 {
38 ASSERT(contextElement); 38 ASSERT(contextElement);
39 39
40 contextElement->addToPropertyMap(m_requiredFeatures); 40 contextElement->addToPropertyMap(m_requiredFeatures);
41 contextElement->addToPropertyMap(m_requiredExtensions); 41 contextElement->addToPropertyMap(m_requiredExtensions);
42 contextElement->addToPropertyMap(m_systemLanguage); 42 contextElement->addToPropertyMap(m_systemLanguage);
43 } 43 }
44 44
45 void SVGTests::trace(Visitor* visitor)
46 {
47 visitor->trace(m_requiredFeatures);
48 visitor->trace(m_requiredExtensions);
49 visitor->trace(m_systemLanguage);
50 }
51
45 bool SVGTests::hasExtension(const String&) 52 bool SVGTests::hasExtension(const String&)
46 { 53 {
47 // FIXME: Implement me! 54 // FIXME: Implement me!
48 return false; 55 return false;
49 } 56 }
50 57
51 bool SVGTests::isValid(Document& document) const 58 bool SVGTests::isValid(Document& document) const
52 { 59 {
53 if (m_requiredFeatures->isSpecified()) { 60 if (m_requiredFeatures->isSpecified()) {
54 const Vector<String>& requiredFeatures = m_requiredFeatures->value()->va lues(); 61 const Vector<String>& requiredFeatures = m_requiredFeatures->value()->va lues();
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after
115 } 122 }
116 123
117 void SVGTests::addSupportedAttributes(HashSet<QualifiedName>& supportedAttribute s) 124 void SVGTests::addSupportedAttributes(HashSet<QualifiedName>& supportedAttribute s)
118 { 125 {
119 supportedAttributes.add(SVGNames::requiredFeaturesAttr); 126 supportedAttributes.add(SVGNames::requiredFeaturesAttr);
120 supportedAttributes.add(SVGNames::requiredExtensionsAttr); 127 supportedAttributes.add(SVGNames::requiredExtensionsAttr);
121 supportedAttributes.add(SVGNames::systemLanguageAttr); 128 supportedAttributes.add(SVGNames::systemLanguageAttr);
122 } 129 }
123 130
124 } 131 }
OLDNEW
« no previous file with comments | « Source/core/svg/SVGTests.h ('k') | Source/core/svg/SVGTextContentElement.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698