summaryrefslogtreecommitdiffstats
path: root/Source/WebCore/dom/StyledElement.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Source/WebCore/dom/StyledElement.cpp')
-rw-r--r--Source/WebCore/dom/StyledElement.cpp15
1 files changed, 3 insertions, 12 deletions
diff --git a/Source/WebCore/dom/StyledElement.cpp b/Source/WebCore/dom/StyledElement.cpp
index 3c55591..6781ed5 100644
--- a/Source/WebCore/dom/StyledElement.cpp
+++ b/Source/WebCore/dom/StyledElement.cpp
@@ -233,18 +233,9 @@ void StyledElement::classAttributeChanged(const AtomicString& newClassString)
void StyledElement::parseMappedAttribute(Attribute* attr)
{
- if (isIdAttributeName(attr->name())) {
- setHasID(!attr->isNull());
- if (attributeMap()) {
- if (attr->isNull())
- attributeMap()->setIdForStyleResolution(nullAtom);
- else if (document()->inQuirksMode())
- attributeMap()->setIdForStyleResolution(attr->value().lower());
- else
- attributeMap()->setIdForStyleResolution(attr->value());
- }
- setNeedsStyleRecalc();
- } else if (attr->name() == classAttr)
+ if (isIdAttributeName(attr->name()))
+ idAttributeChanged(attr);
+ else if (attr->name() == classAttr)
classAttributeChanged(attr->value());
else if (attr->name() == styleAttr) {
if (attr->isNull())