| 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 InlineFlowBoxPainter_h | 5 #ifndef InlineFlowBoxPainter_h |
| 6 #define InlineFlowBoxPainter_h | 6 #define InlineFlowBoxPainter_h |
| 7 | 7 |
| 8 #include "core/style/ShadowData.h" | 8 #include "core/style/ShadowData.h" |
| 9 #include "platform/graphics/GraphicsTypes.h" | 9 #include "platform/graphics/GraphicsTypes.h" |
| 10 #include "platform/text/TextDirection.h" | 10 #include "platform/text/TextDirection.h" |
| (...skipping 19 matching lines...) Expand all Loading... |
| 30 void paint(const PaintInfo&, const LayoutPoint& paintOffset, const LayoutUni
t lineTop, const LayoutUnit lineBottom); | 30 void paint(const PaintInfo&, const LayoutPoint& paintOffset, const LayoutUni
t lineTop, const LayoutUnit lineBottom); |
| 31 | 31 |
| 32 LayoutRect frameRectClampedToLineTopAndBottomIfNeeded() const; | 32 LayoutRect frameRectClampedToLineTopAndBottomIfNeeded() const; |
| 33 | 33 |
| 34 private: | 34 private: |
| 35 void paintBoxDecorationBackground(const PaintInfo&, const LayoutPoint& paint
Offset, const LayoutRect& cullRect); | 35 void paintBoxDecorationBackground(const PaintInfo&, const LayoutPoint& paint
Offset, const LayoutRect& cullRect); |
| 36 void paintMask(const PaintInfo&, const LayoutPoint& paintOffset); | 36 void paintMask(const PaintInfo&, const LayoutPoint& paintOffset); |
| 37 void paintFillLayers(const PaintInfo&, const Color&, const FillLayer&, const
LayoutRect&, SkXfermode::Mode op = SkXfermode::kSrcOver_Mode); | 37 void paintFillLayers(const PaintInfo&, const Color&, const FillLayer&, const
LayoutRect&, SkXfermode::Mode op = SkXfermode::kSrcOver_Mode); |
| 38 void paintFillLayer(const PaintInfo&, const Color&, const FillLayer&, const
LayoutRect&, SkXfermode::Mode op); | 38 void paintFillLayer(const PaintInfo&, const Color&, const FillLayer&, const
LayoutRect&, SkXfermode::Mode op); |
| 39 void paintBoxShadow(const PaintInfo&, const ComputedStyle&, ShadowStyle, con
st LayoutRect& paintRect); | 39 void paintBoxShadow(const PaintInfo&, const ComputedStyle&, ShadowStyle, con
st LayoutRect& paintRect); |
| 40 void paintBoxShadowAndFillLayers(const PaintInfo&, const ComputedStyle&, Lay
outRect& paintRect); |
| 40 LayoutRect paintRectForImageStrip(const LayoutPoint& paintOffset, const Layo
utSize& frameSize, TextDirection) const; | 41 LayoutRect paintRectForImageStrip(const LayoutPoint& paintOffset, const Layo
utSize& frameSize, TextDirection) const; |
| 41 | 42 |
| 42 enum BorderPaintingType { | 43 enum BorderPaintingType { |
| 43 DontPaintBorders, | 44 DontPaintBorders, |
| 44 PaintBordersWithoutClip, | 45 PaintBordersWithoutClip, |
| 45 PaintBordersWithClip | 46 PaintBordersWithClip |
| 46 }; | 47 }; |
| 47 BorderPaintingType getBorderPaintType(const LayoutRect& adjustedFrameRect, I
ntRect& adjustedClipRect) const; | 48 BorderPaintingType getBorderPaintType(const LayoutRect& adjustedFrameRect, I
ntRect& adjustedClipRect) const; |
| 48 | 49 |
| 49 const InlineFlowBox& m_inlineFlowBox; | 50 const InlineFlowBox& m_inlineFlowBox; |
| 50 }; | 51 }; |
| 51 | 52 |
| 52 } // namespace blink | 53 } // namespace blink |
| 53 | 54 |
| 54 #endif // InlineFlowBoxPainter_h | 55 #endif // InlineFlowBoxPainter_h |
| OLD | NEW |