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

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

Issue 868743002: Use SkXfermode::Mode in code related to Image. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: rebase to ToT Created 5 years, 11 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
« 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/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 #include "platform/text/TextDirection.h"
(...skipping 11 matching lines...) Expand all
22 class RenderStyle; 22 class RenderStyle;
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&, CompositeOperator = CompositeSourceOver); 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&, CompositeOperator); 33 void paintFillLayer(const PaintInfo&, const Color&, const FillLayer&, const LayoutRect&, SkXfermode::Mode);
34 void paintBoxShadow(const PaintInfo&, RenderStyle*, ShadowStyle, const Layou tRect&); 34 void paintBoxShadow(const PaintInfo&, RenderStyle*, ShadowStyle, const Layou tRect&);
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 InlineFlowBox& m_inlineFlowBox; 38 InlineFlowBox& m_inlineFlowBox;
39 }; 39 };
40 40
41 } // namespace blink 41 } // namespace blink
42 42
43 #endif // InlineFlowBoxPainter_h 43 #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