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

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

Issue 2570463002: Moved -webkit-print-color-adjust property to be generated. (Closed)
Patch Set: Rebase Created 4 years 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/BoxPainter.cpp
diff --git a/third_party/WebKit/Source/core/paint/BoxPainter.cpp b/third_party/WebKit/Source/core/paint/BoxPainter.cpp
index e819921be3debd63330b20b18ef5c7a8854b4be2..20513104feab509ad995bedeba75979ec0995fee 100644
--- a/third_party/WebKit/Source/core/paint/BoxPainter.cpp
+++ b/third_party/WebKit/Source/core/paint/BoxPainter.cpp
@@ -1084,7 +1084,7 @@ bool BoxPainter::shouldForceWhiteBackgroundForPrintEconomy(
const ComputedStyle& style,
const Document& document) {
return document.printing() &&
- style.getPrintColorAdjust() == PrintColorAdjust::Economy &&
+ style.printColorAdjust() == EPrintColorAdjust::Economy &&
(!document.settings() ||
!document.settings()->shouldPrintBackgrounds());
}

Powered by Google App Engine
This is Rietveld 408576698