| Index: Source/core/rendering/RenderReplaced.cpp
|
| diff --git a/Source/core/rendering/RenderReplaced.cpp b/Source/core/rendering/RenderReplaced.cpp
|
| index 4f47b3d741e0c07c68f5965b54ee578618d46877..ba505f62c79d0730b4b2b6c58d4a1916130857e1 100644
|
| --- a/Source/core/rendering/RenderReplaced.cpp
|
| +++ b/Source/core/rendering/RenderReplaced.cpp
|
| @@ -112,26 +112,26 @@ void RenderReplaced::paint(PaintInfo& paintInfo, const LayoutPoint& paintOffset)
|
|
|
| LayoutPoint adjustedPaintOffset = paintOffset + location();
|
|
|
| - if (hasBoxDecorations() && (paintInfo.phase == PaintPhaseForeground || paintInfo.phase == PaintPhaseSelection))
|
| + if (hasBoxDecorations() && (paintInfo.getPhase() == PaintPhaseForeground || paintInfo.getPhase() == PaintPhaseSelection))
|
| paintBoxDecorations(paintInfo, adjustedPaintOffset);
|
|
|
| - if (paintInfo.phase == PaintPhaseMask) {
|
| + if (paintInfo.getPhase() == PaintPhaseMask) {
|
| paintMask(paintInfo, adjustedPaintOffset);
|
| return;
|
| }
|
|
|
| LayoutRect paintRect = LayoutRect(adjustedPaintOffset, size());
|
| - if ((paintInfo.phase == PaintPhaseOutline || paintInfo.phase == PaintPhaseSelfOutline) && style()->outlineWidth())
|
| + if ((paintInfo.getPhase() == PaintPhaseOutline || paintInfo.getPhase() == PaintPhaseSelfOutline) && style()->outlineWidth())
|
| paintOutline(paintInfo, paintRect);
|
|
|
| - if (paintInfo.phase != PaintPhaseForeground && paintInfo.phase != PaintPhaseSelection && !canHaveChildren())
|
| + if (paintInfo.getPhase() != PaintPhaseForeground && paintInfo.getPhase() != PaintPhaseSelection && !canHaveChildren())
|
| return;
|
|
|
| if (!paintInfo.shouldPaintWithinRoot(this))
|
| return;
|
|
|
| bool drawSelectionTint = selectionState() != SelectionNone && !document()->printing();
|
| - if (paintInfo.phase == PaintPhaseSelection) {
|
| + if (paintInfo.getPhase() == PaintPhaseSelection) {
|
| if (selectionState() == SelectionNone)
|
| return;
|
| drawSelectionTint = false;
|
| @@ -145,10 +145,10 @@ void RenderReplaced::paint(PaintInfo& paintInfo, const LayoutPoint& paintOffset)
|
| completelyClippedOut = true;
|
| else {
|
| // Push a clip if we have a border radius, since we want to round the foreground content that gets painted.
|
| - paintInfo.context->save();
|
| + paintInfo.getContext()->save();
|
| RoundedRect roundedInnerRect = style()->getRoundedInnerBorderFor(paintRect,
|
| paddingTop() + borderTop(), paddingBottom() + borderBottom(), paddingLeft() + borderLeft(), paddingRight() + borderRight(), true, true);
|
| - clipRoundedInnerRect(paintInfo.context, paintRect, roundedInnerRect);
|
| + clipRoundedInnerRect(paintInfo.getContext(), paintRect, roundedInnerRect);
|
| }
|
| }
|
|
|
| @@ -156,7 +156,7 @@ void RenderReplaced::paint(PaintInfo& paintInfo, const LayoutPoint& paintOffset)
|
| paintReplaced(paintInfo, adjustedPaintOffset);
|
|
|
| if (style()->hasBorderRadius())
|
| - paintInfo.context->restore();
|
| + paintInfo.getContext()->restore();
|
| }
|
|
|
| // The selection tint never gets clipped by border-radius rounding, since we want it to run right up to the edges of
|
| @@ -164,14 +164,13 @@ void RenderReplaced::paint(PaintInfo& paintInfo, const LayoutPoint& paintOffset)
|
| if (drawSelectionTint) {
|
| LayoutRect selectionPaintingRect = localSelectionRect();
|
| selectionPaintingRect.moveBy(adjustedPaintOffset);
|
| - paintInfo.context->fillRect(pixelSnappedIntRect(selectionPaintingRect), selectionBackgroundColor());
|
| + paintInfo.getContext()->fillRect(pixelSnappedIntRect(selectionPaintingRect), selectionBackgroundColor());
|
| }
|
| }
|
|
|
| bool RenderReplaced::shouldPaint(PaintInfo& paintInfo, const LayoutPoint& paintOffset)
|
| {
|
| - if (paintInfo.phase != PaintPhaseForeground && paintInfo.phase != PaintPhaseOutline && paintInfo.phase != PaintPhaseSelfOutline
|
| - && paintInfo.phase != PaintPhaseSelection && paintInfo.phase != PaintPhaseMask)
|
| + if (paintInfo.getPhase() != PaintPhaseForeground && paintInfo.getPhase() != PaintPhaseOutline && paintInfo.getPhase() != PaintPhaseSelfOutline && paintInfo.getPhase() != PaintPhaseSelection && paintInfo.getPhase() != PaintPhaseMask)
|
| return false;
|
|
|
| if (!paintInfo.shouldPaintWithinRoot(this))
|
| @@ -193,8 +192,8 @@ bool RenderReplaced::shouldPaint(PaintInfo& paintInfo, const LayoutPoint& paintO
|
| bottom = max(selBottom, bottom);
|
| }
|
|
|
| - LayoutRect localRepaintRect = paintInfo.rect;
|
| - localRepaintRect.inflate(maximalOutlineSize(paintInfo.phase));
|
| + LayoutRect localRepaintRect = paintInfo.getRect();
|
| + localRepaintRect.inflate(maximalOutlineSize(paintInfo.getPhase()));
|
| if (adjustedPaintOffset.x() + visualOverflowRect().x() >= localRepaintRect.maxX() || adjustedPaintOffset.x() + visualOverflowRect().maxX() <= localRepaintRect.x())
|
| return false;
|
|
|
|
|