Bug 1364273 - Change mask-repeat initial value from no-repeat to repeat. draft
authorcku <cku@mozilla.com>
Mon, 15 May 2017 14:31:34 +0800
changeset 577652 9fb1ffb93a59a6b1c47e277880597584a51a291d
parent 577554 e66dedabe582ba7b394aee4f89ed70fe389b3c46
child 628556 7f8534f353c315fba72e71f05e5cbe72c166c459
push id58750
push userbmo:cku@mozilla.com
push dateMon, 15 May 2017 06:44:43 +0000
bugs1364273
milestone55.0a1
Bug 1364273 - Change mask-repeat initial value from no-repeat to repeat. MozReview-Commit-ID: 9MATR1cehil
servo/components/style/properties/longhand/svg.mako.rs
--- a/servo/components/style/properties/longhand/svg.mako.rs
+++ b/servo/components/style/properties/longhand/svg.mako.rs
@@ -76,22 +76,22 @@
     pub use properties::longhands::background_repeat::single_value::parse;
     pub use properties::longhands::background_repeat::single_value::SpecifiedValue;
     pub use properties::longhands::background_repeat::single_value::computed_value;
     pub use properties::longhands::background_repeat::single_value::RepeatKeyword;
     use properties::longhands::background_repeat::single_value;
 
     #[inline]
     pub fn get_initial_value() -> computed_value::T {
-        computed_value::T(RepeatKeyword::NoRepeat, RepeatKeyword::NoRepeat)
+        computed_value::T(RepeatKeyword::Repeat, RepeatKeyword::Repeat)
     }
 
     #[inline]
     pub fn get_initial_specified_value() -> SpecifiedValue {
-        SpecifiedValue::Other(RepeatKeyword::NoRepeat, None)
+        SpecifiedValue::Other(RepeatKeyword::Repeat, None)
     }
 </%helpers:vector_longhand>
 
 % for (axis, direction) in [("x", "Horizontal"), ("y", "Vertical")]:
     ${helpers.predefined_type("mask-position-" + axis, "position::" + direction + "Position",
                               products="gecko", extra_prefixes="webkit",
                               initial_value="computed::LengthOrPercentage::zero()",
                               initial_specified_value="specified::PositionComponent::Center",