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

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

Issue 540283003: bindings: Retires ScriptWrappable::init, etc. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Addressed a review comment. Created 6 years, 3 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/dom/DOMException.cpp ('k') | Source/core/dom/DOMSettableTokenList.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 149 matching lines...) Expand 10 before | Expand all | Expand 10 after
160 addString(svgFeatures, "Extensibility"); 160 addString(svgFeatures, "Extensibility");
161 initialized = true; 161 initialized = true;
162 } 162 }
163 return feature.startsWith("http://www.w3.org/tr/svg11/feature#", false) 163 return feature.startsWith("http://www.w3.org/tr/svg11/feature#", false)
164 && svgFeatures.contains(feature.right(feature.length() - 35)); 164 && svgFeatures.contains(feature.right(feature.length() - 35));
165 } 165 }
166 166
167 DOMImplementation::DOMImplementation(Document& document) 167 DOMImplementation::DOMImplementation(Document& document)
168 : m_document(document) 168 : m_document(document)
169 { 169 {
170 ScriptWrappable::init(this);
171 } 170 }
172 171
173 bool DOMImplementation::hasFeature(const String& feature, const String& version) 172 bool DOMImplementation::hasFeature(const String& feature, const String& version)
174 { 173 {
175 if (feature.startsWith("http://www.w3.org/TR/SVG", false) 174 if (feature.startsWith("http://www.w3.org/TR/SVG", false)
176 || feature.startsWith("org.w3c.dom.svg", false) 175 || feature.startsWith("org.w3c.dom.svg", false)
177 || feature.startsWith("org.w3c.svg", false)) { 176 || feature.startsWith("org.w3c.svg", false)) {
178 // FIXME: SVG 2.0 support? 177 // FIXME: SVG 2.0 support?
179 return isSupportedSVG10Feature(feature, version) || isSupportedSVG11Feat ure(feature, version); 178 return isSupportedSVG10Feature(feature, version) || isSupportedSVG11Feat ure(feature, version);
180 } 179 }
(...skipping 204 matching lines...) Expand 10 before | Expand all | Expand 10 after
385 384
386 return HTMLDocument::create(init); 385 return HTMLDocument::create(init);
387 } 386 }
388 387
389 void DOMImplementation::trace(Visitor* visitor) 388 void DOMImplementation::trace(Visitor* visitor)
390 { 389 {
391 visitor->trace(m_document); 390 visitor->trace(m_document);
392 } 391 }
393 392
394 } 393 }
OLDNEW
« no previous file with comments | « Source/core/dom/DOMException.cpp ('k') | Source/core/dom/DOMSettableTokenList.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698