Use cached layout in grid layout (#38493)

This makes grid layout make use of Servo's layout caching system.

Testing: No behavior change. Existing WPT coverage

---------

Signed-off-by: Nico Burns <nico@nicoburns.com>
This commit is contained in:
Nico Burns 2025-08-06 15:15:12 +01:00 committed by GitHub
parent 44a11a7c6c
commit e31dcc95f9
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 2 additions and 2 deletions

View file

@ -259,7 +259,7 @@ impl IndependentFormattingContext {
}
#[allow(clippy::too_many_arguments)]
pub(crate) fn layout_without_caching(
fn layout_without_caching(
&self,
layout_context: &LayoutContext,
positioning_context: &mut PositioningContext,

View file

@ -199,7 +199,7 @@ impl taffy::LayoutPartialTree for TaffyContainerContext<'_> {
};
child.positioning_context = PositioningContext::default();
let layout = independent_context.layout_without_caching(
let layout = independent_context.layout(
self.layout_context,
&mut child.positioning_context,
&content_box_size_override,