DescriptionMinor refactoring to avoid redundant calls to VisibleSelection::visibleStart()
We can avoid redundant calls to visibleStart() which indirectly calls
several functions like canonicalPosition, isCandidate, upstream,
downstream, etc. by using a local variable.
Current code already makes use of a local variable to store the VisiblePosition
returned by visibleStart(). Just preponing the creation of this
local variable would avoid few more redundant calls.
Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=165561
Patch Set 1 #
Messages
Total messages: 4 (0 generated)
|