Bug 1283539 - Make SVGLength.convertToSpecifiedUnits work for percentage units on outer svg elements. r=dholbert

This commit is contained in:
Robert Longson 2016-07-22 18:17:05 +01:00
parent 01040de30f
commit 12c2a53662
2 changed files with 4 additions and 1 deletions

View File

@ -162,6 +162,10 @@ SVGElementMetrics::EnsureCtx() const
{
if (!mCtx && mSVGElement) {
mCtx = mSVGElement->GetCtx();
if (!mCtx && mSVGElement->IsSVGElement(nsGkAtoms::svg)) {
// mSVGElement must be the outer svg element
mCtx = static_cast<SVGSVGElement*>(mSVGElement);
}
}
return mCtx != nullptr;
}

View File

@ -47,7 +47,6 @@ support-files =
[test_lang.xhtml]
skip-if = true # disabled-for-intermittent-failures--bug-701060
[test_length.xhtml]
skip-if = true
[test_lengthParsing.html]
[test_markerOrient.xhtml]
[test_nonAnimStrings.xhtml]