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

Unified Diff: Source/core/paint/InlineFlowBoxPainter.h

Issue 1164553003: [SP] Pass correct cull rect to fix horizontal box shadow painting at tile edge. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Disable vertical-rl layout test as we'll fix it in next change. Created 5 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 side-by-side diff with in-line comments
Download patch
Index: Source/core/paint/InlineFlowBoxPainter.h
diff --git a/Source/core/paint/InlineFlowBoxPainter.h b/Source/core/paint/InlineFlowBoxPainter.h
index e06f514d68bf67ea83bedca0fc48e3c73fc45912..ae04f6531a956cb790443fd8ca4f54fd3948248b 100644
--- a/Source/core/paint/InlineFlowBoxPainter.h
+++ b/Source/core/paint/InlineFlowBoxPainter.h
@@ -24,16 +24,16 @@ class ComputedStyle;
class InlineFlowBoxPainter {
public:
InlineFlowBoxPainter(InlineFlowBox& inlineFlowBox) : m_inlineFlowBox(inlineFlowBox) { }
- void paint(const PaintInfo&, const LayoutPoint&, const LayoutUnit lineTop, const LayoutUnit lineBottom);
+ void paint(const PaintInfo&, const LayoutPoint& paintOffset, const LayoutUnit lineTop, const LayoutUnit lineBottom);
private:
- void paintBoxDecorationBackground(const PaintInfo&, const LayoutPoint&);
- void paintMask(const PaintInfo&, const LayoutPoint&);
- void paintFillLayers(const PaintInfo&, const Color&, const FillLayer&, const LayoutRect&, SkXfermode::Mode = SkXfermode::kSrcOver_Mode);
- void paintFillLayer(const PaintInfo&, const Color&, const FillLayer&, const LayoutRect&, SkXfermode::Mode);
- void paintBoxShadow(const PaintInfo&, const ComputedStyle&, ShadowStyle, const LayoutRect&);
+ void paintBoxDecorationBackground(const PaintInfo&, const LayoutPoint& paintOffset, const LayoutRect& cullRect);
+ void paintMask(const PaintInfo&, const LayoutPoint& paintOffset);
+ void paintFillLayers(const PaintInfo&, const Color&, const FillLayer&, const LayoutRect&, SkXfermode::Mode op = SkXfermode::kSrcOver_Mode);
+ void paintFillLayer(const PaintInfo&, const Color&, const FillLayer&, const LayoutRect&, SkXfermode::Mode op);
+ void paintBoxShadow(const PaintInfo&, const ComputedStyle&, ShadowStyle, const LayoutRect& paintRect);
LayoutRect roundedFrameRectClampedToLineTopAndBottomIfNeeded() const;
- LayoutRect paintRectForImageStrip(const LayoutPoint&, const LayoutSize&, TextDirection) const;
+ LayoutRect paintRectForImageStrip(const LayoutPoint& paintOffset, const LayoutSize& frameSize, TextDirection) const;
enum BorderPaintingType {
DontPaintBorders,
« no previous file with comments | « LayoutTests/fast/writing-mode/box-shadow-horizontal-tb-tile-edge.html ('k') | Source/core/paint/InlineFlowBoxPainter.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698