WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
138329
Clarify RenderListMarker ownership model.
https://bugs.webkit.org/show_bug.cgi?id=138329
Summary
Clarify RenderListMarker ownership model.
Andreas Kling
Reported
2014-11-03 15:40:58 PST
A RenderListMarker is either in-tree and owned by the tree, or out-of-tree and owned by a RenderListItem. This patch changes RenderListItem::m_marker to be a raw pointer, and removes the special handling of list markers in RenderElement child teardown. We also remove the willBeDestroyed() hook. It was used to clear out the m_marker pointer, but this is now done in the regular ~RenderListItem() destructor with an assertion for marker sanity. m_marker is automatically nulled out by a didDestroyListMarker() callback on RenderListItem.
Attachments
Patch
(8.71 KB, patch)
2014-11-03 15:43 PST
,
Andreas Kling
no flags
Details
Formatted Diff
Diff
View All
Add attachment
proposed patch, testcase, etc.
Andreas Kling
Comment 1
2014-11-03 15:43:00 PST
Created
attachment 240878
[details]
Patch
Antti Koivisto
Comment 2
2014-11-03 15:47:50 PST
Comment on
attachment 240878
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=240878&action=review
> Source/WebCore/rendering/RenderListItem.h:89 > - RenderPtr<RenderListMarker> m_marker; > + RenderListMarker* m_marker;
Weak pointers would be cool.
WebKit Commit Bot
Comment 3
2014-11-03 18:35:45 PST
Comment on
attachment 240878
[details]
Patch Clearing flags on attachment: 240878 Committed
r175505
: <
http://trac.webkit.org/changeset/175505
>
WebKit Commit Bot
Comment 4
2014-11-03 18:35:49 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