Use AtomicString in Document::documentNamedItems and Document::windowNamedItems
Created attachment 101983 [details] Patch
Comment on attachment 101983 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=101983&action=review looks sane to me. > Source/WebCore/dom/Document.cpp:4152 > return HTMLNameCollection::create(this, WindowNamedItems, name); But HTMLNameCollection::create takes const String!
Comment on attachment 101983 [details] Patch For this patch to be useful, doesn't HTMLNameCollection::m_name need to be an AtomicString as well?
Comment on attachment 101983 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=101983&action=review >> Source/WebCore/dom/Document.cpp:4152 >> return HTMLNameCollection::create(this, WindowNamedItems, name); > > But HTMLNameCollection::create takes const String! That doesn't make the change completely invalid, but w/o some sort of microbenchmark to demonstrate that this is a win, this isn't worth doing w/o the AtomicStirng being kept around.