Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(3838)

Unified Diff: Source/core/rendering/exclusions/ExclusionShapeInsideInfo.cpp

Issue 14892005: [CSS Exclusions] ExclusionShape bounding box methods should return LayoutRects (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: reverted LineSegment logicalLeft,Right type change Created 7 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: Source/core/rendering/exclusions/ExclusionShapeInsideInfo.cpp
diff --git a/Source/core/rendering/exclusions/ExclusionShapeInsideInfo.cpp b/Source/core/rendering/exclusions/ExclusionShapeInsideInfo.cpp
index f20265f2c0f52f73112d69eb728e88c82188a099..9f681d598ea4634e25b794b52dc19e6a75276bcc 100644
--- a/Source/core/rendering/exclusions/ExclusionShapeInsideInfo.cpp
+++ b/Source/core/rendering/exclusions/ExclusionShapeInsideInfo.cpp
@@ -53,9 +53,8 @@ bool ExclusionShapeInsideInfo::adjustLogicalLineTop(float minSegmentWidth)
if (!shape || m_lineHeight <= 0 || logicalLineTop() > shapeLogicalBottom())
return false;
- float floatNewLineTop;
- if (shape->firstIncludedIntervalLogicalTop(m_shapeLineTop, FloatSize(minSegmentWidth, m_lineHeight), floatNewLineTop)) {
- LayoutUnit newLineTop = floatLogicalTopToLayoutUnit(floatNewLineTop);
+ LayoutUnit newLineTop;
+ if (shape->firstIncludedIntervalLogicalTop(m_shapeLineTop, LayoutSize(minSegmentWidth, m_lineHeight), newLineTop)) {
if (newLineTop > m_shapeLineTop) {
m_shapeLineTop = newLineTop;
return true;

Powered by Google App Engine
This is Rietveld 408576698