mirror of
https://github.com/servo/servo.git
synced 2025-08-05 05:30:08 +01:00
style: Remove quite useless StyleChange constructor.
This commit is contained in:
parent
3bfe529728
commit
92e9f12bd0
3 changed files with 3 additions and 12 deletions
|
@ -31,16 +31,6 @@ pub struct StyleDifference {
|
|||
pub change: StyleChange,
|
||||
}
|
||||
|
||||
impl StyleDifference {
|
||||
/// Creates a new `StyleDifference`.
|
||||
pub fn new(damage: RestyleDamage, change: StyleChange) -> Self {
|
||||
StyleDifference {
|
||||
change: change,
|
||||
damage: damage,
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/// Represents whether or not the style of an element has changed.
|
||||
#[derive(Clone, Copy, Debug)]
|
||||
pub enum StyleChange {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue