Closed
Bug 725446
Opened 13 years ago
Closed 13 years ago
BBP for ContentList
Categories
(Core :: DOM: Core & HTML, defect)
Tracking
()
RESOLVED
FIXED
mozilla13
People
(Reporter: smaug, Assigned: smaug)
References
Details
Attachments
(1 file, 1 obsolete file)
3.81 KB,
patch
|
jst
:
review+
|
Details | Diff | Splinter Review |
No description provided.
Assignee | ||
Updated•13 years ago
|
Attachment #595490 -
Flags: review?(jst)
Attachment #595490 -
Flags: feedback?(continuation)
Comment 1•13 years ago
|
||
Comment on attachment 595490 [details] [diff] [review]
WIP
Review of attachment 595490 [details] [diff] [review]:
-----------------------------------------------------------------
Looks good to me, aside from my one comment.
::: content/base/src/nsContentList.cpp
@@ +93,5 @@
> +NS_IMPL_CYCLE_COLLECTION_CAN_SKIP_BEGIN(nsBaseContentList)
> + if (nsCCUncollectableMarker::sGeneration && tmp->IsBlack()) {
> + JSObject* o = tmp->PreservingWrapper() ?
> + tmp->GetWrapperPreserveColor() : tmp->GetExpandoObjectPreserveColor();
> + xpc_UnmarkGrayObject(o);
Didn't we just check that our wrapper is black? Isn't o going to always be non-gray here?
Attachment #595490 -
Flags: feedback?(continuation) → feedback+
Assignee | ||
Comment 2•13 years ago
|
||
Yes. silly me. I'll change the code to unmark only if !tmp->PreservingWrapper()
Assignee | ||
Comment 3•13 years ago
|
||
Er, except that is not needed.
Comment 4•13 years ago
|
||
Because if the list is owned by a black wrapper, it won't also have a separate expando object that it owns?
Assignee | ||
Comment 5•13 years ago
|
||
Well, it is the black proxy object which has the expando. And that should be be black too.
Assignee | ||
Comment 6•13 years ago
|
||
(Need to get some documentation all this preservedwrapper/proxy/expando handling)
Assignee | ||
Comment 7•13 years ago
|
||
Assignee: nobody → bugs
Attachment #595490 -
Attachment is obsolete: true
Attachment #595490 -
Flags: review?(jst)
Attachment #596109 -
Flags: review?(jst)
Assignee | ||
Comment 8•13 years ago
|
||
(In reply to Olli Pettay [:smaug] from comment #5)
> Well, it is the black proxy object which has the expando. And that should be
> be black too.
Since if something marks the proxy black, its reserved slots get marked too.
Updated•13 years ago
|
Attachment #596109 -
Flags: review?(jst) → review+
Assignee | ||
Comment 9•13 years ago
|
||
Status: NEW → RESOLVED
Closed: 13 years ago
Resolution: --- → FIXED
Assignee | ||
Updated•13 years ago
|
Target Milestone: --- → mozilla13
Version: 12 Branch → 13 Branch
Updated•6 years ago
|
Component: DOM → DOM: Core & HTML
You need to log in
before you can comment on or make changes to this bug.
Description
•