| 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 27e9bba24e4f10a3a285cff7f0fd8c2778db076e..7df200bb2a4981997cf3c35ada783c66e8f05341 100644
|
| --- a/third_party/WebKit/Source/core/paint/TextPainter.cpp
|
| +++ b/third_party/WebKit/Source/core/paint/TextPainter.cpp
|
| @@ -157,7 +157,8 @@ TextPainter::Style TextPainter::TextPaintingStyle(
|
| text_style.shadow = style.TextShadow();
|
|
|
| // Adjust text color when printing with a white background.
|
| - DCHECK(line_layout_item.GetDocument().Printing() == is_printing);
|
| + DCHECK(line_layout_item.GetDocument().Printing() == is_printing ||
|
| + RuntimeEnabledFeatures::printBrowserEnabled());
|
| bool force_background_to_white =
|
| BoxPainter::ShouldForceWhiteBackgroundForPrintEconomy(
|
| style, line_layout_item.GetDocument());
|
|
|