Index: Source/core/rendering/shapes/PolygonShape.cpp |
diff --git a/Source/core/rendering/shapes/PolygonShape.cpp b/Source/core/rendering/shapes/PolygonShape.cpp |
index 512ae142cd5531051120b82cb4c3204d5396087a..24b3faa367528636a9c006ddf19e37738803dd6f 100644 |
--- a/Source/core/rendering/shapes/PolygonShape.cpp |
+++ b/Source/core/rendering/shapes/PolygonShape.cpp |
@@ -368,8 +368,8 @@ void PolygonShape::getExcludedIntervals(LayoutUnit logicalTop, LayoutUnit logica |
if (polygon.isEmpty()) |
return; |
- float y1 = logicalTop; |
- float y2 = logicalTop + logicalHeight; |
+ float y1 = logicalTop.toFloat(); |
+ float y2 = logicalTop.toFloat() + logicalHeight.toFloat(); |
leviw_travelin_and_unemployed
2014/03/14 18:25:26
Again, convert the result of the addition.
gnana
2014/03/18 14:20:18
Done.
|
FloatShapeIntervals y1XIntervals, y2XIntervals; |
computeXIntersections(polygon, y1, true, y1XIntervals); |
@@ -396,8 +396,8 @@ void PolygonShape::getIncludedIntervals(LayoutUnit logicalTop, LayoutUnit logica |
if (polygon.isEmpty()) |
return; |
- float y1 = logicalTop; |
- float y2 = logicalTop + logicalHeight; |
+ float y1 = logicalTop.toFloat(); |
+ float y2 = logicalTop.toFloat() + logicalHeight.toFloat(); |
leviw_travelin_and_unemployed
2014/03/14 18:25:26
Ditto.
gnana
2014/03/18 14:20:18
Done.
|
FloatShapeIntervals y1XIntervals, y2XIntervals; |
computeXIntersections(polygon, y1, true, y1XIntervals); |
@@ -444,7 +444,7 @@ static inline bool aboveOrToTheLeft(const FloatRect& r1, const FloatRect& r2) |
bool PolygonShape::firstIncludedIntervalLogicalTop(LayoutUnit minLogicalIntervalTop, const FloatSize& minLogicalIntervalSize, LayoutUnit& result) const |
{ |
- float minIntervalTop = minLogicalIntervalTop; |
+ float minIntervalTop = minLogicalIntervalTop.toFloat(); |
float minIntervalHeight = minLogicalIntervalSize.height(); |
float minIntervalWidth = minLogicalIntervalSize.width(); |