Questions related to Layout and Fragment Tree

67 views
Skip to first unread message

Kiara

unread,
Apr 27, 2023, 12:25:27 PM4/27/23
to blink-dev
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.

Ian Kilpatrick

unread,
Apr 27, 2023, 12:35:07 PM4/27/23
to Kiara, blink-dev
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).


On Thu, Apr 27, 2023 at 9:25 AM Kiara <shettyt...@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+...@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.

Kiara

unread,
May 2, 2023, 8:01:25 PM5/2/23
to blink-dev, ikilp...@chromium.org, blink-dev, Kiara
To see the resulting fragment tree is via: ShowFragmentTree() do we need to build the entire chromium in debug mode since it is invoked from debugger or is there an easier way to call the method? 

Christian Biesinger

unread,
May 3, 2023, 8:17:53 AM5/3/23
to Kiara, blink-dev, ikilp...@chromium.org
You could use JsDbg if you have/can get symbols for your build (on
Windows you can use the symbol server):
https://github.com/MicrosoftEdge/JsDbg
> To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/blink-dev/afb2dcef-5b2d-4ad1-ab21-198b7dce6141n%40chromium.org.
Reply all
Reply to author
Forward
0 new messages