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

Unified Diff: third_party/WebKit/Source/core/layout/line/InlineFlowBox.h

Issue 1648573002: Transition to explicit constructors in LayoutUnit (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Remove int constructors for size/point... they result in incorrect conversions until LayoutUnit is … 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/line/InlineFlowBox.h
diff --git a/third_party/WebKit/Source/core/layout/line/InlineFlowBox.h b/third_party/WebKit/Source/core/layout/line/InlineFlowBox.h
index e03f8aab461eca36b77ae61deac4b99fa24ffa40..ac1770b30476cc93bd594d68520ccbaae9610784 100644
--- a/third_party/WebKit/Source/core/layout/line/InlineFlowBox.h
+++ b/third_party/WebKit/Source/core/layout/line/InlineFlowBox.h
@@ -130,13 +130,13 @@ public:
LayoutUnit marginLogicalLeft() const
{
if (!includeLogicalLeftEdge())
- return 0;
+ return LayoutUnit();
return isHorizontal() ? boxModelObject().marginLeft() : boxModelObject().marginTop();
}
LayoutUnit marginLogicalRight() const
{
if (!includeLogicalRightEdge())
- return 0;
+ return LayoutUnit();
return isHorizontal() ? boxModelObject().marginRight() : boxModelObject().marginBottom();
}
int borderLogicalLeft() const
« no previous file with comments | « third_party/WebKit/Source/core/layout/LayoutVideo.cpp ('k') | third_party/WebKit/Source/core/paint/InlineTextBoxPainter.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698