Bug 141562

Summary: [CSS Grid Layout] Remove the usage of Length(Undefined) in GridLength
Product: WebKit Reporter: Sergio Villar Senin <svillar>
Component: CSSAssignee: Sergio Villar Senin <svillar>
Status: RESOLVED FIXED    
Severity: Normal CC: cdumez, darin, kling, koivisto, svillar
Priority: P2 Keywords: BlinkMergeCandidate
Version: 528+ (Nightly build)   
Hardware: Unspecified   
OS: Unspecified   
Bug Depends on:    
Bug Blocks: 140763    
Attachments:
Description Flags
Patch cdumez: review+

Sergio Villar Senin
Reported 2015-02-13 07:19:50 PST
From Blink's r164154 "Neither of createGridTrackSize() nor createGridTrackBreadth() should be able to fail, so these are changed to return objects directly instead of taking an out reference (note that in general failing in applying properties is incorrect and we should catch these in the parser)."
Attachments
Patch (15.00 KB, patch)
2015-02-13 08:17 PST, Sergio Villar Senin
cdumez: review+
Sergio Villar Senin
Comment 1 2015-02-13 08:17:45 PST
Chris Dumez
Comment 2 2015-02-13 12:32:51 PST
Comment on attachment 246527 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=246527&action=review r=me > Source/WebCore/rendering/style/GridTrackSize.h:73 > + DEPRECATED_DEFINE_STATIC_LOCAL(GridLength, minContent, (Length(MinContent))); It is the opportunity to use a NeverDestroyed<>. > Source/WebCore/rendering/style/GridTrackSize.h:82 > + DEPRECATED_DEFINE_STATIC_LOCAL(GridLength, maxContent, (Length(MaxContent))); It is the opportunity to use a NeverDestroyed<>.
Sergio Villar Senin
Comment 3 2015-02-16 01:42:42 PST
Note You need to log in before you can comment on or make changes to this bug.