RESOLVED FIXED Bug 126147
Support <box> values parsing on 'clip-path' property
https://bugs.webkit.org/show_bug.cgi?id=126147
Summary Support <box> values parsing on 'clip-path' property
Dirk Schulze
Reported 2013-12-22 23:32:07 PST
The new syntax of clip-path supports <box> values as specified for background. In addition the keywords 'margin-box' and 'bounding-box' are supported.
Attachments
Patch (14.21 KB, patch)
2013-12-22 23:52 PST, Dirk Schulze
rniwa: review+
Patch (14.09 KB, patch)
2013-12-25 09:34 PST, Dirk Schulze
commit-queue: commit-queue-
Patch (14.09 KB, patch)
2013-12-25 10:01 PST, Dirk Schulze
no flags
Dirk Schulze
Comment 1 2013-12-22 23:52:26 PST
Ryosuke Niwa
Comment 2 2013-12-24 01:23:07 PST
Comment on attachment 219894 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=219894&action=review > Source/WebCore/ChangeLog:13 > + http://dev.w3.org/fxtf/masking/#the-clip-path Could you refer to a specific revision of the specification you used to implement so that we know exactly what the reference point was should the spec change in the future. > Source/WebCore/css/CSSParser.cpp:5929 > + if (!shapeFound && value->unit == CSSParserValue::Function) { > + RefPtr<CSSBasicShape> shapeValue = parseBasicShape(); > + if (!shapeValue) > + return nullptr; > + list->append(cssValuePool().createValue(shapeValue.release())); > + } else if (shapeFound && (isBoxValue(valueId) || valueId == CSSValueBoundingBox)) { > + list->append(parseValidPrimitive(valueId, value)); > + m_valueList->next(); It seems strange to repeat this code given shape and box cannot appear twice. I would refer an approach where we have a loop and guarantee that we run it at most twice, and making sure that shape & box are parsed at most once.
Dirk Schulze
Comment 3 2013-12-25 09:34:16 PST
WebKit Commit Bot
Comment 4 2013-12-25 09:39:18 PST
Comment on attachment 219989 [details] Patch Rejecting attachment 219989 [details] from commit-queue. Failed to run "['/Volumes/Data/EWS/WebKit/Tools/Scripts/webkit-patch', '--status-host=webkit-queues.appspot.com', '--bot-id=webkit-cq-03', 'validate-changelog', '--check-oops', '--non-interactive', 219989, '--port=mac']" exit_code: 1 cwd: /Volumes/Data/EWS/WebKit ChangeLog entry in LayoutTests/ChangeLog contains OOPS!. Full output: http://webkit-queues.appspot.com/results/6429664826359808
Dirk Schulze
Comment 5 2013-12-25 10:01:35 PST
WebKit Commit Bot
Comment 6 2013-12-25 11:00:19 PST
Comment on attachment 219990 [details] Patch Clearing flags on attachment: 219990 Committed r161067: <http://trac.webkit.org/changeset/161067>
WebKit Commit Bot
Comment 7 2013-12-25 11:00:22 PST
All reviewed patches have been landed. Closing bug.
Note You need to log in before you can comment on or make changes to this bug.