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

Unified Diff: third_party/WebKit/Source/devtools/front_end/network/XMLView.js

Issue 2328643002: [DevTools] Migrate XMLView to TreeOutlineInShadow. (Closed)
Patch Set: Created 4 years, 3 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
Index: third_party/WebKit/Source/devtools/front_end/network/XMLView.js
diff --git a/third_party/WebKit/Source/devtools/front_end/network/XMLView.js b/third_party/WebKit/Source/devtools/front_end/network/XMLView.js
index 5c63a7d2c3b1007f28839733675802bf2f19e662..fddea238441e0e00b6bddd68b6bd340f07a88fe2 100644
--- a/third_party/WebKit/Source/devtools/front_end/network/XMLView.js
+++ b/third_party/WebKit/Source/devtools/front_end/network/XMLView.js
@@ -13,7 +13,8 @@ WebInspector.XMLView = function(parsedXML)
WebInspector.Widget.call(this, true);
this.registerRequiredCSS("network/xmlView.css");
this.contentElement.classList.add("shadow-xml-view", "source-code");
- this._treeOutline = new TreeOutline();
+ this._treeOutline = new TreeOutlineInShadow();
+ this._treeOutline.registerRequiredCSS("network/xmlTree.css");
this.contentElement.appendChild(this._treeOutline.element);
/** @type {?WebInspector.SearchableView} */
@@ -271,7 +272,8 @@ WebInspector.XMLView.Node.prototype = {
* @param {string=} additionalCssClassName
* @return {boolean}
*/
- setSearchRegex: function(regex, additionalCssClassName) {
+ setSearchRegex: function(regex, additionalCssClassName)
+ {
this.revertHighlightChanges();
if (!regex)
return false;
« no previous file with comments | « third_party/WebKit/Source/devtools/BUILD.gn ('k') | third_party/WebKit/Source/devtools/front_end/network/module.json » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698