DescriptionMake ElementShadow::youngestShadowRoot() return a reference.
Since ElementShadow::m_shadowRoots is never empty after ElementShadowRoot is created,
Element::yougestShadowRoot() can return a reference, instead of a pointer.
Note that ElementShadow::addShadowRoot() is a exception because it could be called when ElementShadow is created.
BUG=531990
Committed: https://crrev.com/7eb2d6e7e66570ce60cd3e4a19c4db2369fc8d21
Cr-Commit-Position: refs/heads/master@{#354750}
Patch Set 1 #Patch Set 2 : wip #Patch Set 3 : clean up #Patch Set 4 : Use m_shadowRoots.isEmpty() #
Total comments: 4
Patch Set 5 : tail -> head #
Total comments: 2
Patch Set 6 : one more tail -> head #Dependent Patchsets: Messages
Total messages: 35 (11 generated)
|