diff options
author | The Android Open Source Project <initial-contribution@android.com> | 2008-12-17 18:05:15 -0800 |
---|---|---|
committer | The Android Open Source Project <initial-contribution@android.com> | 2008-12-17 18:05:15 -0800 |
commit | 1cbdecfa9fc428ac2d8aca0fa91c9580b3d57353 (patch) | |
tree | 4457a7306ea5acb43fe05bfe0973b1f7faf97ba2 /WebCore/svg/SVGTests.cpp | |
parent | 9364f22aed35e1a1e9d07c121510f80be3ab0502 (diff) | |
download | external_webkit-1cbdecfa9fc428ac2d8aca0fa91c9580b3d57353.zip external_webkit-1cbdecfa9fc428ac2d8aca0fa91c9580b3d57353.tar.gz external_webkit-1cbdecfa9fc428ac2d8aca0fa91c9580b3d57353.tar.bz2 |
Code drop from //branches/cupcake/...@124589
Diffstat (limited to 'WebCore/svg/SVGTests.cpp')
-rw-r--r-- | WebCore/svg/SVGTests.cpp | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/WebCore/svg/SVGTests.cpp b/WebCore/svg/SVGTests.cpp index d11e44d..06a81f2 100644 --- a/WebCore/svg/SVGTests.cpp +++ b/WebCore/svg/SVGTests.cpp @@ -2,8 +2,6 @@ Copyright (C) 2004, 2005, 2008 Nikolas Zimmermann <zimmermann@kde.org> 2004, 2005, 2006, 2007 Rob Buis <buis@kde.org> - This file is part of the KDE project - This library is free software; you can redistribute it and/or modify it under the terms of the GNU Library General Public License as published by the Free Software Foundation; either @@ -44,7 +42,7 @@ SVGTests::~SVGTests() SVGStringList* SVGTests::requiredFeatures() const { if (!m_features) - m_features = new SVGStringList(SVGNames::requiredFeaturesAttr); + m_features = SVGStringList::create(SVGNames::requiredFeaturesAttr); return m_features.get(); } @@ -52,7 +50,7 @@ SVGStringList* SVGTests::requiredFeatures() const SVGStringList* SVGTests::requiredExtensions() const { if (!m_extensions) - m_extensions = new SVGStringList(SVGNames::requiredExtensionsAttr); + m_extensions = SVGStringList::create(SVGNames::requiredExtensionsAttr); return m_extensions.get(); } @@ -60,7 +58,7 @@ SVGStringList* SVGTests::requiredExtensions() const SVGStringList* SVGTests::systemLanguage() const { if (!m_systemLanguage) - m_systemLanguage = new SVGStringList(SVGNames::systemLanguageAttr); + m_systemLanguage = SVGStringList::create(SVGNames::systemLanguageAttr); return m_systemLanguage.get(); } @@ -77,7 +75,7 @@ bool SVGTests::isValid() const if (m_features) { for (unsigned long i = 0; i < m_features->numberOfItems(); i++) { String value = m_features->getItem(i, ec); - if (value.isEmpty() || !DOMImplementation::instance()->hasFeature(value, String())) + if (value.isEmpty() || !DOMImplementation::hasFeature(value, String())) return false; } } |