You can access the fragments via. LayoutBox::PhysicalFragments() . Note there may be more than one if the box has been fragmented (a child within a "columns: 2" element).
The easiest way to see the resulting fragment tree is via: ShowFragmentTree() - https://source.chromium.org/chromium/chromium/src/+/main:third_party/blink/renderer/core/layout/ng/ng_physical_fragment.h;l=783;bpv=1;bpt=1?q=showfragmenttree&ss=chromium Ian On Thu, Apr 27, 2023 at 9:25 AM Kiara <shettytanvi0...@gmail.com> wrote: > Since I'm new to blink I wanted to know how do we obtain the immutable > fragment tree from the layout tree.What methods facilates this. > > -- > You received this message because you are subscribed to the Google Groups > "blink-dev" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to blink-dev+unsubscr...@chromium.org. > To view this discussion on the web visit > https://groups.google.com/a/chromium.org/d/msgid/blink-dev/6351f0dd-6051-4f30-9b68-564707d2be0dn%40chromium.org > <https://groups.google.com/a/chromium.org/d/msgid/blink-dev/6351f0dd-6051-4f30-9b68-564707d2be0dn%40chromium.org?utm_medium=email&utm_source=footer> > . > -- You received this message because you are subscribed to the Google Groups "blink-dev" group. To unsubscribe from this group and stop receiving emails from it, send an email to blink-dev+unsubscr...@chromium.org. To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/blink-dev/CAJL3UpRj1kQKe8BEkYbsuiuy9bz0Xff7CRZ4tupHLHezsXP_gQ%40mail.gmail.com.