DescriptionUse an AtomicString as key in DocumentOrderedMap
Use an AtomicString as key in DocumentOrderedMap instead of a StringImpl*.
This is safer as the HashMap Traits rely on the StringImpl* to not be a
dangling pointer (it is calling StringImpl::hash()). Using an AtomicString
as key will make sure we don't experience use-after-free such as in Bug
402255.
I ran Bindings/get-element-by-id.html test and did not see any performance
regression.
R=esprehn@chromium.org, morrita@chromium.org
BUG=402255
Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=180365
Patch Set 1 #
Messages
Total messages: 5 (0 generated)
|