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

Side by Side Diff: Source/core/paint/InlineFlowBoxPainter.h

Issue 752373003: Remove duplicated code for image-strip computation in InlineFlowBoxPainter (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years 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 | Annotate | Revision Log
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 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 10
11 namespace blink { 11 namespace blink {
12 12
13 class Color; 13 class Color;
14 class FillLayer; 14 class FillLayer;
15 class InlineFlowBox; 15 class InlineFlowBox;
16 class LayoutPoint; 16 class LayoutPoint;
17 class LayoutRect; 17 class LayoutRect;
18 class LayoutSize;
18 class LayoutUnit; 19 class LayoutUnit;
19 struct PaintInfo; 20 struct PaintInfo;
20 class RenderStyle; 21 class RenderStyle;
21 22
22 class InlineFlowBoxPainter { 23 class InlineFlowBoxPainter {
23 public: 24 public:
24 InlineFlowBoxPainter(InlineFlowBox& inlineFlowBox) : m_inlineFlowBox(inlineF lowBox) { } 25 InlineFlowBoxPainter(InlineFlowBox& inlineFlowBox) : m_inlineFlowBox(inlineF lowBox) { }
25 void paint(const PaintInfo&, const LayoutPoint&, const LayoutUnit lineTop, c onst LayoutUnit lineBottom); 26 void paint(const PaintInfo&, const LayoutPoint&, const LayoutUnit lineTop, c onst LayoutUnit lineBottom);
26 27
27 private: 28 private:
28 void paintBoxDecorationBackground(const PaintInfo&, const LayoutPoint&); 29 void paintBoxDecorationBackground(const PaintInfo&, const LayoutPoint&);
29 void paintMask(const PaintInfo&, const LayoutPoint&); 30 void paintMask(const PaintInfo&, const LayoutPoint&);
30 void paintFillLayers(const PaintInfo&, const Color&, const FillLayer&, const LayoutRect&, CompositeOperator = CompositeSourceOver); 31 void paintFillLayers(const PaintInfo&, const Color&, const FillLayer&, const LayoutRect&, CompositeOperator = CompositeSourceOver);
31 void paintFillLayer(const PaintInfo&, const Color&, const FillLayer&, const LayoutRect&, CompositeOperator); 32 void paintFillLayer(const PaintInfo&, const Color&, const FillLayer&, const LayoutRect&, CompositeOperator);
32 void paintBoxShadow(const PaintInfo&, RenderStyle*, ShadowStyle, const Layou tRect&); 33 void paintBoxShadow(const PaintInfo&, RenderStyle*, ShadowStyle, const Layou tRect&);
33 LayoutRect roundedFrameRectClampedToLineTopAndBottomIfNeeded() const; 34 LayoutRect roundedFrameRectClampedToLineTopAndBottomIfNeeded() const;
35 LayoutRect paintRectForImageStrip(const LayoutPoint&, const LayoutSize&, boo l isLeftToRightDirection = true) const;
chrishtr 2014/12/04 17:47:57 Please change the third arg to a TextDirection and
chrishtr 2014/12/04 17:47:57 Please change the third arg to a TextDirection and
fs 2014/12/04 18:15:45 Done.
34 36
35 InlineFlowBox& m_inlineFlowBox; 37 InlineFlowBox& m_inlineFlowBox;
36 }; 38 };
37 39
38 } // namespace blink 40 } // namespace blink
39 41
40 #endif // InlineFlowBoxPainter_h 42 #endif // InlineFlowBoxPainter_h
OLDNEW
« no previous file with comments | « no previous file | Source/core/paint/InlineFlowBoxPainter.cpp » ('j') | Source/core/paint/InlineFlowBoxPainter.cpp » ('J')

Powered by Google App Engine
This is Rietveld 408576698