Bug 149847 - Refactor TokenPreloadScanner::StartTagScanner::processAttribute()
Summary: Refactor TokenPreloadScanner::StartTagScanner::processAttribute()
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: Page Loading (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Chris Dumez
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-10-06 09:36 PDT by Chris Dumez
Modified: 2015-10-06 13:41 PDT (History)
5 users (show)

See Also:


Attachments
Patch (4.54 KB, patch)
2015-10-06 09:41 PDT, Chris Dumez
no flags Details | Formatted Diff | Diff
Patch (4.91 KB, patch)
2015-10-06 13:17 PDT, Chris Dumez
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Chris Dumez 2015-10-06 09:36:29 PDT
Refactor TokenPreloadScanner::StartTagScanner::processAttribute() to only process attributes that make sense given the current tagId.
Comment 1 Chris Dumez 2015-10-06 09:41:35 PDT
Created attachment 262517 [details]
Patch
Comment 2 Antti Koivisto 2015-10-06 12:12:13 PDT
Comment on attachment 262517 [details]
Patch

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

> Source/WebCore/html/parser/HTMLPreloadScanner.cpp:155
> +            FALLTHROUGH;

It would be nicer to factor common things into a function rather than doing Img->Script fallthrough.
Comment 3 Chris Dumez 2015-10-06 13:17:28 PDT
Created attachment 262542 [details]
Patch
Comment 4 WebKit Commit Bot 2015-10-06 13:41:23 PDT
Comment on attachment 262542 [details]
Patch

Clearing flags on attachment: 262542

Committed r190641: <http://trac.webkit.org/changeset/190641>
Comment 5 WebKit Commit Bot 2015-10-06 13:41:28 PDT
All reviewed patches have been landed.  Closing bug.