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

Unified Diff: third_party/WebKit/Source/devtools/front_end/elements/StylesSectionModel.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 | « no previous file | third_party/WebKit/Source/devtools/front_end/elements/StylesSidebarPane.js » ('j') | 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/StylesSectionModel.js
diff --git a/third_party/WebKit/Source/devtools/front_end/elements/StylesSectionModel.js b/third_party/WebKit/Source/devtools/front_end/elements/StylesSectionModel.js
index 186fcff1a5b34373f4851b6f924b4708a76cc844..d4439eaf962d05e440e872100ece6d8bb8db8ed1 100644
--- a/third_party/WebKit/Source/devtools/front_end/elements/StylesSectionModel.js
+++ b/third_party/WebKit/Source/devtools/front_end/elements/StylesSectionModel.js
@@ -88,22 +88,6 @@ WebInspector.SectionCascade.prototype = {
},
/**
- * @param {!WebInspector.CSSStyleDeclaration} style
- * @param {!WebInspector.CSSStyleDeclaration=} insertAfter
- */
- insertStyle: function(style, insertAfter)
- {
- if (insertAfter) {
- var index = this._styles.indexOf(insertAfter);
- console.assert(index !== -1, "The insertAfter anchor could not be found in cascade");
- this._styles.splice(index + 1, 0, style);
- } else {
- this._styles.push(style);
- }
- this.resetActiveProperties();
- },
-
- /**
* @param {!WebInspector.CSSProperty} property
* @return {?WebInspector.SectionCascade.PropertyState}
*/
« no previous file with comments | « no previous file | third_party/WebKit/Source/devtools/front_end/elements/StylesSidebarPane.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698