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

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

Issue 2802903002: Move PrintBrowser from SPV2 to SPV1 (Closed)
Patch Set: Only call PrintContext::end() if we are exiting Print mode not PrintBrowser mode 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 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());

Powered by Google App Engine
This is Rietveld 408576698