Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(217)

Side by Side Diff: Source/core/inspector/InspectorDOMAgent.cpp

Issue 983123003: Add [TypeChecking=Interface] to XPath interfaces (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: revert test change; no longer needed Created 5 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « Source/bindings/scripts/v8_types.py ('k') | Source/core/xml/DocumentXPathEvaluator.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « Source/bindings/scripts/v8_types.py ('k') | Source/core/xml/DocumentXPathEvaluator.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698