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

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

Issue 1907263002: DevTools: Fix all outstanding JavaScript style issues. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: remove yoda disable. fix throw parens Created 4 years, 8 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 148 matching lines...) Expand 10 before | Expand all | Expand 10 after
159 * @param {string} propertyName 159 * @param {string} propertyName
160 * @return {boolean} 160 * @return {boolean}
161 */ 161 */
162 WebInspector.CSSMetadata.isPropertyInherited = function(propertyName) 162 WebInspector.CSSMetadata.isPropertyInherited = function(propertyName)
163 { 163 {
164 return !!(WebInspector.CSSMetadata.InheritedProperties[WebInspector.CSSMetad ata.canonicalPropertyName(propertyName)] 164 return !!(WebInspector.CSSMetadata.InheritedProperties[WebInspector.CSSMetad ata.canonicalPropertyName(propertyName)]
165 || WebInspector.CSSMetadata.NonStandardInheritedProperties[propertyN ame.toLowerCase()]); 165 || WebInspector.CSSMetadata.NonStandardInheritedProperties[propertyN ame.toLowerCase()]);
166 } 166 }
167 167
168 WebInspector.CSSMetadata._distanceProperties = [ 168 WebInspector.CSSMetadata._distanceProperties = [
169 'background-position', 'border-spacing', 'bottom', 'font-size', 'height', 'l eft', 'letter-spacing', 'max-height', 'max-width', 'min-height', 169 "background-position", "border-spacing", "bottom", "font-size", "height", "l eft", "letter-spacing", "max-height", "max-width", "min-height",
170 'min-width', 'right', 'text-indent', 'top', 'width', 'word-spacing' 170 "min-width", "right", "text-indent", "top", "width", "word-spacing"
171 ]; 171 ];
172 172
173 WebInspector.CSSMetadata._bezierAwareProperties = [ 173 WebInspector.CSSMetadata._bezierAwareProperties = [
174 "animation", "animation-timing-function", "transition", "transition-timing-f unction", "-webkit-animation", "-webkit-animation-timing-function", 174 "animation", "animation-timing-function", "transition", "transition-timing-f unction", "-webkit-animation", "-webkit-animation-timing-function",
175 "-webkit-transition", "-webkit-transition-timing-function" 175 "-webkit-transition", "-webkit-transition-timing-function"
176 ].keySet(); 176 ].keySet();
177 177
178 WebInspector.CSSMetadata._colorAwareProperties = [ 178 WebInspector.CSSMetadata._colorAwareProperties = [
179 "background", "background-color", "background-image", "border", "border-colo r", "border-top", "border-right", "border-bottom", 179 "background", "background-color", "background-image", "border", "border-colo r", "border-top", "border-right", "border-bottom",
180 "border-left", "border-top-color", "border-right-color", "border-bottom-colo r", "border-left-color", "box-shadow", "color", 180 "border-left", "border-top-color", "border-right-color", "border-bottom-colo r", "border-left-color", "box-shadow", "color",
(...skipping 903 matching lines...) Expand 10 before | Expand all | Expand 10 after
1084 * @param {string} longhand 1084 * @param {string} longhand
1085 * @return {?Array.<string>} 1085 * @return {?Array.<string>}
1086 */ 1086 */
1087 shorthands: function(longhand) 1087 shorthands: function(longhand)
1088 { 1088 {
1089 return this._shorthands[longhand]; 1089 return this._shorthands[longhand];
1090 } 1090 }
1091 } 1091 }
1092 1092
1093 WebInspector.CSSMetadata.initializeWithSupportedProperties([]); 1093 WebInspector.CSSMetadata.initializeWithSupportedProperties([]);
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698