mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-10-31 11:37:30 +09:00
Bug 1368547 - Remove nsFrameManagerBase::mPlaceholderMap and instead store the placeholder on a frame property on the out-of-flow
Tag #1375
This commit is contained in:
parent
854827bd83
commit
9b868f0298
18 changed files with 52 additions and 166 deletions
|
|
@ -82,6 +82,7 @@ class nsLineList_iterator;
|
|||
class nsAbsoluteContainingBlock;
|
||||
class nsIContent;
|
||||
class nsContainerFrame;
|
||||
class nsPlaceholderFrame;
|
||||
|
||||
struct nsPeekOffsetStruct;
|
||||
struct nsPoint;
|
||||
|
|
@ -728,6 +729,16 @@ public:
|
|||
*/
|
||||
inline nsContainerFrame* GetInFlowParent();
|
||||
|
||||
/**
|
||||
* Return the placeholder for this frame (which must be out-of-flow).
|
||||
* @note this will only return non-null if |this| is the first-in-flow
|
||||
* although we don't assert that here for legacy reasons.
|
||||
*/
|
||||
inline nsPlaceholderFrame* GetPlaceholderFrame() const {
|
||||
MOZ_ASSERT(HasAnyStateBits(NS_FRAME_OUT_OF_FLOW));
|
||||
return GetProperty(PlaceholderFrameProperty());
|
||||
}
|
||||
|
||||
/**
|
||||
* Set this frame's parent to aParent.
|
||||
* If the frame may have moved into or out of a scrollframe's
|
||||
|
|
@ -1047,6 +1058,8 @@ public:
|
|||
|
||||
NS_DECLARE_FRAME_PROPERTY_SMALL_VALUE(BidiDataProperty, mozilla::FrameBidiData)
|
||||
|
||||
NS_DECLARE_FRAME_PROPERTY_WITHOUT_DTOR(PlaceholderFrameProperty, nsPlaceholderFrame)
|
||||
|
||||
mozilla::FrameBidiData GetBidiData()
|
||||
{
|
||||
return GetProperty(BidiDataProperty());
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue