summaryrefslogtreecommitdiffstats
path: root/WebCore/rendering/RenderWidget.cpp
diff options
context:
space:
mode:
authorSteve Block <steveblock@google.com>2010-08-05 11:07:27 +0100
committerSteve Block <steveblock@google.com>2010-08-09 13:25:51 +0100
commitad3386af2204fbbc9033a6dcced2f9b0adcd6f10 (patch)
tree093ada87dd1caff6efd1f3118e533c159c43256a /WebCore/rendering/RenderWidget.cpp
parentdb14019a23d96bc8a444b6576a5da8bd1cfbc8b0 (diff)
downloadexternal_webkit-ad3386af2204fbbc9033a6dcced2f9b0adcd6f10.zip
external_webkit-ad3386af2204fbbc9033a6dcced2f9b0adcd6f10.tar.gz
external_webkit-ad3386af2204fbbc9033a6dcced2f9b0adcd6f10.tar.bz2
Merge WebKit at r64523 : Fix conflicts due to ANDROID_HITTEST_WITHSIZE
A modified version of this Android-specific code was upstreamed in http://trac.webkit.org/changeset/64272 For the most part, the differences between the Android and upstreamed versions are syntactic only. In these cases, we take the upstream version. In a small number of cases, logical changes exist. In these cases, the Android logic has been retained, guarded with ANDROID_HITTEST_WITHSIZE, but using the new syntax. In particular ... - Android's HitTestResult::intersects(x, y, rect) is logically equivalent to the uspstream IntRect::intersects(HitTestPoint::rectFromPoint(x, y))). - Android's HitTestResult::addRawNode() is logically equivalent to the upstream HitTestResult::m_rectBasedTestResult.add(). - Android's HitTestResult::isRegionTest() is slightly different from the upstream HitTestResult::isRectBasedTest(). The latter is modified with a new ANDROID_HITTEST_WITHSIZE guard in HitTestResult::HitTestResult() to maintain the same behaviour. - The upstreamed code uses HitTestResult::addNodeToRectBasedTestResult() as a helper method in place of inline logic in the Android version. The slight difference in behaviour between this helper and the Android logic is reflected in the new ANDROID_HITTEST_WITHSIZE guard in the helper. This change should introduce no change in behaviour. Change-Id: I974d68e3ac963f18334418e32b08c3fd9ab1182e
Diffstat (limited to 'WebCore/rendering/RenderWidget.cpp')
-rw-r--r--WebCore/rendering/RenderWidget.cpp6
1 files changed, 0 insertions, 6 deletions
diff --git a/WebCore/rendering/RenderWidget.cpp b/WebCore/rendering/RenderWidget.cpp
index 3854e6a..763371f 100644
--- a/WebCore/rendering/RenderWidget.cpp
+++ b/WebCore/rendering/RenderWidget.cpp
@@ -398,12 +398,6 @@ bool RenderWidget::nodeAtPoint(const HitTestRequest& request, HitTestResult& res
// Check to see if we are really over the widget itself (and not just in the border/padding area).
if ((inside || result.isRectBasedTest()) && !hadResult && result.innerNode() == node())
result.setIsOverWidget(contentBoxRect().contains(result.localPoint()));
-#ifdef ANDROID_HITTEST_WITHSIZE
- else if (result.isRegionTest() && !hadResult && result.innerNode() == node()) {
- result.setIsOverWidget(contentBoxRect().contains(result.localPoint()));
- return false;
- }
-#endif
return inside;
}