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

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

Issue 1308323004: Introduce absoluteCaretBoundsOf() for VisiblePosition (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: 2015-08-28T19:12:35 Rebase Created 5 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
« no previous file with comments | « Source/core/editing/GranularityStrategy.cpp ('k') | Source/core/editing/VisiblePosition.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/editing/GranularityStrategyTest.cpp
diff --git a/Source/core/editing/GranularityStrategyTest.cpp b/Source/core/editing/GranularityStrategyTest.cpp
index 9a1aee6e4c37832eb80155a234bd4f22c48ea71b..e988f7e8602ac77fb8b67149ddac83ec46a8e2d9 100644
--- a/Source/core/editing/GranularityStrategyTest.cpp
+++ b/Source/core/editing/GranularityStrategyTest.cpp
@@ -28,7 +28,7 @@ namespace blink {
IntPoint visiblePositionToContentsPoint(const VisiblePosition& pos)
{
- IntPoint result = pos.absoluteCaretBounds().minXMaxYCorner();
+ IntPoint result = absoluteCaretBoundsOf(pos).minXMaxYCorner();
// Need to move the point at least by 1 - caret's minXMaxYCorner is not
// evaluated to the same line as the text by hit testing.
result.move(0, -1);
« no previous file with comments | « Source/core/editing/GranularityStrategy.cpp ('k') | Source/core/editing/VisiblePosition.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698