RESOLVED FIXED 164821
[CSS Parser] Add @supports, @keyframe and media query parsing options
https://bugs.webkit.org/show_bug.cgi?id=164821
Summary [CSS Parser] Add @supports, @keyframe and media query parsing options
Dave Hyatt
Reported 2016-11-16 08:47:56 PST
[CSS Parser] Add @supports, @keyframe and media query parsing otions
Attachments
Patch (55.83 KB, patch)
2016-11-16 08:59 PST, Dave Hyatt
no flags
Archive of layout-test-results from ews102 for mac-yosemite (1.47 MB, application/zip)
2016-11-16 09:59 PST, Build Bot
no flags
Archive of layout-test-results from ews105 for mac-yosemite-wk2 (1.28 MB, application/zip)
2016-11-16 10:05 PST, Build Bot
no flags
Archive of layout-test-results from ews112 for mac-yosemite (1.84 MB, application/zip)
2016-11-16 10:20 PST, Build Bot
no flags
Patch (67.94 KB, patch)
2016-11-16 13:00 PST, Dave Hyatt
no flags
Patch (69.26 KB, patch)
2016-11-16 13:38 PST, Dave Hyatt
no flags
Patch (69.27 KB, patch)
2016-11-16 14:11 PST, Dave Hyatt
sam: review+
Dave Hyatt
Comment 1 2016-11-16 08:59:26 PST
zalan
Comment 2 2016-11-16 09:23:34 PST
Comment on attachment 294943 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=294943&action=review > Source/WebCore/css/CSSKeyframeRule.cpp:77 > + std::unique_ptr<Vector<double>> keys = CSSParser::parseKeyframeKeyList(keyText); auto? > Source/WebCore/css/MediaList.cpp:138 > + --i; What happens when i == 0?
Build Bot
Comment 3 2016-11-16 09:59:15 PST
Comment on attachment 294943 [details] Patch Attachment 294943 [details] did not pass mac-ews (mac): Output: http://webkit-queues.webkit.org/results/2526271 New failing tests: fast/media/mq-js-media-except-03.html fast/media/mq-invalid-syntax-02.html fast/media/mq-js-stylesheet-media-01.html fast/media/mq-invalid-syntax-05.html fast/media/mq-invalid-syntax-01.html fast/media/mq-js-stylesheet-media-03.html imported/w3c/web-platform-tests/html/semantics/embedded-content/the-img-element/update-the-source-set.html fast/media/mq-js-media-except-02.html fast/media/mq-js-stylesheet-media-02.html fast/media/mq-js-media-forward-syntax.html
Build Bot
Comment 4 2016-11-16 09:59:18 PST
Created attachment 294947 [details] Archive of layout-test-results from ews102 for mac-yosemite The attached test failures were seen while running run-webkit-tests on the mac-ews. Bot: ews102 Port: mac-yosemite Platform: Mac OS X 10.10.5
Build Bot
Comment 5 2016-11-16 10:05:44 PST
Comment on attachment 294943 [details] Patch Attachment 294943 [details] did not pass mac-wk2-ews (mac-wk2): Output: http://webkit-queues.webkit.org/results/2526298 New failing tests: fast/media/mq-js-media-except-03.html fast/media/mq-invalid-syntax-02.html fast/media/mq-js-stylesheet-media-01.html fast/media/mq-invalid-syntax-05.html fast/media/mq-js-stylesheet-media-02.html fast/media/mq-invalid-syntax-01.html fast/media/mq-js-stylesheet-media-03.html fast/media/mq-js-media-except-02.html imported/w3c/web-platform-tests/html/semantics/embedded-content/the-img-element/update-the-source-set.html fast/media/mq-js-media-forward-syntax.html
Build Bot
Comment 6 2016-11-16 10:05:47 PST
Created attachment 294949 [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
Build Bot
Comment 7 2016-11-16 10:20:32 PST
Comment on attachment 294943 [details] Patch Attachment 294943 [details] did not pass mac-debug-ews (mac): Output: http://webkit-queues.webkit.org/results/2526338 New failing tests: fast/media/mq-js-media-except-03.html fast/media/mq-invalid-syntax-02.html fast/media/mq-js-stylesheet-media-01.html fast/media/mq-invalid-syntax-05.html fast/media/mq-invalid-syntax-01.html fast/media/mq-js-stylesheet-media-03.html imported/w3c/web-platform-tests/html/semantics/embedded-content/the-img-element/update-the-source-set.html fast/media/mq-js-media-except-02.html fast/media/mq-js-stylesheet-media-02.html fast/media/mq-js-media-forward-syntax.html
Build Bot
Comment 8 2016-11-16 10:20:35 PST
Created attachment 294950 [details] Archive of layout-test-results from ews112 for mac-yosemite The attached test failures were seen while running run-webkit-tests on the mac-debug-ews. Bot: ews112 Port: mac-yosemite Platform: Mac OS X 10.10.5
Dave Hyatt
Comment 9 2016-11-16 13:00:43 PST
Dave Hyatt
Comment 10 2016-11-16 13:38:34 PST
Dave Hyatt
Comment 11 2016-11-16 14:11:28 PST
Sam Weinig
Comment 12 2016-11-16 15:57:26 PST
Comment on attachment 294975 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=294975&action=review > Source/WebCore/css/CSSKeyframesRule.cpp:77 > + std::unique_ptr<Vector<double>> keys = CSSParser::parseKeyframeKeyList(key); Could use auto here to avoid this mouthful of a type name. > Source/WebCore/css/MediaList.cpp:99 > bool MediaQuerySet::add(const String& queryString) If this and set always return true, can we get rid of the return value? Or should we still be returning false in some cases, like if the media query is invalid? > Source/WebCore/css/MediaList.cpp:193 > + if (!m_mediaQueries->set(value)) > return Exception { SYNTAX_ERR }; Set always returns true, no need for this condition. > Source/WebCore/css/StyleMedia.cpp:70 > + if (!media->set(query)) > return false; Set always returns true, no need for this condition.
Dave Hyatt
Comment 13 2016-11-17 09:29:42 PST
Landed in r208847.
Note You need to log in before you can comment on or make changes to this bug.