summaryrefslogtreecommitdiffstats
path: root/WebKit/android/nav/CachedRoot.cpp
diff options
context:
space:
mode:
authorCary Clark <cary@android.com>2010-12-23 14:47:34 -0500
committerCary Clark <cary@android.com>2010-12-23 14:47:34 -0500
commit620ba4ee88cc673af864c38ac3ca10ed3984c7ea (patch)
treeb46827659818faf836f467e1791d19a505e197d2 /WebKit/android/nav/CachedRoot.cpp
parent9432ba4878ebf79acd4424398b344c154f452db2 (diff)
downloadexternal_webkit-620ba4ee88cc673af864c38ac3ca10ed3984c7ea.zip
external_webkit-620ba4ee88cc673af864c38ac3ca10ed3984c7ea.tar.gz
external_webkit-620ba4ee88cc673af864c38ac3ca10ed3984c7ea.tar.bz2
use text slop for ring test
The mTextSlop contains the cursor ring test area. The mTestBounds contains the total test area. Use the former when checking to see if text is drawn outside of the cursor rings, but inside the bounds. bug:3307120 Change-Id: Ice69ce3d70aabb435890a0fd8848ef3fe2de9796
Diffstat (limited to 'WebKit/android/nav/CachedRoot.cpp')
-rw-r--r--WebKit/android/nav/CachedRoot.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/WebKit/android/nav/CachedRoot.cpp b/WebKit/android/nav/CachedRoot.cpp
index 7bedd4f..0c92498 100644
--- a/WebKit/android/nav/CachedRoot.cpp
+++ b/WebKit/android/nav/CachedRoot.cpp
@@ -876,11 +876,11 @@ public:
layers->getBounds().fRight, layers->getBounds().fBottom,
collectGlyphs ? "true" : "false",
mTestBounds.intersects(*layers) ? "true" : "false",
- mTestBounds.contains(*layers) ? "true" : "false");
+ mTextSlop.contains(*layers) ? "true" : "false");
if (collectGlyphs && layerType == kDrawGlyph_Type) {
if (!mTestBounds.intersects(*layers))
continue;
- if (!mTestBounds.contains(*layers))
+ if (!mTextSlop.contains(*layers))
return false;
foundGlyph = true;
}