[Webkit-unassigned] [Bug 5461] Text width measured incorrectly when text-align: justify

bugzilla-daemon at opendarwin.org bugzilla-daemon at opendarwin.org
Fri Dec 30 02:25:05 PST 2005


opendarwin.org at mitzpettel.com changed:

           What    |Removed                     |Added
Attachment #5353 is|0                           |1
           obsolete|                            |

------- Additional Comments From opendarwin.org at mitzpettel.com  2005-12-30 02:25 -------
Created an attachment (id=5376)
 --> (http://bugzilla.opendarwin.org/attachment.cgi?id=5376&action=view)
Use WebTextRenderer selection rects

There's more to this patch than just fixing the bug: past fixes to "highlight
leaves trails" were about narrowing WebTextRenderer's highlight rect to fit
into InlineTextBox's selectionRect, which due to the "rounding hack" was
narrower than AppKit's highlight rect for the same text. By moving all
selection/highlight rect computations to WebTextRenderer, this patch eliminates
unnecessary intermediate rounding and gives wider rects that match AppKit more
closely. I think it also improves caret positioning in RTL text.

It looks like AppKit uses different rounding modes for the right hand side of
the highlight (ceil) and for the caret (round). This patch sacrifices highlight
to get caret right. I guess this can be improved in the future.

Configure bugmail: http://bugzilla.opendarwin.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

More information about the webkit-unassigned mailing list