Skip to content

[Feature] Propagate display none status from Starlight layout to Element#7520

Open
zhongyr wants to merge 1 commit into
developfrom
shadow/refs/merge-requests/70/66970/3
Open

[Feature] Propagate display none status from Starlight layout to Element#7520
zhongyr wants to merge 1 commit into
developfrom
shadow/refs/merge-requests/70/66970/3

Conversation

@zhongyr

@zhongyr zhongyr commented Jun 26, 2026

Copy link
Copy Markdown
Collaborator

No description provided.

- What changed
  Add a display_none flag to LayoutContext::Delegate::OnLayoutUpdate and
  Element::UpdateLayout. LayoutContext::UpdateLayoutInfo and
  FiberElement::UpdateLayoutInfo now read the flag from the Starlight
  layout result and pass it down. Element stores the flag and exposes it
  via display_none().

- Why it was needed
  Downstream code needs to know whether a node is treated as display:none
  by the layout engine without recomputing it from CSS.

- How it was verified
  Ran layout_context_tests_exec, tasm_unittests_exec, layout_tests_exec,
  and fragment_test_exec. All passed.

TEST: layout_context_tests_exec, tasm_unittests_exec, layout_tests_exec,
fragment_test_exec
AutoLand: release/4.0
AutoSubmit: true
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant