Bug 143306 - Streamline icon-related code, mostly unused
Summary: Streamline icon-related code, mostly unused
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: Page Loading (show other bugs)
Version: 528+ (Nightly build)
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Darin Adler
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-04-01 08:42 PDT by Darin Adler
Modified: 2015-04-04 19:43 PDT (History)
8 users (show)

See Also:


Attachments
Patch (59.68 KB, patch)
2015-04-02 08:47 PDT, Darin Adler
no flags Details | Formatted Diff | Diff
Patch (56.32 KB, patch)
2015-04-02 09:45 PDT, Darin Adler
no flags Details | Formatted Diff | Diff
Archive of layout-test-results from ews102 for mac-mavericks (527.59 KB, application/zip)
2015-04-02 10:28 PDT, Build Bot
no flags Details
Archive of layout-test-results from ews106 for mac-mavericks-wk2 (584.90 KB, application/zip)
2015-04-02 10:58 PDT, Build Bot
no flags Details
Patch (60.21 KB, patch)
2015-04-02 19:43 PDT, Darin Adler
koivisto: review+
Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Darin Adler 2015-04-01 08:42:03 PDT
Streamline icon-related code, mostly unused
Comment 1 Darin Adler 2015-04-02 08:47:51 PDT
Created attachment 249980 [details]
Patch
Comment 2 Darin Adler 2015-04-02 09:45:08 PDT
Created attachment 249986 [details]
Patch
Comment 3 Build Bot 2015-04-02 10:28:42 PDT
Comment on attachment 249986 [details]
Patch

Attachment 249986 [details] did not pass mac-ews (mac):
Output: http://webkit-queues.appspot.com/results/6456446019436544

New failing tests:
fast/dom/icon-url-list.html
fast/dom/icon-url-list-apple-touch.html
Comment 4 Build Bot 2015-04-02 10:28:46 PDT
Created attachment 249990 [details]
Archive of layout-test-results from ews102 for mac-mavericks

The attached test failures were seen while running run-webkit-tests on the mac-ews.
Bot: ews102  Port: mac-mavericks  Platform: Mac OS X 10.9.5
Comment 5 Build Bot 2015-04-02 10:58:11 PDT
Comment on attachment 249986 [details]
Patch

Attachment 249986 [details] did not pass mac-wk2-ews (mac-wk2):
Output: http://webkit-queues.appspot.com/results/5134296171937792

New failing tests:
fast/dom/icon-url-list.html
fast/dom/icon-url-list-apple-touch.html
Comment 6 Build Bot 2015-04-02 10:58:13 PDT
Created attachment 249996 [details]
Archive of layout-test-results from ews106 for mac-mavericks-wk2

The attached test failures were seen while running run-webkit-tests on the mac-wk2-ews.
Bot: ews106  Port: mac-mavericks-wk2  Platform: Mac OS X 10.9.5
Comment 7 Darin Adler 2015-04-02 12:41:19 PDT
Comment on attachment 249986 [details]
Patch

Oops, looks like I uploaded a partial patch *without* the changes to LayoutTests. That’s why tests are failing.
Comment 8 Darin Adler 2015-04-02 19:43:33 PDT
Created attachment 250031 [details]
Patch
Comment 9 Darin Adler 2015-04-03 07:14:57 PDT
Ready to review now. All the tests are passing now.
Comment 10 Antti Koivisto 2015-04-03 08:17:36 PDT
Comment on attachment 250031 [details]
Patch

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

> Source/WebCore/ChangeLog:20
> +        time, with some small exceptoins, icon logic is in the web browsers, not in WebKit.

typo "exceptoins"

> Source/WebCore/dom/IconURL.h:38
>  enum IconType {

enum class would be nice

> Source/WebCore/html/LinkRelAttribute.h:41
> +    bool isStyleSheet { false };

I have been wondering if we should use { false } or { }. So far I have stayed with the former though it is redundant.
Comment 11 Antti Koivisto 2015-04-03 08:24:55 PDT
Comment on attachment 250031 [details]
Patch

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

> Source/WebCore/loader/icon/IconController.cpp:55
> +enum LinkElementSelector { AllLinkElements, LinkElementsWithMIMETypes };

enum class SelectLinkElements { All, WithMIMEType }?
Comment 12 Darin Adler 2015-04-03 13:12:59 PDT
Comment on attachment 250031 [details]
Patch

OK. I’ll make some changes tonight before I land this.
Comment 13 Darin Adler 2015-04-04 17:56:15 PDT
Comment on attachment 250031 [details]
Patch

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

>> Source/WebCore/dom/IconURL.h:38
>>  enum IconType {
> 
> enum class would be nice

This was a little inconvenient to do quickly. I’m going to wait on that for a later patch.
Comment 14 Darin Adler 2015-04-04 18:02:40 PDT
Committed r182351: <http://trac.webkit.org/changeset/182351>
Comment 15 Gyuyoung Kim 2015-04-04 19:43:24 PDT
(In reply to comment #14)
> Committed r182351: <http://trac.webkit.org/changeset/182351>

It looks all ports build have broken since r182351. I upload a fix to Bug 143408.