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

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

Issue 2261663002: Disallow cast/implicit conversion from LayoutUnit to int/unsigned (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: - Created 4 years, 4 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 2b550560cf566f473de040907b1d2e93a8e175aa..b2a866d113169cd921a56e324f031f379ac1450f 100644
--- a/third_party/WebKit/Source/core/layout/line/InlineFlowBox.h
+++ b/third_party/WebKit/Source/core/layout/line/InlineFlowBox.h
@@ -155,13 +155,13 @@ public:
{
if (!includeLogicalLeftEdge())
return 0;
- return isHorizontal() ? boxModelObject().paddingLeft() : boxModelObject().paddingTop();
+ return (isHorizontal() ? boxModelObject().paddingLeft() : boxModelObject().paddingTop()).toInt();
}
int paddingLogicalRight() const
{
if (!includeLogicalRightEdge())
return 0;
- return isHorizontal() ? boxModelObject().paddingRight() : boxModelObject().paddingBottom();
+ return (isHorizontal() ? boxModelObject().paddingRight() : boxModelObject().paddingBottom()).toInt();
}
bool includeLogicalLeftEdge() const { return m_includeLogicalLeftEdge; }
« no previous file with comments | « third_party/WebKit/Source/core/layout/line/InlineBox.cpp ('k') | third_party/WebKit/Source/core/layout/line/InlineFlowBox.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698