| 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, 2009, 2010, 2011 Apple Inc. All r
ights reserved. | 5 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Apple Inc. All r
ights reserved. |
| 6 * Copyright (C) 2008 Nokia Corporation and/or its subsidiary(-ies) | 6 * Copyright (C) 2008 Nokia Corporation and/or its subsidiary(-ies) |
| 7 * Copyright (C) 2009 Torch Mobile Inc. All rights reserved. (http://www.torchmo
bile.com/) | 7 * Copyright (C) 2009 Torch Mobile Inc. All rights reserved. (http://www.torchmo
bile.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 1260 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1271 { | 1271 { |
| 1272 if (localName.isNull()) | 1272 if (localName.isNull()) |
| 1273 return 0; | 1273 return 0; |
| 1274 | 1274 |
| 1275 if (namespaceURI == starAtom) | 1275 if (namespaceURI == starAtom) |
| 1276 return getElementsByTagName(localName); | 1276 return getElementsByTagName(localName); |
| 1277 | 1277 |
| 1278 return ensureRareData().ensureNodeLists().addCacheWithQualifiedName(this, na
mespaceURI.isEmpty() ? nullAtom : namespaceURI, localName); | 1278 return ensureRareData().ensureNodeLists().addCacheWithQualifiedName(this, na
mespaceURI.isEmpty() ? nullAtom : namespaceURI, localName); |
| 1279 } | 1279 } |
| 1280 | 1280 |
| 1281 PassRefPtr<NodeList> Node::getElementsByName(const String& elementName) | 1281 PassRefPtr<NodeList> Node::getElementsByName(const AtomicString& elementName) |
| 1282 { | 1282 { |
| 1283 return ensureRareData().ensureNodeLists().addCacheWithAtomicName<NameNodeLis
t>(this, NameNodeListType, elementName); | 1283 return ensureRareData().ensureNodeLists().addCacheWithAtomicName<NameNodeLis
t>(this, NameNodeListType, elementName); |
| 1284 } | 1284 } |
| 1285 | 1285 |
| 1286 PassRefPtr<NodeList> Node::getElementsByClassName(const String& classNames) | 1286 PassRefPtr<NodeList> Node::getElementsByClassName(const AtomicString& classNames
) |
| 1287 { | 1287 { |
| 1288 return ensureRareData().ensureNodeLists().addCacheWithName<ClassNodeList>(th
is, ClassNodeListType, classNames); | 1288 return ensureRareData().ensureNodeLists().addCacheWithAtomicName<ClassNodeLi
st>(this, ClassNodeListType, classNames); |
| 1289 } | 1289 } |
| 1290 | 1290 |
| 1291 PassRefPtr<RadioNodeList> Node::radioNodeList(const AtomicString& name) | 1291 PassRefPtr<RadioNodeList> Node::radioNodeList(const AtomicString& name) |
| 1292 { | 1292 { |
| 1293 ASSERT(hasTagName(formTag) || hasTagName(fieldsetTag)); | 1293 ASSERT(hasTagName(formTag) || hasTagName(fieldsetTag)); |
| 1294 return ensureRareData().ensureNodeLists().addCacheWithAtomicName<RadioNodeLi
st>(this, RadioNodeListType, name); | 1294 return ensureRareData().ensureNodeLists().addCacheWithAtomicName<RadioNodeLi
st>(this, RadioNodeListType, name); |
| 1295 } | 1295 } |
| 1296 | 1296 |
| 1297 PassRefPtr<Element> Node::querySelector(const AtomicString& selectors, Exception
State& exceptionState) | 1297 PassRefPtr<Element> Node::querySelector(const AtomicString& selectors, Exception
State& exceptionState) |
| 1298 { | 1298 { |
| (...skipping 1382 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2681 node->showTreeForThis(); | 2681 node->showTreeForThis(); |
| 2682 } | 2682 } |
| 2683 | 2683 |
| 2684 void showNodePath(const WebCore::Node* node) | 2684 void showNodePath(const WebCore::Node* node) |
| 2685 { | 2685 { |
| 2686 if (node) | 2686 if (node) |
| 2687 node->showNodePathForThis(); | 2687 node->showNodePathForThis(); |
| 2688 } | 2688 } |
| 2689 | 2689 |
| 2690 #endif | 2690 #endif |
| OLD | NEW |