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

Unified Diff: Source/core/editing/Editor.cpp

Issue 338603003: Use abs() instead of std::abs() in Editor::firstRectForRange(). (Closed) Base URL: http://src.chromium.org/blink/trunk/
Patch Set: Created 6 years, 6 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 | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/editing/Editor.cpp
===================================================================
--- Source/core/editing/Editor.cpp (revision 176039)
+++ Source/core/editing/Editor.cpp (working copy)
@@ -1132,7 +1132,7 @@
// start and end are on the same line
return IntRect(std::min(startCaretRect.x(), endCaretRect.x()),
startCaretRect.y(),
- std::abs(endCaretRect.x() - startCaretRect.x()),
+ ::abs(endCaretRect.x() - startCaretRect.x()),
std::max(startCaretRect.height(), endCaretRect.height()));
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698