WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
Bug 83229
Virtualize createAnonymousBlockWithSameTypeAs and move to RenderBox
https://bugs.webkit.org/show_bug.cgi?id=83229
Summary
Virtualize createAnonymousBlockWithSameTypeAs and move to RenderBox
Abhishek Arya
Reported
2012-04-04 15:52:26 PDT
Part 2 of fixing
https://bugs.webkit.org/show_bug.cgi?id=82630
Attachments
Patch
(8.64 KB, patch)
2012-04-04 16:29 PDT
,
Abhishek Arya
no flags
Details
Formatted Diff
Diff
Patch
(8.75 KB, patch)
2012-04-06 10:15 PDT
,
Abhishek Arya
no flags
Details
Formatted Diff
Diff
Patch
(8.88 KB, patch)
2012-04-06 14:27 PDT
,
Abhishek Arya
no flags
Details
Formatted Diff
Diff
Show Obsolete
(2)
View All
Add attachment
proposed patch, testcase, etc.
Abhishek Arya
Comment 1
2012-04-04 16:29:21 PDT
Created
attachment 135713
[details]
Patch
Julien Chaffraix
Comment 2
2012-04-06 09:59:21 PDT
Comment on
attachment 135713
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=135713&action=review
> Source/WebCore/ChangeLog:9 > + This helps to use the same function to create anonymous > + table parts as well.
This is also in preparation of adding more of them IIRC.
> Source/WebCore/rendering/RenderTable.h:215 > + virtual RenderBox* createAnonymousBoxWithSameTypeAs(const RenderObject* parent) const
Does this function need to be public? Also let's to annotate the overridden functions with OVERRIDE. (comments not repeated on all the other table renderers)
Abhishek Arya
Comment 3
2012-04-06 10:01:47 PDT
(In reply to
comment #2
)
> (From update of
attachment 135713
[details]
) > View in context:
https://bugs.webkit.org/attachment.cgi?id=135713&action=review
> > > Source/WebCore/ChangeLog:9 > > + This helps to use the same function to create anonymous > > + table parts as well. > > This is also in preparation of adding more of them IIRC.
Correcting the comment.
> > > Source/WebCore/rendering/RenderTable.h:215 > > + virtual RenderBox* createAnonymousBoxWithSameTypeAs(const RenderObject* parent) const > > Does this function need to be public? Also let's to annotate the overridden functions with OVERRIDE. (comments not repeated on all the other table renderers)
Doing the OVERRIDE now. It needs to be public since it will be called from the otherAnonymousBlock as otherAnonymousBlock->createAnonymousBoxWithSameTypeAs(parent).
Abhishek Arya
Comment 4
2012-04-06 10:15:47 PDT
Created
attachment 136040
[details]
Patch
Julien Chaffraix
Comment 5
2012-04-06 14:14:07 PDT
Comment on
attachment 136040
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=136040&action=review
> Source/WebCore/ChangeLog:9 > + table parts and in the future extend to more derived
Nit: "more derived" was like deeper class hierarchy in my first reading, I would just re-arrange the wording: in the future extend to more classes derived from RenderBox.
> Source/WebCore/ChangeLog:11 > +
Let's add a comment about why we did that: the current switch case situation was going to be messy as we will need to mix cases that were very dependent on the class so it made sense to add a virtual function.
> Source/WebCore/rendering/RenderBox.h:517 > + virtual RenderBox* createAnonymousBoxWithSameTypeAs(const RenderObject*) const
If you are exposing this function in the derived class, we may as well expose this one. It's unfortunate that we have to but I see your point.
Abhishek Arya
Comment 6
2012-04-06 14:27:51 PDT
Created
attachment 136066
[details]
Patch
Abhishek Arya
Comment 7
2012-04-06 14:33:01 PDT
Comment on
attachment 136066
[details]
Patch Clearing flags on attachment: 136066 Committed
r113497
: <
http://trac.webkit.org/changeset/113497
>
Abhishek Arya
Comment 8
2012-04-06 14:33:06 PDT
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