summaryrefslogtreecommitdiffstats
path: root/layout/base/nsPresShell.cpp
diff options
context:
space:
mode:
authorMoonchild <moonchild@palemoon.org>2020-12-26 10:16:55 +0000
committerMoonchild <moonchild@palemoon.org>2020-12-26 10:16:55 +0000
commitae2a160348562dfa5361f1e68226365b240c9597 (patch)
tree8c3ee83f8a4b618942d4e215a6937af20d7a66b4 /layout/base/nsPresShell.cpp
parent9f004841a248c7c17f536be77d7af67de7b3f39b (diff)
downloadUXP-ae2a160348562dfa5361f1e68226365b240c9597.tar
UXP-ae2a160348562dfa5361f1e68226365b240c9597.tar.gz
UXP-ae2a160348562dfa5361f1e68226365b240c9597.tar.lz
UXP-ae2a160348562dfa5361f1e68226365b240c9597.tar.xz
UXP-ae2a160348562dfa5361f1e68226365b240c9597.zip
Issue #1053 - Part 2a: Remove android from /layout (partial)
This removes android code from base, build, forms, generic, inspector, style, printing, tools and xul.
Diffstat (limited to 'layout/base/nsPresShell.cpp')
-rw-r--r--layout/base/nsPresShell.cpp42
1 files changed, 0 insertions, 42 deletions
diff --git a/layout/base/nsPresShell.cpp b/layout/base/nsPresShell.cpp
index b1b2671c4..1fb223172 100644
--- a/layout/base/nsPresShell.cpp
+++ b/layout/base/nsPresShell.cpp
@@ -197,10 +197,6 @@
#include "mozilla/StyleSheetInlines.h"
#include "mozilla/dom/ImageTracker.h"
-#ifdef ANDROID
-#include "nsIDocShellTreeOwner.h"
-#endif
-
#ifdef MOZ_TASK_TRACER
#include "GeckoTaskTracer.h"
using namespace mozilla::tasktracer;
@@ -7287,12 +7283,6 @@ PresShell::HandleEvent(nsIFrame* aFrame,
// if the mouse is being captured then retarget the mouse event at the
// document that is being captured.
retargetEventDoc = capturingContent->GetComposedDoc();
-#ifdef ANDROID
- } else if ((aEvent->mClass == eTouchEventClass) ||
- (aEvent->mClass == eMouseEventClass) ||
- (aEvent->mClass == eWheelEventClass)) {
- retargetEventDoc = GetTouchEventTargetDocument();
-#endif
}
if (retargetEventDoc) {
@@ -7846,38 +7836,6 @@ PresShell::HandleEvent(nsIFrame* aFrame,
return rv;
}
-#ifdef ANDROID
-nsIDocument*
-PresShell::GetTouchEventTargetDocument()
-{
- nsPresContext* context = GetPresContext();
- if (!context || !context->IsRoot()) {
- return nullptr;
- }
-
- nsCOMPtr<nsIDocShellTreeItem> shellAsTreeItem = context->GetDocShell();
- if (!shellAsTreeItem) {
- return nullptr;
- }
-
- nsCOMPtr<nsIDocShellTreeOwner> owner;
- shellAsTreeItem->GetTreeOwner(getter_AddRefs(owner));
- if (!owner) {
- return nullptr;
- }
-
- // now get the primary content shell (active tab)
- nsCOMPtr<nsIDocShellTreeItem> item;
- owner->GetPrimaryContentShell(getter_AddRefs(item));
- nsCOMPtr<nsIDocShell> childDocShell = do_QueryInterface(item);
- if (!childDocShell) {
- return nullptr;
- }
-
- return childDocShell->GetDocument();
-}
-#endif
-
#ifdef DEBUG
void
PresShell::ShowEventTargetDebug()