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

Side by Side Diff: third_party/WebKit/Source/core/paint/BoxPainter.cpp

Issue 2514273002: Changed PrintColorAdjust to an enum class and renamed its members (Closed)
Patch Set: Created 4 years, 1 month 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 unified diff | Download patch
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "core/paint/BoxPainter.h" 5 #include "core/paint/BoxPainter.h"
6 6
7 #include "core/HTMLNames.h" 7 #include "core/HTMLNames.h"
8 #include "core/frame/Settings.h" 8 #include "core/frame/Settings.h"
9 #include "core/html/HTMLFrameOwnerElement.h" 9 #include "core/html/HTMLFrameOwnerElement.h"
10 #include "core/layout/ImageQualityController.h" 10 #include "core/layout/ImageQualityController.h"
(...skipping 1033 matching lines...) Expand 10 before | Expand all | Expand 10 after
1044 context.drawInnerShadow(border, shadowColor, shadowOffset, shadowBlur, 1044 context.drawInnerShadow(border, shadowColor, shadowOffset, shadowBlur,
1045 shadowSpread, clippedEdges); 1045 shadowSpread, clippedEdges);
1046 } 1046 }
1047 } 1047 }
1048 } 1048 }
1049 1049
1050 bool BoxPainter::shouldForceWhiteBackgroundForPrintEconomy( 1050 bool BoxPainter::shouldForceWhiteBackgroundForPrintEconomy(
1051 const ComputedStyle& style, 1051 const ComputedStyle& style,
1052 const Document& document) { 1052 const Document& document) {
1053 return document.printing() && 1053 return document.printing() &&
1054 style.getPrintColorAdjust() == PrintColorAdjustEconomy && 1054 style.getPrintColorAdjust() == PrintColorAdjust::Economy &&
1055 (!document.settings() || 1055 (!document.settings() ||
1056 !document.settings()->shouldPrintBackgrounds()); 1056 !document.settings()->shouldPrintBackgrounds());
1057 } 1057 }
1058 1058
1059 } // namespace blink 1059 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/css/CSSPrimitiveValueMappings.h ('k') | third_party/WebKit/Source/core/style/ComputedStyle.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698