| Index: third_party/WebKit/Source/core/paint/TextPainter.cpp
|
| diff --git a/third_party/WebKit/Source/core/paint/TextPainter.cpp b/third_party/WebKit/Source/core/paint/TextPainter.cpp
|
| index d4d942d6c1577d9b3176ba6a2e5ef59ebef76917..1d06b90b6a2f27e33a7c7d700c65f483326713bf 100644
|
| --- a/third_party/WebKit/Source/core/paint/TextPainter.cpp
|
| +++ b/third_party/WebKit/Source/core/paint/TextPainter.cpp
|
| @@ -155,7 +155,8 @@ TextPainter::Style TextPainter::textPaintingStyle(LineLayoutItem lineLayoutItem,
|
| textStyle.shadow = style.textShadow();
|
|
|
| // Adjust text color when printing with a white background.
|
| - DCHECK(lineLayoutItem.document().printing() == isPrinting);
|
| + DCHECK(lineLayoutItem.document().printing() == isPrinting ||
|
| + RuntimeEnabledFeatures::printBrowserEnabled());
|
| bool forceBackgroundToWhite =
|
| BoxPainter::shouldForceWhiteBackgroundForPrintEconomy(
|
| style, lineLayoutItem.document());
|
|
|