⚠ Archived content — this site is no longer maintained.   Current WebKit documentation is at docs.webkit.org.

Changeset 119469 in webkit


Ignore:
Timestamp:
Jun 5, 2012, 1:56:24 AM (14 years ago)
Author:
apavlov@chromium.org
Message:

Web Inspector: "-webkit"-prefixed properties are considered inherited in the Computed Style pane
https://bugs.webkit.org/show_bug.cgi?id=88257

Reviewed by Pavel Feldman.

Source/WebCore:

Canonical names for properties should be used when checking if they are inherited (since only canonical names
are put into the usedProperties set).

  • inspector/front-end/StylesSidebarPane.js:

(WebInspector.ComputedStylePropertiesSection.prototype._isPropertyInherited):

LayoutTests:

  • inspector/elements/elements-panel-styles-expected.txt:
  • inspector/elements/elements-panel-styles.html:
Location:
trunk
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/LayoutTests/ChangeLog

    r119467 r119469  
     12012-06-05  Alexander Pavlov  <apavlov@chromium.org>
     2
     3        Web Inspector: "-webkit"-prefixed properties are considered inherited in the Computed Style pane
     4        https://bugs.webkit.org/show_bug.cgi?id=88257
     5
     6        Reviewed by Pavel Feldman.
     7
     8        * inspector/elements/elements-panel-styles-expected.txt:
     9        * inspector/elements/elements-panel-styles.html:
     10
    1112012-06-05  Kenichi Ishibashi  <bashi@chromium.org>
    212
  • trunk/LayoutTests/inspector/elements/elements-panel-styles-expected.txt

    r117958 r119469  
    22
    33[expanded]
     4-webkit-font-smoothing: subpixel-antialiased;
     5    element.style - subpixel-antialiased
    46border-bottom-left-radius: 5px;
    57    .foo - 5px elements-panel-styles.css:14
     
    3840element.style  { ()
    3941display: none;
     42-webkit-font-smoothing: subpixel-antialiased;
    4043
    4144======== Matched CSS Rules ========
  • trunk/LayoutTests/inspector/elements/elements-panel-styles.html

    r107055 r119469  
    2727
    2828<div id="container">
    29     <div id="foo" class="foo" style="display:none" align="left">Foo</div>
     29    <div id="foo" class="foo" style="display:none; -webkit-font-smoothing: subpixel-antialiased;" align="left">Foo</div>
    3030</div>
    3131
  • trunk/Source/WebCore/ChangeLog

    r119467 r119469  
     12012-06-05  Alexander Pavlov  <apavlov@chromium.org>
     2
     3        Web Inspector: "-webkit"-prefixed properties are considered inherited in the Computed Style pane
     4        https://bugs.webkit.org/show_bug.cgi?id=88257
     5
     6        Reviewed by Pavel Feldman.
     7
     8        Canonical names for properties should be used when checking if they are inherited (since only canonical names
     9        are put into the usedProperties set).
     10
     11        * inspector/front-end/StylesSidebarPane.js:
     12        (WebInspector.ComputedStylePropertiesSection.prototype._isPropertyInherited):
     13
    1142012-06-05  Kenichi Ishibashi  <bashi@chromium.org>
    215
  • trunk/Source/WebCore/inspector/front-end/StylesSidebarPane.js

    r118367 r119469  
    13981398    _isPropertyInherited: function(propertyName)
    13991399    {
    1400         return !(propertyName in this._usedProperties) && !(propertyName in this._alwaysShowComputedProperties);
     1400        var canonicalName = WebInspector.StylesSidebarPane.canonicalPropertyName(propertyName);
     1401        return !(canonicalName in this._usedProperties) && !(canonicalName in this._alwaysShowComputedProperties);
    14011402    },
    14021403
Note: See TracChangeset for help on using the changeset viewer.