| Index: Source/core/rendering/RenderBox.cpp
|
| diff --git a/Source/core/rendering/RenderBox.cpp b/Source/core/rendering/RenderBox.cpp
|
| index f8701312bfd61f38a443479ad7901352007b805a..8e7b6e000ef181bd378d4316af2a405f2bd23204 100644
|
| --- a/Source/core/rendering/RenderBox.cpp
|
| +++ b/Source/core/rendering/RenderBox.cpp
|
| @@ -1317,6 +1317,18 @@ void RenderBox::paintMask(PaintInfo& paintInfo, const LayoutPoint& paintOffset)
|
| paintMaskImages(paintInfo, paintRect);
|
| }
|
|
|
| +void RenderBox::paintClippingMask(PaintInfo& paintInfo, const LayoutPoint& paintOffset)
|
| +{
|
| + if (!paintInfo.shouldPaintWithinRoot(this) || style()->visibility() != VISIBLE || paintInfo.phase != PaintPhaseClippingMask || paintInfo.context->paintingDisabled())
|
| + return;
|
| +
|
| + if (!layer() || !layer()->isComposited())
|
| + return;
|
| +
|
| + LayoutRect paintRect = LayoutRect(paintOffset, size());
|
| + paintInfo.context->fillRect(pixelSnappedIntRect(paintRect), Color::black);
|
| +}
|
| +
|
| void RenderBox::paintMaskImages(const PaintInfo& paintInfo, const LayoutRect& paintRect)
|
| {
|
| // Figure out if we need to push a transparency layer to render our mask.
|
|
|