mirror of
https://github.com/servo/servo.git
synced 2025-08-06 22:15:33 +01:00
Use Servo data to back @counter-style rule.
This commit is contained in:
parent
32cd0b4ea0
commit
80ab893e3a
12 changed files with 18158 additions and 18132 deletions
|
@ -1611,8 +1611,6 @@ pub struct ExtraStyleData {
|
|||
pub pages: Vec<Arc<Locked<PageRule>>>,
|
||||
}
|
||||
|
||||
// FIXME(emilio): This is kind of a lie, and relies on us not cloning
|
||||
// nsCSSCounterStyleRules OMT (which we don't).
|
||||
#[cfg(feature = "gecko")]
|
||||
unsafe impl Sync for ExtraStyleData {}
|
||||
#[cfg(feature = "gecko")]
|
||||
|
@ -1636,7 +1634,7 @@ impl ExtraStyleData {
|
|||
guard: &SharedRwLockReadGuard,
|
||||
rule: &Arc<Locked<CounterStyleRule>>,
|
||||
) {
|
||||
let name = unsafe { Atom::from_raw(rule.read_with(guard).mName.mRawPtr) };
|
||||
let name = rule.read_with(guard).name().0.clone();
|
||||
self.counter_styles.insert(name, rule.clone());
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue