style: Make StyleStruct.name_lower snake case.

Bug: 1468651
Reviewed-by: heycam
MozReview-Commit-ID: A3TpDTmFgF
This commit is contained in:
Emilio Cobos Álvarez 2018-06-19 13:19:41 +02:00
parent 4571a71bfc
commit a4dcb33986
No known key found for this signature in database
GPG key ID: 056B727BB9C1027C
5 changed files with 19 additions and 15 deletions

View file

@ -514,7 +514,7 @@ impl ToComputedValue for TextAlign {
}
let parent = _context
.builder
.get_parent_inheritedtext()
.get_parent_inherited_text()
.clone_text_align();
let ltr = _context.builder.inherited_writing_mode().is_bidi_ltr();
match (parent, ltr) {
@ -529,7 +529,7 @@ impl ToComputedValue for TextAlign {
TextAlign::MozCenterOrInherit => {
let parent = _context
.builder
.get_parent_inheritedtext()
.get_parent_inherited_text()
.clone_text_align();
if parent == TextAlignKeyword::Start {
TextAlignKeyword::Center
@ -653,7 +653,7 @@ impl ToComputedValue for TextEmphasisStyle {
fn to_computed_value(&self, context: &Context) -> Self::ComputedValue {
match *self {
TextEmphasisStyle::Keyword(ref keyword) => {
let default_shape = if context.style().get_inheritedbox().clone_writing_mode() ==
let default_shape = if context.style().get_inherited_box().clone_writing_mode() ==
SpecifiedWritingMode::HorizontalTb
{
TextEmphasisShapeKeyword::Circle