Changeset 61507 in webkit


Ignore:
Timestamp:
Jun 20, 2010 11:55:29 AM (14 years ago)
Author:
Joseph Pecoraro
Message:

2010-06-20 Joseph Pecoraro <Joseph Pecoraro>

Unreviewed rollout r61506, because it made 1 test crash.

Causes crash. Will approach the solution in a different way.

Location:
trunk/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/WebCore/ChangeLog

    r61506 r61507  
     12010-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
    172010-06-20  Joseph Pecoraro  <joepeck@webkit.org>
    28
  • trunk/WebCore/inspector/front-end/InjectedScript.js

    r61506 r61507  
    231231}
    232232
    233 // Automatically generate the list of CSS properties, and convert
    234 // 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 
    261233InjectedScript.getCompletions = function(expression, includeInspectorCommandLineAPI, callFrameId)
    262234{
     
    282254            expressionResult = InjectedScript._evaluateOn(inspectedWindow.eval, inspectedWindow, expression, false);
    283255        }
    284 
    285         if (typeof expressionResult === "object") {
     256        if (typeof expressionResult === "object")
    286257            InjectedScript._populatePropertyNames(expressionResult, props);
    287             if (expressionResult.constructor === inspectedWindow.document.documentElement.style.constructor)
    288                 InjectedScript._addHiddenStyleProperties(props);
    289         }
    290258
    291259        if (includeInspectorCommandLineAPI) {
Note: See TracChangeset for help on using the changeset viewer.