mirror of
https://github.com/servo/servo.git
synced 2025-08-04 21:20:23 +01:00
Move CSS content property from Box to Counters
This commit is contained in:
parent
8c8090b5cd
commit
841aef06e0
3 changed files with 4 additions and 4 deletions
|
@ -176,7 +176,7 @@ pub fn compute_damage(old: Option<&Arc<ServoComputedValues>>, new: &ServoCompute
|
||||||
REFLOW,
|
REFLOW,
|
||||||
RECONSTRUCT_FLOW
|
RECONSTRUCT_FLOW
|
||||||
], [
|
], [
|
||||||
get_box.float, get_box.display, get_box.position, get_box.content,
|
get_box.float, get_box.display, get_box.position, get_counters.content,
|
||||||
get_counters.counter_reset, get_counters.counter_increment,
|
get_counters.counter_reset, get_counters.counter_increment,
|
||||||
get_list.quotes, get_list.list_style_type,
|
get_list.quotes, get_list.list_style_type,
|
||||||
|
|
||||||
|
|
|
@ -1034,7 +1034,7 @@ impl<'ln> ThreadSafeLayoutNode for ServoThreadSafeLayoutNode<'ln> {
|
||||||
data.per_pseudo.get(&PseudoElement::After).unwrap()
|
data.per_pseudo.get(&PseudoElement::After).unwrap()
|
||||||
};
|
};
|
||||||
|
|
||||||
return match style.as_ref().get_box().content {
|
return match style.as_ref().get_counters().content {
|
||||||
content::T::Content(ref value) if !value.is_empty() => {
|
content::T::Content(ref value) if !value.is_empty() => {
|
||||||
TextContent::GeneratedContent((*value).clone())
|
TextContent::GeneratedContent((*value).clone())
|
||||||
}
|
}
|
||||||
|
|
|
@ -904,7 +904,7 @@ pub mod longhands {
|
||||||
|
|
||||||
// CSS 2.1, Section 12 - Generated content, automatic numbering, and lists
|
// CSS 2.1, Section 12 - Generated content, automatic numbering, and lists
|
||||||
|
|
||||||
${switch_to_style_struct("Box")}
|
${new_style_struct("Counters", is_inherited=False)}
|
||||||
|
|
||||||
<%self:longhand name="content">
|
<%self:longhand name="content">
|
||||||
use cssparser::Token;
|
use cssparser::Token;
|
||||||
|
@ -1217,7 +1217,7 @@ pub mod longhands {
|
||||||
}
|
}
|
||||||
</%self:longhand>
|
</%self:longhand>
|
||||||
|
|
||||||
${new_style_struct("Counters", is_inherited=False)}
|
${switch_to_style_struct("Counters")}
|
||||||
|
|
||||||
<%self:longhand name="counter-increment">
|
<%self:longhand name="counter-increment">
|
||||||
use std::fmt;
|
use std::fmt;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue