Changeset 87617 in webkit


Ignore:
Timestamp:
May 28, 2011 10:55:16 AM (13 years ago)
Author:
commit-queue@webkit.org
Message:

2011-05-28 Tonis Tiigi <tonistiigi@gmail.com>

Reviewed by Pavel Feldman.

Web Inspector: there is a problem with computed style properties with wrong values
https://bugs.webkit.org/show_bug.cgi?id=60535

Adding cases that test invalid properties.

  • inspector/styles/styles-computed-trace-expected.txt:
  • inspector/styles/styles-computed-trace.html:

2011-05-28 Tonis Tiigi <tonistiigi@gmail.com>

Reviewed by Pavel Feldman.

Web Inspector: there is a problem with computed style properties with wrong values
https://bugs.webkit.org/show_bug.cgi?id=60535

  • inspector/front-end/StylesSidebarPane.js: (WebInspector.StylesSidebarPane.prototype._markUsedProperties): (WebInspector.ComputedStylePropertiesSection.prototype.rebuildComputedTrace):
Location:
trunk
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/LayoutTests/ChangeLog

    r87611 r87617  
     12011-05-28  Tonis Tiigi  <tonistiigi@gmail.com>
     2
     3        Reviewed by Pavel Feldman.
     4
     5        Web Inspector: there is a problem with computed style properties with wrong values
     6        https://bugs.webkit.org/show_bug.cgi?id=60535
     7
     8        Adding cases that test invalid properties.
     9
     10        * inspector/styles/styles-computed-trace-expected.txt:
     11        * inspector/styles/styles-computed-trace.html:
     12
    1132011-05-28  Robert Hogan  <robert@webkit.org>
    214
  • trunk/LayoutTests/inspector/styles/styles-computed-trace-expected.txt

    r78535 r87617  
    44[expanded]  ()
    55background-attachment: scroll;
    6     #id1 - initial styles-computed-trace.html:19
     6    #id1 - initial styles-computed-trace.html:23
    77background-clip: border-box;
    8     #id1 - initial styles-computed-trace.html:19
     8    #id1 - initial styles-computed-trace.html:23
    99background-color: gray;
    10     #id1 - gray styles-computed-trace.html:19
    11     /-- overloaded --/ #id1 - black styles-computed-trace.html:14
    12     /-- overloaded --/ #id1 - green styles-computed-trace.html:9
     10    #id1 - gray styles-computed-trace.html:23
     11    /-- overloaded --/ #id1 - black styles-computed-trace.html:18
     12    /-- overloaded --/ #id1 - green styles-computed-trace.html:13
    1313background-image: none;
    14     #id1 - initial styles-computed-trace.html:19
     14    #id1 - initial styles-computed-trace.html:23
    1515background-origin: padding-box;
    16     #id1 - initial styles-computed-trace.html:19
     16    #id1 - initial styles-computed-trace.html:23
    1717display: block;
    1818    div - block user agent stylesheet
    1919font-family: Courier;
    20     #id1 - Courier styles-computed-trace.html:14
    21     /-- overloaded --/ #id1 - Times styles-computed-trace.html:9
     20    #id1 - Courier styles-computed-trace.html:18
     21    /-- overloaded --/ #id1 - Times styles-computed-trace.html:13
    2222    /-- overloaded --/ body - Arial styles-computed-trace.html:4
     23text-decoration: underline;
     24    div - underline styles-computed-trace.html:9
    2325
    2426[expanded] element.style { ()
     
    2830[expanded]  ()
    2931background-color: blue;
    30     #id2 - blue styles-computed-trace.html:23
     32    #id2 - blue styles-computed-trace.html:27
    3133display: block;
    3234    div - block user agent stylesheet
    3335font-family: Courier;
    34     #id2 - Courier styles-computed-trace.html:23
    35     /-- overloaded --/ #id1 - Courier styles-computed-trace.html:14
    36     /-- overloaded --/ #id1 - Times styles-computed-trace.html:9
     36    #id2 - Courier styles-computed-trace.html:27
     37    /-- overloaded --/ #id1 - Courier styles-computed-trace.html:18
     38    /-- overloaded --/ #id1 - Times styles-computed-trace.html:13
    3739    /-- overloaded --/ body - Arial styles-computed-trace.html:4
     40text-decoration: underline;
     41    /-- overloaded --/ #id2 - invalidvalue styles-computed-trace.html:27
     42    div - underline styles-computed-trace.html:9
    3843
    3944[expanded] element.style { ()
  • trunk/LayoutTests/inspector/styles/styles-computed-trace.html

    r78535 r87617  
    55    background-color: rgb(100, 0, 0);
    66    font-family: Arial;
     7}
     8
     9div {
     10    text-decoration: underline;
    711}
    812
     
    2428    background-color: blue;
    2529    font-family: Courier;
     30    text-decoration: invalidvalue;
    2631}
    2732
  • trunk/Source/WebCore/ChangeLog

    r87616 r87617  
     12011-05-28  Tonis Tiigi  <tonistiigi@gmail.com>
     2
     3        Reviewed by Pavel Feldman.
     4
     5        Web Inspector: there is a problem with computed style properties with wrong values
     6        https://bugs.webkit.org/show_bug.cgi?id=60535
     7
     8        * inspector/front-end/StylesSidebarPane.js:
     9        (WebInspector.StylesSidebarPane.prototype._markUsedProperties):
     10        (WebInspector.ComputedStylePropertiesSection.prototype.rebuildComputedTrace):
     11
    1122011-05-26  Antonio Gomes  <agomes@rim.com>
    213
  • trunk/Source/WebCore/inspector/front-end/StylesSidebarPane.js

    r86774 r87617  
    397397            for (var j = 0; j < allProperties.length; ++j) {
    398398                var property = allProperties[j];
    399                 if (!property.isLive)
     399                if (!property.isLive || !property.parsedOk)
    400400                    continue;
    401401                var name = property.name;
     
    11301130                    if (section.isPropertyOverloaded(property.name))
    11311131                        childElement.listItemElement.addStyleClass("overloaded");
     1132                    if (!property.parsedOk)
     1133                        childElement.listItemElement.addStyleClass("not-parsed-ok");
    11321134                }
    11331135            }
Note: See TracChangeset for help on using the changeset viewer.