Bug 1343819 - (Part 3) Get computed value of line-height-step. r?xidorn
MozReview-Commit-ID: 51eK8w7aHiY
--- a/layout/style/nsComputedDOMStyle.cpp
+++ b/layout/style/nsComputedDOMStyle.cpp
@@ -3812,16 +3812,24 @@ nsComputedDOMStyle::DoGetLineHeight()
SetValueToCoord(val, StyleText()->mLineHeight, true,
nullptr, nsCSSProps::kLineHeightKTable);
}
return val.forget();
}
already_AddRefed<CSSValue>
+nsComputedDOMStyle::DoGetLineHeightStep()
+{
+ RefPtr<nsROCSSPrimitiveValue> val = new nsROCSSPrimitiveValue;
+ SetValueToCoord(val, StyleText()->mLineHeightStep, false);
+ return val.forget();
+}
+
+already_AddRefed<CSSValue>
nsComputedDOMStyle::DoGetRubyAlign()
{
RefPtr<nsROCSSPrimitiveValue> val = new nsROCSSPrimitiveValue;
val->SetIdent(nsCSSProps::ValueToKeywordEnum(
StyleText()->mRubyAlign, nsCSSProps::kRubyAlignKTable));
return val.forget();
}
--- a/layout/style/nsComputedDOMStyle.h
+++ b/layout/style/nsComputedDOMStyle.h
@@ -416,16 +416,17 @@ private:
already_AddRefed<CSSValue> DoGetListStyleImage();
already_AddRefed<CSSValue> DoGetListStylePosition();
already_AddRefed<CSSValue> DoGetListStyleType();
already_AddRefed<CSSValue> DoGetImageRegion();
/* Text Properties */
already_AddRefed<CSSValue> DoGetInitialLetter();
already_AddRefed<CSSValue> DoGetLineHeight();
+ already_AddRefed<CSSValue> DoGetLineHeightStep();
already_AddRefed<CSSValue> DoGetRubyAlign();
already_AddRefed<CSSValue> DoGetRubyPosition();
already_AddRefed<CSSValue> DoGetTextAlign();
already_AddRefed<CSSValue> DoGetTextAlignLast();
already_AddRefed<CSSValue> DoGetTextCombineUpright();
already_AddRefed<CSSValue> DoGetTextDecoration();
already_AddRefed<CSSValue> DoGetTextDecorationColor();
already_AddRefed<CSSValue> DoGetTextDecorationLine();
--- a/layout/style/nsComputedDOMStylePropertyList.h
+++ b/layout/style/nsComputedDOMStylePropertyList.h
@@ -167,16 +167,17 @@ COMPUTED_STYLE_PROP(ime_mode,
COMPUTED_STYLE_PROP(initial_letter, InitialLetter)
COMPUTED_STYLE_PROP(isolation, Isolation)
COMPUTED_STYLE_PROP(justify_content, JustifyContent)
COMPUTED_STYLE_PROP(justify_items, JustifyItems)
COMPUTED_STYLE_PROP(justify_self, JustifySelf)
COMPUTED_STYLE_PROP(left, Left)
COMPUTED_STYLE_PROP(letter_spacing, LetterSpacing)
COMPUTED_STYLE_PROP(line_height, LineHeight)
+COMPUTED_STYLE_PROP(line_height_step, LineHeightStep)
//// COMPUTED_STYLE_PROP(list_style, ListStyle)
COMPUTED_STYLE_PROP(list_style_image, ListStyleImage)
COMPUTED_STYLE_PROP(list_style_position, ListStylePosition)
COMPUTED_STYLE_PROP(list_style_type, ListStyleType)
//// COMPUTED_STYLE_PROP(margin, Margin)
COMPUTED_STYLE_PROP(margin_bottom, MarginBottomWidth)
COMPUTED_STYLE_PROP(margin_left, MarginLeftWidth)
COMPUTED_STYLE_PROP(margin_right, MarginRightWidth)