| OLD | NEW |
| 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 1068 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1079 shadowSpread, clippedEdges); | 1079 shadowSpread, clippedEdges); |
| 1080 } | 1080 } |
| 1081 } | 1081 } |
| 1082 | 1082 |
| 1083 bool BoxPainter::shouldForceWhiteBackgroundForPrintEconomy( | 1083 bool BoxPainter::shouldForceWhiteBackgroundForPrintEconomy( |
| 1084 const ComputedStyle& style, | 1084 const ComputedStyle& style, |
| 1085 const Document& document) { | 1085 const Document& document) { |
| 1086 return document.printing() && | 1086 return document.printing() && |
| 1087 style.printColorAdjust() == EPrintColorAdjust::Economy && | 1087 style.printColorAdjust() == EPrintColorAdjust::Economy && |
| 1088 (!document.settings() || | 1088 (!document.settings() || |
| 1089 !document.settings()->shouldPrintBackgrounds()); | 1089 !document.settings()->getShouldPrintBackgrounds()); |
| 1090 } | 1090 } |
| 1091 | 1091 |
| 1092 } // namespace blink | 1092 } // namespace blink |
| OLD | NEW |