Open Bug 1353822 Opened 7 years ago Updated 2 years ago

Wrap calls to RecreateFramesForContent with pseudostacks which include the reason for frame reconstruction

Categories

(Core :: Layout, enhancement, P3)

enhancement

Tracking

()

People

(Reporter: nika, Unassigned)

Details

When profiling content it would be useful to be able to see from the call stack why a certain call to a DOM method triggered a synchronous reconstruction of the frame tree. This could be done by wrapping the calls to RecreateFramesForContent in nsCSSFrameConstructor with pseudo stack frames which mention the reason why the decision was made to synchronously reconstruct the frame tree.

For example, this call (http://searchfox.org/mozilla-central/rev/381a7b8f8a78b481336cfa384cb0a5536e217e4a/layout/base/nsCSSFrameConstructor.cpp#8617-8618) could be wrapped to mention that the decision to perform a synchronous frame reconstruction was made due to being within a mathML subtree.
Priority: -- → P3
Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.