Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(733)

Unified Diff: third_party/WebKit/Source/core/paint/TextPainter.cpp

Issue 2802903002: Move PrintBrowser from SPV2 to SPV1 (Closed)
Patch Set: Clear the PrintContext when disposing of the FrameView Created 3 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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());
« no previous file with comments | « third_party/WebKit/Source/core/frame/FrameView.cpp ('k') | third_party/WebKit/Source/platform/RuntimeEnabledFeatures.json5 » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698