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

Unified Diff: third_party/WebKit/Source/core/layout/LayoutVTTCue.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/LayoutVTTCue.cpp
diff --git a/third_party/WebKit/Source/core/layout/LayoutVTTCue.cpp b/third_party/WebKit/Source/core/layout/LayoutVTTCue.cpp
index 7b7679df95fa03954faea70197a2a923783c3bb6..2374b983fea50906bd4975e33deb0d8cb3c098a9 100644
--- a/third_party/WebKit/Source/core/layout/LayoutVTTCue.cpp
+++ b/third_party/WebKit/Source/core/layout/LayoutVTTCue.cpp
@@ -213,11 +213,11 @@ void SnapToLinesLayouter::layout()
// area and a width of margin at the right of the rendering area.
IntRect titleArea = m_cueBox.containingBlock()->absoluteBoundingBoxRect();
if (blink::isHorizontalWritingMode(writingMode)) {
- titleArea.move(0, margin);
- titleArea.contract(0, 2 * margin);
+ titleArea.move(0, margin.toInt());
+ titleArea.contract(0, (2 * margin).toInt());
} else {
- titleArea.move(margin, 0);
- titleArea.contract(2 * margin, 0);
+ titleArea.move(margin.toInt(), 0);
+ titleArea.contract((2 * margin).toInt(), 0);
}
// 15. Step loop: If none of the boxes in boxes would overlap any of the
« no previous file with comments | « third_party/WebKit/Source/core/layout/LayoutTreeAsText.cpp ('k') | third_party/WebKit/Source/core/layout/LayoutView.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698