Bug 1815140 Part 1: Make Grid dom object an idempotent property of its frame. r=emilio
commit79ab63aee9a2d6a6e41cd8c1578d84920c181441
authorBrad Werth <bwerth@mozilla.com>
Tue, 21 Feb 2023 04:06:37 +0000 (21 04:06 +0000)
committerBrad Werth <bwerth@mozilla.com>
Tue, 21 Feb 2023 04:06:37 +0000 (21 04:06 +0000)
tree57f145bb96b785dd7428cf37dd884a36eba4eb43
parentf14e041e65b03bb899592991945c88ec1b5fa3eb
Bug 1815140 Part 1: Make Grid dom object an idempotent property of its frame. r=emilio

This ensures that repeated calls to Element::GetGridFragments will return
an array of idempotent Grid objects for each fragment. This is
accomplished by making the Grid object hold a WeakFrame back to its
originating frame, and updating a property on construction and
destruction.

Differential Revision: https://phabricator.services.mozilla.com/D169724
dom/base/Element.cpp
dom/grid/Grid.cpp
dom/grid/Grid.h
layout/generic/nsGridContainerFrame.cpp
layout/generic/nsGridContainerFrame.h