DescriptionUpdate SelectorQuery constructor to adopt CSSSelectorList object
Update SelectorQuery constructor to adopt CSSSelectorList object instead of
copying it. This CL adds a adopt(CSSSelectorList&) factory function to
SelectorQuery class to make this behavior obvious.
Copying a CSSSelectorList is relatively expensive and it should therefore be
avoided when possible.
R=esprehn@chromium.org
Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=176116
Patch Set 1 #
Total comments: 2
Patch Set 2 : Rename to adopt #
Messages
Total messages: 13 (0 generated)
|