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

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

Issue 2392443009: reflow comments in core/paint (Closed)
Patch Set: 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 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 #ifndef BoxPainter_h 5 #ifndef BoxPainter_h
6 #define BoxPainter_h 6 #define BoxPainter_h
7 7
8 #include "core/layout/BackgroundBleedAvoidance.h" 8 #include "core/layout/BackgroundBleedAvoidance.h"
9 #include "core/style/ShadowData.h" 9 #include "core/style/ShadowData.h"
10 #include "platform/geometry/LayoutSize.h" 10 #include "platform/geometry/LayoutSize.h"
(...skipping 23 matching lines...) Expand all
34 34
35 public: 35 public:
36 BoxPainter(const LayoutBox& layoutBox) : m_layoutBox(layoutBox) {} 36 BoxPainter(const LayoutBox& layoutBox) : m_layoutBox(layoutBox) {}
37 void paint(const PaintInfo&, const LayoutPoint&); 37 void paint(const PaintInfo&, const LayoutPoint&);
38 38
39 void paintBoxDecorationBackground(const PaintInfo&, const LayoutPoint&); 39 void paintBoxDecorationBackground(const PaintInfo&, const LayoutPoint&);
40 void paintMask(const PaintInfo&, const LayoutPoint&); 40 void paintMask(const PaintInfo&, const LayoutPoint&);
41 void paintClippingMask(const PaintInfo&, const LayoutPoint&); 41 void paintClippingMask(const PaintInfo&, const LayoutPoint&);
42 42
43 typedef Vector<const FillLayer*, 8> FillLayerOcclusionOutputList; 43 typedef Vector<const FillLayer*, 8> FillLayerOcclusionOutputList;
44 // Returns true if the result fill layers have non-associative blending or com positing mode. 44 // Returns true if the result fill layers have non-associative blending or
45 // (i.e. The rendering will be different without creating isolation group by c ontext.saveLayer().) 45 // compositing mode. (i.e. The rendering will be different without creating
46 // Note that the output list will be in top-bottom order. 46 // isolation group by context.saveLayer().) Note that the output list will be
47 // in top-bottom order.
47 bool calculateFillLayerOcclusionCulling( 48 bool calculateFillLayerOcclusionCulling(
48 FillLayerOcclusionOutputList& reversedPaintList, 49 FillLayerOcclusionOutputList& reversedPaintList,
49 const FillLayer&); 50 const FillLayer&);
50 51
51 // Returns true if the fill layer will certainly occlude anything painted behi nd it. 52 // Returns true if the fill layer will certainly occlude anything painted
53 // behind it.
52 static bool isFillLayerOpaque(const FillLayer&, const LayoutObject&); 54 static bool isFillLayerOpaque(const FillLayer&, const LayoutObject&);
53 55
54 void paintFillLayers(const PaintInfo&, 56 void paintFillLayers(const PaintInfo&,
55 const Color&, 57 const Color&,
56 const FillLayer&, 58 const FillLayer&,
57 const LayoutRect&, 59 const LayoutRect&,
58 BackgroundBleedAvoidance = BackgroundBleedNone, 60 BackgroundBleedAvoidance = BackgroundBleedNone,
59 SkXfermode::Mode = SkXfermode::kSrcOver_Mode, 61 SkXfermode::Mode = SkXfermode::kSrcOver_Mode,
60 const LayoutObject* backgroundObject = nullptr); 62 const LayoutObject* backgroundObject = nullptr);
61 void paintMaskImages(const PaintInfo&, const LayoutRect&); 63 void paintMaskImages(const PaintInfo&, const LayoutRect&);
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
106 const LayoutRect&, 108 const LayoutRect&,
107 const Color& backgroundColor, 109 const Color& backgroundColor,
108 BackgroundBleedAvoidance = BackgroundBleedNone); 110 BackgroundBleedAvoidance = BackgroundBleedNone);
109 111
110 const LayoutBox& m_layoutBox; 112 const LayoutBox& m_layoutBox;
111 }; 113 };
112 114
113 } // namespace blink 115 } // namespace blink
114 116
115 #endif 117 #endif
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/paint/BoxPaintInvalidator.cpp ('k') | third_party/WebKit/Source/core/paint/BoxPainter.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698