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

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

Issue 898783003: Move rendering/RenderLayer* to layout/ (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 10 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/BoxClipper.cpp ('k') | Source/core/paint/BoxPainter.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 BoxPainter_h 5 #ifndef BoxPainter_h
6 #define BoxPainter_h 6 #define BoxPainter_h
7 7
8 #include "core/paint/ObjectPainter.h" 8 #include "core/paint/ObjectPainter.h"
9 #include "core/rendering/RenderBoxModelObject.h" 9 #include "core/rendering/RenderBoxModelObject.h"
10 10
(...skipping 11 matching lines...) Expand all
22 BoxPainter(RenderBox& renderBox) : m_renderBox(renderBox) { } 22 BoxPainter(RenderBox& renderBox) : m_renderBox(renderBox) { }
23 void paint(const PaintInfo&, const LayoutPoint&); 23 void paint(const PaintInfo&, const LayoutPoint&);
24 24
25 void paintBoxDecorationBackground(const PaintInfo&, const LayoutPoint&); 25 void paintBoxDecorationBackground(const PaintInfo&, const LayoutPoint&);
26 void paintMask(const PaintInfo&, const LayoutPoint&); 26 void paintMask(const PaintInfo&, const LayoutPoint&);
27 void paintClippingMask(const PaintInfo&, const LayoutPoint&); 27 void paintClippingMask(const PaintInfo&, const LayoutPoint&);
28 void paintFillLayers(const PaintInfo&, const Color&, const FillLayer&, const LayoutRect&, BackgroundBleedAvoidance = BackgroundBleedNone, SkXfermode::Mode = SkXfermode::kSrcOver_Mode, RenderObject* backgroundObject = 0); 28 void paintFillLayers(const PaintInfo&, const Color&, const FillLayer&, const LayoutRect&, BackgroundBleedAvoidance = BackgroundBleedNone, SkXfermode::Mode = SkXfermode::kSrcOver_Mode, RenderObject* backgroundObject = 0);
29 void paintMaskImages(const PaintInfo&, const LayoutRect&); 29 void paintMaskImages(const PaintInfo&, const LayoutRect&);
30 void paintBoxDecorationBackgroundWithRect(const PaintInfo&, const LayoutPoin t&, const LayoutRect&); 30 void paintBoxDecorationBackgroundWithRect(const PaintInfo&, const LayoutPoin t&, const LayoutRect&);
31 static void paintFillLayerExtended(RenderBoxModelObject&, const PaintInfo&, const Color&, const FillLayer&, const LayoutRect&, BackgroundBleedAvoidance, Inl ineFlowBox* = 0, const LayoutSize& = LayoutSize(), SkXfermode::Mode = SkXfermode ::kSrcOver_Mode, RenderObject* backgroundObject = 0, bool skipBaseColor = false) ; 31 static void paintFillLayerExtended(RenderBoxModelObject&, const PaintInfo&, const Color&, const FillLayer&, const LayoutRect&, BackgroundBleedAvoidance, Inl ineFlowBox* = 0, const LayoutSize& = LayoutSize(), SkXfermode::Mode = SkXfermode ::kSrcOver_Mode, RenderObject* backgroundObject = 0, bool skipBaseColor = false) ;
32 static void calculateBackgroundImageGeometry(RenderBoxModelObject&, const Re nderLayerModelObject* paintContainer, const FillLayer&, const LayoutRect& paintR ect, BackgroundImageGeometry&, RenderObject* = 0); 32 static void calculateBackgroundImageGeometry(RenderBoxModelObject&, const La youtLayerModelObject* paintContainer, const FillLayer&, const LayoutRect& paintR ect, BackgroundImageGeometry&, RenderObject* = 0);
33 static InterpolationQuality chooseInterpolationQuality(RenderBoxModelObject& , GraphicsContext*, Image*, const void*, const LayoutSize&); 33 static InterpolationQuality chooseInterpolationQuality(RenderBoxModelObject& , GraphicsContext*, Image*, const void*, const LayoutSize&);
34 static bool paintNinePieceImage(RenderBoxModelObject&, GraphicsContext*, con st LayoutRect&, const RenderStyle&, const NinePieceImage&, SkXfermode::Mode = Sk Xfermode::kSrcOver_Mode); 34 static bool paintNinePieceImage(RenderBoxModelObject&, GraphicsContext*, con st LayoutRect&, const RenderStyle&, const NinePieceImage&, SkXfermode::Mode = Sk Xfermode::kSrcOver_Mode);
35 static void paintBorder(RenderBoxModelObject&, const PaintInfo&, const Layou tRect&, const RenderStyle&, BackgroundBleedAvoidance = BackgroundBleedNone, bool includeLogicalLeftEdge = true, bool includeLogicalRightEdge = true); 35 static void paintBorder(RenderBoxModelObject&, const PaintInfo&, const Layou tRect&, const RenderStyle&, BackgroundBleedAvoidance = BackgroundBleedNone, bool includeLogicalLeftEdge = true, bool includeLogicalRightEdge = true);
36 static void paintBoxShadow(const PaintInfo&, const LayoutRect&, const Render Style&, ShadowStyle, bool includeLogicalLeftEdge = true, bool includeLogicalRigh tEdge = true); 36 static void paintBoxShadow(const PaintInfo&, const LayoutRect&, const Render Style&, ShadowStyle, bool includeLogicalLeftEdge = true, bool includeLogicalRigh tEdge = true);
37 static bool shouldAntialiasLines(GraphicsContext*); 37 static bool shouldAntialiasLines(GraphicsContext*);
38 38
39 private: 39 private:
40 void paintBackground(const PaintInfo&, const LayoutRect&, const Color& backg roundColor, BackgroundBleedAvoidance = BackgroundBleedNone); 40 void paintBackground(const PaintInfo&, const LayoutRect&, const Color& backg roundColor, BackgroundBleedAvoidance = BackgroundBleedNone);
41 void paintRootBoxFillLayers(const PaintInfo&); 41 void paintRootBoxFillLayers(const PaintInfo&);
42 void paintFillLayer(const PaintInfo&, const Color&, const FillLayer&, const LayoutRect&, BackgroundBleedAvoidance, SkXfermode::Mode, RenderObject* backgroun dObject, bool skipBaseColor = false); 42 void paintFillLayer(const PaintInfo&, const Color&, const FillLayer&, const LayoutRect&, BackgroundBleedAvoidance, SkXfermode::Mode, RenderObject* backgroun dObject, bool skipBaseColor = false);
(...skipping 24 matching lines...) Expand all
67 LayoutRect boundsForDrawingRecorder(const LayoutPoint& paintOffset); 67 LayoutRect boundsForDrawingRecorder(const LayoutPoint& paintOffset);
68 LayoutRect scrolledBackgroundRect(); 68 LayoutRect scrolledBackgroundRect();
69 69
70 // FIXME: this should be const. 70 // FIXME: this should be const.
71 RenderBox& m_renderBox; 71 RenderBox& m_renderBox;
72 }; 72 };
73 73
74 } // namespace blink 74 } // namespace blink
75 75
76 #endif 76 #endif
OLDNEW
« no previous file with comments | « Source/core/paint/BoxClipper.cpp ('k') | Source/core/paint/BoxPainter.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698