mirror of
https://github.com/servo/servo.git
synced 2025-08-08 06:55:31 +01:00
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:
parent
44a11a7c6c
commit
e31dcc95f9
2 changed files with 2 additions and 2 deletions
|
@ -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,
|
||||
|
|
|
@ -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,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue