| Summary: | Support <box> values parsing on 'clip-path' property | ||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| Product: | WebKit | Reporter: | Dirk Schulze <krit> | ||||||||
| Component: | CSS | Assignee: | Nobody <webkit-unassigned> | ||||||||
| Status: | RESOLVED FIXED | ||||||||||
| Severity: | Normal | CC: | commit-queue, dino, esprehn+autocc, glenn, gyuyoung.kim, kling, macpherson, menard | ||||||||
| Priority: | P2 | ||||||||||
| Version: | 528+ (Nightly build) | ||||||||||
| Hardware: | Unspecified | ||||||||||
| OS: | Unspecified | ||||||||||
| Bug Depends on: | |||||||||||
| Bug Blocks: | 126207, 126148 | ||||||||||
| Attachments: |
|
||||||||||
|
Description
Dirk Schulze
2013-12-22 23:32:07 PST
Created attachment 219894 [details]
Patch
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. Created attachment 219989 [details]
Patch
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 Created attachment 219990 [details]
Patch
Comment on attachment 219990 [details] Patch Clearing flags on attachment: 219990 Committed r161067: <http://trac.webkit.org/changeset/161067> All reviewed patches have been landed. Closing bug. |