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: Source/devtools/front_end/sdk/CSSStyleModel.js

Issue 1320543002: DevTools: simplify & fix property overload logic (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 4 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: Source/devtools/front_end/sdk/CSSStyleModel.js
diff --git a/Source/devtools/front_end/sdk/CSSStyleModel.js b/Source/devtools/front_end/sdk/CSSStyleModel.js
index feace02c7cd1e8782800422e7950cf768ec4659e..03d6adc47f34461ab21f9a8cfc2bcb3ce0e73cba 100644
--- a/Source/devtools/front_end/sdk/CSSStyleModel.js
+++ b/Source/devtools/front_end/sdk/CSSStyleModel.js
@@ -745,7 +745,7 @@ WebInspector.CSSStyleDeclaration.prototype = {
/**
* @return {!Array.<!WebInspector.CSSProperty>}
*/
- leadingProperties: function()
+ _computeLeadingProperties: function()
{
/**
* @param {!WebInspector.CSSProperty} property
@@ -777,6 +777,16 @@ WebInspector.CSSStyleDeclaration.prototype = {
},
/**
+ * @return {!Array.<!WebInspector.CSSProperty>}
+ */
+ leadingProperties: function()
+ {
+ if (!this._leadingProperties)
+ this._leadingProperties = this._computeLeadingProperties();
+ return this._leadingProperties;
+ },
+
+ /**
* @return {!WebInspector.Target}
*/
target: function()

Powered by Google App Engine
This is Rietveld 408576698