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 | |
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')
-rw-r--r-- | dom/base/ResizeObserver.cpp | 23 | ||||
-rw-r--r-- | dom/webidl/ResizeObserver.webidl | 5 |
2 files changed, 1 insertions, 27 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()
{
}
diff --git a/dom/webidl/ResizeObserver.webidl b/dom/webidl/ResizeObserver.webidl index c3ae93a810..d764af7cbd 100644 --- a/dom/webidl/ResizeObserver.webidl +++ b/dom/webidl/ResizeObserver.webidl @@ -44,12 +44,9 @@ interface ResizeObserverSize { readonly attribute unrestricted double blockSize;
};
-[Constructor(Element? target),
- ChromeOnly,
+[ChromeOnly,
Pref="layout.css.resizeobserver.enabled"]
interface ResizeObservation {
readonly attribute Element target;
-/* readonly attribute long broadcastWidth;
- readonly attribute long broadcastHeight; */
boolean isActive();
};
|