RESOLVED FIXED 141562
[CSS Grid Layout] Remove the usage of Length(Undefined) in GridLength
https://bugs.webkit.org/show_bug.cgi?id=141562
Summary [CSS Grid Layout] Remove the usage of Length(Undefined) in GridLength
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.