DescriptionFix lifespan of ScopedStyleResolver
When a Shadow Tree is moved between different documents
(e.g. document <-> iframe), ScopedStyleResolver can remain
registered from its original document, which can result in
duplicate registration and possibly cause double-free etc.
This CL fixes it by clearing a shadow tree's
ScopedStyleResolver when the ShadowRoot is removed.
BUG=427249
TEST=pass the new layout test
Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=185598
Patch Set 1 #
Total comments: 2
Patch Set 2 : Revert previous, add a layout test. (should fail at this point) #Patch Set 3 : merge tasak's 730513002 (contains ProcessorInstruction fix) #Patch Set 4 : rebase #Patch Set 5 : add comment in layout test. #
Total comments: 6
Patch Set 6 : Fix for hayato's review comments #
Messages
Total messages: 29 (12 generated)
|