RESOLVED FIXED 190657
Parse paint() and store paint callbacks for CSS Painting API
https://bugs.webkit.org/show_bug.cgi?id=190657
Summary Parse paint() and store paint callbacks for CSS Painting API
Justin Michaud
Reported 2018-10-16 22:37:22 PDT
Implement support for parsing paint() images in css, and store CSS paint callback objects in the paint definition map.
Attachments
Patch (25.22 KB, patch)
2018-10-16 23:10 PDT, Justin Michaud
no flags
Patch (24.71 KB, patch)
2018-10-17 10:53 PDT, Justin Michaud
no flags
Patch (25.29 KB, patch)
2018-10-17 15:26 PDT, Justin Michaud
no flags
Patch (25.31 KB, patch)
2018-10-17 15:51 PDT, Justin Michaud
no flags
Justin Michaud
Comment 1 2018-10-16 23:10:17 PDT
Justin Michaud
Comment 2 2018-10-17 10:53:12 PDT
Justin Michaud
Comment 3 2018-10-17 15:26:35 PDT
Dean Jackson
Comment 4 2018-10-17 15:37:48 PDT
Comment on attachment 352652 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=352652&action=review > Source/WebCore/css/CSSImageGeneratorValue.cpp:155 > + return nullptr; Not essential, but it seems you'll need to implement image() isFixedSize() fixedSize() isPending() and knownToBeOpaque() anyway, so maybe you should do that now with stubs? > Source/WebCore/css/parser/CSSPropertyParserHelpers.cpp:1294 > + // FIXME: should parse arguments Nit: . > Source/WebCore/css/parser/CSSPropertyParserHelpers.cpp:1296 > + while (!args.atEnd()) > + args.consume(); Should you return nullptr if there are arguments for now? I guess not. > Source/WebCore/platform/mediastream/mac/RealtimeVideoUtilities.h:27 > +#pragma once > + Wow :)
Justin Michaud
Comment 5 2018-10-17 15:51:51 PDT
WebKit Commit Bot
Comment 6 2018-10-17 19:47:07 PDT
Comment on attachment 352656 [details] Patch Clearing flags on attachment: 352656 Committed r237243: <https://trac.webkit.org/changeset/237243>
WebKit Commit Bot
Comment 7 2018-10-17 19:47:09 PDT
All reviewed patches have been landed. Closing bug.
Radar WebKit Bug Importer
Comment 8 2018-10-17 19:48:23 PDT
Emilio Cobos Álvarez (:emilio)
Comment 9 2018-10-18 02:01:01 PDT
Comment on attachment 352656 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=352656&action=review > Source/WebCore/css/CSSPaintImageValue.cpp:40 > + result.append(m_name); Drive-by, but I think this needs to be escaped as an identifier. I'm ~sure this would yield wrong results for stuff like paint(foo\ bar).
Note You need to log in before you can comment on or make changes to this bug.