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" |
11 #include "core/layout/LayoutBox.h" | 11 #include "core/layout/LayoutBox.h" |
12 #include "core/layout/LayoutBoxModelObject.h" | 12 #include "core/layout/LayoutBoxModelObject.h" |
13 #include "core/layout/LayoutObject.h" | 13 #include "core/layout/LayoutObject.h" |
14 #include "core/layout/LayoutTable.h" | 14 #include "core/layout/LayoutTable.h" |
15 #include "core/layout/LayoutTheme.h" | 15 #include "core/layout/LayoutTheme.h" |
16 #include "core/layout/LayoutView.h" | |
17 #include "core/layout/compositing/CompositedLayerMapping.h" | 16 #include "core/layout/compositing/CompositedLayerMapping.h" |
| 17 #include "core/layout/line/RootInlineBox.h" |
18 #include "core/style/BorderEdge.h" | 18 #include "core/style/BorderEdge.h" |
19 #include "core/style/ShadowList.h" | 19 #include "core/style/ShadowList.h" |
20 #include "core/paint/BackgroundImageGeometry.h" | 20 #include "core/paint/BackgroundImageGeometry.h" |
21 #include "core/paint/BoxBorderPainter.h" | 21 #include "core/paint/BoxBorderPainter.h" |
22 #include "core/paint/BoxDecorationData.h" | 22 #include "core/paint/BoxDecorationData.h" |
23 #include "core/paint/LayoutObjectDrawingRecorder.h" | 23 #include "core/paint/LayoutObjectDrawingRecorder.h" |
24 #include "core/paint/NinePieceImagePainter.h" | 24 #include "core/paint/NinePieceImagePainter.h" |
25 #include "core/paint/PaintInfo.h" | 25 #include "core/paint/PaintInfo.h" |
26 #include "core/paint/PaintLayer.h" | 26 #include "core/paint/PaintLayer.h" |
27 #include "core/paint/RoundedInnerRectClipper.h" | 27 #include "core/paint/RoundedInnerRectClipper.h" |
(...skipping 693 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
721 } | 721 } |
722 } | 722 } |
723 | 723 |
724 bool BoxPainter::shouldForceWhiteBackgroundForPrintEconomy(const ComputedStyle&
style, const Document& document) | 724 bool BoxPainter::shouldForceWhiteBackgroundForPrintEconomy(const ComputedStyle&
style, const Document& document) |
725 { | 725 { |
726 return document.printing() && style.getPrintColorAdjust() == PrintColorAdjus
tEconomy | 726 return document.printing() && style.getPrintColorAdjust() == PrintColorAdjus
tEconomy |
727 && (!document.settings() || !document.settings()->shouldPrintBackgrounds
()); | 727 && (!document.settings() || !document.settings()->shouldPrintBackgrounds
()); |
728 } | 728 } |
729 | 729 |
730 } // namespace blink | 730 } // namespace blink |
OLD | NEW |