Changeset 61507 in webkit
- Timestamp:
- Jun 20, 2010 11:55:29 AM (14 years ago)
- Location:
- trunk/WebCore
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/WebCore/ChangeLog
r61506 r61507 1 2010-06-20 Joseph Pecoraro <joepeck@webkit.org> 2 3 Unreviewed rollout r61506, because it made 1 test crash. 4 5 Causes crash. Will approach the solution in a different way. 6 1 7 2010-06-20 Joseph Pecoraro <joepeck@webkit.org> 2 8 -
trunk/WebCore/inspector/front-end/InjectedScript.js
r61506 r61507 231 231 } 232 232 233 // Automatically generate the list of CSS properties, and convert234 // them to their JavaScript accessible form.235 InjectedScript._hiddenStyleProperties = (function() {236 var properties = [];237 238 var keywords = window.getComputedStyle(document.documentElement);239 for (var i = 0, len = keywords.length; i < len; ++i) {240 // Strip leading hyphen from "-vendor" properties.241 var property = keywords[i];242 if (property.charAt(0) === "-")243 property = property.substring(1);244 245 // Turn hypens points into camel case points.246 properties[i] = property.replace(/\-./g, function(match) {247 return match.charAt(1).toUpperCase();248 });249 }250 251 return properties;252 })();253 254 InjectedScript._addHiddenStyleProperties = function(resultSet)255 {256 var hiddenStyleProperties = InjectedScript._hiddenStyleProperties;257 for (var i = 0, length = hiddenStyleProperties.length; i < length; ++i)258 resultSet[hiddenStyleProperties[i]] = true;259 }260 261 233 InjectedScript.getCompletions = function(expression, includeInspectorCommandLineAPI, callFrameId) 262 234 { … … 282 254 expressionResult = InjectedScript._evaluateOn(inspectedWindow.eval, inspectedWindow, expression, false); 283 255 } 284 285 if (typeof expressionResult === "object") { 256 if (typeof expressionResult === "object") 286 257 InjectedScript._populatePropertyNames(expressionResult, props); 287 if (expressionResult.constructor === inspectedWindow.document.documentElement.style.constructor)288 InjectedScript._addHiddenStyleProperties(props);289 }290 258 291 259 if (includeInspectorCommandLineAPI) {
Note: See TracChangeset
for help on using the changeset viewer.