Changeset 189011 in webkit


Ignore:
Timestamp:
Aug 26, 2015 9:40:50 PM (9 years ago)
Author:
Nikita Vasilyev
Message:

Web Inspector: [Regression] [Mavericks]: Undocked Web Inspector toolbar is two different colors and has extra space
https://bugs.webkit.org/show_bug.cgi?id=148510

Make body element transparent and remove extra padding above the toolbar only for OS X Mavericks.

Reviewed by Timothy Hatcher.

  • UserInterface/Base/Main.js:

(WebInspector.contentLoaded):

  • UserInterface/Views/Main.css:

(body:not(.mavericks)):
(body): Deleted.

  • UserInterface/Views/Toolbar.css:

(body:not(.mavericks) .toolbar):
(body.window-inactive:not(.mavericks) .toolbar):
(body.mac-platform:not(.docked, .mavericks) .toolbar):
(.toolbar): Deleted.
(body.window-inactive .toolbar): Deleted.
(body.mac-platform:not(.docked) .toolbar): Deleted.

Location:
trunk/Source/WebInspectorUI
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebInspectorUI/ChangeLog

    r189008 r189011  
     12015-08-26  Nikita Vasilyev  <nvasilyev@apple.com>
     2
     3        Web Inspector: [Regression] [Mavericks]: Undocked Web Inspector toolbar is two different colors and has extra space
     4        https://bugs.webkit.org/show_bug.cgi?id=148510
     5
     6        Make body element transparent and remove extra padding above the toolbar only for OS X Mavericks.
     7
     8        Reviewed by Timothy Hatcher.
     9
     10        * UserInterface/Base/Main.js:
     11        (WebInspector.contentLoaded):
     12        * UserInterface/Views/Main.css:
     13        (body:not(.mavericks)):
     14        (body): Deleted.
     15        * UserInterface/Views/Toolbar.css:
     16        (body:not(.mavericks) .toolbar):
     17        (body.window-inactive:not(.mavericks) .toolbar):
     18        (body.mac-platform:not(.docked, .mavericks) .toolbar):
     19        (.toolbar): Deleted.
     20        (body.window-inactive .toolbar): Deleted.
     21        (body.mac-platform:not(.docked) .toolbar): Deleted.
     22
    1232015-08-26  Joseph Pecoraro  <pecoraro@apple.com>
    224
  • trunk/Source/WebInspectorUI/UserInterface/Base/Main.js

    r188993 r189011  
    196196
    197197    if (WebInspector.Platform.name === "mac") {
     198        document.body.classList.add(WebInspector.Platform.version.name);
     199
    198200        if (WebInspector.Platform.version.release >= 11)
    199201            document.body.classList.add("latest-mac");
  • trunk/Source/WebInspectorUI/UserInterface/Views/Main.css

    r188837 r189011  
    3535    font-size: 11px;
    3636
    37     background-color: white;
    38 
    3937    position: absolute;
    4038    top: 0;
     
    5654
    5755    tab-size: 4; /* FIXME: This should be controlled by a setting. <rdar://problem/10593948> */
     56}
     57
     58body:not(.mavericks) {
     59    background-color: white;
    5860}
    5961
  • trunk/Source/WebInspectorUI/UserInterface/Views/Toolbar.css

    r188173 r189011  
    3030    overflow: hidden;
    3131
    32     background-image: linear-gradient(to bottom, hsl(0, 0%, 92%), hsl(0, 0%, 87%));
    33     box-shadow: inset hsla(0, 0%, 100%, 0.5) 0 1px 1px;
    34 
    3532    outline: none;
    3633
     
    4037}
    4138
    42 body.window-inactive .toolbar {
     39body:not(.mavericks) .toolbar {
     40    background-image: linear-gradient(to bottom, hsl(0, 0%, 92%), hsl(0, 0%, 87%));
     41    box-shadow: inset hsla(0, 0%, 100%, 0.5) 0 1px 1px;
     42}
     43
     44body.window-inactive:not(.mavericks) .toolbar {
    4345    background-image: none;
    4446    background-color: hsl(0, 0%, 96%);
    4547}
    4648
    47 body.mac-platform:not(.docked) .toolbar {
     49body.mac-platform:not(.docked, .mavericks) .toolbar {
    4850    padding-top: 21px;
    4951    height: 54px;
Note: See TracChangeset for help on using the changeset viewer.