mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-02 13:58:40 +09:00
ported mozilla upstream change: Bug 1355441 - Reuse StackNode in TreeBuilder to avoid malloc. r=hsivonen.
This commit is contained in:
parent
0f035317a3
commit
b7a35ab2cd
8 changed files with 578 additions and 177 deletions
|
|
@ -160,11 +160,11 @@ nsHtml5StateSnapshot::~nsHtml5StateSnapshot()
|
|||
{
|
||||
MOZ_COUNT_DTOR(nsHtml5StateSnapshot);
|
||||
for (int32_t i = 0; i < stack.length; i++) {
|
||||
stack[i]->release();
|
||||
stack[i]->release(nullptr);
|
||||
}
|
||||
for (int32_t i = 0; i < listOfActiveFormattingElements.length; i++) {
|
||||
if (listOfActiveFormattingElements[i]) {
|
||||
listOfActiveFormattingElements[i]->release();
|
||||
listOfActiveFormattingElements[i]->release(nullptr);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue