summaryrefslogtreecommitdiffstats
path: root/WebKit/android
diff options
context:
space:
mode:
authorCary Clark <cary@android.com>2011-03-23 08:35:28 -0700
committerAndroid Git Automerger <android-git-automerger@android.com>2011-03-23 08:35:28 -0700
commitf58a40bf15e13380b82713b5b229a9bf57fe4b0e (patch)
tree12a9caf33d400b7432c1df24f2c16c20932b5fbc /WebKit/android
parent7fea06dd1f7251b6f078821c5859bdf435fee9ca (diff)
parentef25442f9f65d5f8283b2a5c2b90e63bf875c694 (diff)
downloadexternal_webkit-f58a40bf15e13380b82713b5b229a9bf57fe4b0e.zip
external_webkit-f58a40bf15e13380b82713b5b229a9bf57fe4b0e.tar.gz
external_webkit-f58a40bf15e13380b82713b5b229a9bf57fe4b0e.tar.bz2
am ef25442f: don\'t call bounder when uninitialized
* commit 'ef25442f9f65d5f8283b2a5c2b90e63bf875c694': don't call bounder when uninitialized
Diffstat (limited to 'WebKit/android')
-rw-r--r--WebKit/android/nav/CachedRoot.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/WebKit/android/nav/CachedRoot.cpp b/WebKit/android/nav/CachedRoot.cpp
index f5f8a71..64bf19a 100644
--- a/WebKit/android/nav/CachedRoot.cpp
+++ b/WebKit/android/nav/CachedRoot.cpp
@@ -89,6 +89,8 @@ public:
return doIRect(mUnion);
}
+ bool isEmpty() { return mUnion.isEmpty(); }
+
bool joinGlyphs(const SkIRect& rect) {
bool isGlyph = mType == kDrawGlyph_Type;
if (isGlyph)
@@ -188,7 +190,8 @@ public:
mBounder.setEmpty();
mBounder.setType(CommonCheck::kDrawGlyph_Type);
INHERITED::drawPosText(text, byteLength, pos, paint);
- mBounder.doRect(CommonCheck::kDrawPosText_Type);
+ if (!mBounder.isEmpty())
+ mBounder.doRect(CommonCheck::kDrawPosText_Type);
}
virtual void drawPosTextH(const void* text, size_t byteLength,