Changeset 73311 in webkit


Ignore:
Timestamp:
Dec 3, 2010 3:18:01 PM (13 years ago)
Author:
apavlov@chromium.org
Message:

2010-12-03 Alexander Pavlov <apavlov@chromium.org>

Reviewed by Yury Semikhatsky.

Web Inspector: Duplicate "!important" for !important properties displayed in the Styles pane
https://bugs.webkit.org/show_bug.cgi?id=50460

  • inspector/front-end/StylesSidebarPane.js:
  • inspector/front-end/inspector.css:
Location:
trunk/WebCore
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/WebCore/ChangeLog

    r73309 r73311  
     12010-12-03  Alexander Pavlov  <apavlov@chromium.org>
     2
     3        Reviewed by Yury Semikhatsky.
     4
     5        Web Inspector: Duplicate "!important" for !important properties displayed in the Styles pane
     6        https://bugs.webkit.org/show_bug.cgi?id=50460
     7
     8        * inspector/front-end/StylesSidebarPane.js:
     9        * inspector/front-end/inspector.css:
     10
    1112010-12-03  Xan Lopez  <xlopez@igalia.com>
    212
  • trunk/WebCore/inspector/front-end/StylesSidebarPane.js

    r72786 r73311  
    11801180    updateTitle: function()
    11811181    {
    1182         var priority = this.priority;
    11831182        var value = this.value;
    1184 
    1185         if (priority && !priority.length)
    1186             delete priority;
    1187         if (priority)
    1188             priority = "!" + priority;
    11891183
    11901184        this.updateState();
     
    13401334        }
    13411335
    1342         if (priority) {
    1343             var priorityElement = document.createElement("span");
    1344             priorityElement.className = "priority";
    1345             priorityElement.textContent = priority;
    1346         }
    1347 
    13481336        this.listItemElement.removeChildren();
    13491337
     
    13571345        this.listItemElement.appendChild(document.createTextNode(": "));
    13581346        this.listItemElement.appendChild(valueElement);
    1359 
    1360         if (priorityElement) {
    1361             this.listItemElement.appendChild(document.createTextNode(" "));
    1362             this.listItemElement.appendChild(priorityElement);
    1363         }
    1364 
    13651347        this.listItemElement.appendChild(document.createTextNode(";"));
    13661348
  • trunk/WebCore/inspector/front-end/inspector.css

    r72655 r73311  
    14891489}
    14901490
    1491 .section .properties .priority {
    1492     color: rgb(128, 0, 0);
    1493 }
    1494 
    14951491.section .properties .keyword, .event-properties .keyword {
    14961492    color: rgb(136, 19, 79);
Note: See TracChangeset for help on using the changeset viewer.