mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-09 11:25:00 +00:00
Bug 1383650 - Remove obsolete check that is wrong in SVG2 r=longsonr
Differential Revision: https://phabricator.services.mozilla.com/D32008 --HG-- extra : moz-landing-system : lando
This commit is contained in:
parent
28f446d619
commit
cb6eb55db1
@ -1214,24 +1214,6 @@ void SVGElement::UpdateContentDeclarationBlock() {
|
||||
continue; // xml:lang has precedence
|
||||
}
|
||||
|
||||
if (IsSVGElement(nsGkAtoms::svg)) {
|
||||
// Special case: we don't want <svg> 'width'/'height' mapped into style
|
||||
// if the attribute value isn't a valid <length> according to SVG (which
|
||||
// only supports a subset of the CSS <length> values). We don't enforce
|
||||
// this by checking the attribute value in SVGSVGElement::
|
||||
// IsAttributeMapped since we don't want that method to depend on the
|
||||
// value of the attribute that is being checked. Rather we just prevent
|
||||
// the actual mapping here, as necessary.
|
||||
if (attrName->Atom() == nsGkAtoms::width &&
|
||||
!GetAnimatedLength(nsGkAtoms::width)->HasBaseVal()) {
|
||||
continue;
|
||||
}
|
||||
if (attrName->Atom() == nsGkAtoms::height &&
|
||||
!GetAnimatedLength(nsGkAtoms::height)->HasBaseVal()) {
|
||||
continue;
|
||||
}
|
||||
}
|
||||
|
||||
if (lengthAffectsStyle) {
|
||||
auto const* length = GetAnimatedLength(attrName->Atom());
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user