Chromium Code Reviews
DescriptionExpand FrameSeleciton::getSelectionType() to increase chances of hoisting update layout
This patch expands |FrameSeleciton::getSelectionType()| to increase
chance of hoisting update layout.
Note: This is mechanical change to replace |selection().getSelectionType()|
by |selection().computeVisibleSelectionInDOMTreeDeprecated().getSelectionType()|
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/2706013005
Cr-Commit-Position: refs/heads/master@{#452030}
Committed: https://chromium.googlesource.com/chromium/src/+/82b855c5f7d20fc8a8b5bcb4a61f17e3fde257de
Patch Set 1 : 2017-02-22T12:34:17 #Patch Set 2 : 2017-02-22T21:26:37 rebase #
Messages
Total messages: 17 (11 generated)
|
||||||||||||||||||||||||||||||||||||||||||||||