diff options
author | Moonchild <moonchild@palemoon.org> | 2020-09-05 18:44:16 +0000 |
---|---|---|
committer | Moonchild <moonchild@palemoon.org> | 2020-09-05 18:44:16 +0000 |
commit | 1da42403ec84fcbb634a816bec0618e47d5e0b70 (patch) | |
tree | 88e47e0339f16123bcd7b6c6fc913676fafddd0f /dom/html/HTMLDivElement.cpp | |
parent | 602fbdcb44861c98c096d4fb2078c52a21b8485b (diff) | |
download | UXP-1da42403ec84fcbb634a816bec0618e47d5e0b70.tar UXP-1da42403ec84fcbb634a816bec0618e47d5e0b70.tar.gz UXP-1da42403ec84fcbb634a816bec0618e47d5e0b70.tar.lz UXP-1da42403ec84fcbb634a816bec0618e47d5e0b70.tar.xz UXP-1da42403ec84fcbb634a816bec0618e47d5e0b70.zip |
Issue #1525 - Kill marquee element (uplift)
Diffstat (limited to 'dom/html/HTMLDivElement.cpp')
-rw-r--r-- | dom/html/HTMLDivElement.cpp | 34 |
1 files changed, 0 insertions, 34 deletions
diff --git a/dom/html/HTMLDivElement.cpp b/dom/html/HTMLDivElement.cpp index b56187e29..d5b587241 100644 --- a/dom/html/HTMLDivElement.cpp +++ b/dom/html/HTMLDivElement.cpp @@ -34,20 +34,6 @@ HTMLDivElement::ParseAttribute(int32_t aNamespaceID, nsAttrValue& aResult) { if (aNamespaceID == kNameSpaceID_None) { - if (mNodeInfo->Equals(nsGkAtoms::marquee)) { - if ((aAttribute == nsGkAtoms::width) || - (aAttribute == nsGkAtoms::height)) { - return aResult.ParseSpecialIntValue(aValue); - } - if (aAttribute == nsGkAtoms::bgcolor) { - return aResult.ParseColor(aValue); - } - if ((aAttribute == nsGkAtoms::hspace) || - (aAttribute == nsGkAtoms::vspace)) { - return aResult.ParseIntWithBounds(aValue, 0); - } - } - if (mNodeInfo->Equals(nsGkAtoms::div) && aAttribute == nsGkAtoms::align) { return ParseDivAlignValue(aValue, aResult); @@ -66,15 +52,6 @@ HTMLDivElement::MapAttributesIntoRule(const nsMappedAttributes* aAttributes, nsGenericHTMLElement::MapCommonAttributesInto(aAttributes, aData); } -static void -MapMarqueeAttributesIntoRule(const nsMappedAttributes* aAttributes, nsRuleData* aData) -{ - nsGenericHTMLElement::MapImageMarginAttributeInto(aAttributes, aData); - nsGenericHTMLElement::MapImageSizeAttributesInto(aAttributes, aData); - nsGenericHTMLElement::MapCommonAttributesInto(aAttributes, aData); - nsGenericHTMLElement::MapBGColorInto(aAttributes, aData); -} - NS_IMETHODIMP_(bool) HTMLDivElement::IsAttributeMapped(const nsIAtom* aAttribute) const { @@ -85,14 +62,6 @@ HTMLDivElement::IsAttributeMapped(const nsIAtom* aAttribute) const }; return FindAttributeDependence(aAttribute, map); } - if (mNodeInfo->Equals(nsGkAtoms::marquee)) { - static const MappedAttributeEntry* const map[] = { - sImageMarginSizeAttributeMap, - sBackgroundColorAttributeMap, - sCommonAttributeMap - }; - return FindAttributeDependence(aAttribute, map); - } return nsGenericHTMLElement::IsAttributeMapped(aAttribute); } @@ -103,9 +72,6 @@ HTMLDivElement::GetAttributeMappingFunction() const if (mNodeInfo->Equals(nsGkAtoms::div)) { return &MapAttributesIntoRule; } - if (mNodeInfo->Equals(nsGkAtoms::marquee)) { - return &MapMarqueeAttributesIntoRule; - } return nsGenericHTMLElement::GetAttributeMappingFunction(); } |