On Tue, Sep 4, 2012 at 11:26 PM, Dan Bernstein <m...@apple.com> wrote:
> On Sep 4, 2012, at 5:50 AM, Glenn Adams <gl...@skynav.com> wrote: > > Alternatively, you can compute the with of each character with script >> (without adding any new feature to WebKit). >> > > Unfortunately, that won't work since I can't access the width of > individual lines produced by formatting a block. > > You can use Range’s getClientRects to get the widths of individual > characters and to determine where a line breaks occur. > Thanks for that pointer. I wasn't aware of that feature. In any case, it looks like the reftest approach is going to work.
_______________________________________________ webkit-dev mailing list webkit-dev@lists.webkit.org http://lists.webkit.org/mailman/listinfo/webkit-dev