WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
121213
[CSS Shapes] Remove unnecessarily complex template from ShapeInfo classes
https://bugs.webkit.org/show_bug.cgi?id=121213
Summary
[CSS Shapes] Remove unnecessarily complex template from ShapeInfo classes
Bem Jones-Bey
Reported
2013-09-11 22:57:08 PDT
[CSS Shapes] Remove unnecessarily complex template from ShapeInfo classes
Attachments
Patch
(11.36 KB, patch)
2013-09-11 22:58 PDT
,
Bem Jones-Bey
no flags
Details
Formatted Diff
Diff
Patch
(11.34 KB, patch)
2013-09-12 09:12 PDT
,
Bem Jones-Bey
no flags
Details
Formatted Diff
Diff
Show Obsolete
(1)
View All
Add attachment
proposed patch, testcase, etc.
Bem Jones-Bey
Comment 1
2013-09-11 22:58:45 PDT
Created
attachment 211400
[details]
Patch purge horrid template mess
Darin Adler
Comment 2
2013-09-12 07:58:26 PDT
Comment on
attachment 211400
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=211400&action=review
> Source/WebCore/rendering/shapes/ShapeInfo.h:113 > + virtual ShapeValue* getShapeValue() const = 0;
In WebKit coding style, functions like this one are supposed to be named just "shapeValue()" without the get prefix.
> Source/WebCore/rendering/shapes/ShapeInsideInfo.h:65 > +class ShapeInsideInfo : public ShapeInfo<RenderBlock> {
Can this class be marked FINAL?
> Source/WebCore/rendering/shapes/ShapeOutsideInfo.h:42 > +class ShapeOutsideInfo : public ShapeInfo<RenderBox>, public MappedInfo<RenderBox, ShapeOutsideInfo> {
Can this class be marked FINAL?
Bem Jones-Bey
Comment 3
2013-09-12 09:12:53 PDT
Created
attachment 211434
[details]
Patch Fix style and add FINAL per review comments.
WebKit Commit Bot
Comment 4
2013-09-12 09:49:39 PDT
Comment on
attachment 211434
[details]
Patch Clearing flags on attachment: 211434 Committed
r155627
: <
http://trac.webkit.org/changeset/155627
>
WebKit Commit Bot
Comment 5
2013-09-12 09:49:41 PDT
All reviewed patches have been landed. Closing bug.
Darin Adler
Comment 6
2013-09-12 10:08:39 PDT
If you liked the compile time aspect of the old solution and wanted to solve this without virtual function call overhead, the appropriate technique probably would be traits.
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