зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1365871 - stylo: Make editor/libeditor/tests pass by removing MOZ_CRASH from CSSEditUtils. r=xidorn
The MOZ_CRASH was added because we were lacking a implementation of ServoDeclarationBlock::GetPropertyValueByID, but it was added in Bug1294299 MozReview-Commit-ID: GPsFvTLxsMd --HG-- extra : rebase_source : d51837def3a9a76dfa2af01dcb26b607dd48a5e6
This commit is contained in:
Родитель
d6257cce94
Коммит
3ccdd927e6
|
@ -549,15 +549,13 @@ CSSEditUtils::GetCSSInlinePropertyBase(nsINode* aNode,
|
|||
if (!decl) {
|
||||
return NS_OK;
|
||||
}
|
||||
if (decl->IsServo()) {
|
||||
MOZ_CRASH("stylo: not implemented");
|
||||
return NS_ERROR_NOT_IMPLEMENTED;
|
||||
}
|
||||
|
||||
nsCSSPropertyID prop =
|
||||
nsCSSProps::LookupProperty(nsDependentAtomString(aProperty),
|
||||
CSSEnabledState::eForAllContent);
|
||||
MOZ_ASSERT(prop != eCSSProperty_UNKNOWN);
|
||||
decl->AsGecko()->GetPropertyValueByID(prop, aValue);
|
||||
|
||||
decl->GetPropertyValueByID(prop, aValue);
|
||||
|
||||
return NS_OK;
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче