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

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

Issue 1434613002: DevTools: kill WebInspector.StylesSectionModel class (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: address comments 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
Index: third_party/WebKit/Source/devtools/front_end/elements/ComputedStyleWidget.js
diff --git a/third_party/WebKit/Source/devtools/front_end/elements/ComputedStyleWidget.js b/third_party/WebKit/Source/devtools/front_end/elements/ComputedStyleWidget.js
index 942e9ba2a2a58ec641a7e0bd048c5e8609232df2..aa83b1faf6305008b1fa74c339f39c0d22f5aa6d 100644
--- a/third_party/WebKit/Source/devtools/front_end/elements/ComputedStyleWidget.js
+++ b/third_party/WebKit/Source/devtools/front_end/elements/ComputedStyleWidget.js
@@ -256,9 +256,9 @@ WebInspector.ComputedStyleWidget.prototype = {
_computePropertyTraces: function(matchedCascade)
{
var result = new Map();
- var models = matchedCascade.sectionModels();
- for (var model of models) {
- var allProperties = model.style().allProperties;
+ var styles = matchedCascade.styles();
+ for (var style of styles) {
+ var allProperties = style.allProperties;
for (var property of allProperties) {
if (!property.activeInStyle() || !matchedCascade.propertyState(property))
continue;
@@ -277,8 +277,8 @@ WebInspector.ComputedStyleWidget.prototype = {
_computeInheritedProperties: function(matchedCascade)
{
var result = new Set();
- for (var model of matchedCascade.sectionModels()) {
- for (var property of model.style().allProperties) {
+ for (var style of matchedCascade.styles()) {
+ for (var property of style.allProperties) {
if (!matchedCascade.propertyState(property))
continue;
result.add(WebInspector.CSSMetadata.canonicalPropertyName(property.name));

Powered by Google App Engine
This is Rietveld 408576698