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

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

Issue 1963313002: Implement box-shadow for table section and row (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 7 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
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/layout/LayoutBoxModelObject.h" 8 #include "core/layout/LayoutBoxModelObject.h"
9 #include "core/paint/ObjectPainter.h" 9 #include "core/paint/ObjectPainter.h"
10 #include "wtf/Allocator.h" 10 #include "wtf/Allocator.h"
(...skipping 29 matching lines...) Expand all
40 void paintFillLayers(const PaintInfo&, const Color&, const FillLayer&, const LayoutRect&, BackgroundBleedAvoidance = BackgroundBleedNone, SkXfermode::Mode = SkXfermode::kSrcOver_Mode, const LayoutObject* backgroundObject = nullptr); 40 void paintFillLayers(const PaintInfo&, const Color&, const FillLayer&, const LayoutRect&, BackgroundBleedAvoidance = BackgroundBleedNone, SkXfermode::Mode = SkXfermode::kSrcOver_Mode, const LayoutObject* backgroundObject = nullptr);
41 void paintMaskImages(const PaintInfo&, const LayoutRect&); 41 void paintMaskImages(const PaintInfo&, const LayoutRect&);
42 void paintBoxDecorationBackgroundWithRect(const PaintInfo&, const LayoutPoin t&, const LayoutRect&); 42 void paintBoxDecorationBackgroundWithRect(const PaintInfo&, const LayoutPoin t&, const LayoutRect&);
43 static void paintFillLayer(const LayoutBoxModelObject&, const PaintInfo&, co nst Color&, const FillLayer&, const LayoutRect&, BackgroundBleedAvoidance, const InlineFlowBox* = nullptr, const LayoutSize& = LayoutSize(), SkXfermode::Mode = SkXfermode::kSrcOver_Mode, const LayoutObject* backgroundObject = nullptr); 43 static void paintFillLayer(const LayoutBoxModelObject&, const PaintInfo&, co nst Color&, const FillLayer&, const LayoutRect&, BackgroundBleedAvoidance, const InlineFlowBox* = nullptr, const LayoutSize& = LayoutSize(), SkXfermode::Mode = SkXfermode::kSrcOver_Mode, const LayoutObject* backgroundObject = nullptr);
44 static InterpolationQuality chooseInterpolationQuality(const LayoutObject&, Image*, const void*, const LayoutSize&); 44 static InterpolationQuality chooseInterpolationQuality(const LayoutObject&, Image*, const void*, const LayoutSize&);
45 static bool paintNinePieceImage(const LayoutBoxModelObject&, GraphicsContext &, const LayoutRect&, const ComputedStyle&, const NinePieceImage&, SkXfermode::M ode = SkXfermode::kSrcOver_Mode); 45 static bool paintNinePieceImage(const LayoutBoxModelObject&, GraphicsContext &, const LayoutRect&, const ComputedStyle&, const NinePieceImage&, SkXfermode::M ode = SkXfermode::kSrcOver_Mode);
46 static void paintBorder(const LayoutBoxModelObject&, const PaintInfo&, const LayoutRect&, const ComputedStyle&, BackgroundBleedAvoidance = BackgroundBleedNo ne, bool includeLogicalLeftEdge = true, bool includeLogicalRightEdge = true); 46 static void paintBorder(const LayoutBoxModelObject&, const PaintInfo&, const LayoutRect&, const ComputedStyle&, BackgroundBleedAvoidance = BackgroundBleedNo ne, bool includeLogicalLeftEdge = true, bool includeLogicalRightEdge = true);
47 static void paintBoxShadow(const PaintInfo&, const LayoutRect&, const Comput edStyle&, ShadowStyle, bool includeLogicalLeftEdge = true, bool includeLogicalRi ghtEdge = true); 47 static void paintBoxShadow(const PaintInfo&, const LayoutRect&, const Comput edStyle&, ShadowStyle, bool includeLogicalLeftEdge = true, bool includeLogicalRi ghtEdge = true);
48 static bool shouldForceWhiteBackgroundForPrintEconomy(const ComputedStyle&, const Document&); 48 static bool shouldForceWhiteBackgroundForPrintEconomy(const ComputedStyle&, const Document&);
49 49
50 LayoutRect boundsForDrawingRecorder(const LayoutPoint& adjustedPaintOffset);
51
50 private: 52 private:
51 void paintBackground(const PaintInfo&, const LayoutRect&, const Color& backg roundColor, BackgroundBleedAvoidance = BackgroundBleedNone); 53 void paintBackground(const PaintInfo&, const LayoutRect&, const Color& backg roundColor, BackgroundBleedAvoidance = BackgroundBleedNone);
52 static FloatRoundedRect backgroundRoundedRectAdjustedForBleedAvoidance(const LayoutObject&, const LayoutRect&, BackgroundBleedAvoidance, const InlineFlowBox *, const LayoutSize&, bool includeLogicalLeftEdge, bool includeLogicalRightEdge) ; 54 static FloatRoundedRect backgroundRoundedRectAdjustedForBleedAvoidance(const LayoutObject&, const LayoutRect&, BackgroundBleedAvoidance, const InlineFlowBox *, const LayoutSize&, bool includeLogicalLeftEdge, bool includeLogicalRightEdge) ;
53 static FloatRoundedRect getBackgroundRoundedRect(const LayoutObject&, const LayoutRect&, const InlineFlowBox*, LayoutUnit inlineBoxWidth, LayoutUnit inlineB oxHeight, 55 static FloatRoundedRect getBackgroundRoundedRect(const LayoutObject&, const LayoutRect&, const InlineFlowBox*, LayoutUnit inlineBoxWidth, LayoutUnit inlineB oxHeight,
54 bool includeLogicalLeftEdge, bool includeLogicalRightEdge); 56 bool includeLogicalLeftEdge, bool includeLogicalRightEdge);
55 static void applyBoxShadowForBackground(GraphicsContext&, const LayoutObject &); 57 static void applyBoxShadowForBackground(GraphicsContext&, const LayoutObject &);
56 58
57 LayoutRect boundsForDrawingRecorder(const LayoutPoint& paintOffset);
58
59 const LayoutBox& m_layoutBox; 59 const LayoutBox& m_layoutBox;
60 }; 60 };
61 61
62 } // namespace blink 62 } // namespace blink
63 63
64 #endif 64 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698