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

Unified Diff: third_party/WebKit/Source/core/layout/LayoutGeometryMap.cpp

Issue 1660863002: Force all LayoutUnit construction to be explicit (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Also fix LayoutRectTest.cpp Created 4 years, 10 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/LayoutGeometryMap.cpp
diff --git a/third_party/WebKit/Source/core/layout/LayoutGeometryMap.cpp b/third_party/WebKit/Source/core/layout/LayoutGeometryMap.cpp
index 72817c9500fc8ffe414265844af77430c12ba52f..47c0ee0e8f8429d29cbfb94633980fd8bc30c81f 100644
--- a/third_party/WebKit/Source/core/layout/LayoutGeometryMap.cpp
+++ b/third_party/WebKit/Source/core/layout/LayoutGeometryMap.cpp
@@ -249,7 +249,7 @@ void LayoutGeometryMap::push(const LayoutObject* layoutObject, const Transformat
if (!t.isIntegerTranslation())
step.m_transform = TransformationMatrix::create(t);
else
- step.m_offset = LayoutSize(t.e(), t.f());
+ step.m_offset = LayoutSize(LayoutUnit(t.e()), LayoutUnit(t.f()));
stepInserted(step);
}

Powered by Google App Engine
This is Rietveld 408576698