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

Unified Diff: third_party/WebKit/Source/core/layout/svg/LayoutSVGForeignObject.cpp

Issue 1647313003: Continue converting to explicit LayoutUnit constructors (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@explicitContstructors
Patch Set: Add TODO Created 4 years, 11 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: third_party/WebKit/Source/core/layout/svg/LayoutSVGForeignObject.cpp
diff --git a/third_party/WebKit/Source/core/layout/svg/LayoutSVGForeignObject.cpp b/third_party/WebKit/Source/core/layout/svg/LayoutSVGForeignObject.cpp
index 2d7d09d5b24a0d8cf5d2bf3d5ae4d1bad2a2a701..5770859606b4089fd05c57f4d555d112b7ad959a 100644
--- a/third_party/WebKit/Source/core/layout/svg/LayoutSVGForeignObject.cpp
+++ b/third_party/WebKit/Source/core/layout/svg/LayoutSVGForeignObject.cpp
@@ -62,7 +62,7 @@ void LayoutSVGForeignObject::updateLogicalWidth()
{
// FIXME: Investigate in size rounding issues
// FIXME: Remove unnecessary rounding when layout is off ints: webkit.org/b/63656
- setWidth(static_cast<int>(roundf(m_viewport.width())));
+ setWidth(LayoutUnit(static_cast<int>(roundf(m_viewport.width()))));
}
void LayoutSVGForeignObject::computeLogicalHeight(LayoutUnit, LayoutUnit logicalTop, LogicalExtentComputedValues& computedValues) const
@@ -70,7 +70,7 @@ void LayoutSVGForeignObject::computeLogicalHeight(LayoutUnit, LayoutUnit logical
// FIXME: Investigate in size rounding issues
// FIXME: Remove unnecessary rounding when layout is off ints: webkit.org/b/63656
// FIXME: Is this correct for vertical writing mode?
- computedValues.m_extent = static_cast<int>(roundf(m_viewport.height()));
+ computedValues.m_extent = LayoutUnit(static_cast<int>(roundf(m_viewport.height())));
computedValues.m_position = logicalTop;
}

Powered by Google App Engine
This is Rietveld 408576698