Changeset 198511 in webkit


Ignore:
Timestamp:
Mar 21, 2016 5:51:43 PM (8 years ago)
Author:
Matt Baker
Message:

Web Inspector: New icon for Heap Allocations timeline
https://bugs.webkit.org/show_bug.cgi?id=155731
<rdar://problem/25275494>

Reviewed by Joseph Pecoraro and Timothy Hatcher.

  • UserInterface/Images/HeapAllocationsInstrument.svg: Added.

New artwork from Jon Davis.

  • UserInterface/Views/TimelineIcons.css:

(.heap-allocations-icon .icon):
(body:not(.mac-platform, .windows-platform) .memory-icon .icon):
(body:not(.mac-platform, .windows-platform) .heap-allocations-icon .icon):
New icon styles/fallbacks for GTK.

  • UserInterface/Views/TimelineTabContentView.js:

(WebInspector.TimelineTabContentView.iconClassNameForTimeline):
Add new icon class to UI helper method.

Location:
trunk/Source/WebInspectorUI
Files:
1 added
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebInspectorUI/ChangeLog

    r198481 r198511  
     12016-03-21  Matt Baker  <mattbaker@apple.com>
     2
     3        Web Inspector: New icon for Heap Allocations timeline
     4        https://bugs.webkit.org/show_bug.cgi?id=155731
     5        <rdar://problem/25275494>
     6
     7        Reviewed by Joseph Pecoraro and Timothy Hatcher.
     8
     9        * UserInterface/Images/HeapAllocationsInstrument.svg: Added.
     10        New artwork from Jon Davis.
     11
     12        * UserInterface/Views/TimelineIcons.css:
     13        (.heap-allocations-icon .icon):
     14        (body:not(.mac-platform, .windows-platform) .memory-icon .icon):
     15        (body:not(.mac-platform, .windows-platform) .heap-allocations-icon .icon):
     16        New icon styles/fallbacks for GTK.
     17
     18        * UserInterface/Views/TimelineTabContentView.js:
     19        (WebInspector.TimelineTabContentView.iconClassNameForTimeline):
     20        Add new icon class to UI helper method.
     21
    1222016-03-20  Dan Bernstein  <mitz@apple.com>
    223
  • trunk/Source/WebInspectorUI/UserInterface/Views/TimelineIcons.css

    r197954 r198511  
    3636}
    3737
     38.heap-allocations-icon .icon {
     39    content: url(../Images/HeapAllocationsInstrument.svg);
     40}
     41
    3842.layout-icon .icon {
    3943    content: url(../Images/LayoutInstrument.svg);
     
    7175body:not(.mac-platform, .windows-platform) .rendering-frame-icon .icon {
    7276    content: -webkit-image-set(url(../Images/Frames.png) 1x, url(../Images/Frames@2x.png) 2x);
     77}
     78
     79body:not(.mac-platform, .windows-platform) .memory-icon .icon {
     80    content: -webkit-image-set(url(../Images/ScriptLarge.png) 1x, url(../Images/ScriptLarge@2x.png) 2x);
     81}
     82
     83body:not(.mac-platform, .windows-platform) .heap-allocations-icon .icon {
     84    content: -webkit-image-set(url(../Images/ScriptLarge.png) 1x, url(../Images/ScriptLarge@2x.png) 2x);
    7385}
    7486
  • trunk/Source/WebInspectorUI/UserInterface/Views/TimelineTabContentView.js

    r197974 r198511  
    138138            return "memory-icon";
    139139        case WebInspector.TimelineRecord.Type.HeapAllocations:
    140             // FIXME: HeapAllocation Timeline needs a new icon.
    141             return "memory-icon";
     140            return "heap-allocations-icon";
    142141        case WebInspector.TimelineRecord.Type.Script:
    143142            return "script-icon";
Note: See TracChangeset for help on using the changeset viewer.