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

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

Issue 698113006: DevTools: [SSP] update ranges for all section in sidebar pane (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: fixup Created 6 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 | « LayoutTests/inspector/elements/styles/styles-update-links-expected.txt ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/devtools/front_end/elements/StylesSidebarPane.js
diff --git a/Source/devtools/front_end/elements/StylesSidebarPane.js b/Source/devtools/front_end/elements/StylesSidebarPane.js
index 6a42183aada574a0c3fa6d3d8dea608939d737bf..f21055949f578937446df4bb60d4e0530b570109 100644
--- a/Source/devtools/front_end/elements/StylesSidebarPane.js
+++ b/Source/devtools/front_end/elements/StylesSidebarPane.js
@@ -266,9 +266,15 @@ WebInspector.StylesSidebarPane.prototype = {
*/
_styleSheetRuleEdited: function(editedRule, oldRange, newRange)
{
- var styleRuleSections = this.sections[0];
- for (var i = 1; i < styleRuleSections.length; ++i)
- styleRuleSections[i]._styleSheetRuleEdited(editedRule, oldRange, newRange);
+ for (var pseudoId in this.sections) {
+ var styleRuleSections = this.sections[pseudoId];
+ for (var i = 0; i < styleRuleSections.length; ++i) {
+ var section = styleRuleSections[i];
+ if (section.computedStyle)
+ continue;
+ section._styleSheetRuleEdited(editedRule, oldRange, newRange);
+ }
+ }
},
/**
« no previous file with comments | « LayoutTests/inspector/elements/styles/styles-update-links-expected.txt ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698