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

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

Issue 18196004: Revert 153294 "Remove AtomicStringImpl." (Closed) Base URL: svn://svn.chromium.org/blink/
Patch Set: Created 7 years, 6 months 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
« no previous file with comments | « trunk/Source/core/dom/DocumentOrderedMap.cpp ('k') | trunk/Source/core/dom/IdTargetObserverRegistry.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: trunk/Source/core/dom/Element.cpp
===================================================================
--- trunk/Source/core/dom/Element.cpp (revision 153372)
+++ trunk/Source/core/dom/Element.cpp (working copy)
@@ -3017,9 +3017,9 @@
struct PresentationAttributeCacheKey {
PresentationAttributeCacheKey() : tagName(0) { }
- StringImpl* tagName;
+ AtomicStringImpl* tagName;
// Only the values need refcounting.
- Vector<pair<StringImpl*, AtomicString>, 3> attributesAndValues;
+ Vector<pair<AtomicStringImpl*, AtomicString>, 3> attributesAndValues;
};
struct PresentationAttributeCacheEntry {
@@ -3239,7 +3239,7 @@
inlineStyle->addSubresourceStyleURLs(urls, document()->elementSheet()->contents());
}
-static inline bool attributeNameSort(const pair<StringImpl*, AtomicString>& p1, const pair<StringImpl*, AtomicString>& p2)
+static inline bool attributeNameSort(const pair<AtomicStringImpl*, AtomicString>& p1, const pair<AtomicStringImpl*, AtomicString>& p2)
{
// Sort based on the attribute name pointers. It doesn't matter what the order is as long as it is always the same.
return p1.first < p2.first;
« no previous file with comments | « trunk/Source/core/dom/DocumentOrderedMap.cpp ('k') | trunk/Source/core/dom/IdTargetObserverRegistry.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698