diff options
author | Eskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@nokia.com> | 2009-09-24 12:31:17 (GMT) |
---|---|---|
committer | Eskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@nokia.com> | 2009-09-24 12:35:44 (GMT) |
commit | 121349cb90d66625728fdcecc8e4f75f268b3a53 (patch) | |
tree | ab3f3b4e21a48f4c6cb5932f490f2c9fd86aea65 /src/3rdparty/webkit/WebCore/html/HTMLImageLoader.cpp | |
parent | bc101d83b313d9ebf7c54789077d6710d3e78cd9 (diff) | |
download | Qt-121349cb90d66625728fdcecc8e4f75f268b3a53.zip Qt-121349cb90d66625728fdcecc8e4f75f268b3a53.tar.gz Qt-121349cb90d66625728fdcecc8e4f75f268b3a53.tar.bz2 |
Only account for a negative right bearing in QTextLayout
We only want to expand the width of the text, never shrink it. This is
so that we can account for text where the pixels of the text extend
beyond the edge of the last glyph. When we shrinked the width, code
that depended on the natural text width equalling the advance of the
text (such as WebKit) broke, and some text items would be positioned
wrongly. We now only take negative right bearings into account (right
bearing is left-bound), meaning that we only expand the text width,
never shrink it due to right bearing.
Reviewed-by: Simon Hausmann
Diffstat (limited to 'src/3rdparty/webkit/WebCore/html/HTMLImageLoader.cpp')
0 files changed, 0 insertions, 0 deletions