WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
127010
[CSS Shapes] Basic shapes' computed position should be a horizontal and vertical offset
https://bugs.webkit.org/show_bug.cgi?id=127010
Summary
[CSS Shapes] Basic shapes' computed position should be a horizontal and verti...
Bear Travis
Reported
2014-01-14 14:07:45 PST
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.
Attachments
Initial Patch
(43.73 KB, patch)
2014-01-14 14:31 PST
,
Bear Travis
no flags
Details
Formatted Diff
Diff
Fixing Changelog
(43.74 KB, patch)
2014-01-14 14:39 PST
,
Bear Travis
rwlbuis
: review+
buildbot
: commit-queue-
Details
Formatted Diff
Diff
Renaming Direction Types
(42.87 KB, patch)
2014-01-16 12:07 PST
,
Bear Travis
buildbot
: commit-queue-
Details
Formatted Diff
Diff
Fixing up unused params
(43.76 KB, patch)
2014-01-16 17:13 PST
,
Bear Travis
no flags
Details
Formatted Diff
Diff
Show Obsolete
(3)
View All
Add attachment
proposed patch, testcase, etc.
Bear Travis
Comment 1
2014-01-14 14:31:32 PST
Created
attachment 221203
[details]
Initial Patch
WebKit Commit Bot
Comment 2
2014-01-14 14:33:44 PST
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.
Bear Travis
Comment 3
2014-01-14 14:39:29 PST
Created
attachment 221205
[details]
Fixing Changelog
Build Bot
Comment 4
2014-01-14 20:13:50 PST
Comment on
attachment 221205
[details]
Fixing Changelog
Attachment 221205
[details]
did not pass mac-ews (mac): Output:
http://webkit-queues.appspot.com/results/5156392377778176
Build Bot
Comment 5
2014-01-14 21:12:11 PST
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
Rob Buis
Comment 6
2014-01-15 07:00:42 PST
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?
Rob Buis
Comment 7
2014-01-16 07:23:38 PST
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.
Bear Travis
Comment 8
2014-01-16 12:07:30 PST
Created
attachment 221398
[details]
Renaming Direction Types Renamed to TopLeft and BottomRight.
Build Bot
Comment 9
2014-01-16 12:33:18 PST
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
Build Bot
Comment 10
2014-01-16 12:58:44 PST
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
Bear Travis
Comment 11
2014-01-16 17:13:53 PST
Created
attachment 221430
[details]
Fixing up unused params
WebKit Commit Bot
Comment 12
2014-01-17 12:09:18 PST
Comment on
attachment 221430
[details]
Fixing up unused params Clearing flags on attachment: 221430 Committed
r162210
: <
http://trac.webkit.org/changeset/162210
>
WebKit Commit Bot
Comment 13
2014-01-17 12:09:22 PST
All reviewed patches have been landed. Closing bug.
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug