Chromium Code Reviews
DescriptionMake inline blocks correctly update their line box selection state.
When text is selected, RenderText::setSelectionState marks each RootInlineBox as having selected children. But if a line contained only an inline-block element, the selection state of that line's RootInlineBox was not updated.
That caused RenderBlockFlow::inlineSelectionGaps to set lastLogicalTop to the wrong value, since it believed the line was not selected.
That caused RenderBlock::selectionGaps to paint a vertical selection gap on top of the affected line, obscuring its content.
This patch adds RenderBlock::setSelectionState, which updates the selection state of the RootInlineBox.
BUG=388324
Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=176944
Patch Set 1 : #Patch Set 2 : #Patch Set 3 : #Patch Set 4 : #
Messages
Total messages: 17 (0 generated)
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||