| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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 } |
| OLD | NEW |