DescriptionPrepare SVGDocumentExtensions::m_elementDependencies for oilpan
|m_elementDependencies| had raw ptr to |SVGElement|s.
This was to avoid reference cycles, but we can convert this to strong references in oilpan.
If the whole document is dead, rebuild code is not called. This means that
rebuildElementReference is not called for referencing element, but the
referencing element must be in the same document and is going to die anyway.
If the whole document isn't dead (== the part of the document tree is going
away), the unregister/rebuild code is guaranteed to be called from removedFrom,
and rebuildElementReference is guaranteed to be triggered from there.
BUG=357163, 370834
Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=175880
Patch Set 1 #
Total comments: 1
Patch Set 2 : add comment about rebuild #
Total comments: 2
Patch Set 3 : Member -> RawPtrWillBeMember #Patch Set 4 : change to strong refs for clarity #Patch Set 5 : fix comment #
Total comments: 4
Patch Set 6 : rebased #Patch Set 7 : No OwnPtr for maps #
Messages
Total messages: 13 (0 generated)
|