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

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

Issue 2700123003: DO NOT COMMIT: Results of running old (current) clang-format on Blink (Closed)
Patch Set: Created 3 years, 10 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 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"
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/compositing/CompositedLayerMapping.h" 16 #include "core/layout/compositing/CompositedLayerMapping.h"
17 #include "core/layout/line/RootInlineBox.h" 17 #include "core/layout/line/RootInlineBox.h"
18 #include "core/style/BorderEdge.h"
19 #include "core/style/ShadowList.h"
20 #include "core/paint/BackgroundImageGeometry.h" 18 #include "core/paint/BackgroundImageGeometry.h"
21 #include "core/paint/BoxBorderPainter.h" 19 #include "core/paint/BoxBorderPainter.h"
22 #include "core/paint/BoxDecorationData.h" 20 #include "core/paint/BoxDecorationData.h"
23 #include "core/paint/LayoutObjectDrawingRecorder.h" 21 #include "core/paint/LayoutObjectDrawingRecorder.h"
24 #include "core/paint/NinePieceImagePainter.h" 22 #include "core/paint/NinePieceImagePainter.h"
25 #include "core/paint/ObjectPainter.h" 23 #include "core/paint/ObjectPainter.h"
26 #include "core/paint/PaintInfo.h" 24 #include "core/paint/PaintInfo.h"
27 #include "core/paint/PaintLayer.h" 25 #include "core/paint/PaintLayer.h"
28 #include "core/paint/RoundedInnerRectClipper.h" 26 #include "core/paint/RoundedInnerRectClipper.h"
29 #include "core/paint/ScrollRecorder.h" 27 #include "core/paint/ScrollRecorder.h"
30 #include "core/paint/ThemePainter.h" 28 #include "core/paint/ThemePainter.h"
29 #include "core/style/BorderEdge.h"
30 #include "core/style/ShadowList.h"
31 #include "platform/LengthFunctions.h" 31 #include "platform/LengthFunctions.h"
32 #include "platform/geometry/LayoutPoint.h" 32 #include "platform/geometry/LayoutPoint.h"
33 #include "platform/geometry/LayoutRectOutsets.h" 33 #include "platform/geometry/LayoutRectOutsets.h"
34 #include "platform/graphics/GraphicsContextStateSaver.h" 34 #include "platform/graphics/GraphicsContextStateSaver.h"
35 #include "platform/graphics/paint/CompositingDisplayItem.h" 35 #include "platform/graphics/paint/CompositingDisplayItem.h"
36 #include "wtf/Optional.h" 36 #include "wtf/Optional.h"
37 37
38 namespace blink { 38 namespace blink {
39 39
40 bool BoxPainter::isPaintingBackgroundOfPaintContainerIntoScrollingContentsLayer( 40 bool BoxPainter::isPaintingBackgroundOfPaintContainerIntoScrollingContentsLayer(
(...skipping 1049 matching lines...) Expand 10 before | Expand all | Expand 10 after
1090 bool BoxPainter::shouldForceWhiteBackgroundForPrintEconomy( 1090 bool BoxPainter::shouldForceWhiteBackgroundForPrintEconomy(
1091 const ComputedStyle& style, 1091 const ComputedStyle& style,
1092 const Document& document) { 1092 const Document& document) {
1093 return document.printing() && 1093 return document.printing() &&
1094 style.printColorAdjust() == EPrintColorAdjust::kEconomy && 1094 style.printColorAdjust() == EPrintColorAdjust::kEconomy &&
1095 (!document.settings() || 1095 (!document.settings() ||
1096 !document.settings()->getShouldPrintBackgrounds()); 1096 !document.settings()->getShouldPrintBackgrounds());
1097 } 1097 }
1098 1098
1099 } // namespace blink 1099 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698