Index: Source/core/rendering/shapes/Shape.h |
diff --git a/Source/core/rendering/shapes/Shape.h b/Source/core/rendering/shapes/Shape.h |
index 700faed150d3ac72b9336947be4150a51d2d6da3..426e822ed022414edb51624f5560e8be8daebd83 100644 |
--- a/Source/core/rendering/shapes/Shape.h |
+++ b/Source/core/rendering/shapes/Shape.h |
@@ -61,24 +61,20 @@ typedef Vector<LineSegment> SegmentList; |
class Shape { |
public: |
- static PassOwnPtr<Shape> createShape(const BasicShape*, const LayoutSize& logicalBoxSize, WritingMode, Length margin, Length padding); |
- static PassOwnPtr<Shape> createRasterShape(Image*, float threshold, const LayoutRect& imageRect, const LayoutRect& marginRect, WritingMode, Length margin, Length padding); |
- static PassOwnPtr<Shape> createBoxShape(const RoundedRect&, WritingMode, const Length& margin, const Length& padding); |
+ static PassOwnPtr<Shape> createShape(const BasicShape*, const LayoutSize& logicalBoxSize, WritingMode, Length margin); |
+ static PassOwnPtr<Shape> createRasterShape(Image*, float threshold, const LayoutRect& imageRect, const LayoutRect& marginRect, WritingMode, Length margin); |
+ static PassOwnPtr<Shape> createLayoutBoxShape(const RoundedRect&, WritingMode, const Length& margin); |
virtual ~Shape() { } |
virtual LayoutRect shapeMarginLogicalBoundingBox() const = 0; |
- virtual LayoutRect shapePaddingLogicalBoundingBox() const = 0; |
virtual bool isEmpty() const = 0; |
- virtual void getIncludedIntervals(LayoutUnit logicalTop, LayoutUnit logicalHeight, SegmentList&) const = 0; |
virtual void getExcludedIntervals(LayoutUnit logicalTop, LayoutUnit logicalHeight, SegmentList&) const = 0; |
- virtual bool firstIncludedIntervalLogicalTop(LayoutUnit minLogicalIntervalTop, const FloatSize& minLogicalIntervalSize, LayoutUnit& result) const = 0; |
+ |
bool lineOverlapsShapeMarginBounds(LayoutUnit lineTop, LayoutUnit lineHeight) const { return lineOverlapsBoundingBox(lineTop, lineHeight, shapeMarginLogicalBoundingBox()); } |
- bool lineOverlapsShapePaddingBounds(LayoutUnit lineTop, LayoutUnit lineHeight) const { return lineOverlapsBoundingBox(lineTop, lineHeight, shapePaddingLogicalBoundingBox()); } |
protected: |
float shapeMargin() const { return m_margin; } |
- float shapePadding() const { return m_padding; } |
private: |
bool lineOverlapsBoundingBox(LayoutUnit lineTop, LayoutUnit lineHeight, const LayoutRect& rect) const |
@@ -90,7 +86,6 @@ private: |
WritingMode m_writingMode; |
float m_margin; |
- float m_padding; |
}; |
} // namespace WebCore |