mirror of
https://github.com/servo/servo.git
synced 2025-08-07 06:25:32 +01:00
Move the from_declaration to its only caller and remove the empty legacy module.
This commit is contained in:
parent
1154cf51c8
commit
f2be9eb735
3 changed files with 6 additions and 19 deletions
|
@ -1,17 +0,0 @@
|
|||
/* This Source Code Form is subject to the terms of the Mozilla Public
|
||||
* 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/. */
|
||||
|
||||
//! Legacy presentational attributes defined in the HTML5 specification: `<td width>`,
|
||||
//! `<input size>`, and so forth.
|
||||
|
||||
use properties::PropertyDeclaration;
|
||||
use selectors::matching::DeclarationBlock;
|
||||
use std::sync::Arc;
|
||||
|
||||
/// A convenience function to create a declaration block from a single declaration. This is
|
||||
/// primarily used in `synthesize_rules_for_legacy_attributes`.
|
||||
#[inline]
|
||||
pub fn from_declaration(rule: PropertyDeclaration) -> DeclarationBlock<Vec<PropertyDeclaration>> {
|
||||
DeclarationBlock::from_declarations(Arc::new(vec![rule]))
|
||||
}
|
|
@ -45,7 +45,6 @@ pub mod animation;
|
|||
pub mod attr;
|
||||
mod custom_properties;
|
||||
pub mod font_face;
|
||||
pub mod legacy;
|
||||
pub mod media_queries;
|
||||
pub mod node;
|
||||
pub mod parser;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue