| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2009 Apple Inc. All rights reserved. | 2 * Copyright (C) 2009 Apple Inc. All rights reserved. |
| 3 * Copyright (C) 2011 Google Inc. All rights reserved. | 3 * Copyright (C) 2011 Google Inc. All rights reserved. |
| 4 * Copyright (C) 2009 Joseph Pecoraro | 4 * Copyright (C) 2009 Joseph Pecoraro |
| 5 * | 5 * |
| 6 * Redistribution and use in source and binary forms, with or without | 6 * Redistribution and use in source and binary forms, with or without |
| 7 * modification, are permitted provided that the following conditions | 7 * modification, are permitted provided that the following conditions |
| 8 * are met: | 8 * are met: |
| 9 * | 9 * |
| 10 * 1. Redistributions of source code must retain the above copyright | 10 * 1. Redistributions of source code must retain the above copyright |
| (...skipping 1209 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1220 } | 1220 } |
| 1221 default: | 1221 default: |
| 1222 break; | 1222 break; |
| 1223 } | 1223 } |
| 1224 } | 1224 } |
| 1225 | 1225 |
| 1226 // XPath evaluation | 1226 // XPath evaluation |
| 1227 for (Document* document : docs) { | 1227 for (Document* document : docs) { |
| 1228 ASSERT(document); | 1228 ASSERT(document); |
| 1229 TrackExceptionState exceptionState; | 1229 TrackExceptionState exceptionState; |
| 1230 RefPtrWillBeRawPtr<XPathResult> result = DocumentXPathEvaluator::eva
luate(*document, whitespaceTrimmedQuery, document, nullptr, XPathResult::ORDERED
_NODE_SNAPSHOT_TYPE, 0, exceptionState); | 1230 RefPtrWillBeRawPtr<XPathResult> result = DocumentXPathEvaluator::eva
luate(*document, whitespaceTrimmedQuery, document, nullptr, XPathResult::ORDERED
_NODE_SNAPSHOT_TYPE, ScriptValue(), exceptionState); |
| 1231 if (exceptionState.hadException() || !result) | 1231 if (exceptionState.hadException() || !result) |
| 1232 continue; | 1232 continue; |
| 1233 | 1233 |
| 1234 unsigned long size = result->snapshotLength(exceptionState); | 1234 unsigned long size = result->snapshotLength(exceptionState); |
| 1235 for (unsigned long i = 0; !exceptionState.hadException() && i < size
; ++i) { | 1235 for (unsigned long i = 0; !exceptionState.hadException() && i < size
; ++i) { |
| 1236 Node* node = result->snapshotItem(i, exceptionState); | 1236 Node* node = result->snapshotItem(i, exceptionState); |
| 1237 if (exceptionState.hadException()) | 1237 if (exceptionState.hadException()) |
| 1238 break; | 1238 break; |
| 1239 | 1239 |
| 1240 if (node->nodeType() == Node::ATTRIBUTE_NODE) | 1240 if (node->nodeType() == Node::ATTRIBUTE_NODE) |
| (...skipping 1138 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2379 visitor->trace(m_revalidateTask); | 2379 visitor->trace(m_revalidateTask); |
| 2380 visitor->trace(m_searchResults); | 2380 visitor->trace(m_searchResults); |
| 2381 #endif | 2381 #endif |
| 2382 visitor->trace(m_history); | 2382 visitor->trace(m_history); |
| 2383 visitor->trace(m_domEditor); | 2383 visitor->trace(m_domEditor); |
| 2384 visitor->trace(m_listener); | 2384 visitor->trace(m_listener); |
| 2385 InspectorBaseAgent::trace(visitor); | 2385 InspectorBaseAgent::trace(visitor); |
| 2386 } | 2386 } |
| 2387 | 2387 |
| 2388 } // namespace blink | 2388 } // namespace blink |
| OLD | NEW |