Bug 104908 - [Qt4] Rendering issue when using CSS ellipsis text-overflow
Summary: [Qt4] Rendering issue when using CSS ellipsis text-overflow
Alias: None
Product: WebKit
Classification: Unclassified
Component: Text (show other bugs)
Version: 528+ (Nightly build)
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Nobody
Depends on:
Blocks: QtWebkit23
  Show dependency treegraph
Reported: 2012-12-13 06:16 PST by Julien Brianceau
Modified: 2012-12-13 07:13 PST (History)
1 user (show)

See Also:

Patch for qtwebkit 2.3 (1.46 KB, patch)
2012-12-13 06:16 PST, Julien Brianceau
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Julien Brianceau 2012-12-13 06:16:48 PST
Created attachment 179260 [details]
Patch for qtwebkit 2.3

Offset computation in offsetForPositionForSimpleText is not correct in Source/WebCore/platform/graphics/qt/FontQt4.cpp implementation whereas the equivalent offset computation used in Qt5 in Source/WebCore/platform/graphics/FontFastPath.cpp is correct.

You can compare the result of webkit test LayoutTests/fast/css/text-overflow-ellipsis.html between Qt 4 and Qt 5 to stimulate this issue.
Comment 1 Allan Sandfeld Jensen 2012-12-13 07:13:05 PST
Landed in qtwebkit-2.3-staging by commit ec61316964f0d7088f9532c3edca9e468bf870c7