mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-05 23:38:38 +09:00
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:
parent
25164d0b75
commit
699781f37c
2 changed files with 1 additions and 27 deletions
|
|
@ -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()
|
||||
{
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue