mirror of
https://github.com/servo/servo.git
synced 2025-09-27 23:30:08 +01:00
layout: Always build Tag
and BaseFragmentInfo
with ServoThreadSafeLayoutNode
(#38680)
This cleanup makes the interface a bit simpler and prevents problems where the pseudo-element information is not passed by accident. Testing: This should not change behavior, so is covered by existing tests. --------- Signed-off-by: Martin Robinson <mrobinson@igalia.com> Signed-off-by: Oriol Brufau <obrufau@igalia.com> Co-authored-by: Oriol Brufau <obrufau@igalia.com>
This commit is contained in:
parent
8743a11ba4
commit
6fdf40dce7
7 changed files with 117 additions and 116 deletions
|
@ -82,7 +82,6 @@ use style::context::SharedStyleContext;
|
|||
use style::properties::ComputedValues;
|
||||
use style::properties::style_structs::Font;
|
||||
use style::selector_parser::PseudoElement;
|
||||
use style_traits::dom::OpaqueNode;
|
||||
|
||||
use super::flow::BlockFormattingContext;
|
||||
use crate::SharedStyle;
|
||||
|
@ -232,7 +231,7 @@ impl TableSlotCell {
|
|||
pub fn mock_for_testing(id: usize, colspan: usize, rowspan: usize) -> Self {
|
||||
Self {
|
||||
base: LayoutBoxBase::new(
|
||||
BaseFragmentInfo::new_for_node(OpaqueNode(id)),
|
||||
BaseFragmentInfo::new_for_testing(id),
|
||||
ComputedValues::initial_values_with_font_override(Font::initial_values()).to_arc(),
|
||||
),
|
||||
contents: BlockFormattingContext {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue