Bug 129539 - Fix srcset related bugs
Summary: Fix srcset related bugs
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: New Bugs (show other bugs)
Version: 528+ (Nightly build)
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Nobody
URL:
Keywords:
Depends on: 129570
Blocks:
  Show dependency treegraph
 
Reported: 2014-03-01 02:16 PST by Yoav Weiss
Modified: 2014-03-11 01:52 PDT (History)
6 users (show)

See Also:


Attachments
Patch (14.04 KB, patch)
2014-03-01 02:27 PST, Yoav Weiss
no flags Details | Formatted Diff | Diff
Patch (14.06 KB, patch)
2014-03-01 02:35 PST, Yoav Weiss
no flags Details | Formatted Diff | Diff
Patch (13.84 KB, patch)
2014-03-01 14:42 PST, Yoav Weiss
no flags Details | Formatted Diff | Diff
Patch (13.71 KB, patch)
2014-03-02 06:17 PST, Yoav Weiss
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Yoav Weiss 2014-03-01 02:16:06 PST
Fix srcset related bugs
Comment 1 Yoav Weiss 2014-03-01 02:27:15 PST
Created attachment 225547 [details]
Patch
Comment 2 WebKit Commit Bot 2014-03-01 02:28:50 PST
Attachment 225547 [details] did not pass style-queue:


ERROR: LayoutTests/ChangeLog:7:  Need whitespace between colon and description  [changelog/filechangedescriptionwhitespace] [5]
ERROR: LayoutTests/ChangeLog:8:  Need whitespace between colon and description  [changelog/filechangedescriptionwhitespace] [5]
ERROR: Source/WebCore/ChangeLog:6:  Line contains tab character.  [whitespace/tab] [5]
ERROR: Source/WebCore/ChangeLog:9:  Line contains tab character.  [whitespace/tab] [5]
ERROR: Source/WebCore/ChangeLog:10:  Line contains tab character.  [whitespace/tab] [5]
Total errors found: 5 in 9 files


If any of these errors are false positives, please file a bug against check-webkit-style.
Comment 3 Yoav Weiss 2014-03-01 02:35:39 PST
Created attachment 225548 [details]
Patch
Comment 4 Andreas Kling 2014-03-01 14:24:02 PST
Comment on attachment 225548 [details]
Patch

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

r=me!

> Source/WebCore/html/parser/HTMLParserIdioms.cpp:-401
> -    for (size_t i = 0; i < imageCandidates.size() - 1; ++i) {
> +    for (size_t i = 0; i < imageCandidates.size() - 1; ++i)
>          if (imageCandidates[i].scaleFactor() >= deviceScaleFactor)
>              return imageCandidates[i];
> -    }

WebKit style is to keep the { } braces here since there is more than one line inside the for loop.
Comment 5 Yoav Weiss 2014-03-01 14:42:21 PST
Created attachment 225570 [details]
Patch
Comment 6 WebKit Commit Bot 2014-03-01 15:23:07 PST
Comment on attachment 225570 [details]
Patch

Clearing flags on attachment: 225570

Committed r164929: <http://trac.webkit.org/changeset/164929>
Comment 7 WebKit Commit Bot 2014-03-01 15:23:09 PST
All reviewed patches have been landed.  Closing bug.
Comment 8 Alexey Proskuryakov 2014-03-01 17:29:20 PST
Two tests are crashing after this change:

fast/hidpi/image-srcset-invalid-inputs-except-one.html
fast/hidpi/image-srcset-invalid-inputs.html

http://build.webkit.org/results/Apple%20Mavericks%20Debug%20WK2%20(Tests)/r164933%20(3016)/fast/hidpi/image-srcset-invalid-inputs-except-one-crash-log.txt
Comment 9 Alexey Proskuryakov 2014-03-01 19:49:30 PST
I'll roll out for now. Please note that there was a build fix, <http://trac.webkit.org/changeset/164934>.
Comment 10 WebKit Commit Bot 2014-03-01 19:50:02 PST
Re-opened since this is blocked by bug 129570
Comment 11 Yoav Weiss 2014-03-02 06:17:20 PST
Created attachment 225592 [details]
Patch
Comment 12 Yoav Weiss 2014-03-02 07:55:58 PST
Fixed the ASSERTs. (removed the ASSERT and added an if instead)
Comment 13 WebKit Commit Bot 2014-03-02 14:16:34 PST
Comment on attachment 225592 [details]
Patch

Clearing flags on attachment: 225592

Committed r164949: <http://trac.webkit.org/changeset/164949>
Comment 14 WebKit Commit Bot 2014-03-02 14:16:37 PST
All reviewed patches have been landed.  Closing bug.