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

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

Issue 2738863002: Replace ASSERT with DCHECK in core/svg/ (Closed)
Patch Set: Split DCHECKS wherever possible Created 3 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
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 19 matching lines...) Expand all
30 SVGTests::SVGTests(SVGElement* contextElement) 30 SVGTests::SVGTests(SVGElement* contextElement)
31 : m_requiredFeatures( 31 : m_requiredFeatures(
32 SVGStaticStringList::create(contextElement, 32 SVGStaticStringList::create(contextElement,
33 SVGNames::requiredFeaturesAttr)), 33 SVGNames::requiredFeaturesAttr)),
34 m_requiredExtensions( 34 m_requiredExtensions(
35 SVGStaticStringList::create(contextElement, 35 SVGStaticStringList::create(contextElement,
36 SVGNames::requiredExtensionsAttr)), 36 SVGNames::requiredExtensionsAttr)),
37 m_systemLanguage( 37 m_systemLanguage(
38 SVGStaticStringList::create(contextElement, 38 SVGStaticStringList::create(contextElement,
39 SVGNames::systemLanguageAttr)) { 39 SVGNames::systemLanguageAttr)) {
40 ASSERT(contextElement); 40 DCHECK(contextElement);
41 41
42 contextElement->addToPropertyMap(m_requiredFeatures); 42 contextElement->addToPropertyMap(m_requiredFeatures);
43 contextElement->addToPropertyMap(m_requiredExtensions); 43 contextElement->addToPropertyMap(m_requiredExtensions);
44 contextElement->addToPropertyMap(m_systemLanguage); 44 contextElement->addToPropertyMap(m_systemLanguage);
45 } 45 }
46 46
47 DEFINE_TRACE(SVGTests) { 47 DEFINE_TRACE(SVGTests) {
48 visitor->trace(m_requiredFeatures); 48 visitor->trace(m_requiredFeatures);
49 visitor->trace(m_requiredExtensions); 49 visitor->trace(m_requiredExtensions);
50 visitor->trace(m_systemLanguage); 50 visitor->trace(m_systemLanguage);
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
83 return true; 83 return true;
84 } 84 }
85 85
86 bool SVGTests::isKnownAttribute(const QualifiedName& attrName) { 86 bool SVGTests::isKnownAttribute(const QualifiedName& attrName) {
87 return attrName == SVGNames::requiredFeaturesAttr || 87 return attrName == SVGNames::requiredFeaturesAttr ||
88 attrName == SVGNames::requiredExtensionsAttr || 88 attrName == SVGNames::requiredExtensionsAttr ||
89 attrName == SVGNames::systemLanguageAttr; 89 attrName == SVGNames::systemLanguageAttr;
90 } 90 }
91 91
92 } // namespace blink 92 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/svg/SVGString.cpp ('k') | third_party/WebKit/Source/core/svg/SVGTextContentElement.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698