Bug 815648 - Correctly detect when we're going to use a shadow so we can measure the text's extents correctly. r=roc a=bajaj
authorJoe Drew <joe@drew.ca>
Tue, 18 Dec 2012 11:37:14 -0500
changeset 117562 b4c741ca7b670c31fedb734baa62e86495d9ef9b
parent 117561 3418ab85117b064fa35506d79cc4e135dbe0219c
child 117563 78e698f8ed5434633973b60a24fcb24a26966595
push id1957
push userjdrew@mozilla.com
push dateTue, 18 Dec 2012 22:32:36 +0000
treeherdermozilla-beta@b4c741ca7b67 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersroc, bajaj
bugs815648
milestone18.0
Bug 815648 - Correctly detect when we're going to use a shadow so we can measure the text's extents correctly. r=roc a=bajaj
content/canvas/src/nsCanvasRenderingContext2DAzure.cpp
--- a/content/canvas/src/nsCanvasRenderingContext2DAzure.cpp
+++ b/content/canvas/src/nsCanvasRenderingContext2DAzure.cpp
@@ -3203,17 +3203,17 @@ nsCanvasRenderingContext2DAzure::DrawOrM
       *aWidth = 0;
     }
     return NS_OK;
   }
 
   const ContextState &state = CurrentState();
 
   // This is only needed to know if we can know the drawing bounding box easily.
-  bool doDrawShadow = aOp == TEXT_DRAW_OPERATION_FILL && NeedToDrawShadow();
+  bool doDrawShadow = NeedToDrawShadow();
 
   nsCanvasBidiProcessorAzure processor;
 
   GetAppUnitsValues(&processor.mAppUnitsPerDevPixel, nullptr);
   processor.mPt = gfxPoint(aX, aY);
   processor.mThebes =
     new gfxContext(gfxPlatform::GetPlatform()->ScreenReferenceSurface());