| Index: Source/core/paint/LayerClipRecorder.h
|
| diff --git a/Source/core/paint/ClipRecorder.h b/Source/core/paint/LayerClipRecorder.h
|
| similarity index 60%
|
| copy from Source/core/paint/ClipRecorder.h
|
| copy to Source/core/paint/LayerClipRecorder.h
|
| index 9fea722569798fec58d068cae47a11c30744afbd..e03160f8ab214e90a97012be4f078ad8db51fbff 100644
|
| --- a/Source/core/paint/ClipRecorder.h
|
| +++ b/Source/core/paint/LayerClipRecorder.h
|
| @@ -2,44 +2,21 @@
|
| // Use of this source code is governed by a BSD-style license that can be
|
| // found in the LICENSE file.
|
|
|
| -#ifndef ClipRecorder_h
|
| -#define ClipRecorder_h
|
| +#ifndef LayerClipRecorder_h
|
| +#define LayerClipRecorder_h
|
|
|
| #include "core/paint/ViewDisplayList.h"
|
| #include "core/rendering/LayerPaintingInfo.h"
|
| #include "core/rendering/PaintPhase.h"
|
| -#include "core/rendering/RenderLayerModelObject.h"
|
| -#include "platform/geometry/RoundedRect.h"
|
| #include "wtf/Vector.h"
|
|
|
| namespace blink {
|
|
|
| class ClipRect;
|
| class GraphicsContext;
|
| +class RenderLayerModelObject;
|
|
|
| -class ClipDisplayItem : public DisplayItem {
|
| -public:
|
| - ClipDisplayItem(const RenderLayerModelObject* renderer, Type type, IntRect clipRect)
|
| - : DisplayItem(renderer, type), m_clipRect(clipRect) { }
|
| -
|
| - Vector<RoundedRect>& roundedRectClips() { return m_roundedRectClips; }
|
| - virtual void replay(GraphicsContext*) override;
|
| -
|
| - IntRect m_clipRect;
|
| - Vector<RoundedRect> m_roundedRectClips;
|
| -#ifndef NDEBUG
|
| - virtual WTF::String asDebugString() const override;
|
| -#endif
|
| -};
|
| -
|
| -class EndClipDisplayItem : public DisplayItem {
|
| -public:
|
| - EndClipDisplayItem(const RenderLayerModelObject* renderer) : DisplayItem(renderer, EndClip) { }
|
| -
|
| - virtual void replay(GraphicsContext*) override;
|
| -};
|
| -
|
| -class ClipRecorder {
|
| +class LayerClipRecorder {
|
| public:
|
|
|
| enum BorderRadiusClippingRule { IncludeSelfForBorderRadius, DoNotIncludeSelfForBorderRadius };
|
| @@ -55,9 +32,9 @@ public:
|
| // same time we pass a fragmentOffset, so that we can translate from flow thread coordinates to
|
| // visual coordinates. This may look rather confusing/redundant, but it is needed for rounded
|
| // border clipping. Would be nice to clean up this.
|
| - explicit ClipRecorder(const RenderLayerModelObject*, GraphicsContext*, DisplayItem::Type, const ClipRect&, const LayerPaintingInfo* localPaintingInfo, const LayoutPoint& fragmentOffset, PaintLayerFlags, BorderRadiusClippingRule = IncludeSelfForBorderRadius);
|
| + explicit LayerClipRecorder(const RenderLayerModelObject*, GraphicsContext*, DisplayItem::Type, const ClipRect&, const LayerPaintingInfo* localPaintingInfo, const LayoutPoint& fragmentOffset, PaintLayerFlags, BorderRadiusClippingRule = IncludeSelfForBorderRadius);
|
|
|
| - ~ClipRecorder();
|
| + ~LayerClipRecorder();
|
|
|
| private:
|
|
|
| @@ -70,4 +47,4 @@ private:
|
|
|
| } // namespace blink
|
|
|
| -#endif // ViewDisplayList_h
|
| +#endif // LayerDisplayList_h
|
|
|