mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-08 10:44:56 +00:00
Bug 1283539 - Make SVGLength.convertToSpecifiedUnits work for percentage units on outer svg elements. r=dholbert
This commit is contained in:
parent
01040de30f
commit
12c2a53662
@ -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;
|
||||
}
|
||||
|
@ -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]
|
||||
|
Loading…
Reference in New Issue
Block a user