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, 2013 Apple Inc. All rights
reserved. | 5 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2013 Apple Inc. All rights
reserved. |
6 * | 6 * |
7 * This library is free software; you can redistribute it and/or | 7 * This library is free software; you can redistribute it and/or |
8 * modify it under the terms of the GNU Library General Public | 8 * modify it under the terms of the GNU Library General Public |
9 * License as published by the Free Software Foundation; either | 9 * License as published by the Free Software Foundation; either |
10 * version 2 of the License, or (at your option) any later version. | 10 * version 2 of the License, or (at your option) any later version. |
(...skipping 1098 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1109 exceptionState.throwDOMException(SyntaxError, "The provided selector is
empty."); | 1109 exceptionState.throwDOMException(SyntaxError, "The provided selector is
empty."); |
1110 return nullptr; | 1110 return nullptr; |
1111 } | 1111 } |
1112 | 1112 |
1113 SelectorQuery* selectorQuery = document().selectorQueryCache().add(selectors
, document(), exceptionState); | 1113 SelectorQuery* selectorQuery = document().selectorQueryCache().add(selectors
, document(), exceptionState); |
1114 if (!selectorQuery) | 1114 if (!selectorQuery) |
1115 return nullptr; | 1115 return nullptr; |
1116 return selectorQuery->queryFirst(*this); | 1116 return selectorQuery->queryFirst(*this); |
1117 } | 1117 } |
1118 | 1118 |
1119 PassRefPtrWillBeRawPtr<StaticNodeList> ContainerNode::querySelectorAll(const Ato
micString& selectors, ExceptionState& exceptionState) | 1119 PassRefPtrWillBeRawPtr<StaticElementList> ContainerNode::querySelectorAll(const
AtomicString& selectors, ExceptionState& exceptionState) |
1120 { | 1120 { |
1121 if (selectors.isEmpty()) { | 1121 if (selectors.isEmpty()) { |
1122 exceptionState.throwDOMException(SyntaxError, "The provided selector is
empty."); | 1122 exceptionState.throwDOMException(SyntaxError, "The provided selector is
empty."); |
1123 return nullptr; | 1123 return nullptr; |
1124 } | 1124 } |
1125 | 1125 |
1126 SelectorQuery* selectorQuery = document().selectorQueryCache().add(selectors
, document(), exceptionState); | 1126 SelectorQuery* selectorQuery = document().selectorQueryCache().add(selectors
, document(), exceptionState); |
1127 if (!selectorQuery) | 1127 if (!selectorQuery) |
1128 return nullptr; | 1128 return nullptr; |
1129 | 1129 |
(...skipping 283 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1413 return true; | 1413 return true; |
1414 | 1414 |
1415 if (node->isElementNode() && toElement(node)->shadow()) | 1415 if (node->isElementNode() && toElement(node)->shadow()) |
1416 return true; | 1416 return true; |
1417 | 1417 |
1418 return false; | 1418 return false; |
1419 } | 1419 } |
1420 #endif | 1420 #endif |
1421 | 1421 |
1422 } // namespace blink | 1422 } // namespace blink |
OLD | NEW |