mirror of
https://github.com/servo/servo.git
synced 2025-08-06 22:15:33 +01:00
style: Derive debug for CascadeInputs.
It no longer has anything than rules.
This commit is contained in:
parent
5ac12b5df4
commit
104f5c2553
4 changed files with 24 additions and 24 deletions
|
@ -203,7 +203,7 @@ impl<'a> SharedStyleContext<'a> {
|
|||
/// within the `CurrentElementInfo`. At the end of the cascade, they are folded
|
||||
/// down into the main `ComputedValues` to reduce memory usage per element while
|
||||
/// still remaining accessible.
|
||||
#[derive(Clone, Default)]
|
||||
#[derive(Clone, Debug, Default)]
|
||||
pub struct CascadeInputs {
|
||||
/// The rule node representing the ordered list of rules matched for this
|
||||
/// node.
|
||||
|
@ -226,15 +226,6 @@ impl CascadeInputs {
|
|||
}
|
||||
}
|
||||
|
||||
// We manually implement Debug for CascadeInputs so that we can avoid the
|
||||
// verbose stringification of ComputedValues for normal logging.
|
||||
impl fmt::Debug for CascadeInputs {
|
||||
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
|
||||
write!(f, "CascadeInputs {{ rules: {:?}, visited_rules: {:?}, .. }}",
|
||||
self.rules, self.visited_rules)
|
||||
}
|
||||
}
|
||||
|
||||
/// A list of cascade inputs for eagerly-cascaded pseudo-elements.
|
||||
/// The list is stored inline.
|
||||
#[derive(Debug)]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue