mirror of
https://github.com/servo/servo.git
synced 2025-08-06 14:10:11 +01:00
ComputedValues is now ServoComputedValues
This is the first part of #10185. More to follow. I have built this locally with both servo and geckolib without errors; let's see if it succeeds on all platforms as well.
This commit is contained in:
parent
bed91b3334
commit
c2ad084713
28 changed files with 135 additions and 139 deletions
|
@ -50,7 +50,7 @@ use std::{fmt, mem, raw};
|
|||
use style::computed_values::{clear, display, empty_cells, float, position, overflow_x, text_align};
|
||||
use style::dom::TRestyleDamage;
|
||||
use style::logical_geometry::{LogicalRect, LogicalSize, WritingMode};
|
||||
use style::properties::{self, ComputedValues, TComputedValues};
|
||||
use style::properties::{self, ServoComputedValues, TComputedValues};
|
||||
use style::values::computed::LengthOrPercentageOrAuto;
|
||||
use table::{ColumnComputedInlineSize, ColumnIntrinsicInlineSize, TableFlow};
|
||||
use table_caption::TableCaptionFlow;
|
||||
|
@ -410,7 +410,7 @@ pub trait Flow: fmt::Debug + Sync + Send + 'static {
|
|||
|
||||
/// Attempts to perform incremental fixup of this flow by replacing its fragment's style with
|
||||
/// the new style. This can only succeed if the flow has exactly one fragment.
|
||||
fn repair_style(&mut self, new_style: &Arc<ComputedValues>);
|
||||
fn repair_style(&mut self, new_style: &Arc<ServoComputedValues>);
|
||||
|
||||
/// Print any extra children (such as fragments) contained in this Flow
|
||||
/// for debugging purposes. Any items inserted into the tree will become
|
||||
|
@ -542,7 +542,7 @@ pub trait MutableFlowUtils {
|
|||
|
||||
/// Calls `repair_style` and `bubble_inline_sizes`. You should use this method instead of
|
||||
/// calling them individually, since there is no reason not to perform both operations.
|
||||
fn repair_style_and_bubble_inline_sizes(self, style: &Arc<ComputedValues>);
|
||||
fn repair_style_and_bubble_inline_sizes(self, style: &Arc<ServoComputedValues>);
|
||||
}
|
||||
|
||||
pub trait MutableOwnedFlowUtils {
|
||||
|
@ -1051,7 +1051,7 @@ pub enum ForceNonfloatedFlag {
|
|||
|
||||
impl BaseFlow {
|
||||
#[inline]
|
||||
pub fn new(style: Option<&ComputedValues>,
|
||||
pub fn new(style: Option<&ServoComputedValues>,
|
||||
writing_mode: WritingMode,
|
||||
force_nonfloated: ForceNonfloatedFlag)
|
||||
-> BaseFlow {
|
||||
|
@ -1422,7 +1422,7 @@ impl<'a> MutableFlowUtils for &'a mut Flow {
|
|||
|
||||
/// Calls `repair_style` and `bubble_inline_sizes`. You should use this method instead of
|
||||
/// calling them individually, since there is no reason not to perform both operations.
|
||||
fn repair_style_and_bubble_inline_sizes(self, style: &Arc<ComputedValues>) {
|
||||
fn repair_style_and_bubble_inline_sizes(self, style: &Arc<ServoComputedValues>) {
|
||||
self.repair_style(style);
|
||||
self.bubble_inline_sizes();
|
||||
}
|
||||
|
@ -1579,4 +1579,3 @@ impl OpaqueFlow {
|
|||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue