Index: Source/core/rendering/InlineFlowBox.cpp |
diff --git a/Source/core/rendering/InlineFlowBox.cpp b/Source/core/rendering/InlineFlowBox.cpp |
index 089fa63c7f531adf22e35b29f0aa0821469410d8..6f44b73f3dfb800ebb738fc07e59a9c070d60336 100644 |
--- a/Source/core/rendering/InlineFlowBox.cpp |
+++ b/Source/core/rendering/InlineFlowBox.cpp |
@@ -1226,11 +1226,11 @@ void InlineFlowBox::paintFillLayer(const PaintInfo& paintInfo, const Color& c, c |
void InlineFlowBox::paintBoxShadow(const PaintInfo& info, RenderStyle* s, ShadowStyle shadowStyle, const LayoutRect& paintRect) |
{ |
if ((!prevLineBox() && !nextLineBox()) || !parent()) |
- boxModelObject()->paintBoxShadow(info, paintRect, s, shadowStyle); |
+ BoxPainter::paintBoxShadow(info, paintRect, s, shadowStyle); |
else { |
// FIXME: We can do better here in the multi-line case. We want to push a clip so that the shadow doesn't |
// protrude incorrectly at the edges, and we want to possibly include shadows cast from the previous/following lines |
- boxModelObject()->paintBoxShadow(info, paintRect, s, shadowStyle, includeLogicalLeftEdge(), includeLogicalRightEdge()); |
+ BoxPainter::paintBoxShadow(info, paintRect, s, shadowStyle, includeLogicalLeftEdge(), includeLogicalRightEdge()); |
} |
} |
@@ -1330,7 +1330,7 @@ void InlineFlowBox::paintBoxDecorationBackground(PaintInfo& paintInfo, const Lay |
// The simple case is where we either have no border image or we are the only box for this object. |
// In those cases only a single call to draw is required. |
if (!hasBorderImage || (!prevLineBox() && !nextLineBox())) { |
- boxModelObject()->paintBorder(paintInfo, paintRect, renderer().style(isFirstLineStyle()), BackgroundBleedNone, includeLogicalLeftEdge(), includeLogicalRightEdge()); |
+ BoxPainter::paintBorder(*boxModelObject(), paintInfo, paintRect, renderer().style(isFirstLineStyle()), BackgroundBleedNone, includeLogicalLeftEdge(), includeLogicalRightEdge()); |
} else { |
// We have a border image that spans multiple lines. |
// We need to adjust tx and ty by the width of all previous lines. |
@@ -1354,7 +1354,7 @@ void InlineFlowBox::paintBoxDecorationBackground(PaintInfo& paintInfo, const Lay |
LayoutRect clipRect = clipRectForNinePieceImageStrip(this, borderImage, paintRect); |
GraphicsContextStateSaver stateSaver(*paintInfo.context); |
paintInfo.context->clip(clipRect); |
- boxModelObject()->paintBorder(paintInfo, LayoutRect(stripX, stripY, stripWidth, stripHeight), renderer().style(isFirstLineStyle())); |
+ BoxPainter::paintBorder(*boxModelObject(), paintInfo, LayoutRect(stripX, stripY, stripWidth, stripHeight), renderer().style(isFirstLineStyle())); |
} |
} |
} |
@@ -1407,7 +1407,7 @@ void InlineFlowBox::paintMask(PaintInfo& paintInfo, const LayoutPoint& paintOffs |
// The simple case is where we are the only box for this object. In those |
// cases only a single call to draw is required. |
if (!prevLineBox() && !nextLineBox()) { |
- boxModelObject()->paintNinePieceImage(paintInfo.context, LayoutRect(adjustedPaintOffset, frameRect.size()), renderer().style(), maskNinePieceImage, compositeOp); |
+ BoxPainter::paintNinePieceImage(*boxModelObject(), paintInfo.context, LayoutRect(adjustedPaintOffset, frameRect.size()), renderer().style(), maskNinePieceImage, compositeOp); |
} else { |
// We have a mask image that spans multiple lines. |
// We need to adjust _tx and _ty by the width of all previous lines. |
@@ -1425,7 +1425,7 @@ void InlineFlowBox::paintMask(PaintInfo& paintInfo, const LayoutPoint& paintOffs |
LayoutRect clipRect = clipRectForNinePieceImageStrip(this, maskNinePieceImage, paintRect); |
GraphicsContextStateSaver stateSaver(*paintInfo.context); |
paintInfo.context->clip(clipRect); |
- boxModelObject()->paintNinePieceImage(paintInfo.context, LayoutRect(stripX, stripY, stripWidth, stripHeight), renderer().style(), maskNinePieceImage, compositeOp); |
+ BoxPainter::paintNinePieceImage(*boxModelObject(), paintInfo.context, LayoutRect(stripX, stripY, stripWidth, stripHeight), renderer().style(), maskNinePieceImage, compositeOp); |
} |
if (pushTransparencyLayer) |