Chromium Code Reviews| Index: Source/core/paint/BoxPainter.h |
| diff --git a/Source/core/paint/BoxPainter.h b/Source/core/paint/BoxPainter.h |
| index b67912d3848d5424b8f6f09dd59bd3e5f9c0acfc..505b1e5d429d1c1711b559e1eb071310838c4137 100644 |
| --- a/Source/core/paint/BoxPainter.h |
| +++ b/Source/core/paint/BoxPainter.h |
| @@ -25,11 +25,23 @@ public: |
| void paintFillLayers(const PaintInfo&, const Color&, const FillLayer&, const LayoutRect&, BackgroundBleedAvoidance = BackgroundBleedNone, CompositeOperator = CompositeSourceOver, RenderObject* backgroundObject = 0); |
| void paintMaskImages(const PaintInfo&, const LayoutRect&); |
| void paintBoxDecorationBackgroundWithRect(PaintInfo&, const LayoutPoint&, const LayoutRect&); |
| + static void paintFillLayerExtended(RenderBoxModelObject&, const PaintInfo&, const Color&, const FillLayer&, const LayoutRect&, BackgroundBleedAvoidance, InlineFlowBox* = 0, const LayoutSize& = LayoutSize(), CompositeOperator = CompositeSourceOver, RenderObject* backgroundObject = 0, bool skipBaseColor = false); |
|
pdr.
2014/09/11 23:28:06
Should all of these be const?
chrishtr
2014/09/11 23:40:19
I was able to make one of them const.
|
| + static void calculateBackgroundImageGeometry(RenderBoxModelObject&, const RenderLayerModelObject* paintContainer, const FillLayer&, const LayoutRect& paintRect, BackgroundImageGeometry&, RenderObject* = 0); |
| + static InterpolationQuality chooseInterpolationQuality(RenderBoxModelObject&, GraphicsContext*, Image*, const void*, const LayoutSize&); |
| + static void clipRoundedInnerRect(GraphicsContext*, const LayoutRect&, const RoundedRect& clipRect); |
| private: |
| void paintBackground(const PaintInfo&, const LayoutRect&, const Color& backgroundColor, BackgroundBleedAvoidance = BackgroundBleedNone); |
| void paintRootBoxFillLayers(const PaintInfo&); |
| void paintFillLayer(const PaintInfo&, const Color&, const FillLayer&, const LayoutRect&, BackgroundBleedAvoidance, CompositeOperator, RenderObject* backgroundObject, bool skipBaseColor = false); |
| + static void paintRootBackgroundColor(RenderObject&, const PaintInfo&, const LayoutRect&, const Color&); |
| + static RoundedRect backgroundRoundedRectAdjustedForBleedAvoidance(RenderObject&, GraphicsContext*, const LayoutRect&, BackgroundBleedAvoidance, InlineFlowBox*, const LayoutSize&, bool includeLogicalLeftEdge, bool includeLogicalRightEdge); |
| + static RoundedRect getBackgroundRoundedRect(RenderObject&, const LayoutRect&, InlineFlowBox*, LayoutUnit inlineBoxWidth, LayoutUnit inlineBoxHeight, |
| + bool includeLogicalLeftEdge, bool includeLogicalRightEdge); |
| + static bool isDocumentElementWithOpaqueBackground(RenderObject&); |
| + static void applyBoxShadowForBackground(GraphicsContext*, RenderObject&); |
| + static bool fixedBackgroundPaintsInLocalCoordinates(RenderObject&); |
| + static IntSize calculateFillTileSize(RenderBoxModelObject&, const FillLayer&, const IntSize& scaledPositioningAreaSize); |
| // FIXME: this should be const. |
| RenderBox& m_renderBox; |