Index: Source/core/dom/Element.cpp |
diff --git a/Source/core/dom/Element.cpp b/Source/core/dom/Element.cpp |
index 056a3f2facceaae4b5c1f23cef09d7229c792f60..8a5f2bb5a1a4355892eae985f1ad8c9320b36985 100644 |
--- a/Source/core/dom/Element.cpp |
+++ b/Source/core/dom/Element.cpp |
@@ -2779,7 +2779,7 @@ bool Element::webkitMatchesSelector(const String& selector, ExceptionState& exce |
return false; |
} |
- SelectorQuery* selectorQuery = document().selectorQueryCache().add(selector, document(), exceptionState); |
+ SelectorQuery* selectorQuery = document().selectorQueryCache().add(AtomicString(selector), document(), exceptionState); |
if (!selectorQuery) |
return false; |
return selectorQuery->matches(*this); |
@@ -3402,7 +3402,7 @@ void Element::synchronizeStyleAttributeInternal() const |
ASSERT(elementData()->m_styleAttributeIsDirty); |
elementData()->m_styleAttributeIsDirty = false; |
if (const StylePropertySet* inlineStyle = this->inlineStyle()) |
- const_cast<Element*>(this)->setSynchronizedLazyAttribute(styleAttr, inlineStyle->asText()); |
+ const_cast<Element*>(this)->setSynchronizedLazyAttribute(styleAttr, AtomicString(inlineStyle->asText())); |
} |
CSSStyleDeclaration* Element::style() |