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

Side by Side Diff: third_party/WebKit/LayoutTests/inspector/elements/styles-4/styles-update-links.js

Issue 2493373002: DevTools: rename WebInspector into modules. (Closed)
Patch Set: for bots Created 4 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 unified diff | Download patch
OLDNEW
1 var initialize_StylesUpdateLinks = function() { 1 var initialize_StylesUpdateLinks = function() {
2 function flattenRuleRanges(rule) 2 function flattenRuleRanges(rule)
3 { 3 {
4 var ranges = []; 4 var ranges = [];
5 var medias = rule.media || []; 5 var medias = rule.media || [];
6 for (var i = 0; i < medias.length; ++i) { 6 for (var i = 0; i < medias.length; ++i) {
7 var media = medias[i]; 7 var media = medias[i];
8 if (!media.range) 8 if (!media.range)
9 continue; 9 continue;
10 ranges.push({ 10 ranges.push({
(...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after
91 return; 91 return;
92 } 92 }
93 } 93 }
94 callback(); 94 callback();
95 } 95 }
96 } 96 }
97 97
98 InspectorTest.getMatchedRules = function() 98 InspectorTest.getMatchedRules = function()
99 { 99 {
100 var rules = []; 100 var rules = [];
101 for (var block of WebInspector.panels.elements._stylesWidget._sectionBlo cks) { 101 for (var block of UI.panels.elements._stylesWidget._sectionBlocks) {
102 for (var section of block.sections) { 102 for (var section of block.sections) {
103 var rule = section.style().parentRule; 103 var rule = section.style().parentRule;
104 if (rule) 104 if (rule)
105 rules.push(rule); 105 rules.push(rule);
106 } 106 }
107 } 107 }
108 return rules; 108 return rules;
109 } 109 }
110 } 110 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698