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

Unified Diff: Source/core/accessibility/AXInlineTextBox.cpp

Issue 248963002: Making LayoutUnit conversions to Int types explicit in core/accessibility (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@patch3
Patch Set: Created 6 years, 8 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
« no previous file with comments | « no previous file | Source/core/accessibility/AXObject.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/accessibility/AXInlineTextBox.cpp
diff --git a/Source/core/accessibility/AXInlineTextBox.cpp b/Source/core/accessibility/AXInlineTextBox.cpp
index 37cd2ad87c8c9e52c2b775fef886551172ab449c..ff8120c8794c5ec0c757cf02c48e1f2550754050 100644
--- a/Source/core/accessibility/AXInlineTextBox.cpp
+++ b/Source/core/accessibility/AXInlineTextBox.cpp
@@ -98,7 +98,7 @@ void AXInlineTextBox::textCharacterOffsets(Vector<int>& offsets) const
float widthSoFar = 0;
for (unsigned i = 0; i < len; i++) {
widthSoFar += widths[i];
- offsets[i] = LayoutUnit::fromFloatRound(widthSoFar);
+ offsets[i] = lroundf(widthSoFar);
}
}
« no previous file with comments | « no previous file | Source/core/accessibility/AXObject.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698