зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1559814 - Remove GetGridLine since it's dead code now that Stylo serializes all grid lines. r=mats
Differential Revision: https://phabricator.services.mozilla.com/D35196 --HG-- extra : moz-landing-system : lando
This commit is contained in:
Родитель
96113a798b
Коммит
df11d22ea2
|
@ -1619,42 +1619,6 @@ already_AddRefed<CSSValue> nsComputedDOMStyle::DoGetGridTemplateRows() {
|
|||
return GetGridTemplateColumnsRows(StylePosition()->GridTemplateRows(), info);
|
||||
}
|
||||
|
||||
already_AddRefed<CSSValue> nsComputedDOMStyle::GetGridLine(
|
||||
const nsStyleGridLine& aGridLine) {
|
||||
if (aGridLine.IsAuto()) {
|
||||
RefPtr<nsROCSSPrimitiveValue> val = new nsROCSSPrimitiveValue;
|
||||
val->SetIdent(eCSSKeyword_auto);
|
||||
return val.forget();
|
||||
}
|
||||
|
||||
RefPtr<nsDOMCSSValueList> valueList = GetROCSSValueList(false);
|
||||
|
||||
if (aGridLine.mHasSpan) {
|
||||
RefPtr<nsROCSSPrimitiveValue> span = new nsROCSSPrimitiveValue;
|
||||
span->SetIdent(eCSSKeyword_span);
|
||||
valueList->AppendCSSValue(span.forget());
|
||||
}
|
||||
|
||||
if (aGridLine.mInteger != 0) {
|
||||
RefPtr<nsROCSSPrimitiveValue> integer = new nsROCSSPrimitiveValue;
|
||||
integer->SetNumber(aGridLine.mInteger);
|
||||
valueList->AppendCSSValue(integer.forget());
|
||||
}
|
||||
|
||||
if (aGridLine.mLineName != nsGkAtoms::_empty) {
|
||||
RefPtr<nsROCSSPrimitiveValue> lineName = new nsROCSSPrimitiveValue;
|
||||
nsString escapedLineName;
|
||||
nsStyleUtil::AppendEscapedCSSIdent(
|
||||
nsDependentAtomString(aGridLine.mLineName), escapedLineName);
|
||||
lineName->SetString(escapedLineName);
|
||||
valueList->AppendCSSValue(lineName.forget());
|
||||
}
|
||||
|
||||
NS_ASSERTION(valueList->Length() > 0,
|
||||
"Should have appended at least one value");
|
||||
return valueList.forget();
|
||||
}
|
||||
|
||||
already_AddRefed<CSSValue> nsComputedDOMStyle::DoGetPaddingTop() {
|
||||
return GetPaddingWidthFor(eSideTop);
|
||||
}
|
||||
|
|
|
@ -206,7 +206,6 @@ class nsComputedDOMStyle final : public nsDOMCSSDeclaration,
|
|||
already_AddRefed<CSSValue> GetGridTemplateColumnsRows(
|
||||
const nsStyleGridTemplate& aTrackList,
|
||||
const mozilla::ComputedGridTrackInfo* aTrackInfo);
|
||||
already_AddRefed<CSSValue> GetGridLine(const nsStyleGridLine& aGridLine);
|
||||
|
||||
bool GetLineHeightCoord(nscoord& aCoord);
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче