Bug 480906: fix incorrect enum value mentioned in comment. r=roc
authorJonathan Kew <jfkthame@gmail.com>
Mon, 14 Dec 2009 10:35:46 +0000
changeset 35717 82a6f0031d9f7568014a4430c24f277a81d1d0a2
parent 35716 b83bcfdab5abe811ff4c7807c0dd93c63e343f4f
child 35718 44c392db667242eaa8d9279583cda6d62e65cfd9
push id10691
push userjkew@mozilla.com
push dateMon, 14 Dec 2009 10:39:18 +0000
treeherdermozilla-central@44c392db6672 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersroc
bugs480906
milestone1.9.3a1pre
Bug 480906: fix incorrect enum value mentioned in comment. r=roc
gfx/src/thebes/nsThebesFontMetrics.cpp
--- a/gfx/src/thebes/nsThebesFontMetrics.cpp
+++ b/gfx/src/thebes/nsThebesFontMetrics.cpp
@@ -438,17 +438,17 @@ static void
 GetTextRunBoundingMetrics(gfxTextRun *aTextRun, PRUint32 aStart, PRUint32 aLength,
                           nsThebesRenderingContext *aContext,
                           nsBoundingMetrics &aBoundingMetrics)
 {
     StubPropertyProvider provider;
     gfxTextRun::Metrics theMetrics =
         aTextRun->MeasureText(aStart, aLength, gfxFont::TIGHT_HINTED_OUTLINE_EXTENTS,
                               aContext->ThebesContext(), &provider);
-        // note that TIGHT_UNHINTED_OUTLINE_EXTENTS can be expensive (on Windows)
+        // note that TIGHT_HINTED_OUTLINE_EXTENTS can be expensive (on Windows)
         // but this is only used for MathML positioning so it's not critical
 
     aBoundingMetrics.leftBearing = NSToCoordFloor(theMetrics.mBoundingBox.X());
     aBoundingMetrics.rightBearing = NSToCoordCeil(theMetrics.mBoundingBox.XMost());
     aBoundingMetrics.width = NSToCoordRound(theMetrics.mAdvanceWidth);
     aBoundingMetrics.ascent = NSToCoordCeil(- theMetrics.mBoundingBox.Y());
     aBoundingMetrics.descent = NSToCoordCeil(theMetrics.mBoundingBox.YMost());
 }