Ignore:
Timestamp:
06/27/11 08:33:56 (3 years ago)
Author:
apavlov@chromium.org
Message:

2011-06-27 Alexander Pavlov <apavlov@chromium.org>

Reviewed by Pavel Feldman.

Web Inspector: Change the inspector model API and backend to allow CSS pseudoclass inspection
https://bugs.webkit.org/show_bug.cgi?id=63446

WebCore:

  • inspector/Inspector.json:
  • inspector/InspectorCSSAgent.cpp: (WebCore::computePseudoClassMask): (WebCore::InspectorCSSAgent::getStylesForNode):
  • inspector/InspectorCSSAgent.h:
  • inspector/front-end/AuditRules.js: (WebInspector.AuditRules.ImageDimensionsRule.prototype.doRun.getStyles):
  • inspector/front-end/CSSStyleModel.js: (WebInspector.CSSStyleModel.prototype.getStylesAsync):
  • inspector/front-end/StylesSidebarPane.js: (WebInspector.StylesSidebarPane.prototype.update):

LayoutTests:

  • inspector/styles/get-set-stylesheet-text.html:
  • inspector/styles/styles-new-API.html:
  • inspector/styles/styles-source-offsets.html:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/inspector/Inspector.json

    r89652 r89822  
    12241224                "name": "getStylesForNode", 
    12251225                "parameters": [ 
    1226                     { "name": "nodeId", "type": "integer" } 
     1226                    { "name": "nodeId", "type": "integer" }, 
     1227                    { "name": "forcedPseudoClasses", "type": "array", "items": { "type": "string", "enum": ["active", "focus", "hover", "visited"] }, "optional": true, "description": "Element pseudo classes to force when computing applicable style rules." } 
    12271228                ], 
    12281229                "returns": [ 
Note: See TracChangeset for help on using the changeset viewer.