mirror of
https://github.com/servo/servo.git
synced 2025-08-06 14:10:11 +01:00
Remove and allow some dead code.
This commit is contained in:
parent
8f2d624cbf
commit
1bc0862214
28 changed files with 20 additions and 152 deletions
|
@ -2,11 +2,10 @@
|
|||
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
||||
|
||||
use dom::bindings::codegen::Bindings::CSSRuleBinding;
|
||||
use dom::bindings::codegen::Bindings::CSSRuleBinding::CSSRuleMethods;
|
||||
use dom::bindings::inheritance::Castable;
|
||||
use dom::bindings::js::{JS, Root};
|
||||
use dom::bindings::reflector::{Reflector, reflect_dom_object};
|
||||
use dom::bindings::reflector::Reflector;
|
||||
use dom::bindings::str::DOMString;
|
||||
use dom::cssfontfacerule::CSSFontFaceRule;
|
||||
use dom::cssimportrule::CSSImportRule;
|
||||
|
@ -43,13 +42,6 @@ impl CSSRule {
|
|||
}
|
||||
}
|
||||
|
||||
#[allow(unrooted_must_root)]
|
||||
pub fn new(window: &Window, parent_stylesheet: &CSSStyleSheet) -> Root<CSSRule> {
|
||||
reflect_dom_object(box CSSRule::new_inherited(parent_stylesheet),
|
||||
window,
|
||||
CSSRuleBinding::Wrap)
|
||||
}
|
||||
|
||||
pub fn as_specific(&self) -> &SpecificCSSRule {
|
||||
if let Some(rule) = self.downcast::<CSSStyleRule>() {
|
||||
rule as &SpecificCSSRule
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue