Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(587)

Unified Diff: Source/core/dom/Element.cpp

Issue 112843002: Make calls to AtomicString(const String&) explicit in dom/ (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 7 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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()

Powered by Google App Engine
This is Rietveld 408576698