Bug 113726

Summary: [CSS Exclusions] Add support for the simple case of shape-margin polygonal shape-outside
Product: WebKit Reporter: Hans Muller <giles_joplin>
Component: CSSAssignee: Hans Muller <giles_joplin>
Status: RESOLVED FIXED    
Severity: Normal CC: bjonesbe, commit-queue, eric, esprehn+autocc, ojan.autocc, webkit.review.bot
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: Unspecified   
OS: Unspecified   
Bug Depends on:    
Bug Blocks: 112917    
Attachments:
Description Flags
Polygonal shape-margin illustration.
none
Patch none

Description Hans Muller 2013-04-01 15:36:13 PDT
Compute the margin boundary of a polygon for the simple cases where the polygon is either convex, or the margin boundary has the same shape as the original polygon boundary.

This simplification is a first provisional step, similar to the one introduced for shape-padding.  See https://bugs.webkit.org/show_bug.cgi?id=112592.
Comment 1 Hans Muller 2013-04-03 20:08:22 PDT
Created attachment 196433 [details]
Polygonal shape-margin illustration.

The attached screenshot illustrates the margin-polygon for a polygonal shape. The edges of the (larger outer) margin-polygon are separated from the polygon by a  shape-margin value of about 100px.   Linear approximations to circular arcs join adjacent margin-polygon offset edges when the corresponding polygon edges do not meet at a reflex vertex.
Comment 2 Hans Muller 2013-04-05 14:58:47 PDT
Created attachment 196685 [details]
Patch
Comment 3 Dirk Schulze 2013-04-05 16:24:42 PDT
Comment on attachment 196685 [details]
Patch

LGTM. r=me.
Comment 4 WebKit Commit Bot 2013-04-05 21:19:35 PDT
Comment on attachment 196685 [details]
Patch

Clearing flags on attachment: 196685

Committed r147831: <http://trac.webkit.org/changeset/147831>
Comment 5 WebKit Commit Bot 2013-04-05 21:19:37 PDT
All reviewed patches have been landed.  Closing bug.