mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-02 22:08:40 +09:00
[layout] Initialize PerSpanData members mBaseline and mReflowInput.
We null-initialize all of the other pointer members in NewPerSpanData; we should do the same for these ones, for consistency & robustness. (In practice, the callers end up initializing these members before reading them anyway, so it's been benign that we weren't initializing them. But better for safety & futureproofing to have them reliably initialized.)
This commit is contained in:
parent
9c8bd37fe5
commit
0e05cb9630
1 changed files with 2 additions and 0 deletions
|
|
@ -401,8 +401,10 @@ nsLineLayout::NewPerSpanData()
|
|||
psd->mFrame = nullptr;
|
||||
psd->mFirstFrame = nullptr;
|
||||
psd->mLastFrame = nullptr;
|
||||
psd->mReflowInput = nullptr;
|
||||
psd->mContainsFloat = false;
|
||||
psd->mHasNonemptyContent = false;
|
||||
psd->mBaseline = nullptr;
|
||||
|
||||
#ifdef DEBUG
|
||||
outerLineLayout->mSpansAllocated++;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue