DescriptionReturn the right top position for text selections when there are no previous root inline boxes.
The code in RootInlineBox::selectionTop() was doing some extra calculations based on border and
padding to determine the top position of a text selection for a RootInlineBox when there is no
previous box to consider, instead of just returning the m_lineTop value (which is similar to
what is correctly being done already now in RootInlineBox::selectionBottom()).
This caused that the top position for a selection was usually miscalculated, returning to high
values when the line-height value is too big, and too small values when line-height is too
small, causing rendering issues both when drawing cursors and selection rectangles.
BUG=313593
TEST=Try selecting text over lines with too big and too small values for line-height.
R=eae@chromium.org
Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=167813
Patch Set 1 #Patch Set 2 : Marking tests failing for linux as NeedsRebaseline and updating one reftest #Patch Set 3 : Added more tests as NeedsRebaseline which were not detected on Linux builds #Patch Set 4 : Added [ NeedsRebaseline ] for foreignObject-text-clipping-bug.xml on Windows #Patch Set 5 : Added [ NeedsRebaseline ] for editing/selection/move-left-right.html on Windows #Patch Set 6 : Added [ NeedsRebaseline ] for editing/selection/move-left-right.html #Messages
Total messages: 34 (0 generated)
|