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

Side by Side Diff: Source/core/dom/DOMImplementation.cpp

Issue 693353002: Deprecate DOMImplementation.hasFeature() returning false (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: test 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 | « LayoutTests/svg/custom/svg-features-expected.txt ('k') | Source/core/frame/UseCounter.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) 1999 Lars Knoll (knoll@kde.org) 2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org)
3 * (C) 1999 Antti Koivisto (koivisto@kde.org) 3 * (C) 1999 Antti Koivisto (koivisto@kde.org)
4 * (C) 2001 Dirk Mueller (mueller@kde.org) 4 * (C) 2001 Dirk Mueller (mueller@kde.org)
5 * Copyright (C) 2004, 2005, 2006, 2007, 2008 Apple Inc. All rights reserved. 5 * Copyright (C) 2004, 2005, 2006, 2007, 2008 Apple Inc. All rights reserved.
6 * Copyright (C) 2006 Samuel Weinig (sam@webkit.org) 6 * Copyright (C) 2006 Samuel Weinig (sam@webkit.org)
7 * Copyright (C) 2008, 2009 Torch Mobile Inc. All rights reserved. (http://www.t orchmobile.com/) 7 * Copyright (C) 2008, 2009 Torch Mobile Inc. All rights reserved. (http://www.t orchmobile.com/)
8 * 8 *
9 * This library is free software; you can redistribute it and/or 9 * This library is free software; you can redistribute it and/or
10 * modify it under the terms of the GNU Library General Public 10 * modify it under the terms of the GNU Library General Public
(...skipping 155 matching lines...) Expand 10 before | Expand all | Expand 10 after
166 || feature.startsWith("org.w3c.svg", false)) { 166 || feature.startsWith("org.w3c.svg", false)) {
167 // FIXME: SVG 2.0 support? 167 // FIXME: SVG 2.0 support?
168 return isSupportedSVG10Feature(feature, version) || isSupportedSVG11Feat ure(feature, version); 168 return isSupportedSVG10Feature(feature, version) || isSupportedSVG11Feat ure(feature, version);
169 } 169 }
170 return true; 170 return true;
171 } 171 }
172 172
173 bool DOMImplementation::hasFeatureForBindings(const String& feature, const Strin g& version) 173 bool DOMImplementation::hasFeatureForBindings(const String& feature, const Strin g& version)
174 { 174 {
175 if (!hasFeature(feature, version)) { 175 if (!hasFeature(feature, version)) {
176 UseCounter::count(m_document, UseCounter::DOMImplementationHasFeatureRet urnFalse); 176 UseCounter::countDeprecation(m_document, UseCounter::DOMImplementationHa sFeatureReturnFalse);
177 return false; 177 return false;
178 } 178 }
179 return true; 179 return true;
180 } 180 }
181 181
182 PassRefPtrWillBeRawPtr<DocumentType> DOMImplementation::createDocumentType(const AtomicString& qualifiedName, 182 PassRefPtrWillBeRawPtr<DocumentType> DOMImplementation::createDocumentType(const AtomicString& qualifiedName,
183 const String& publicId, const String& systemId, ExceptionState& exceptionSta te) 183 const String& publicId, const String& systemId, ExceptionState& exceptionSta te)
184 { 184 {
185 AtomicString prefix, localName; 185 AtomicString prefix, localName;
186 if (!Document::parseQualifiedName(qualifiedName, prefix, localName, exceptio nState)) 186 if (!Document::parseQualifiedName(qualifiedName, prefix, localName, exceptio nState))
(...skipping 187 matching lines...) Expand 10 before | Expand all | Expand 10 after
374 374
375 return HTMLDocument::create(init); 375 return HTMLDocument::create(init);
376 } 376 }
377 377
378 void DOMImplementation::trace(Visitor* visitor) 378 void DOMImplementation::trace(Visitor* visitor)
379 { 379 {
380 visitor->trace(m_document); 380 visitor->trace(m_document);
381 } 381 }
382 382
383 } 383 }
OLDNEW
« no previous file with comments | « LayoutTests/svg/custom/svg-features-expected.txt ('k') | Source/core/frame/UseCounter.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698