Bug 160158 - [css-grid] grid-auto-flow|row should take a <track-size>+
Summary: [css-grid] grid-auto-flow|row should take a <track-size>+
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: New Bugs (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Sergio Villar Senin
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-07-25 02:52 PDT by Sergio Villar Senin
Modified: 2016-07-26 02:39 PDT (History)
7 users (show)

See Also:


Attachments
Patch (40.26 KB, patch)
2016-07-25 03:35 PDT, Sergio Villar Senin
no flags Details | Formatted Diff | Diff
Archive of layout-test-results from ews103 for mac-yosemite (947.74 KB, application/zip)
2016-07-25 04:29 PDT, Build Bot
no flags Details
Archive of layout-test-results from ews105 for mac-yosemite-wk2 (830.76 KB, application/zip)
2016-07-25 04:31 PDT, Build Bot
no flags Details
Archive of layout-test-results from ews115 for mac-yosemite (1.45 MB, application/zip)
2016-07-25 04:43 PDT, Build Bot
no flags Details
Patch (42.58 KB, patch)
2016-07-25 06:37 PDT, Sergio Villar Senin
darin: review+
Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Sergio Villar Senin 2016-07-25 02:52:23 PDT
[css-grid] grid-auto-flow|row should take a <track-size>+
Comment 1 Sergio Villar Senin 2016-07-25 03:35:13 PDT
Created attachment 284471 [details]
Patch
Comment 2 WebKit Commit Bot 2016-07-25 03:37:26 PDT
Attachment 284471 [details] did not pass style-queue:


ERROR: Source/WebCore/css/CSSParser.h:246:  'parseGridTrackList' is incorrectly named. It should be named 'protector' or 'protectedTrackListType'.  [readability/naming/protected] [4]
Total errors found: 1 in 14 files


If any of these errors are false positives, please file a bug against check-webkit-style.
Comment 3 Build Bot 2016-07-25 04:29:30 PDT
Comment on attachment 284471 [details]
Patch

Attachment 284471 [details] did not pass mac-ews (mac):
Output: http://webkit-queues.webkit.org/results/1750408

New failing tests:
svg/css/getComputedStyle-basic.xhtml
Comment 4 Build Bot 2016-07-25 04:29:35 PDT
Created attachment 284473 [details]
Archive of layout-test-results from ews103 for mac-yosemite

The attached test failures were seen while running run-webkit-tests on the mac-ews.
Bot: ews103  Port: mac-yosemite  Platform: Mac OS X 10.10.5
Comment 5 Build Bot 2016-07-25 04:31:42 PDT
Comment on attachment 284471 [details]
Patch

Attachment 284471 [details] did not pass mac-wk2-ews (mac-wk2):
Output: http://webkit-queues.webkit.org/results/1750410

New failing tests:
svg/css/getComputedStyle-basic.xhtml
Comment 6 Build Bot 2016-07-25 04:31:46 PDT
Created attachment 284474 [details]
Archive of layout-test-results from ews105 for mac-yosemite-wk2

The attached test failures were seen while running run-webkit-tests on the mac-wk2-ews.
Bot: ews105  Port: mac-yosemite-wk2  Platform: Mac OS X 10.10.5
Comment 7 Build Bot 2016-07-25 04:42:56 PDT
Comment on attachment 284471 [details]
Patch

Attachment 284471 [details] did not pass mac-debug-ews (mac):
Output: http://webkit-queues.webkit.org/results/1750424

New failing tests:
svg/css/getComputedStyle-basic.xhtml
Comment 8 Build Bot 2016-07-25 04:43:00 PDT
Created attachment 284475 [details]
Archive of layout-test-results from ews115 for mac-yosemite

The attached test failures were seen while running run-webkit-tests on the mac-debug-ews.
Bot: ews115  Port: mac-yosemite  Platform: Mac OS X 10.10.5
Comment 9 Sergio Villar Senin 2016-07-25 06:37:55 PDT
Created attachment 284481 [details]
Patch

There was 1 test in svg checking the types of the computed style objects
Comment 10 WebKit Commit Bot 2016-07-25 06:47:26 PDT
Attachment 284481 [details] did not pass style-queue:


ERROR: Source/WebCore/css/CSSParser.h:246:  'parseGridTrackList' is incorrectly named. It should be named 'protector' or 'protectedTrackListType'.  [readability/naming/protected] [4]
Total errors found: 1 in 15 files


If any of these errors are false positives, please file a bug against check-webkit-style.
Comment 11 Darin Adler 2016-07-25 09:37:10 PDT
Comment on attachment 284481 [details]
Patch

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

> Source/WebCore/css/StyleBuilderConverter.h:1006
> +    Vector<GridTrackSize> trackSizes;
> +    for (auto& currValue : downcast<CSSValueList>(value)) {
> +        ASSERT(!currValue->isGridLineNamesValue());
> +        ASSERT(!currValue->isGridAutoRepeatValue());
> +        trackSizes.append(convertGridTrackSize(styleResolver, currValue));
> +    }
> +    return trackSizes;

A more efficient idiom would be to call reserveInitialCapacity and then use uncheckedAppend.
Comment 12 Chris Dumez 2016-07-25 09:41:20 PDT
Comment on attachment 284481 [details]
Patch

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

> Source/WebCore/css/CSSComputedStyleDeclaration.cpp:1121
> +    return WTFMove(list);

Could we update the function to return a Ref<CSSValueList> and stop using WTFMove() here?
Comment 13 Sergio Villar Senin 2016-07-26 02:14:17 PDT
Comment on attachment 284481 [details]
Patch

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

>> Source/WebCore/css/CSSComputedStyleDeclaration.cpp:1121
>> +    return WTFMove(list);
> 
> Could we update the function to return a Ref<CSSValueList> and stop using WTFMove() here?

Sure

>> Source/WebCore/css/StyleBuilderConverter.h:1006
>> +    return trackSizes;
> 
> A more efficient idiom would be to call reserveInitialCapacity and then use uncheckedAppend.

Indeed, I'll update it before landing
Comment 14 Sergio Villar Senin 2016-07-26 02:39:00 PDT
Committed r203716: <http://trac.webkit.org/changeset/203716>