| 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/rendering/style/ShadowData.h" | 8 #include "core/rendering/style/ShadowData.h" |
| 9 #include "platform/graphics/GraphicsTypes.h" | 9 #include "platform/graphics/GraphicsTypes.h" |
| 10 #include "platform/text/TextDirection.h" |
| 10 | 11 |
| 11 namespace blink { | 12 namespace blink { |
| 12 | 13 |
| 13 class Color; | 14 class Color; |
| 14 class FillLayer; | 15 class FillLayer; |
| 15 class InlineFlowBox; | 16 class InlineFlowBox; |
| 16 class LayoutPoint; | 17 class LayoutPoint; |
| 17 class LayoutRect; | 18 class LayoutRect; |
| 19 class LayoutSize; |
| 18 class LayoutUnit; | 20 class LayoutUnit; |
| 19 struct PaintInfo; | 21 struct PaintInfo; |
| 20 class RenderStyle; | 22 class RenderStyle; |
| 21 | 23 |
| 22 class InlineFlowBoxPainter { | 24 class InlineFlowBoxPainter { |
| 23 public: | 25 public: |
| 24 InlineFlowBoxPainter(InlineFlowBox& inlineFlowBox) : m_inlineFlowBox(inlineF
lowBox) { } | 26 InlineFlowBoxPainter(InlineFlowBox& inlineFlowBox) : m_inlineFlowBox(inlineF
lowBox) { } |
| 25 void paint(const PaintInfo&, const LayoutPoint&, const LayoutUnit lineTop, c
onst LayoutUnit lineBottom); | 27 void paint(const PaintInfo&, const LayoutPoint&, const LayoutUnit lineTop, c
onst LayoutUnit lineBottom); |
| 26 | 28 |
| 27 private: | 29 private: |
| 28 void paintBoxDecorationBackground(const PaintInfo&, const LayoutPoint&); | 30 void paintBoxDecorationBackground(const PaintInfo&, const LayoutPoint&); |
| 29 void paintMask(const PaintInfo&, const LayoutPoint&); | 31 void paintMask(const PaintInfo&, const LayoutPoint&); |
| 30 void paintFillLayers(const PaintInfo&, const Color&, const FillLayer&, const
LayoutRect&, CompositeOperator = CompositeSourceOver); | 32 void paintFillLayers(const PaintInfo&, const Color&, const FillLayer&, const
LayoutRect&, CompositeOperator = CompositeSourceOver); |
| 31 void paintFillLayer(const PaintInfo&, const Color&, const FillLayer&, const
LayoutRect&, CompositeOperator); | 33 void paintFillLayer(const PaintInfo&, const Color&, const FillLayer&, const
LayoutRect&, CompositeOperator); |
| 32 void paintBoxShadow(const PaintInfo&, RenderStyle*, ShadowStyle, const Layou
tRect&); | 34 void paintBoxShadow(const PaintInfo&, RenderStyle*, ShadowStyle, const Layou
tRect&); |
| 33 LayoutRect roundedFrameRectClampedToLineTopAndBottomIfNeeded() const; | 35 LayoutRect roundedFrameRectClampedToLineTopAndBottomIfNeeded() const; |
| 36 LayoutRect paintRectForImageStrip(const LayoutPoint&, const LayoutSize&, Tex
tDirection) const; |
| 34 | 37 |
| 35 InlineFlowBox& m_inlineFlowBox; | 38 InlineFlowBox& m_inlineFlowBox; |
| 36 }; | 39 }; |
| 37 | 40 |
| 38 } // namespace blink | 41 } // namespace blink |
| 39 | 42 |
| 40 #endif // InlineFlowBoxPainter_h | 43 #endif // InlineFlowBoxPainter_h |
| OLD | NEW |