Chromium Code Reviews| 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())))); |
|
eae
2016/01/29 23:57:42
fromFloatFloor?
|
| } |
| 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; |
| } |