Bug 815648 - Correctly detect when we're going to use a shadow so we can measure the text's extents correctly. r=roc

This commit is contained in:
Joe Drew 2012-12-18 11:37:14 -05:00
parent 4c5e897091
commit 3939619e1e

View File

@ -2548,7 +2548,7 @@ CanvasRenderingContext2D::DrawOrMeasureText(const nsAString& aRawText,
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();
CanvasBidiProcessor processor;