[Webkit-unassigned] [Bug 126147] Support <box> values parsing on 'clip-path' property

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Tue Dec 24 01:25:08 PST 2013


https://bugs.webkit.org/show_bug.cgi?id=126147


Ryosuke Niwa <rniwa at webkit.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
 Attachment #219894|review?                     |review+
               Flag|                            |




--- Comment #2 from Ryosuke Niwa <rniwa at webkit.org>  2013-12-24 01:23:07 PST ---
(From update of attachment 219894)
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.

-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the webkit-unassigned mailing list