diff options
| author | Allan Sandfeld Jensen <allan.jensen@digia.com> | 2013-03-04 14:00:09 +0100 |
|---|---|---|
| committer | The Qt Project <gerrit-noreply@qt-project.org> | 2013-03-04 18:38:16 +0100 |
| commit | bdb09f02efc021ed5a9128f9bdf2e25d13ee6738 (patch) | |
| tree | c3c6501812156f48a088d1e3a96e78f1ba49b143 | |
| parent | 664913c1db0e7281e284a9942888d4abcbdc4bd3 (diff) | |
| download | qtwebkit-bdb09f02efc021ed5a9128f9bdf2e25d13ee6738.tar.gz | |
[Qt] Implement SimpleFontData::platformBoundsForGlyph
https://bugs.webkit.org/show_bug.cgi?id=104127
Reviewed by Jocelyn Turcotte.
Implements platformBoundsForGlyph which is necessary for working MathML and Ruby.
* platform/graphics/qt/SimpleFontDataQt.cpp:
(WebCore::SimpleFontData::platformBoundsForGlyph):
Change-Id: Ic903a1b88308f411609a13a3d8839c9ad7b4a703
git-svn-id: http://svn.webkit.org/repository/webkit/trunk@138703 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Reviewed-by: Jocelyn Turcotte <jocelyn.turcotte@digia.com>
| -rw-r--r-- | Source/WebCore/platform/graphics/qt/SimpleFontDataQt.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/Source/WebCore/platform/graphics/qt/SimpleFontDataQt.cpp b/Source/WebCore/platform/graphics/qt/SimpleFontDataQt.cpp index 415f00d44..44099b3eb 100644 --- a/Source/WebCore/platform/graphics/qt/SimpleFontDataQt.cpp +++ b/Source/WebCore/platform/graphics/qt/SimpleFontDataQt.cpp @@ -64,10 +64,9 @@ PassRefPtr<SimpleFontData> SimpleFontData::createScaledFontData(const FontDescri return SimpleFontData::create(FontPlatformData(m_platformData, scaledSize), isCustomFont(), false); } -FloatRect SimpleFontData::platformBoundsForGlyph(Glyph) const +FloatRect SimpleFontData::platformBoundsForGlyph(Glyph glyph) const { - notImplemented(); - return FloatRect(); + return m_platformData.rawFont().boundingRect(glyph); } void SimpleFontData::platformInit() |
