diff options
| author | Cary Clark <cary@android.com> | 2010-12-23 14:47:34 -0500 |
|---|---|---|
| committer | Cary Clark <cary@android.com> | 2010-12-23 14:47:34 -0500 |
| commit | 620ba4ee88cc673af864c38ac3ca10ed3984c7ea (patch) | |
| tree | b46827659818faf836f467e1791d19a505e197d2 /WebKit/android/nav/CachedRoot.cpp | |
| parent | 9432ba4878ebf79acd4424398b344c154f452db2 (diff) | |
| download | external_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.cpp | 4 |
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; } |
