summaryrefslogtreecommitdiff
path: root/Source/WebCore/rendering/ExclusionShapeInsideInfo.h
diff options
context:
space:
mode:
Diffstat (limited to 'Source/WebCore/rendering/ExclusionShapeInsideInfo.h')
-rw-r--r--Source/WebCore/rendering/ExclusionShapeInsideInfo.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/Source/WebCore/rendering/ExclusionShapeInsideInfo.h b/Source/WebCore/rendering/ExclusionShapeInsideInfo.h
index 9db1b101e..bea2b45a0 100644
--- a/Source/WebCore/rendering/ExclusionShapeInsideInfo.h
+++ b/Source/WebCore/rendering/ExclusionShapeInsideInfo.h
@@ -73,7 +73,7 @@ public:
ASSERT(hasSegments());
return m_segments;
}
- bool computeSegmentsForLine(LayoutUnit lineTop, LayoutUnit lineBottom);
+ bool computeSegmentsForLine(LayoutUnit lineTop, LayoutUnit lineHeight);
bool lineOverlapsShapeBounds() const;
void computeShapeSize(LayoutUnit logicalWidth, LayoutUnit logicalHeight);
void dirtyShapeSize() { m_shapeSizeDirty = true; }
@@ -85,7 +85,7 @@ private:
OwnPtr<ExclusionShape> m_shape;
LayoutUnit m_lineTop;
- LayoutUnit m_lineBottom;
+ LayoutUnit m_lineHeight;
LayoutUnit m_logicalWidth;
LayoutUnit m_logicalHeight;
@@ -97,7 +97,7 @@ inline bool ExclusionShapeInsideInfo::lineOverlapsShapeBounds() const
{
ASSERT(m_shape);
FloatRect shapeBounds = m_shape->shapeLogicalBoundingBox();
- return m_lineTop <= shapeBounds.maxY() && m_lineBottom >= shapeBounds.y();
+ return m_lineTop < shapeBounds.maxY() && m_lineTop + m_lineHeight >= shapeBounds.y();
}
}