Refactoring: Use AtomicString for an InputType::create argument
authortkent@chromium.org <tkent@chromium.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 24 Jan 2013 09:07:36 +0000 (09:07 +0000)
committertkent@chromium.org <tkent@chromium.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 24 Jan 2013 09:07:36 +0000 (09:07 +0000)
commita0d038bd8c32c7823f3d19a7ca92cf58ea105366
tree7cf66699e90598bdf938e572fd7f50036628d8f6
parentde7f20e2ea63531cd14f0db5b0dacab424d144d5
Refactoring: Use AtomicString for an InputType::create argument
https://bugs.webkit.org/show_bug.cgi?id=107791

Reviewed by Kentaro Hara.

A string passed to InputType::create is a 'type' attribute value, which
is an AtomicString. Also, InputTypeFactoryMap is created with members of
InputTypeName, which are AtomicStrings. We had better use AtomicStrings
for them.

No new tests. This is just a refactoring.

* html/InputType.cpp:
Change the key type of InputTypeFactoryMap from String to AtomicString.
(WebCore::InputType::create):
Change an argument type from const String& to const AtomicString&.
* html/InputType.h:
(InputType): Ditto.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@140665 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Source/WebCore/ChangeLog
Source/WebCore/html/InputType.cpp
Source/WebCore/html/InputType.h