diff options
| author | Lorry Tar Creator <lorry-tar-importer@lorry> | 2016-05-24 08:28:08 +0000 |
|---|---|---|
| committer | Lorry Tar Creator <lorry-tar-importer@lorry> | 2016-05-24 08:28:08 +0000 |
| commit | a4e969f4965059196ca948db781e52f7cfebf19e (patch) | |
| tree | 6ca352808c8fdc52006a0f33f6ae3c593b23867d /Source/WebCore/rendering/shapes/BoxShape.h | |
| parent | 41386e9cb918eed93b3f13648cbef387e371e451 (diff) | |
| download | WebKitGtk-tarball-a4e969f4965059196ca948db781e52f7cfebf19e.tar.gz | |
webkitgtk-2.12.3webkitgtk-2.12.3
Diffstat (limited to 'Source/WebCore/rendering/shapes/BoxShape.h')
| -rw-r--r-- | Source/WebCore/rendering/shapes/BoxShape.h | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/Source/WebCore/rendering/shapes/BoxShape.h b/Source/WebCore/rendering/shapes/BoxShape.h index 975578d69..c2b177137 100644 --- a/Source/WebCore/rendering/shapes/BoxShape.h +++ b/Source/WebCore/rendering/shapes/BoxShape.h @@ -12,7 +12,7 @@ * copyright notice, this list of conditions and the following * disclaimer in the documentation and/or other materials * provided with the distribution. - * + * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS @@ -31,11 +31,16 @@ #define BoxShape_h #include "FloatRoundedRect.h" +#include "RenderStyleConstants.h" #include "Shape.h" namespace WebCore { -class BoxShape : public Shape { +class RenderBox; + +RoundedRect computeRoundedRectForBoxShape(CSSBoxType, const RenderBox&); + +class BoxShape final : public Shape { public: BoxShape(const FloatRoundedRect& bounds) : m_bounds(bounds) @@ -43,17 +48,13 @@ public: } virtual LayoutRect shapeMarginLogicalBoundingBox() const override; - virtual LayoutRect shapePaddingLogicalBoundingBox() const override; virtual bool isEmpty() const override { return m_bounds.isEmpty(); } - virtual void getExcludedIntervals(LayoutUnit logicalTop, LayoutUnit logicalHeight, SegmentList&) const override; - virtual void getIncludedIntervals(LayoutUnit logicalTop, LayoutUnit logicalHeight, SegmentList&) const override; - virtual bool firstIncludedIntervalLogicalTop(LayoutUnit minLogicalIntervalTop, const FloatSize& minLogicalIntervalSize, LayoutUnit&) const override; + virtual LineSegment getExcludedInterval(LayoutUnit logicalTop, LayoutUnit logicalHeight) const override; virtual void buildDisplayPaths(DisplayPaths&) const override; private: FloatRoundedRect shapeMarginBounds() const; - FloatRoundedRect shapePaddingBounds() const; FloatRoundedRect m_bounds; }; |
