Issue #1783 - Part 3: Remove ResizeObservation's BroadcastSize.

This is chrome-only and unused, and interfered with getting the spec update in.
This commit is contained in:
Moonchild 2021-06-19 15:40:37 +00:00 committed by roytam1
commit 699781f37c
2 changed files with 1 additions and 27 deletions

View file

@ -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()
{
}