diff options
author | Cary Clark <cary@android.com> | 2009-05-13 12:50:01 -0400 |
---|---|---|
committer | Cary Clark <cary@android.com> | 2009-05-13 13:24:07 -0400 |
commit | cf5ef6c01a2cd27a06391ab9cf3d2c9c24335e4d (patch) | |
tree | 4f8c31ff697957dce4d640d407bccaf20ea6c994 /WebKit/android/nav/CachedRoot.h | |
parent | dd63eb3e5e94bd7ac1305096cf67a12166beef8a (diff) | |
download | external_webkit-cf5ef6c01a2cd27a06391ab9cf3d2c9c24335e4d.zip external_webkit-cf5ef6c01a2cd27a06391ab9cf3d2c9c24335e4d.tar.gz external_webkit-cf5ef6c01a2cd27a06391ab9cf3d2c9c24335e4d.tar.bz2 |
use one rectangle for browser focus ring
Check to see if the potentially larger hit-test bounds
can be used in place of the normal bounds, or if the
normal bounds can be used in place of the individual
text bounds.
Construct a region out of the individual focus ring
rectangles, then see if any text is drawn inside the
bounds but outside of the focus ring. If not, use one
rectangle instead of the rings.
Diffstat (limited to 'WebKit/android/nav/CachedRoot.h')
-rw-r--r-- | WebKit/android/nav/CachedRoot.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/WebKit/android/nav/CachedRoot.h b/WebKit/android/nav/CachedRoot.h index ab1b823..d06e46c 100644 --- a/WebKit/android/nav/CachedRoot.h +++ b/WebKit/android/nav/CachedRoot.h @@ -27,8 +27,9 @@ #define CachedRoot_H #include "CachedFrame.h" -#include "IntPoint.h" +#include "IntRect.h" #include "SkPicture.h" +#include "wtf/Vector.h" class SkRect; @@ -43,6 +44,8 @@ public: bool findClosest); int checkForCenter(int x, int y) const; void checkForJiggle(int* ) const; + bool checkRings(const WTF::Vector<WebCore::IntRect>& rings, + const WebCore::IntRect& bounds) const; int documentHeight() { return mContents.height(); } int documentWidth() { return mContents.width(); } const CachedNode* findAt(const WebCore::IntRect& , const CachedFrame** , |