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

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

Issue 2146233002: DevTools: reuse computedstylesmodel in the elements sidebar base class. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: (2) Created 4 years, 5 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/elements/MetricsSidebarPane.js
diff --git a/third_party/WebKit/Source/devtools/front_end/elements/MetricsSidebarPane.js b/third_party/WebKit/Source/devtools/front_end/elements/MetricsSidebarPane.js
index 670ca2bb82a168b3dca10ec8711ad4a4a312ebf4..b770aea265b5d33b0b577fcd110f03b0f4b7c2cf 100644
--- a/third_party/WebKit/Source/devtools/front_end/elements/MetricsSidebarPane.js
+++ b/third_party/WebKit/Source/devtools/front_end/elements/MetricsSidebarPane.js
@@ -86,28 +86,12 @@ WebInspector.MetricsSidebarPane.prototype = {
/**
* @override
*/
- onDOMModelChanged: function()
- {
- this.update();
- },
-
- /**
- * @override
- */
onCSSModelChanged: function()
{
this.update();
},
/**
- * @override
- */
- onFrameResizedThrottled: function()
- {
- this.update();
- },
-
- /**
* @param {!Map.<string, string>} style
* @param {string} propertyName
* @return {number}
@@ -469,7 +453,7 @@ WebInspector.MetricsSidebarPane.prototype = {
this.originalPropertyData = this.previousPropertyDataCandidate;
if (typeof this._highlightMode !== "undefined")
- this._node.highlight(this._highlightMode);
+ this.node().highlight(this._highlightMode);
if (commitEditor)
this.update();

Powered by Google App Engine
This is Rietveld 408576698