Changeset 56393 in webkit
- Timestamp:
- Mar 23, 2010 8:14:29 AM (14 years ago)
- Location:
- trunk
- Files:
-
- 2 added
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r56392 r56393 1 2010-03-23 Pavel Feldman <pfeldman@chromium.org> 2 3 Reviewed by Timothy Hatcher. 4 5 Web Inspector: Element inspector search funtion: Error dispatching: performSearch. 6 7 https://bugs.webkit.org/show_bug.cgi?id=36488 8 9 * inspector/elements-panel-search-expected.txt: Added. 10 * inspector/elements-panel-search.html: Added. 11 1 12 2010-03-23 Qi Zhang <qi.2.zhang@nokia.com> 2 13 -
trunk/WebCore/ChangeLog
r56392 r56393 1 2010-03-23 Pavel Feldman <pfeldman@chromium.org> 2 3 Reviewed by Timothy Hatcher. 4 5 Web Inspector: Element inspector search funtion: Error dispatching: performSearch. 6 7 https://bugs.webkit.org/show_bug.cgi?id=36488 8 9 Test: inspector/elements-panel-search.html 10 11 * inspector/front-end/ElementsPanel.js: 12 (WebInspector.ElementsPanel.prototype.performSearch): 13 (WebInspector.ElementsPanel.prototype.addNodesToSearchResult): 14 * inspector/front-end/InjectedScript.js: 15 (injectedScriptConstructor.): 16 (injectedScriptConstructor): 17 1 18 2010-03-23 Qi Zhang <qi.2.zhang@nokia.com> 2 19 -
trunk/WebCore/inspector/front-end/ElementsPanel.js
r55537 r56393 254 254 this._searchQuery = query; 255 255 256 InjectedScriptAccess.getDefault().performSearch(whitespaceTrimmedQuery, f unction() {});256 InjectedScriptAccess.getDefault().performSearch(whitespaceTrimmedQuery, false, function() {}); 257 257 }, 258 258 -
trunk/WebCore/inspector/front-end/InjectedScript.js
r56347 r56393 311 311 } 312 312 313 InjectedScript.performSearch = function(whitespaceTrimmedQuery )313 InjectedScript.performSearch = function(whitespaceTrimmedQuery, runSynchronously) 314 314 { 315 315 // FIXME: Few things are missing here: … … 479 479 480 480 // Find all frames, iframes and object elements to search their documents. 481 const querySelectorAllFunction = InjectedScript._window().Document.prototype.querySelectorAll; 482 const subdocumentResult = querySelectorAllFunction.call(mainFrameDocument, "iframe, frame, object"); 481 const subdocumentResult = mainFrameDocument.querySelectorAll("iframe, frame, object"); 483 482 484 483 for (var i = 0; i < subdocumentResult.length; ++i) { … … 509 508 clearInterval(chunkIntervalIdentifier); 510 509 finishedSearching.call(panel); 511 return ;510 return false; 512 511 } 513 512 514 513 searchDocument = searchDocuments[documentIndex]; 515 514 } 516 517 if (!searchDocument || !searchFunction)518 return;519 515 520 516 try { … … 523 519 // ignore any exceptions. the query might be malformed, but we allow that. 524 520 } 525 } 526 527 processChunk(); 528 529 chunkIntervalIdentifier = setInterval(processChunk, 25); 530 InjectedScript._currentSearchChunkIntervalIdentifier = chunkIntervalIdentifier; 521 return true; 522 } 523 524 if (runSynchronously) 525 while (processChunk()) {} 526 else { 527 processChunk(); 528 chunkIntervalIdentifier = setInterval(processChunk, 25); 529 InjectedScript._currentSearchChunkIntervalIdentifier = chunkIntervalIdentifier; 530 } 531 531 return true; 532 532 }
Note: See TracChangeset
for help on using the changeset viewer.