Chromium Code Reviews
DescriptionExpand FrameSeleciton::extent() to increase chances of hoisting update layout
This patch expands |FrameSeleciton::extent()| to increase chance of hoisting
update layout.
Note: This is mechanical change to replace |selection().extent()|
by |selection().computeVisibleSelectionInDOMTreeDeprecated().extent()| and
manual change to |computeVisibleSelectionInDOMTree()| in explicit case, e.g.
just after |computeVisibleSelectionInDOMTreeDeprecated()|.
Following patch will remove deprecated version.
This patch is apart of expanding expensive member functions in |FrameSelection|:
- rootEditableElement()
- hasEditableStyle()
- isContentEditable()
- isContentRichlyEditable()
- getSelectionType()
- base()
- extent()
- start()
- end()
- isNone()
- isCaret()
- isRange()
BUG=694360
TEST=n/a; no behavior changes
Review-Url: https://codereview.chromium.org/2709943004
Cr-Commit-Position: refs/heads/master@{#452714}
Committed: https://chromium.googlesource.com/chromium/src/+/34cc7838d2f985415a86720094454696a953a4c3
Patch Set 1 : 2017-02-23T18:48:11 #
Messages
Total messages: 14 (9 generated)
|
||||||||||||||||||||||||||||||||||||||||||||||