From 937c10649413bbe299f526971f28267efc857094 Mon Sep 17 00:00:00 2001 From: Jonathan Kew Date: Fri, 16 Jan 2015 09:42:42 +0000 Subject: [PATCH] Bug 1122020 - Account for position offset when collecting glyph bounding boxes. r=roc --- gfx/thebes/gfxFont.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gfx/thebes/gfxFont.cpp b/gfx/thebes/gfxFont.cpp index 61feab91b43..5a677efc022 100644 --- a/gfx/thebes/gfxFont.cpp +++ b/gfx/thebes/gfxFont.cpp @@ -2269,7 +2269,7 @@ gfxFont::Measure(gfxTextRun *aTextRun, if (isRTL) { glyphRect -= gfxPoint(advance, 0); } - glyphRect += gfxPoint(x, 0); + glyphRect += glyphPt; metrics.mBoundingBox = metrics.mBoundingBox.Union(glyphRect); x += direction*advance; }