Closed
Bug 355114
Opened 18 years ago
Closed 18 years ago
xml:space handling mixes GetCurrentDoc and GetOwnerDoc
Categories
(Core :: SVG, defect)
Core
SVG
Tracking
()
RESOLVED
FIXED
People
(Reporter: longsonr, Assigned: longsonr)
References
Details
Attachments
(1 file, 2 obsolete files)
3.18 KB,
patch
|
bzbarsky
:
superreview+
|
Details | Diff | Splinter Review |
See bug 319786 comment 29 onwards.
Assignee | ||
Comment 1•18 years ago
|
||
Comment 2•18 years ago
|
||
What's the lifetime of the SVG mutation observer? Does it basically die when the frame dies?
Assignee | ||
Comment 3•18 years ago
|
||
(In reply to comment #2)
> What's the lifetime of the SVG mutation observer? Does it basically die when
> the frame dies?
>
It's static, there's only one. It needs to be attached when the outer SVG frame is created and detached when it the outer frame is destroyed.
Comment 4•18 years ago
|
||
Then how does this patch work, exactly?
Assignee | ||
Updated•18 years ago
|
Attachment #240916 -
Attachment is obsolete: true
Attachment #240916 -
Flags: review?(tor)
Assignee | ||
Comment 5•18 years ago
|
||
(In reply to comment #4)
> Then how does this patch work, exactly?
>
I was trying to guard against the mutation observer being added multiple times for in the same document but there are two issues with that
a) NodeWillBeDestroyed is only called when the document is destroyed and not on frame destruction.
b) nsBindingManager::AddObserver already checks that the observer is not already added before adding it.
I now think that the best thing to do is just to remove the code in the nsSVGOuterFrame destructor - there is only one nsSVGMutationObserver which can only be added at most once to any one document. Removing it is not necessary.
Assignee | ||
Comment 6•18 years ago
|
||
Attachment #240939 -
Flags: review?(tor)
Comment on attachment 240939 [details] [diff] [review]
updated patch
Maybe add a comment at the point you add the observer explaining why it's never explicitly removed?
Attachment #240939 -
Flags: review?(tor) → review+
Assignee | ||
Comment 8•18 years ago
|
||
Attachment #240939 -
Attachment is obsolete: true
Attachment #242614 -
Flags: superreview?(bzbarsky)
Comment 9•18 years ago
|
||
Comment on attachment 242614 [details] [diff] [review]
address review comment
Hmmm.... ok.
Attachment #242614 -
Flags: superreview?(bzbarsky) → superreview+
Assignee | ||
Comment 10•18 years ago
|
||
checked in
Status: ASSIGNED → RESOLVED
Closed: 18 years ago
Resolution: --- → FIXED
You need to log in
before you can comment on or make changes to this bug.
Description
•