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

Side by Side Diff: Source/core/dom/TreeScope.cpp

Issue 19804005: Remove AtomicStringImpl. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 5 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « Source/core/dom/TreeScope.h ('k') | Source/core/dom/shadow/SelectRuleFeatureSet.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2011 Google Inc. All Rights Reserved. 2 * Copyright (C) 2011 Google Inc. All Rights Reserved.
3 * Copyright (C) 2012 Apple Inc. All rights reserved. 3 * Copyright (C) 2012 Apple Inc. All rights reserved.
4 * 4 *
5 * Redistribution and use in source and binary forms, with or without 5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions 6 * modification, are permitted provided that the following conditions
7 * are met: 7 * are met:
8 * 1. Redistributions of source code must retain the above copyright 8 * 1. Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * 2. Redistributions in binary form must reproduce the above copyright 10 * 2. Redistributions in binary form must reproduce the above copyright
(...skipping 160 matching lines...) Expand 10 before | Expand all | Expand 10 after
171 return 0; 171 return 0;
172 172
173 node = node->shadowHost(); 173 node = node->shadowHost();
174 } 174 }
175 175
176 return 0; 176 return 0;
177 } 177 }
178 178
179 void TreeScope::addImageMap(HTMLMapElement* imageMap) 179 void TreeScope::addImageMap(HTMLMapElement* imageMap)
180 { 180 {
181 AtomicStringImpl* name = imageMap->getName().impl(); 181 StringImpl* name = imageMap->getName().impl();
182 if (!name) 182 if (!name)
183 return; 183 return;
184 if (!m_imageMapsByName) 184 if (!m_imageMapsByName)
185 m_imageMapsByName = adoptPtr(new DocumentOrderedMap); 185 m_imageMapsByName = adoptPtr(new DocumentOrderedMap);
186 m_imageMapsByName->add(name, imageMap); 186 m_imageMapsByName->add(name, imageMap);
187 } 187 }
188 188
189 void TreeScope::removeImageMap(HTMLMapElement* imageMap) 189 void TreeScope::removeImageMap(HTMLMapElement* imageMap)
190 { 190 {
191 if (!m_imageMapsByName) 191 if (!m_imageMapsByName)
192 return; 192 return;
193 AtomicStringImpl* name = imageMap->getName().impl(); 193 StringImpl* name = imageMap->getName().impl();
194 if (!name) 194 if (!name)
195 return; 195 return;
196 m_imageMapsByName->remove(name, imageMap); 196 m_imageMapsByName->remove(name, imageMap);
197 } 197 }
198 198
199 HTMLMapElement* TreeScope::getImageMap(const String& url) const 199 HTMLMapElement* TreeScope::getImageMap(const String& url) const
200 { 200 {
201 if (url.isNull()) 201 if (url.isNull())
202 return 0; 202 return 0;
203 if (!m_imageMapsByName) 203 if (!m_imageMapsByName)
(...skipping 294 matching lines...) Expand 10 before | Expand all | Expand 10 after
498 result = element; 498 result = element;
499 for (ShadowRoot* shadowRoot = element->youngestShadowRoot(); shadowRoot; shadowRoot = shadowRoot->olderShadowRoot()) { 499 for (ShadowRoot* shadowRoot = element->youngestShadowRoot(); shadowRoot; shadowRoot = shadowRoot->olderShadowRoot()) {
500 if (Element* shadowResult = shadowRoot->getElementByAccessKey(key)) 500 if (Element* shadowResult = shadowRoot->getElementByAccessKey(key))
501 result = shadowResult; 501 result = shadowResult;
502 } 502 }
503 } 503 }
504 return result; 504 return result;
505 } 505 }
506 506
507 } // namespace WebCore 507 } // namespace WebCore
OLDNEW
« no previous file with comments | « Source/core/dom/TreeScope.h ('k') | Source/core/dom/shadow/SelectRuleFeatureSet.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698