summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Source/WebKit/android/nav/CachedFrame.cpp8
-rw-r--r--Source/WebKit/android/nav/CachedRoot.cpp32
2 files changed, 20 insertions, 20 deletions
diff --git a/Source/WebKit/android/nav/CachedFrame.cpp b/Source/WebKit/android/nav/CachedFrame.cpp
index 4d245d2..c51944e 100644
--- a/Source/WebKit/android/nav/CachedFrame.cpp
+++ b/Source/WebKit/android/nav/CachedFrame.cpp
@@ -522,13 +522,13 @@ const CachedNode* CachedFrame::findBestHitAt(const WebCore::IntRect& rect,
continue;
DBG_NAV_LOGD("candidate %d rect=(%d,%d,r=%d,b=%d)"
" testRect=(%d,%d,r=%d,b=%d)",
- test->index(), rect.x(), rect.y(), rect.right(), rect.bottom(),
- testRect.x(), testRect.y(), testRect.right(), testRect.bottom());
+ test->index(), rect.x(), rect.y(), rect.maxX(), rect.maxY(),
+ testRect.x(), testRect.y(), testRect.maxX(), testRect.maxY());
for (int i = 0; i < test->navableRects(); i++) {
WebCore::IntRect cursorRect = test->ring(this, i);
DBG_NAV_LOGD("candidate %d cursorRect=(%d,%d,r=%d,b=%d)",
- i, cursorRect.x(), cursorRect.y(), cursorRect.right(),
- cursorRect.bottom());
+ i, cursorRect.x(), cursorRect.y(), cursorRect.maxX(),
+ cursorRect.maxY());
if (cursorRect.intersects(rect)) {
WebCore::IntRect intersection(cursorRect);
intersection.intersect(rect);
diff --git a/Source/WebKit/android/nav/CachedRoot.cpp b/Source/WebKit/android/nav/CachedRoot.cpp
index 5c16c91..2371c4f 100644
--- a/Source/WebKit/android/nav/CachedRoot.cpp
+++ b/Source/WebKit/android/nav/CachedRoot.cpp
@@ -1066,15 +1066,15 @@ void CachedRoot::calcBitBounds(const IntRect& nodeBounds, IntRect* bitBounds) co
DBG_NAV_LOGD("contentBounds=(%d,%d,r=%d,b=%d) overBounds=(%d,%d,r=%d,b=%d)"
" mScrolledBounds=(%d,%d,r=%d,b=%d) mViewBounds=(%d,%d,r=%d,b=%d)"
" bitBounds=(%d,%d,r=%d,b=%d)",
- contentBounds.x(), contentBounds.y(), contentBounds.right(),
- contentBounds.bottom(),
- overBounds.x(), overBounds.y(), overBounds.right(), overBounds.bottom(),
- mScrolledBounds.x(), mScrolledBounds.y(), mScrolledBounds.right(),
- mScrolledBounds.bottom(),
- mViewBounds.x(), mViewBounds.y(), mViewBounds.right(),
- mViewBounds.bottom(),
- bitBounds->x(), bitBounds->y(), bitBounds->right(),
- bitBounds->bottom());
+ contentBounds.x(), contentBounds.y(), contentBounds.maxX(),
+ contentBounds.maxY(),
+ overBounds.x(), overBounds.y(), overBounds.maxX(), overBounds.maxY(),
+ mScrolledBounds.x(), mScrolledBounds.y(), mScrolledBounds.maxX(),
+ mScrolledBounds.maxY(),
+ mViewBounds.x(), mViewBounds.y(), mViewBounds.maxX(),
+ mViewBounds.maxY(),
+ bitBounds->x(), bitBounds->y(), bitBounds->maxX(),
+ bitBounds->maxY());
}
@@ -1134,9 +1134,9 @@ bool CachedRoot::checkRings(SkPicture* picture, const CachedNode* node,
bool result = ringCheck.textOutsideRings();
DBG_NAV_LOGD("bitBounds=(%d,%d,r=%d,b=%d) nodeBounds=(%d,%d,r=%d,b=%d)"
" testBounds=(%d,%d,r=%d,b=%d) success=%s",
- bitBounds.x(), bitBounds.y(), bitBounds.right(), bitBounds.bottom(),
- nodeBounds.x(), nodeBounds.y(), nodeBounds.right(), nodeBounds.bottom(),
- testBounds.x(), testBounds.y(), testBounds.right(), testBounds.bottom(),
+ bitBounds.x(), bitBounds.y(), bitBounds.maxX(), bitBounds.maxY(),
+ nodeBounds.x(), nodeBounds.y(), nodeBounds.maxX(), nodeBounds.maxY(),
+ testBounds.x(), testBounds.y(), testBounds.maxX(), testBounds.maxY(),
result ? "true" : "false");
return result;
}
@@ -1282,7 +1282,7 @@ void CachedRoot::init(WebCore::Frame* frame, CachedHistory* history)
bool CachedRoot::innerDown(const CachedNode* test, BestData* bestData) const
{
ASSERT(minWorkingVertical() >= mViewBounds.x());
- ASSERT(maxWorkingVertical() <= mViewBounds.right());
+ ASSERT(maxWorkingVertical() <= mViewBounds.maxX());
setupScrolledBounds();
// (line up)
mScrolledBounds.setHeight(mScrolledBounds.height() + mMaxYScroll);
@@ -1308,7 +1308,7 @@ bool CachedRoot::innerDown(const CachedNode* test, BestData* bestData) const
bool CachedRoot::innerLeft(const CachedNode* test, BestData* bestData) const
{
ASSERT(minWorkingHorizontal() >= mViewBounds.y());
- ASSERT(maxWorkingHorizontal() <= mViewBounds.bottom());
+ ASSERT(maxWorkingHorizontal() <= mViewBounds.maxY());
setupScrolledBounds();
mScrolledBounds.setX(mScrolledBounds.x() - mMaxXScroll);
mScrolledBounds.setWidth(mScrolledBounds.width() + mMaxXScroll);
@@ -1406,7 +1406,7 @@ void CachedRoot::innerMove(const CachedNode* node, BestData* bestData,
bool CachedRoot::innerRight(const CachedNode* test, BestData* bestData) const
{
ASSERT(minWorkingHorizontal() >= mViewBounds.y());
- ASSERT(maxWorkingHorizontal() <= mViewBounds.bottom());
+ ASSERT(maxWorkingHorizontal() <= mViewBounds.maxY());
setupScrolledBounds();
// (align)
mScrolledBounds.setWidth(mScrolledBounds.width() + mMaxXScroll);
@@ -1432,7 +1432,7 @@ bool CachedRoot::innerRight(const CachedNode* test, BestData* bestData) const
bool CachedRoot::innerUp(const CachedNode* test, BestData* bestData) const
{
ASSERT(minWorkingVertical() >= mViewBounds.x());
- ASSERT(maxWorkingVertical() <= mViewBounds.right());
+ ASSERT(maxWorkingVertical() <= mViewBounds.maxX());
setupScrolledBounds();
mScrolledBounds.setY(mScrolledBounds.y() - mMaxYScroll);
mScrolledBounds.setHeight(mScrolledBounds.height() + mMaxYScroll);