summaryrefslogtreecommitdiffstats
path: root/gfx/layers/apz/util/APZCCallbackHelper.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'gfx/layers/apz/util/APZCCallbackHelper.cpp')
-rw-r--r--gfx/layers/apz/util/APZCCallbackHelper.cpp13
1 files changed, 1 insertions, 12 deletions
diff --git a/gfx/layers/apz/util/APZCCallbackHelper.cpp b/gfx/layers/apz/util/APZCCallbackHelper.cpp
index 3f33a59e4..2fda14719 100644
--- a/gfx/layers/apz/util/APZCCallbackHelper.cpp
+++ b/gfx/layers/apz/util/APZCCallbackHelper.cpp
@@ -580,18 +580,7 @@ GetRootDocumentElementFor(nsIWidget* aWidget)
static nsIFrame*
UpdateRootFrameForTouchTargetDocument(nsIFrame* aRootFrame)
{
-#if defined(MOZ_WIDGET_ANDROID)
- // Re-target so that the hit test is performed relative to the frame for the
- // Root Content Document instead of the Root Document which are different in
- // Android. See bug 1229752 comment 16 for an explanation of why this is necessary.
- if (nsIDocument* doc = aRootFrame->PresContext()->PresShell()->GetTouchEventTargetDocument()) {
- if (nsIPresShell* shell = doc->GetShell()) {
- if (nsIFrame* frame = shell->GetRootFrame()) {
- return frame;
- }
- }
- }
-#endif
+ // No retargeting needed on desktop.
return aRootFrame;
}