Bug 138285 - Support modern range loops over CSSValueList
Summary: Support modern range loops over CSSValueList
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: CSS (show other bugs)
Version: 528+ (Nightly build)
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Chris Dumez
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-11-01 16:00 PDT by Chris Dumez
Modified: 2014-11-03 14:22 PST (History)
5 users (show)

See Also:


Attachments
Patch (50.56 KB, patch)
2014-11-01 18:10 PDT, Chris Dumez
no flags Details | Formatted Diff | Diff
Patch (50.58 KB, patch)
2014-11-01 18:35 PDT, Chris Dumez
no flags Details | Formatted Diff | Diff
Patch (50.57 KB, patch)
2014-11-03 09:08 PST, Chris Dumez
no flags Details | Formatted Diff | Diff
Patch (51.33 KB, patch)
2014-11-03 12:25 PST, 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 2014-11-01 16:00:06 PDT
We should support modern range loops over CSSValueList and kill the custom CSSValueListInspector / CSSValueListIterator classes to modernize the code a bit.
Comment 1 Chris Dumez 2014-11-01 18:10:02 PDT
Created attachment 240798 [details]
Patch
Comment 2 WebKit Commit Bot 2014-11-01 18:11:24 PDT
Attachment 240798 [details] did not pass style-queue:


ERROR: Source/WebCore/css/CSSToStyleMap.cpp:546:  Multi line control clauses should use braces.  [whitespace/braces] [4]
ERROR: Source/WebCore/css/DeprecatedStyleBuilder.cpp:1571:  Weird number of spaces at line-start.  Are you using a 4-space indent?  [whitespace/indent] [3]
Total errors found: 2 in 9 files


If any of these errors are false positives, please file a bug against check-webkit-style.
Comment 3 Chris Dumez 2014-11-01 18:35:08 PDT
Created attachment 240800 [details]
Patch
Comment 4 WebKit Commit Bot 2014-11-01 18:37:36 PDT
Attachment 240800 [details] did not pass style-queue:


ERROR: Source/WebCore/css/CSSToStyleMap.cpp:546:  Multi line control clauses should use braces.  [whitespace/braces] [4]
ERROR: Source/WebCore/css/DeprecatedStyleBuilder.cpp:1571:  Weird number of spaces at line-start.  Are you using a 4-space indent?  [whitespace/indent] [3]
Total errors found: 2 in 9 files


If any of these errors are false positives, please file a bug against check-webkit-style.
Comment 5 Chris Dumez 2014-11-03 09:08:09 PST
Created attachment 240856 [details]
Patch
Comment 6 WebKit Commit Bot 2014-11-03 09:09:47 PST
Attachment 240856 [details] did not pass style-queue:


ERROR: Source/WebCore/css/CSSToStyleMap.cpp:546:  Multi line control clauses should use braces.  [whitespace/braces] [4]
ERROR: Source/WebCore/css/DeprecatedStyleBuilder.cpp:1530:  Weird number of spaces at line-start.  Are you using a 4-space indent?  [whitespace/indent] [3]
Total errors found: 2 in 9 files


If any of these errors are false positives, please file a bug against check-webkit-style.
Comment 7 Andreas Kling 2014-11-03 12:03:03 PST
Comment on attachment 240856 [details]
Patch

r=me
Comment 8 Chris Dumez 2014-11-03 12:25:44 PST
Created attachment 240867 [details]
Patch
Comment 9 WebKit Commit Bot 2014-11-03 12:27:50 PST
Attachment 240867 [details] did not pass style-queue:


ERROR: Source/WebCore/css/CSSToStyleMap.cpp:546:  Multi line control clauses should use braces.  [whitespace/braces] [4]
ERROR: Source/WebCore/css/DeprecatedStyleBuilder.cpp:1530:  Weird number of spaces at line-start.  Are you using a 4-space indent?  [whitespace/indent] [3]
Total errors found: 2 in 10 files


If any of these errors are false positives, please file a bug against check-webkit-style.
Comment 10 WebKit Commit Bot 2014-11-03 12:48:18 PST
Comment on attachment 240867 [details]
Patch

Clearing flags on attachment: 240867

Committed r175487: <http://trac.webkit.org/changeset/175487>
Comment 11 WebKit Commit Bot 2014-11-03 12:48:23 PST
All reviewed patches have been landed.  Closing bug.
Comment 12 Chris Dumez 2014-11-03 14:20:22 PST
Comment on attachment 240867 [details]
Patch

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

> Source/WebCore/css/StyleResolver.cpp:2037
> +    ASSERT(it != values.end());

arf. This should be it == values.end(), my bad. will fix now.
Comment 13 Chris Dumez 2014-11-03 14:22:40 PST
(In reply to comment #12)
> Comment on attachment 240867 [details]
> Patch
> 
> View in context:
> https://bugs.webkit.org/attachment.cgi?id=240867&action=review
> 
> > Source/WebCore/css/StyleResolver.cpp:2037
> > +    ASSERT(it != values.end());
> 
> arf. This should be it == values.end(), my bad. will fix now.

Landed assertion fix in <http://trac.webkit.org/changeset/175490>.