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

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

Issue 2417683002: Disable scroll anchoring when in printing mode (Closed)
Patch Set: Add comment Created 4 years, 2 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
« no previous file with comments | « third_party/WebKit/Source/core/paint/PaintLayerScrollableArea.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/core/paint/TextPainterTest.cpp
diff --git a/third_party/WebKit/Source/core/paint/TextPainterTest.cpp b/third_party/WebKit/Source/core/paint/TextPainterTest.cpp
index d5cd80ec34114f65b531be1c974347fb8b1580a4..44fbf6ded978852b714e8b6300e95e993d593818 100644
--- a/third_party/WebKit/Source/core/paint/TextPainterTest.cpp
+++ b/third_party/WebKit/Source/core/paint/TextPainterTest.cpp
@@ -129,7 +129,7 @@ TEST_F(TextPainterTest,
document().body()->setInlineStyleProperty(CSSPropertyWebkitPrintColorAdjust,
CSSValueEconomy);
document().settings()->setShouldPrintBackgrounds(false);
- document().setPrinting(true);
+ document().setPrinting(Document::Printing);
document().view()->updateAllLifecyclePhases();
TextPainter::Style textStyle = TextPainter::textPaintingStyle(
@@ -150,7 +150,7 @@ TEST_F(TextPainterTest, TextPaintingStyle_ForceBackgroundToWhite_Darkened) {
document().body()->setInlineStyleProperty(CSSPropertyWebkitPrintColorAdjust,
CSSValueEconomy);
document().settings()->setShouldPrintBackgrounds(false);
- document().setPrinting(true);
+ document().setPrinting(Document::Printing);
document().view()->updateAllLifecyclePhases();
TextPainter::Style textStyle = TextPainter::textPaintingStyle(
« no previous file with comments | « third_party/WebKit/Source/core/paint/PaintLayerScrollableArea.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698