Chromium Code Reviews| Index: third_party/WebKit/Source/core/paint/ObjectPainter.h |
| diff --git a/third_party/WebKit/Source/core/paint/ObjectPainter.h b/third_party/WebKit/Source/core/paint/ObjectPainter.h |
| index 163a3c0f9ce7fb6159d2894777c11f719977b1d0..03dd9d36617251b6b44797f39e0828cc61431867 100644 |
| --- a/third_party/WebKit/Source/core/paint/ObjectPainter.h |
| +++ b/third_party/WebKit/Source/core/paint/ObjectPainter.h |
| @@ -31,6 +31,13 @@ public: |
| static void drawLineForBoxSide(GraphicsContext&, int x1, int y1, int x2, int y2, BoxSide, Color, EBorderStyle, int adjbw1, int adjbw2, bool antialias = false); |
| + // Paints all phases atomically if needed as if the element established its own stacking context. |
| + // (See Appendix E.2, section 7.2.1.4 on inline block/table/replaced elements in the CSS2.1 specification.) |
| + // This is used to paint inline-block elements, flex items, grid items, floats, etc. |
| + // It is expected that the caller will call this function independent of the value of paintInfo.phase, |
| + // and this function will do atomic paint, normal paint or nothing according to paintInfo.phase. |
| + void paintAsStackingContext(const PaintInfo&, const LayoutPoint& paintOffset); |
|
chrishtr
2016/01/07 01:51:26
Similarly: paintAsPseudoStackingContext?
Xianzhu
2016/01/07 17:02:40
Done.
|
| + |
| private: |
| static void drawDashedOrDottedBoxSide(GraphicsContext&, int x1, int y1, int x2, int y2, |
| BoxSide, Color, int thickness, EBorderStyle, bool antialias); |