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

Unified Diff: third_party/WebKit/Source/core/layout/LayoutInline.h

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/LayoutInline.h
diff --git a/third_party/WebKit/Source/core/layout/LayoutInline.h b/third_party/WebKit/Source/core/layout/LayoutInline.h
index fd0d42a4b94aba5bd4638013ebd04df8d452e88a..2af191cc33569469879bfcc1d6f53ef851e8e0ef 100644
--- a/third_party/WebKit/Source/core/layout/LayoutInline.h
+++ b/third_party/WebKit/Source/core/layout/LayoutInline.h
@@ -232,8 +232,8 @@ private:
LayoutUnit offsetLeft() const final;
LayoutUnit offsetTop() const final;
- LayoutUnit offsetWidth() const final { return linesBoundingBox().width(); }
- LayoutUnit offsetHeight() const final { return linesBoundingBox().height(); }
+ LayoutUnit offsetWidth() const final { return LayoutUnit(linesBoundingBox().width()); }
+ LayoutUnit offsetHeight() const final { return LayoutUnit(linesBoundingBox().height()); }
LayoutRect absoluteClippedOverflowRect() const override;
LayoutRect clippedOverflowRectForPaintInvalidation(const LayoutBoxModelObject* paintInvalidationContainer, const PaintInvalidationState* = nullptr) const override;
« no previous file with comments | « third_party/WebKit/Source/core/layout/LayoutGrid.cpp ('k') | third_party/WebKit/Source/core/layout/LayoutInline.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698