summaryrefslogtreecommitdiff
path: root/Source/WebCore/dom/CSSMappedAttributeDeclaration.cpp
diff options
context:
space:
mode:
authorSimon Hausmann <simon.hausmann@nokia.com>2012-02-03 09:55:33 +0100
committerSimon Hausmann <simon.hausmann@nokia.com>2012-02-03 09:55:33 +0100
commitcd44dc59cdfc39534aef4d417e9f3c412e3be139 (patch)
tree8d89889ba95ed6ec9322e733846cc9cce9d7dff1 /Source/WebCore/dom/CSSMappedAttributeDeclaration.cpp
parentd11f84f5b5cdc0d92a08af01b13472fdd5f9acb9 (diff)
downloadqtwebkit-cd44dc59cdfc39534aef4d417e9f3c412e3be139.tar.gz
Imported WebKit commit fce473cb4d55aa9fe9d0b0322a2fffecb731b961 (http://svn.webkit.org/repository/webkit/trunk@106560)
Diffstat (limited to 'Source/WebCore/dom/CSSMappedAttributeDeclaration.cpp')
-rw-r--r--Source/WebCore/dom/CSSMappedAttributeDeclaration.cpp9
1 files changed, 4 insertions, 5 deletions
diff --git a/Source/WebCore/dom/CSSMappedAttributeDeclaration.cpp b/Source/WebCore/dom/CSSMappedAttributeDeclaration.cpp
index 536992d10..72e256a65 100644
--- a/Source/WebCore/dom/CSSMappedAttributeDeclaration.cpp
+++ b/Source/WebCore/dom/CSSMappedAttributeDeclaration.cpp
@@ -38,13 +38,12 @@ inline void CSSMappedAttributeDeclaration::setNeedsStyleRecalc(StyledElement* el
CSSMappedAttributeDeclaration::~CSSMappedAttributeDeclaration()
{
- if (m_entryType != ePersistent)
- StyledElement::removeMappedAttributeDecl(m_entryType, m_attrName, m_attrValue);
+ StyledElement::removeMappedAttributeDecl(m_entryType, m_attrName, m_attrValue);
}
void CSSMappedAttributeDeclaration::setMappedImageProperty(StyledElement* element, int propertyId, const String& url)
{
- setPropertyInternal(CSSProperty(propertyId, CSSImageValue::create(url)));
+ m_declaration->setProperty(CSSProperty(propertyId, CSSImageValue::create(url)));
setNeedsStyleRecalc(element);
}
@@ -56,7 +55,7 @@ void CSSMappedAttributeDeclaration::setMappedLengthProperty(StyledElement* eleme
void CSSMappedAttributeDeclaration::setMappedProperty(StyledElement* element, int propertyId, int value)
{
ASSERT(element->document());
- setPropertyInternal(CSSProperty(propertyId, element->document()->cssValuePool()->createIdentifierValue(value)));
+ m_declaration->setProperty(CSSProperty(propertyId, element->document()->cssValuePool()->createIdentifierValue(value)));
setNeedsStyleRecalc(element);
}
@@ -75,7 +74,7 @@ void CSSMappedAttributeDeclaration::setMappedProperty(StyledElement* element, in
void CSSMappedAttributeDeclaration::removeMappedProperty(StyledElement* element, int propertyId)
{
- removeProperty(propertyId, false, false);
+ m_declaration->removeProperty(propertyId, false, false);
setNeedsStyleRecalc(element);
}