Closed Bug 1371107 Opened 7 years ago Closed 7 years ago

stylo: Clear mElementsToRestyle at the end of PreTraverse()

Categories

(Core :: CSS Parsing and Computation, enhancement)

enhancement
Not set
normal

Tracking

()

RESOLVED INVALID

People

(Reporter: hiro, Unassigned)

References

(Blocks 1 open bug)

Details

We have some situation that mElementsToRestyle still has elements that has been already unbinded (or something?), we should clear those elements at the end of PreTraverse().

The only case I found is that pseudo element during reframing. There might be other cases though.
Priority: -- → P2
I guess not. The case in comment 0 happens on normal restyle (i.e. not flushThrottledRestyles).
Do you have a test case for this?

Depending on the symptoms, we might just WONTFIX this. The change from bug 1370123 means we will eventually clean up mElementsToRestyle although it might take a few frames longer. If clearing these elements for other cases is expensive then it may be acceptable to keep them around a little longer.
I haven't it yet, also I don't recall exactly the situation for now. I you are confident it's discarded in a later frame. Let's close this.
Priority: P2 → --
Closing this for now based on comment 4 (i.e. we don't have a test case that triggers this situation).
Status: NEW → RESOLVED
Closed: 7 years ago
Resolution: --- → INVALID
You need to log in before you can comment on or make changes to this bug.