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

Side by Side Diff: third_party/WebKit/Source/devtools/front_end/sdk/CSSMetadata.js

Issue 2644703002: DevTools: Show CSS variables in the inherited properties cascade (Closed)
Patch Set: test Created 3 years, 11 months 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 /* 1 /*
2 * Copyright (C) 2010 Nikita Vasilyev. All rights reserved. 2 * Copyright (C) 2010 Nikita Vasilyev. All rights reserved.
3 * Copyright (C) 2010 Joseph Pecoraro. All rights reserved. 3 * Copyright (C) 2010 Joseph Pecoraro. All rights reserved.
4 * Copyright (C) 2010 Google Inc. All rights reserved. 4 * Copyright (C) 2010 Google Inc. All rights reserved.
5 * 5 *
6 * Redistribution and use in source and binary forms, with or without 6 * Redistribution and use in source and binary forms, with or without
7 * modification, are permitted provided that the following conditions are 7 * modification, are permitted provided that the following conditions are
8 * met: 8 * met:
9 * 9 *
10 * * Redistributions of source code must retain the above copyright 10 * * Redistributions of source code must retain the above copyright
(...skipping 162 matching lines...) Expand 10 before | Expand all | Expand 10 after
173 return true; 173 return true;
174 return this._valuesSet.has(propertyName); 174 return this._valuesSet.has(propertyName);
175 } 175 }
176 176
177 /** 177 /**
178 * @param {string} propertyName 178 * @param {string} propertyName
179 * @return {boolean} 179 * @return {boolean}
180 */ 180 */
181 isPropertyInherited(propertyName) { 181 isPropertyInherited(propertyName) {
182 propertyName = propertyName.toLowerCase(); 182 propertyName = propertyName.toLowerCase();
183 return this._inherited.has(this.canonicalPropertyName(propertyName)) || this ._inherited.has(propertyName); 183 return propertyName.startsWith('--') || this._inherited.has(this.canonicalPr opertyName(propertyName)) ||
184 this._inherited.has(propertyName);
184 } 185 }
185 186
186 /** 187 /**
187 * @param {string} propertyName 188 * @param {string} propertyName
188 * @return {!Array<string>} 189 * @return {!Array<string>}
189 */ 190 */
190 propertyValues(propertyName) { 191 propertyValues(propertyName) {
191 var acceptedKeywords = ['inherit', 'initial']; 192 var acceptedKeywords = ['inherit', 'initial'];
192 propertyName = propertyName.toLowerCase(); 193 propertyName = propertyName.toLowerCase();
193 var unprefixedName = propertyName.replace(/^-webkit-/, ''); 194 var unprefixedName = propertyName.replace(/^-webkit-/, '');
(...skipping 755 matching lines...) Expand 10 before | Expand all | Expand 10 after
949 'widows': 115, 950 'widows': 115,
950 'width': 268, 951 'width': 268,
951 'will-change': 74, 952 'will-change': 74,
952 'word-break': 166, 953 'word-break': 166,
953 'word-spacing': 157, 954 'word-spacing': 157,
954 'word-wrap': 197, 955 'word-wrap': 197,
955 'writing-mode': 41, 956 'writing-mode': 41,
956 'z-index': 239, 957 'z-index': 239,
957 'zoom': 200 958 'zoom': 200
958 }; 959 };
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698