Breakout from http://crbug.com/529938 --
Attached test case (a simplified version of editing/selection/image-before-linebreak.html) shows the issue.
Line breaks in contenteditable blocks are implemented with a line break InlineTextBox that reports zero width/height which leads to an empty visual rect size.
Thus we miss the display item when querying via cc RTree and don't paint it, which is fine except when we're selected and need to paint the selection newline highlight.
Fixes can include:
- rework InlineTextBox::visualRect() to incorporate more of the logic in InlineTextBoxPainter::paint() where we calculate the cull rect
- (likely preferred but a larger change) rework selection newline highlights to be included in the logical visual overflow of the inline text box
|
Deleted:
newline.html
219 bytes
|
|
Deleted:
abe.png
12.0 KB
|
Comment 1 by bugdroid1@chromium.org
, May 19 2016