[Webkit-unassigned] [Bug 54929] REGRESSION: Text selection broken for text with line-height applied

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Fri Mar 11 14:29:19 PST 2011


--- Comment #7 from Levi Weintraub <leviw at chromium.org>  2011-03-11 14:29:19 PST ---
Found the offending logic in RenderBlock::positionForPointWithInlineChildren (trac won't look at files as big as RenderBlock.cpp, so no linky). The correct InlineBox is determined, but a point inside that box is supposed to be passed in, but is calculated using the logicalTop, which can be negative when the text exceeds the size of the line. The result is positionForPoint on that box returns a value above it.

I believe using the InlineBox's root's selectionTop() is the correct fix for the problem.

Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

More information about the webkit-unassigned mailing list