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

Unified Diff: third_party/WebKit/Source/devtools/front_end/elements/ElementsPanel.js

Issue 2800943002: DevTools: glimpse of text is seen in 'Find in page' search box in devtools. (Closed)
Patch Set: Created 3 years, 8 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/devtools/front_end/elements/ElementsPanel.js
diff --git a/third_party/WebKit/Source/devtools/front_end/elements/ElementsPanel.js b/third_party/WebKit/Source/devtools/front_end/elements/ElementsPanel.js
index 0f040c69a6776a9aecaf97af7591757eac27a584..aba07ef998eba7bd1f94766c038b67c31e85f4d4 100644
--- a/third_party/WebKit/Source/devtools/front_end/elements/ElementsPanel.js
+++ b/third_party/WebKit/Source/devtools/front_end/elements/ElementsPanel.js
@@ -631,10 +631,9 @@ Elements.ElementsPanel = class extends UI.Panel {
var searchResults = this._searchResults;
var searchResult = searchResults[index];
- if (searchResult.node === null) {
- this._searchableView.updateCurrentMatchIndex(index);
+ this._searchableView.updateCurrentMatchIndex(index);
+ if (searchResult.node === null)
return;
- }
/**
* @param {?SDK.DOMNode} node
@@ -651,8 +650,6 @@ Elements.ElementsPanel = class extends UI.Panel {
return;
}
- this._searchableView.updateCurrentMatchIndex(index);
-
var treeElement = this._treeElementForNode(searchResult.node);
if (treeElement) {
treeElement.highlightSearchResults(this._searchConfig.query);
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698