| Index: Source/core/paint/LayerClipRecorder.cpp
|
| diff --git a/Source/core/paint/ClipRecorder.cpp b/Source/core/paint/LayerClipRecorder.cpp
|
| similarity index 90%
|
| copy from Source/core/paint/ClipRecorder.cpp
|
| copy to Source/core/paint/LayerClipRecorder.cpp
|
| index 5c2e696bd3bd547ed5b772bfc43cce85e125acee..d0a9ee97b95e3e179e579dd25ded3b8665212032 100644
|
| --- a/Source/core/paint/ClipRecorder.cpp
|
| +++ b/Source/core/paint/LayerClipRecorder.cpp
|
| @@ -3,8 +3,9 @@
|
| // found in the LICENSE file.
|
|
|
| #include "config.h"
|
| -#include "core/paint/ClipRecorder.h"
|
| +#include "core/paint/LayerClipRecorder.h"
|
|
|
| +#include "core/paint/ClipRecorder.h"
|
| #include "core/rendering/ClipRect.h"
|
| #include "core/rendering/RenderLayer.h"
|
| #include "core/rendering/RenderView.h"
|
| @@ -27,7 +28,7 @@ void EndClipDisplayItem::replay(GraphicsContext* context)
|
| context->restore();
|
| }
|
|
|
| -ClipRecorder::ClipRecorder(const RenderLayerModelObject* renderer, GraphicsContext* graphicsContext, DisplayItem::Type clipType, const ClipRect& clipRect,
|
| +LayerClipRecorder::LayerClipRecorder(const RenderLayerModelObject* renderer, GraphicsContext* graphicsContext, DisplayItem::Type clipType, const ClipRect& clipRect,
|
| const LayerPaintingInfo* localPaintingInfo, const LayoutPoint& fragmentOffset, PaintLayerFlags paintFlags, BorderRadiusClippingRule rule)
|
| : m_graphicsContext(graphicsContext)
|
| , m_renderer(renderer)
|
| @@ -57,7 +58,7 @@ static bool inContainingBlockChain(RenderLayer* startLayer, RenderLayer* endLaye
|
| return false;
|
| }
|
|
|
| -void ClipRecorder::collectRoundedRectClips(RenderLayer& renderLayer, const LayerPaintingInfo& localPaintingInfo, GraphicsContext* context, const LayoutPoint& fragmentOffset, PaintLayerFlags paintFlags,
|
| +void LayerClipRecorder::collectRoundedRectClips(RenderLayer& renderLayer, const LayerPaintingInfo& localPaintingInfo, GraphicsContext* context, const LayoutPoint& fragmentOffset, PaintLayerFlags paintFlags,
|
| BorderRadiusClippingRule rule, Vector<RoundedRect>& roundedRectClips)
|
| {
|
| // If the clip rect has been tainted by a border radius, then we have to walk up our layer chain applying the clips from
|
| @@ -82,7 +83,7 @@ void ClipRecorder::collectRoundedRectClips(RenderLayer& renderLayer, const Layer
|
| }
|
| }
|
|
|
| -ClipRecorder::~ClipRecorder()
|
| +LayerClipRecorder::~LayerClipRecorder()
|
| {
|
| if (RuntimeEnabledFeatures::slimmingPaintEnabled()) {
|
| OwnPtr<EndClipDisplayItem> endClip = adoptPtr(new EndClipDisplayItem(m_renderer));
|
|
|