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

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

Issue 1418763003: DevTools: [SSP] treat new rules out of style cascade. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@kill-style-rule
Patch Set: Created 5 years, 1 month 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 | « third_party/WebKit/Source/devtools/front_end/elements/StylesSectionModel.js ('k') | 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/StylesSidebarPane.js
diff --git a/third_party/WebKit/Source/devtools/front_end/elements/StylesSidebarPane.js b/third_party/WebKit/Source/devtools/front_end/elements/StylesSidebarPane.js
index 85e1c913daa3ca0788f19e07db9d45ce7ee8c9de..575099c7d1f8dab96b6edea86352bb713c695215 100644
--- a/third_party/WebKit/Source/devtools/front_end/elements/StylesSidebarPane.js
+++ b/third_party/WebKit/Source/devtools/front_end/elements/StylesSidebarPane.js
@@ -1670,7 +1670,6 @@ WebInspector.BlankStylePropertiesSection = function(stylesPane, cascade, default
this._selectorRefElement.appendChild(WebInspector.StylePropertiesSection._linkifyRuleLocation(this._parentPane._cssModel, this._parentPane._linkifier, styleSheetId, this._actualRuleLocation()));
if (insertAfterStyle && insertAfterStyle.parentRule)
this._createMediaList(insertAfterStyle.parentRule.media);
- this._insertAfterStyle = insertAfterStyle;
this.element.classList.add("blank-section");
}
@@ -1778,9 +1777,7 @@ WebInspector.BlankStylePropertiesSection.prototype = {
_makeNormal: function(newRule)
{
this.element.classList.remove("blank-section");
- this._cascade.insertStyle(newRule.style, this._insertAfterStyle);
this._style = newRule.style;
-
// FIXME: replace this instance by a normal WebInspector.StylePropertiesSection.
this._normal = true;
},
« no previous file with comments | « third_party/WebKit/Source/devtools/front_end/elements/StylesSectionModel.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698