Servo parsing / serialization for @page

Adds basic parsing and serialization for @page rules in Servo.  It is handled
in the same manner as a regular style rule.

MozReview-Commit-ID: JRr3DDGcUIl
This commit is contained in:
J. Ryan Stinnett 2017-03-30 20:05:55 -05:00
parent 6020c2feeb
commit f0e849cbd8
2 changed files with 44 additions and 1 deletions

View file

@ -83,6 +83,7 @@ impl CSSRule {
StyleCssRule::Namespace(s) => Root::upcast(CSSNamespaceRule::new(window, parent_stylesheet, s)),
StyleCssRule::Viewport(s) => Root::upcast(CSSViewportRule::new(window, parent_stylesheet, s)),
StyleCssRule::Supports(s) => Root::upcast(CSSSupportsRule::new(window, parent_stylesheet, s)),
StyleCssRule::Page(_) => unreachable!(),
}
}