Commit Graph

2 Commits

Author SHA1 Message Date
Xidorn Quan
95cf2af905 Bug 1451216 - Remove Rule::Clone method. r=emilio
MozReview-Commit-ID: 6Re8DENmdUT
2018-04-05 18:18:17 +10:00
Xidorn Quan
ec8553a3f8 Bug 1449068 part 2 - Use Servo data to back @counter-style rule. r=emilio
This patch basically does:
* Add descriptor setters and generation count to CounterStyleRule in
  Servo. (This code is mostly based on the old code inside
  nsCSSCounterStyleRule for handling mutation.)
* Use RawServoCounterStyleRule in CounterStyleManager.
* Add ServoCounterStyleRule and remove nsCSSCounterStyleRule.

Test change:
* "fixed" was parsed as and thus serialized to "fixed 1", but Servo
  doesn't do so. It preserves whether the number presents. Either way
  is probably fine.

MozReview-Commit-ID: EtKTeu32isi
2018-04-05 08:41:28 +10:00