 Chromium Code Reviews
 Chromium Code Reviews Issue 
            64323002:
    Minor optimization in FrameSelection::setNonDirectionalSelectionIfNeeded().  (Closed)
    
  
    Issue 
            64323002:
    Minor optimization in FrameSelection::setNonDirectionalSelectionIfNeeded().  (Closed) 
  | DescriptionMinor optimization in FrameSelection::setNonDirectionalSelectionIfNeeded().
We can avoid a second call to newSelection.visibleExtent() by maintaining a local
variable for the same.
A call to visibleExtent() further entails computing of VisiblePosition which can
be avoided the second time round.
This change also makes it similar to the handling of newSelection.visibleBase().
Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=161602
   Patch Set 1 #
 Messages
    Total messages: 12 (0 generated)
     | |||||||||||||||||||