diff options
author | Moonchild <moonchild@palemoon.org> | 2021-06-19 15:40:37 +0000 |
---|---|---|
committer | Moonchild <moonchild@palemoon.org> | 2021-06-19 15:40:37 +0000 |
commit | cfdfbcf059525690b8e8fb5ad2bf089fd9c607f4 (patch) | |
tree | 8f91ff1e57dabb64bbe05ed158cffab61382aa3e /dom/base | |
parent | 6f7dd6fd98a6972169eb4134d3a5423e6423d632 (diff) | |
download | uxp-cfdfbcf059525690b8e8fb5ad2bf089fd9c607f4.tar.gz |
Issue #1783 - Part 3: Remove ResizeObservation's BroadcastSize.
This is chrome-only and unused, and interfered with getting the spec update in.
Diffstat (limited to 'dom/base')
-rw-r--r-- | dom/base/ResizeObserver.cpp | 23 |
1 files changed, 0 insertions, 23 deletions
diff --git a/dom/base/ResizeObserver.cpp b/dom/base/ResizeObserver.cpp index 67467b0fc3..f168b87c55 100644 --- a/dom/base/ResizeObserver.cpp +++ b/dom/base/ResizeObserver.cpp @@ -351,20 +351,6 @@ NS_IMPL_CYCLE_COLLECTING_RELEASE(ResizeObservation) NS_IMPL_CYCLE_COLLECTION_WRAPPERCACHE(ResizeObservation,
mTarget, mOwner)
-already_AddRefed<ResizeObservation>
-ResizeObservation::Constructor(const GlobalObject& aGlobal,
- Element* aTarget,
- ErrorResult& aRv)
-{
- ResizeObserverOptions options;
- options.mBox = ResizeObserverBoxOptions::Content_box;
- nsIFrame* frame = aTarget->GetPrimaryFrame();
- WritingMode wm = frame ? frame->GetWritingMode() : WritingMode();
- RefPtr<ResizeObservation> observation =
- new ResizeObservation(aGlobal.GetAsSupports(), aTarget, options.mBox, wm);
- return observation.forget();
-}
-
bool
ResizeObservation::IsActive() const
{
@@ -382,15 +368,6 @@ ResizeObservation::UpdateLastReportedSize(const nsSize& aSize) { mLastReportedSize = LogicalSize(mLastReportedWM, aSize);
}
-/*
-void
-ResizeObservation::UpdateBroadcastSize(nsRect aRect)
-{
- mBroadcastWidth = aRect.width;
- mBroadcastHeight = aRect.height;
-}
-*/
-
ResizeObservation::~ResizeObservation()
{
}
|