Bug 428846 Using underline hint at painting the strikeout line of Quirks mode r+sr=roc, a1.9=beltzner
authormasayuki@d-toybox.com
Mon, 14 Apr 2008 23:47:59 -0700
changeset 14333 999295ce6a70aec5f9bd2918a67a6d1b881c959d
parent 14332 55fd41de8ba368cbe0fed28ac7971d638496b63f
child 14334 4ee923f0aa1f46a304a2c3589c7cfd10d979eb26
push id1
push userroot
push dateTue, 26 Apr 2011 22:38:44 +0000
treeherdermozilla-beta@bfdb6e623a36 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
bugs428846
milestone1.9pre
Bug 428846 Using underline hint at painting the strikeout line of Quirks mode r+sr=roc, a1.9=beltzner
layout/generic/nsTextFrameThebes.cpp
--- a/layout/generic/nsTextFrameThebes.cpp
+++ b/layout/generic/nsTextFrameThebes.cpp
@@ -3731,17 +3731,17 @@ nsTextFrame::PaintTextDecorations(gfxCon
       aCtx, decorations.mUnderColor, pt, size, ascent, offset,
       NS_STYLE_TEXT_DECORATION_UNDERLINE, NS_STYLE_BORDER_STYLE_SOLID);
   }
   if (decorations.HasStrikeout()) {
     size.height = fontMetrics.strikeoutSize;
     gfxFloat offset = fontMetrics.strikeoutOffset;
     nsCSSRendering::PaintDecorationLine(
       aCtx, decorations.mStrikeColor, pt, size, ascent, offset,
-      NS_STYLE_TEXT_DECORATION_UNDERLINE, NS_STYLE_BORDER_STYLE_SOLID);
+      NS_STYLE_TEXT_DECORATION_LINE_THROUGH, NS_STYLE_BORDER_STYLE_SOLID);
   }
 }
 
 // Make sure this stays in sync with DrawSelectionDecorations below
 static const SelectionType SelectionTypesWithDecorations =
   nsISelectionController::SELECTION_SPELLCHECK |
   nsISelectionController::SELECTION_IME_RAWINPUT |
   nsISelectionController::SELECTION_IME_SELECTEDRAWTEXT |