The computed values for basic shape positions should be a horizontal (left) and vertical (top) offset. Bottom, right, and center coordinates can be converted to these based on a percentage (50% or 100%) and their original offsets. This initial work will transition over to a calc value for blending, but use the original format for blending, omitting values where possible when serializing.
Created attachment 221203 [details] Initial Patch
Attachment 221203 [details] did not pass style-queue: Failed to run "['Tools/Scripts/check-webkit-style', '--diff-files', u'LayoutTests/ChangeLog', u'LayoutTests/animations/resources/animation-test-helpers.js', u'LayoutTests/fast/shapes/parsing/parsing-shape-inside-expected.txt', u'LayoutTests/fast/shapes/parsing/parsing-shape-outside-expected.txt', u'LayoutTests/fast/shapes/parsing/parsing-test-utils.js', u'LayoutTests/fast/shapes/shape-outside-floats/shape-outside-animation-expected.txt', u'LayoutTests/fast/shapes/shape-outside-floats/shape-outside-animation.html', u'Source/WebCore/ChangeLog', u'Source/WebCore/css/BasicShapeFunctions.cpp', u'Source/WebCore/page/animation/CSSPropertyAnimation.cpp', u'Source/WebCore/rendering/style/BasicShapes.cpp', u'Source/WebCore/rendering/style/BasicShapes.h', '--commit-queue']" exit_code: 1 ERROR: LayoutTests/ChangeLog:8: Line contains tab character. [whitespace/tab] [5] Total errors found: 1 in 12 files If any of these errors are false positives, please file a bug against check-webkit-style.
Created attachment 221205 [details] Fixing Changelog
Comment on attachment 221205 [details] Fixing Changelog Attachment 221205 [details] did not pass mac-ews (mac): Output: http://webkit-queues.appspot.com/results/5156392377778176
Comment on attachment 221205 [details] Fixing Changelog Attachment 221205 [details] did not pass mac-wk2-ews (mac-wk2): Output: http://webkit-queues.appspot.com/results/5076589335281664
Comment on attachment 221205 [details] Fixing Changelog View in context: https://bugs.webkit.org/attachment.cgi?id=221205&action=review Looks good overall, glad to see RenderBox params go. As you see I just have some questions left. > Source/WebCore/rendering/style/BasicShapes.h:128 > + Flipped I am not sure that is the best naming. Why would top/left be the default? Maybe "Normal" is better? > LayoutTests/fast/shapes/shape-outside-floats/shape-outside-animation-expected.txt:26 > +PASS - "webkitShapeOutside" property for "circle-to-bottomright-extended-using-keyword-2-box" element at 1s saw something close to: circle(35% at calc((50% * 0.5) + ((100% - 10%) * 0.5)) calc((50% * 0.5) + ((100% - 10px) * 0.5))) The calc() stuff takes some getting used to :) How does calc() know what box (border/content/etc) to apply the calculations to?
Comment on attachment 221205 [details] Fixing Changelog astearns pointed out on irc that my reference box calculation comment is invalid. That only leaves the naming, which I encourage you to have a look at before landing.
Created attachment 221398 [details] Renaming Direction Types Renamed to TopLeft and BottomRight.
Comment on attachment 221398 [details] Renaming Direction Types Attachment 221398 [details] did not pass mac-wk2-ews (mac-wk2): Output: http://webkit-queues.appspot.com/results/5298898050482176
Comment on attachment 221398 [details] Renaming Direction Types Attachment 221398 [details] did not pass mac-ews (mac): Output: http://webkit-queues.appspot.com/results/4767758436794368
Created attachment 221430 [details] Fixing up unused params
Comment on attachment 221430 [details] Fixing up unused params Clearing flags on attachment: 221430 Committed r162210: <http://trac.webkit.org/changeset/162210>
All reviewed patches have been landed. Closing bug.