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/LayoutRubyText.cpp

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/LayoutRubyText.cpp
diff --git a/third_party/WebKit/Source/core/layout/LayoutRubyText.cpp b/third_party/WebKit/Source/core/layout/LayoutRubyText.cpp
index 9da351cfa7376ea68b806d6110c253eb75358de7..6cfc4014c2662bb3f8505fe02240df976757f6a0 100644
--- a/third_party/WebKit/Source/core/layout/LayoutRubyText.cpp
+++ b/third_party/WebKit/Source/core/layout/LayoutRubyText.cpp
@@ -65,7 +65,7 @@ void LayoutRubyText::adjustInlineDirectionLineBounds(unsigned expansionOpportuni
if (textAlign != ComputedStyle::initialTextAlign())
return LayoutBlockFlow::adjustInlineDirectionLineBounds(expansionOpportunityCount, logicalLeft, logicalWidth);
- int maxPreferredLogicalWidth = this->maxPreferredLogicalWidth();
+ int maxPreferredLogicalWidth = this->maxPreferredLogicalWidth().toInt();
if (maxPreferredLogicalWidth >= logicalWidth)
return;
« no previous file with comments | « third_party/WebKit/Source/core/layout/LayoutRubyRun.cpp ('k') | third_party/WebKit/Source/core/layout/LayoutScrollbar.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698