summaryrefslogtreecommitdiff
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.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/Source/WebCore/dom/StyledElement.cpp b/Source/WebCore/dom/StyledElement.cpp
index d55b00993..a992644c1 100644
--- a/Source/WebCore/dom/StyledElement.cpp
+++ b/Source/WebCore/dom/StyledElement.cpp
@@ -163,7 +163,7 @@ void StyledElement::classAttributeChanged(const AtomicString& newClassString)
ensureAttributeData()->setClass(newClassString, shouldFoldCase);
if (DOMTokenList* classList = optionalClassList())
static_cast<ClassList*>(classList)->reset(newClassString);
- } else if (attributeData())
+ } else
attributeData()->clearClass();
setNeedsStyleRecalc();
}
@@ -212,7 +212,7 @@ bool StyledElement::setInlineStyleProperty(CSSPropertyID propertyID, double valu
bool StyledElement::setInlineStyleProperty(CSSPropertyID propertyID, const String& value, bool important)
{
- bool changes = ensureAttributeData()->ensureMutableInlineStyle(this)->setProperty(propertyID, value, important, document()->elementSheet()->internal());
+ bool changes = ensureAttributeData()->ensureMutableInlineStyle(this)->setProperty(propertyID, value, important, document()->elementSheet()->contents());
if (changes)
inlineStyleChanged();
return changes;
@@ -232,7 +232,7 @@ bool StyledElement::removeInlineStyleProperty(CSSPropertyID propertyID)
void StyledElement::addSubresourceAttributeURLs(ListHashSet<KURL>& urls) const
{
if (StylePropertySet* inlineStyle = attributeData() ? attributeData()->inlineStyle() : 0)
- inlineStyle->addSubresourceStyleURLs(urls, document()->elementSheet()->internal());
+ inlineStyle->addSubresourceStyleURLs(urls, document()->elementSheet()->contents());
}
static inline bool attributeNameSort(const pair<AtomicStringImpl*, AtomicString>& p1, const pair<AtomicStringImpl*, AtomicString>& p2)
@@ -342,7 +342,7 @@ void StyledElement::addPropertyToAttributeStyle(StylePropertySet* style, CSSProp
void StyledElement::addPropertyToAttributeStyle(StylePropertySet* style, CSSPropertyID propertyID, const String& value)
{
- style->setProperty(propertyID, value, false, document()->elementSheet()->internal());
+ style->setProperty(propertyID, value, false, document()->elementSheet()->contents());
}
}