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 #ifndef ObjectPainter_h | 5 #ifndef ObjectPainter_h |
6 #define ObjectPainter_h | 6 #define ObjectPainter_h |
7 | 7 |
8 #include "core/style/ComputedStyleConstants.h" | 8 #include "core/style/ComputedStyleConstants.h" |
9 #include "wtf/Allocator.h" | 9 #include "wtf/Allocator.h" |
10 #include "wtf/Vector.h" | 10 #include "wtf/Vector.h" |
(...skipping 27 matching lines...) Expand all Loading... |
38 int x2, | 38 int x2, |
39 int y2, | 39 int y2, |
40 BoxSide, | 40 BoxSide, |
41 Color, | 41 Color, |
42 EBorderStyle, | 42 EBorderStyle, |
43 int adjbw1, | 43 int adjbw1, |
44 int adjbw2, | 44 int adjbw2, |
45 bool antialias = false); | 45 bool antialias = false); |
46 | 46 |
47 // Paints the object atomically as if it created a new stacking context, for: | 47 // Paints the object atomically as if it created a new stacking context, for: |
48 // - inline blocks, inline tables, inline-level replaced elements (Section 7.2
.1.4 in | 48 // - inline blocks, inline tables, inline-level replaced elements (Section |
| 49 // 7.2.1.4 in http://www.w3.org/TR/CSS2/zindex.html#painting-order), |
| 50 // - non-positioned floating objects (Section 5 in |
49 // http://www.w3.org/TR/CSS2/zindex.html#painting-order), | 51 // http://www.w3.org/TR/CSS2/zindex.html#painting-order), |
50 // - non-positioned floating objects (Section 5 in http://www.w3.org/TR/CSS2/z
index.html#painting-order), | |
51 // - flex items (http://www.w3.org/TR/css-flexbox-1/#painting), | 52 // - flex items (http://www.w3.org/TR/css-flexbox-1/#painting), |
52 // - grid items (http://www.w3.org/TR/css-grid-1/#z-order), | 53 // - grid items (http://www.w3.org/TR/css-grid-1/#z-order), |
53 // - custom scrollbar parts. | 54 // - custom scrollbar parts. |
54 // Also see https://chromium.googlesource.com/chromium/src.git/+/master/third_
party/WebKit/Source/core/paint/README.md. | 55 // Also see core/paint/README.md. |
55 // | 56 // |
56 // It is expected that the caller will call this function independent of the v
alue of paintInfo.phase, | 57 // It is expected that the caller will call this function independent of the |
57 // and this function will do atomic paint (for PaintPhaseForeground), normal p
aint (for PaintPhaseSelection | 58 // value of paintInfo.phase, and this function will do atomic paint (for |
58 // and PaintPhaseTextClip) or nothing (other paint phases) according to paintI
nfo.phase. | 59 // PaintPhaseForeground), normal paint (for PaintPhaseSelection and |
| 60 // PaintPhaseTextClip) or nothing (other paint phases) according to |
| 61 // paintInfo.phase. |
59 void paintAllPhasesAtomically(const PaintInfo&, | 62 void paintAllPhasesAtomically(const PaintInfo&, |
60 const LayoutPoint& paintOffset); | 63 const LayoutPoint& paintOffset); |
61 | 64 |
62 private: | 65 private: |
63 static void drawDashedOrDottedBoxSide(GraphicsContext&, | 66 static void drawDashedOrDottedBoxSide(GraphicsContext&, |
64 int x1, | 67 int x1, |
65 int y1, | 68 int y1, |
66 int x2, | 69 int x2, |
67 int y2, | 70 int y2, |
68 BoxSide, | 71 BoxSide, |
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
103 int adjacentWidth1, | 106 int adjacentWidth1, |
104 int adjacentWidth2, | 107 int adjacentWidth2, |
105 bool antialias); | 108 bool antialias); |
106 | 109 |
107 const LayoutObject& m_layoutObject; | 110 const LayoutObject& m_layoutObject; |
108 }; | 111 }; |
109 | 112 |
110 } // namespace blink | 113 } // namespace blink |
111 | 114 |
112 #endif | 115 #endif |
OLD | NEW |