Bug 150474 - Web Inspector: Remove generateColoredImagesForCSS and its clients
Summary: Web Inspector: Remove generateColoredImagesForCSS and its clients
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: Web Inspector (show other bugs)
Version: WebKit Local Build
Hardware: All All
: P2 Normal
Assignee: Timothy Hatcher
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2015-10-22 14:11 PDT by Timothy Hatcher
Modified: 2015-11-18 07:34 PST (History)
9 users (show)

See Also:


Attachments
Patch (Needs GTK Images Fixed) (60.21 KB, patch)
2015-10-22 14:17 PDT, Timothy Hatcher
no flags Details | Formatted Diff | Diff
Patch (79.43 KB, patch)
2015-10-22 17:03 PDT, Timothy Hatcher
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Timothy Hatcher 2015-10-22 14:11:17 PDT
We can use SVG directly, avoid the canvas bitmaps and avoid high startup costs.
Comment 1 Radar WebKit Bug Importer 2015-10-22 14:12:11 PDT
<rdar://problem/23224909>
Comment 2 Timothy Hatcher 2015-10-22 14:17:38 PDT
Created attachment 263864 [details]
Patch (Needs GTK Images Fixed)
Comment 3 Joseph Pecoraro 2015-10-22 14:34:34 PDT
Comment on attachment 263864 [details]
Patch (Needs GTK Images Fixed)

View in context: https://bugs.webkit.org/attachment.cgi?id=263864&action=review

r=me

> Source/WebInspectorUI/UserInterface/Images/BackForwardArrows.svg:17
> +        svg[id $= "-mask"] {

Nit: These spaces look weird. I'm used to seeing these without spaces (e.g. input[type="search"]).

> Source/WebInspectorUI/UserInterface/Views/ObjectTreePropertyTreeElement.css:200
>  .object-tree-property .read-only {
>      content: url(../Images/Locked.svg);
> -    opacity: 0.5;
>  
>      width: 8px;
>      height: 10px;

Err, I think you can actually get rid of this entire group. I think we only show icons now for getter/setter. I don't see us setting "read-only" class on anything in ObjectTrees.
Comment 4 Timothy Hatcher 2015-10-22 17:03:27 PDT
Created attachment 263879 [details]
Patch
Comment 5 Devin Rousso 2015-10-22 17:12:28 PDT
Comment on attachment 263879 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=263879&action=review

> Source/WebInspectorUI/UserInterface/Views/ConsoleMessageView.css:80
> +    background-image: url(../Images/DisclosureTriangles.svg#closed-normal);

I did not know that you could select particular elements with "background-image: url(...)".  That is crazy cool.
Comment 6 Joseph Pecoraro 2015-10-22 17:17:31 PDT
Comment on attachment 263879 [details]
Patch

r=me, nice getting rid of Tiny disclosure Trianges
Comment 7 WebKit Commit Bot 2015-10-22 18:11:10 PDT
Comment on attachment 263879 [details]
Patch

Clearing flags on attachment: 263879

Committed r191488: <http://trac.webkit.org/changeset/191488>
Comment 8 WebKit Commit Bot 2015-10-22 18:11:15 PDT
All reviewed patches have been landed.  Closing bug.
Comment 9 Andres Gomez Garcia 2015-11-18 07:34:33 PST
Thanks for this patch and taking care of GTK+ icons! :)