summaryrefslogtreecommitdiffstats
path: root/dom/base/StaticRange.h
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-06-12 05:35:29 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-06-12 05:35:29 +0000
commit59203c63bb777a3bacec32fb8830fba33540e809 (patch)
tree58298e711c0ff0575818c30485b44a2f21bf28a0 /dom/base/StaticRange.h
parentAdding upstream version 126.0.1. (diff)
downloadfirefox-59203c63bb777a3bacec32fb8830fba33540e809.tar.xz
firefox-59203c63bb777a3bacec32fb8830fba33540e809.zip
Adding upstream version 127.0.upstream/127.0
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'dom/base/StaticRange.h')
-rw-r--r--dom/base/StaticRange.h12
1 files changed, 1 insertions, 11 deletions
diff --git a/dom/base/StaticRange.h b/dom/base/StaticRange.h
index af7054f843..249c938b2f 100644
--- a/dom/base/StaticRange.h
+++ b/dom/base/StaticRange.h
@@ -19,7 +19,7 @@ class ErrorResult;
namespace dom {
-class StaticRange final : public AbstractRange {
+class StaticRange : public AbstractRange {
public:
StaticRange() = delete;
explicit StaticRange(const StaticRange& aOther) = delete;
@@ -71,16 +71,6 @@ class StaticRange final : public AbstractRange {
*/
bool IsValid() const;
- void NotifyNodeBecomesShadowHost(nsINode* aNode) {
- if (aNode == mStart.Container()) {
- mStart.NotifyParentBecomesShadowHost();
- }
-
- if (aNode == mEnd.Container()) {
- mEnd.NotifyParentBecomesShadowHost();
- }
- }
-
private:
// Whether the start and end points are in the same tree.
// They could be in different trees, i.e, cross shadow boundaries.