Remove the inherited_style getter from StyleBuilder.

The concept of inherited style is about to get a bit more complicated, and this
will prevent consumers from doing it wrong.

Part 1 of Gecko bug1382806.  r=emilio
This commit is contained in:
Boris Zbarsky 2017-07-26 13:38:45 -04:00
parent 799988578e
commit 648c0a3d0b
8 changed files with 53 additions and 33 deletions

View file

@ -605,8 +605,8 @@ impl AnimationValue {
CSSWideKeyword::Unset |
% endif
CSSWideKeyword::Inherit => {
let inherit_struct = context.inherited_style()
.get_${prop.style_struct.name_lower}();
let inherit_struct = context.builder
.get_parent_${prop.style_struct.name_lower}();
inherit_struct.clone_${prop.ident}()
},
};