| 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 1064 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1075 default: | 1075 default: |
| 1076 break; | 1076 break; |
| 1077 } | 1077 } |
| 1078 } | 1078 } |
| 1079 | 1079 |
| 1080 // XPath evaluation | 1080 // XPath evaluation |
| 1081 for (WillBeHeapVector<RawPtrWillBeMember<Document> >::iterator it = docs
.begin(); it != docs.end(); ++it) { | 1081 for (WillBeHeapVector<RawPtrWillBeMember<Document> >::iterator it = docs
.begin(); it != docs.end(); ++it) { |
| 1082 Document* document = *it; | 1082 Document* document = *it; |
| 1083 ASSERT(document); | 1083 ASSERT(document); |
| 1084 TrackExceptionState exceptionState; | 1084 TrackExceptionState exceptionState; |
| 1085 RefPtrWillBeRawPtr<XPathResult> result = DocumentXPathEvaluator::eva
luate(*document, whitespaceTrimmedQuery, document, nullptr, XPathResult::ORDERED
_NODE_SNAPSHOT_TYPE, 0, exceptionState); | 1085 XPathResult* result = DocumentXPathEvaluator::evaluate(*document, wh
itespaceTrimmedQuery, document, nullptr, XPathResult::ORDERED_NODE_SNAPSHOT_TYPE
, 0, exceptionState); |
| 1086 if (exceptionState.hadException() || !result) | 1086 if (exceptionState.hadException() || !result) |
| 1087 continue; | 1087 continue; |
| 1088 | 1088 |
| 1089 unsigned long size = result->snapshotLength(exceptionState); | 1089 unsigned long size = result->snapshotLength(exceptionState); |
| 1090 for (unsigned long i = 0; !exceptionState.hadException() && i < size
; ++i) { | 1090 for (unsigned long i = 0; !exceptionState.hadException() && i < size
; ++i) { |
| 1091 Node* node = result->snapshotItem(i, exceptionState); | 1091 Node* node = result->snapshotItem(i, exceptionState); |
| 1092 if (exceptionState.hadException()) | 1092 if (exceptionState.hadException()) |
| 1093 break; | 1093 break; |
| 1094 | 1094 |
| 1095 if (node->nodeType() == Node::ATTRIBUTE_NODE) | 1095 if (node->nodeType() == Node::ATTRIBUTE_NODE) |
| (...skipping 1097 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2193 visitor->trace(m_revalidateStyleAttrTask); | 2193 visitor->trace(m_revalidateStyleAttrTask); |
| 2194 visitor->trace(m_searchResults); | 2194 visitor->trace(m_searchResults); |
| 2195 #endif | 2195 #endif |
| 2196 visitor->trace(m_history); | 2196 visitor->trace(m_history); |
| 2197 visitor->trace(m_domEditor); | 2197 visitor->trace(m_domEditor); |
| 2198 visitor->trace(m_listener); | 2198 visitor->trace(m_listener); |
| 2199 InspectorBaseAgent::trace(visitor); | 2199 InspectorBaseAgent::trace(visitor); |
| 2200 } | 2200 } |
| 2201 | 2201 |
| 2202 } // namespace blink | 2202 } // namespace blink |
| 2203 | |
| OLD | NEW |