Bug 122216 - [CSS Shapes] Implement the shape-image-threshold property
Summary: [CSS Shapes] Implement the shape-image-threshold property
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: CSS (show other bugs)
Version: 528+ (Nightly build)
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Hans Muller
URL:
Keywords:
Depends on:
Blocks: 116348 122254
  Show dependency treegraph
 
Reported: 2013-10-02 09:34 PDT by Hans Muller
Modified: 2013-10-02 18:20 PDT (History)
7 users (show)

See Also:


Attachments
Patch (12.82 KB, patch)
2013-10-02 16:03 PDT, Hans Muller
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Hans Muller 2013-10-02 09:34:04 PDT
The current Shapes implementation, notably Shape::createShape(const StyleImage* styleImage, ...), always uses 0 for this threshold.
Comment 1 Hans Muller 2013-10-02 16:03:27 PDT
Created attachment 213211 [details]
Patch

Added support for the CSS shape-image-threshold property. This change just enables parsing the property, it's not connected to the Shapes code yet. The number valued shape-image-threshold property is defined here: http://dev.w3.org/csswg/css-shapes-1/#shape-image-threshold-property.

Its computed value is clamped to the range [0, 1].
Comment 2 Andreas Kling 2013-10-02 17:05:15 PDT
Comment on attachment 213211 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=213211&action=review

You didn't mark this patch r?, but it looks good to me.

> LayoutTests/fast/shapes/parsing/parsing-shape-image-threshold.html:8
> +<script src="script-tests/parsing-shape-image-threshold.js"></script>

It seems silly to have the test logic in a separate file.
make-new-script-tests generates a single HTML file with everything these days.
Comment 3 Andreas Kling 2013-10-02 17:12:42 PDT
Comment on attachment 213211 [details]
Patch

r=me
Comment 4 Hans Muller 2013-10-02 17:28:06 PDT
(In reply to comment #2)
> (From update of attachment 213211 [details])
> View in context: https://bugs.webkit.org/attachment.cgi?id=213211&action=review

> > LayoutTests/fast/shapes/parsing/parsing-shape-image-threshold.html:8
> > +<script src="script-tests/parsing-shape-image-threshold.js"></script>
> 
> It seems silly to have the test logic in a separate file.
> make-new-script-tests generates a single HTML file with everything these days.

Will make this change in a separate patch: https://bugs.webkit.org/show_bug.cgi?id=122251
Comment 5 WebKit Commit Bot 2013-10-02 17:53:15 PDT
Comment on attachment 213211 [details]
Patch

Clearing flags on attachment: 213211

Committed r156814: <http://trac.webkit.org/changeset/156814>
Comment 6 WebKit Commit Bot 2013-10-02 17:53:18 PDT
All reviewed patches have been landed.  Closing bug.