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

NEW
Unassigned

Status

()

Core
Layout
P3
normal
a year ago
9 months ago

People

(Reporter: Nika, Unassigned)

Tracking

Firefox Tracking Flags

(Not tracked)

Details

(Reporter)

Description

a year ago
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.

Updated

9 months ago
Priority: -- → P3
You need to log in before you can comment on or make changes to this bug.