| Index: Source/core/paint/TextPainterTest.cpp
|
| diff --git a/Source/core/paint/TextPainterTest.cpp b/Source/core/paint/TextPainterTest.cpp
|
| index 1f2e172914462a72c595209e1f77c790b0c2ae85..4aa6eab06a6600341041fa80ff2dcd8eb32138d2 100644
|
| --- a/Source/core/paint/TextPainterTest.cpp
|
| +++ b/Source/core/paint/TextPainterTest.cpp
|
| @@ -100,6 +100,7 @@ TEST_F(TextPainterTest, TextPaintingStyle_ForceBackgroundToWhite_NoAdjustmentNee
|
| document().body()->setInlineStyleProperty(CSSPropertyWebkitTextEmphasisColor, CSSValueBlue);
|
| document().body()->setInlineStyleProperty(CSSPropertyWebkitPrintColorAdjust, CSSValueEconomy);
|
| document().settings()->setShouldPrintBackgrounds(false);
|
| + document().setPrinting(true);
|
| document().view()->updateLayoutAndStyleForPainting();
|
|
|
| TextPainter::Style textStyle = TextPainter::textPaintingStyle(
|
| @@ -116,6 +117,7 @@ TEST_F(TextPainterTest, TextPaintingStyle_ForceBackgroundToWhite_Darkened)
|
| document().body()->setInlineStyleProperty(CSSPropertyWebkitTextEmphasisColor, "rgb(220, 220, 255)");
|
| document().body()->setInlineStyleProperty(CSSPropertyWebkitPrintColorAdjust, CSSValueEconomy);
|
| document().settings()->setShouldPrintBackgrounds(false);
|
| + document().setPrinting(true);
|
| document().view()->updateLayoutAndStyleForPainting();
|
|
|
| TextPainter::Style textStyle = TextPainter::textPaintingStyle(
|
|
|