Chromium Code Reviews
DescriptionRemove the redundant layout update from WebSurroundingText::textContent
The only usages of WebSurroundingText are in ContentDetector::FindContentRange and
RenderFrameImpl::OnTextSurroundingSelectionRequest, neither of which performs any
DOM or style change between the initialization of WebSurroundingText and the call
sites of textContent. Hence, the layout update in WebSurroundingText::textContent
is redundant and removed by this patch.
SurroundingText::document is only used by the removed code, so it is also removed.
BUG=657268, 590369
Committed: https://crrev.com/eadac59641a9a79748d30a49b521e0e79822eee5
Cr-Commit-Position: refs/heads/master@{#426425}
Patch Set 1 #Patch Set 2 : Remove the redundant layout update in WebSurroundingText::textContent #Patch Set 3 : Add note about do not store SurroundingText with null Range #
Total comments: 4
Patch Set 4 : fix typo #
Messages
Total messages: 19 (12 generated)
|
|||||||||||||||||||||||||||||||||||||