RESOLVED FIXED 235454
Web Inspector: [Flexbox] Add instrumentation/protocol bits for flex layout containers
https://bugs.webkit.org/show_bug.cgi?id=235454
Summary Web Inspector: [Flexbox] Add instrumentation/protocol bits for flex layout co...
Patrick Angle
Reported 2022-01-21 14:11:53 PST
Attachments
Patch v1.0 (10.61 KB, patch)
2022-01-21 14:20 PST, Patrick Angle
no flags
Patch v1.1 - Address review nits (10.72 KB, patch)
2022-01-21 16:21 PST, Patrick Angle
no flags
Patch v1.2 - Resolve debug asserts (11.07 KB, patch)
2022-01-24 08:37 PST, Patrick Angle
no flags
Patrick Angle
Comment 1 2022-01-21 14:20:34 PST
Created attachment 449695 [details] Patch v1.0
EWS Watchlist
Comment 2 2022-01-21 14:22:29 PST
This patch modifies the inspector protocol. Please ensure that any frontend changes appropriately use feature checks for new protocol features.
Devin Rousso
Comment 3 2022-01-21 15:31:56 PST
Comment on attachment 449695 [details] Patch v1.0 View in context: https://bugs.webkit.org/attachment.cgi?id=449695&action=review r=me, neat :) I'm guessing the UI and other things will be coming later? > Source/WebCore/inspector/agents/InspectorCSSAgent.cpp:945 > + if (is<RenderFlexibleBox>(renderer)) > + return Protocol::CSS::LayoutContextType::Flex; NIT: I'd put this before `if (is<RenderGrid>(renderer))` so that it is alphabetical and matches the order in the protocol :P > Source/WebCore/rendering/RenderFlexibleBox.cpp:76 > setChildrenInline(false); // All of our children must be block-level. > + InspectorInstrumentation::nodeLayoutContextChanged(element, this); Style: I'd add a newline > Source/WebCore/rendering/RenderFlexibleBox.cpp:83 > setChildrenInline(false); // All of our children must be block-level. > + InspectorInstrumentation::nodeLayoutContextChanged(document, this); ditto (:75)
Patrick Angle
Comment 4 2022-01-21 16:21:28 PST
Created attachment 449708 [details] Patch v1.1 - Address review nits
Patrick Angle
Comment 5 2022-01-24 08:37:23 PST
Created attachment 449820 [details] Patch v1.2 - Resolve debug asserts
EWS
Comment 6 2022-01-24 17:12:29 PST
Committed r288492 (246364@main): <https://commits.webkit.org/246364@main> All reviewed patches have been landed. Closing bug and clearing flags on attachment 449820 [details].
Note You need to log in before you can comment on or make changes to this bug.