| Index: Source/core/css/MediaFeatureNames.cpp
|
| diff --git a/Source/core/css/MediaFeatureNames.cpp b/Source/core/css/MediaFeatureNames.cpp
|
| index 2db2bd92e9dd1ba6827845187ea12dca859bb509..ad2c201fc4dac6d7421a9dfbce3b28ca03d81a30 100644
|
| --- a/Source/core/css/MediaFeatureNames.cpp
|
| +++ b/Source/core/css/MediaFeatureNames.cpp
|
| @@ -26,19 +26,20 @@
|
|
|
| #include "core/css/MediaFeatureNames.h"
|
|
|
| +#include "core/html/parser/HTMLParserIdioms.h"
|
| #include "wtf/StaticConstructors.h"
|
|
|
| namespace WebCore {
|
| namespace MediaFeatureNames {
|
|
|
| #define DEFINE_MEDIAFEATURE_GLOBAL(name, str) \
|
| - DEFINE_GLOBAL(AtomicString, name##MediaFeature, str)
|
| + DEFINE_GLOBAL(String, name##MediaFeature, str)
|
| CSS_MEDIAQUERY_NAMES_FOR_EACH_MEDIAFEATURE(DEFINE_MEDIAFEATURE_GLOBAL)
|
| #undef DEFINE_MEDIAFEATURE_GLOBAL
|
|
|
| void init()
|
| {
|
| -#define INITIALIZE_GLOBAL(name, str) new (NotNull, (void*)&name##MediaFeature) AtomicString(str, AtomicString::ConstructFromLiteral);
|
| +#define INITIALIZE_GLOBAL(name, str) new (NotNull, (void*)&name##MediaFeature) String(StringImpl::createStatic((char*)str, strlen(str), StringHasher::computeHashAndMaskTop8Bits((LChar*)str, strlen(str))));
|
| CSS_MEDIAQUERY_NAMES_FOR_EACH_MEDIAFEATURE(INITIALIZE_GLOBAL)
|
| #undef INITIALIZE_GLOBAL
|
| }
|
|
|