diff options
author | George Mount <mount@google.com> | 2012-04-10 13:14:40 -0700 |
---|---|---|
committer | Android (Google) Code Review <android-gerrit@google.com> | 2012-04-10 13:14:40 -0700 |
commit | eb4152454774fa6e38c8be1a2810bc893d494de3 (patch) | |
tree | 55aaa0e459cd11b62736ca07d0453c742227c166 /Source/WebKit/android/nav | |
parent | 76a09fb547aa97b2f0e9cbb1e4a800d61b30a477 (diff) | |
download | external_webkit-eb4152454774fa6e38c8be1a2810bc893d494de3.zip external_webkit-eb4152454774fa6e38c8be1a2810bc893d494de3.tar.gz external_webkit-eb4152454774fa6e38c8be1a2810bc893d494de3.tar.bz2 |
Revert "Keep selection handles in edit fields."
This reverts commit 76a09fb547aa97b2f0e9cbb1e4a800d61b30a477
Diffstat (limited to 'Source/WebKit/android/nav')
-rw-r--r-- | Source/WebKit/android/nav/WebView.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Source/WebKit/android/nav/WebView.cpp b/Source/WebKit/android/nav/WebView.cpp index 3bd0bdc..a4381e6 100644 --- a/Source/WebKit/android/nav/WebView.cpp +++ b/Source/WebKit/android/nav/WebView.cpp @@ -602,8 +602,8 @@ int getHandleLayerId(SelectText::HandleId handleId, SkIPoint& cursorPoint, IntRect textRect = selectText->textRect(handleId); // Rects exclude the last pixel on right/bottom. We want only included pixels. cursorPoint.set(cursorRect.x(), cursorRect.maxY() - 1); - textRect.setHeight(std::max(1, textRect.height() - 1)); - textRect.setWidth(std::max(1, textRect.width() - 1)); + textRect.setHeight(textRect.height() - 1); + textRect.setWidth(textRect.width() - 1); textBounds = FloatQuad(textRect); if (layerId != -1) { |