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

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

Issue 1033943002: Rename LayoutStyle to papayawhip (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: ensureComputedStyle Created 5 years, 8 months 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
« no previous file with comments | « Source/core/paint/ImagePainter.cpp ('k') | Source/core/paint/InlineFlowBoxPainter.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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/layout/style/ShadowData.h" 8 #include "core/layout/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"
11 11
12 namespace blink { 12 namespace blink {
13 13
14 class Color; 14 class Color;
15 class FillLayer; 15 class FillLayer;
16 class InlineFlowBox; 16 class InlineFlowBox;
17 class LayoutPoint; 17 class LayoutPoint;
18 class LayoutRect; 18 class LayoutRect;
19 class LayoutSize; 19 class LayoutSize;
20 class LayoutUnit; 20 class LayoutUnit;
21 struct PaintInfo; 21 struct PaintInfo;
22 class LayoutStyle; 22 class ComputedStyle;
23 23
24 class InlineFlowBoxPainter { 24 class InlineFlowBoxPainter {
25 public: 25 public:
26 InlineFlowBoxPainter(InlineFlowBox& inlineFlowBox) : m_inlineFlowBox(inlineF lowBox) { } 26 InlineFlowBoxPainter(InlineFlowBox& inlineFlowBox) : m_inlineFlowBox(inlineF lowBox) { }
27 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);
28 28
29 private: 29 private:
30 void paintBoxDecorationBackground(const PaintInfo&, const LayoutPoint&); 30 void paintBoxDecorationBackground(const PaintInfo&, const LayoutPoint&);
31 void paintMask(const PaintInfo&, const LayoutPoint&); 31 void paintMask(const PaintInfo&, const LayoutPoint&);
32 void paintFillLayers(const PaintInfo&, const Color&, const FillLayer&, const LayoutRect&, SkXfermode::Mode = SkXfermode::kSrcOver_Mode); 32 void paintFillLayers(const PaintInfo&, const Color&, const FillLayer&, const LayoutRect&, SkXfermode::Mode = SkXfermode::kSrcOver_Mode);
33 void paintFillLayer(const PaintInfo&, const Color&, const FillLayer&, const LayoutRect&, SkXfermode::Mode); 33 void paintFillLayer(const PaintInfo&, const Color&, const FillLayer&, const LayoutRect&, SkXfermode::Mode);
34 void paintBoxShadow(const PaintInfo&, const LayoutStyle&, ShadowStyle, const LayoutRect&); 34 void paintBoxShadow(const PaintInfo&, const ComputedStyle&, ShadowStyle, con st LayoutRect&);
35 LayoutRect roundedFrameRectClampedToLineTopAndBottomIfNeeded() const; 35 LayoutRect roundedFrameRectClampedToLineTopAndBottomIfNeeded() const;
36 LayoutRect paintRectForImageStrip(const LayoutPoint&, const LayoutSize&, Tex tDirection) const; 36 LayoutRect paintRectForImageStrip(const LayoutPoint&, const LayoutSize&, Tex tDirection) const;
37 37
38 enum BorderPaintingType { 38 enum BorderPaintingType {
39 DontPaintBorders, 39 DontPaintBorders,
40 PaintBordersWithoutClip, 40 PaintBordersWithoutClip,
41 PaintBordersWithClip 41 PaintBordersWithClip
42 }; 42 };
43 BorderPaintingType getBorderPaintType(const LayoutRect& adjustedFrameRect, L ayoutRect& adjustedClipRect) const; 43 BorderPaintingType getBorderPaintType(const LayoutRect& adjustedFrameRect, L ayoutRect& adjustedClipRect) const;
44 44
45 InlineFlowBox& m_inlineFlowBox; 45 InlineFlowBox& m_inlineFlowBox;
46 }; 46 };
47 47
48 } // namespace blink 48 } // namespace blink
49 49
50 #endif // InlineFlowBoxPainter_h 50 #endif // InlineFlowBoxPainter_h
OLDNEW
« no previous file with comments | « Source/core/paint/ImagePainter.cpp ('k') | Source/core/paint/InlineFlowBoxPainter.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698