summaryrefslogtreecommitdiffstats
path: root/dom/base/ResizeObserver.cpp
diff options
context:
space:
mode:
authorMoonchild <moonchild@palemoon.org>2020-09-16 19:39:33 +0000
committerMoonchild <moonchild@palemoon.org>2020-09-21 11:04:31 +0000
commit075fa012868017c9cb49f1b92960bf02f4bf27ca (patch)
treebce03e7900f790b896f889c24a51814a4ade828d /dom/base/ResizeObserver.cpp
parent32e0d2ca2369d4ee0658affde0e96bdf0f84455a (diff)
downloadUXP-075fa012868017c9cb49f1b92960bf02f4bf27ca.tar
UXP-075fa012868017c9cb49f1b92960bf02f4bf27ca.tar.gz
UXP-075fa012868017c9cb49f1b92960bf02f4bf27ca.tar.lz
UXP-075fa012868017c9cb49f1b92960bf02f4bf27ca.tar.xz
UXP-075fa012868017c9cb49f1b92960bf02f4bf27ca.zip
Issue #1643 - Part 4: Hook up all the plumbing.
Diffstat (limited to 'dom/base/ResizeObserver.cpp')
-rw-r--r--dom/base/ResizeObserver.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/dom/base/ResizeObserver.cpp b/dom/base/ResizeObserver.cpp
index aefcddd9d..37d940c2b 100644
--- a/dom/base/ResizeObserver.cpp
+++ b/dom/base/ResizeObserver.cpp
@@ -61,7 +61,7 @@ ResizeObserver::Constructor(const GlobalObject& aGlobal,
}
RefPtr<ResizeObserver> observer = new ResizeObserver(window.forget(), aCb);
- // TODO: Add the new ResizeObserver to document here in the later patch.
+ document->AddResizeObserver(observer);
return observer.forget();
}
@@ -86,7 +86,7 @@ ResizeObserver::Observe(Element* aTarget,
// Per the spec, we need to trigger notification in event loop that
// contains ResizeObserver observe call even when resize/reflow does
// not happen.
- // TODO: Implement the notification scheduling in the later patch.
+ aTarget->OwnerDoc()->ScheduleResizeObserversNotification();
}
}