| 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 1231 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1242 PassRefPtr<Element> Node::querySelector(const AtomicString& selectors, Exception
State& es) | 1242 PassRefPtr<Element> Node::querySelector(const AtomicString& selectors, Exception
State& es) |
| 1243 { | 1243 { |
| 1244 if (selectors.isEmpty()) { | 1244 if (selectors.isEmpty()) { |
| 1245 es.throwDOMException(SyntaxError, ExceptionMessages::failedToExecute("qu
erySelector", "Node", "The provided selector is empty.")); | 1245 es.throwDOMException(SyntaxError, ExceptionMessages::failedToExecute("qu
erySelector", "Node", "The provided selector is empty.")); |
| 1246 return 0; | 1246 return 0; |
| 1247 } | 1247 } |
| 1248 | 1248 |
| 1249 SelectorQuery* selectorQuery = document().selectorQueryCache().add(selectors
, document(), es); | 1249 SelectorQuery* selectorQuery = document().selectorQueryCache().add(selectors
, document(), es); |
| 1250 if (!selectorQuery) | 1250 if (!selectorQuery) |
| 1251 return 0; | 1251 return 0; |
| 1252 return selectorQuery->queryFirst(this); | 1252 return selectorQuery->queryFirst(*this); |
| 1253 } | 1253 } |
| 1254 | 1254 |
| 1255 PassRefPtr<NodeList> Node::querySelectorAll(const AtomicString& selectors, Excep
tionState& es) | 1255 PassRefPtr<NodeList> Node::querySelectorAll(const AtomicString& selectors, Excep
tionState& es) |
| 1256 { | 1256 { |
| 1257 if (selectors.isEmpty()) { | 1257 if (selectors.isEmpty()) { |
| 1258 es.throwDOMException(SyntaxError, ExceptionMessages::failedToExecute("qu
erySelectorAll", "Node", "The provided selector is empty.")); | 1258 es.throwDOMException(SyntaxError, ExceptionMessages::failedToExecute("qu
erySelectorAll", "Node", "The provided selector is empty.")); |
| 1259 return 0; | 1259 return 0; |
| 1260 } | 1260 } |
| 1261 | 1261 |
| 1262 SelectorQuery* selectorQuery = document().selectorQueryCache().add(selectors
, document(), es); | 1262 SelectorQuery* selectorQuery = document().selectorQueryCache().add(selectors
, document(), es); |
| 1263 if (!selectorQuery) | 1263 if (!selectorQuery) |
| 1264 return 0; | 1264 return 0; |
| 1265 return selectorQuery->queryAll(this); | 1265 return selectorQuery->queryAll(*this); |
| 1266 } | 1266 } |
| 1267 | 1267 |
| 1268 Document* Node::ownerDocument() const | 1268 Document* Node::ownerDocument() const |
| 1269 { | 1269 { |
| 1270 Document* doc = &document(); | 1270 Document* doc = &document(); |
| 1271 return doc == this ? 0 : doc; | 1271 return doc == this ? 0 : doc; |
| 1272 } | 1272 } |
| 1273 | 1273 |
| 1274 KURL Node::baseURI() const | 1274 KURL Node::baseURI() const |
| 1275 { | 1275 { |
| (...skipping 1354 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2630 node->showTreeForThis(); | 2630 node->showTreeForThis(); |
| 2631 } | 2631 } |
| 2632 | 2632 |
| 2633 void showNodePath(const WebCore::Node* node) | 2633 void showNodePath(const WebCore::Node* node) |
| 2634 { | 2634 { |
| 2635 if (node) | 2635 if (node) |
| 2636 node->showNodePathForThis(); | 2636 node->showNodePathForThis(); |
| 2637 } | 2637 } |
| 2638 | 2638 |
| 2639 #endif | 2639 #endif |
| OLD | NEW |