WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
125536
[CSS Shapes] Simplify RectangleShape implementation
https://bugs.webkit.org/show_bug.cgi?id=125536
Summary
[CSS Shapes] Simplify RectangleShape implementation
Hans Muller
Reported
2013-12-10 12:54:37 PST
Instead of caching FloatRoundedRect values, just compute them as needed. Rename RectangleShape to EllipseShape, to better reflect its use.
Attachments
Patch
(17.52 KB, patch)
2013-12-10 15:29 PST
,
Hans Muller
kling
: review+
commit-queue
: commit-queue-
Details
Formatted Diff
Diff
Patch
(18.00 KB, patch)
2013-12-18 14:52 PST
,
Hans Muller
no flags
Details
Formatted Diff
Diff
Show Obsolete
(1)
View All
Add attachment
proposed patch, testcase, etc.
Hans Muller
Comment 1
2013-12-10 15:09:48 PST
To reduce the size of this patch I've left out the BoxShape changes. I also decided not to change the name of the RectangleShape class, since rectangle and inset-rectangle still exist.
Hans Muller
Comment 2
2013-12-10 15:29:05 PST
Created
attachment 218914
[details]
Patch Instead of caching an instance of a private FloatRoundedRect (ish) class for RectangleShape's shape-margin and shape-padding bounds, we just compute the FloatRect and radii as needed. This reduces the classes footprint a little and it simplifies the implementation. Removed the private RectangleShape::ShapeBounds class and made its cornerInterceptForWidth() method a static function. Added members for the RectangleShape constructor args, and private getters for their properties. There are no new tests because this is just an internal refactoring.
WebKit Commit Bot
Comment 3
2013-12-18 10:48:58 PST
Comment on
attachment 218914
[details]
Patch Rejecting
attachment 218914
[details]
from commit-queue. Failed to run "['/Volumes/Data/EWS/WebKit/Tools/Scripts/webkit-patch', '--status-host=webkit-queues.appspot.com', '--bot-id=webkit-cq-02', 'apply-attachment', '--no-update', '--non-interactive', 218914, '--port=mac']" exit_code: 2 cwd: /Volumes/Data/EWS/WebKit Last 500 characters of output: ng file Source/WebCore/rendering/shapes/RectangleShape.cpp Hunk #7 FAILED at 218. 1 out of 7 hunks FAILED -- saving rejects to file Source/WebCore/rendering/shapes/RectangleShape.cpp.rej patching file Source/WebCore/rendering/shapes/RectangleShape.h Hunk #2 succeeded at 58 with fuzz 1. patching file Source/WebCore/rendering/shapes/Shape.cpp Failed to run "[u'/Volumes/Data/EWS/WebKit/Tools/Scripts/svn-apply', '--force', '--reviewer', u'Andreas Kling']" exit_code: 1 cwd: /Volumes/Data/EWS/WebKit Full output:
http://webkit-queues.appspot.com/results/48798030
Hans Muller
Comment 4
2013-12-18 14:52:42 PST
Created
attachment 219573
[details]
Patch Resync.
WebKit Commit Bot
Comment 5
2013-12-18 15:30:43 PST
Comment on
attachment 219573
[details]
Patch Clearing flags on attachment: 219573 Committed
r160802
: <
http://trac.webkit.org/changeset/160802
>
WebKit Commit Bot
Comment 6
2013-12-18 15:30:45 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