DescriptionExpand FrameSeleciton::hasEditableStyle() to increase chances of hoisting update layout
This patch expands |FrameSeleciton::hasEditableStyle()| to increase chance of
hoisting update layout.
Note: This is mechanical change to replace |selection().hasEditableStyle()|
by |selection().computeVisibleSelectionInDOMTreeDeprecated().hasEditableStyle()| 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/2708213006
Cr-Commit-Position: refs/heads/master@{#452675}
Committed: https://chromium.googlesource.com/chromium/src/+/0c3513655473a49b2ef7aeafb366f8ca74422a5b
Patch Set 1 : 2017-02-23T18:38:07 #
Messages
Total messages: 14 (10 generated)
|