diff options
author | Lorry Tar Creator <lorry-tar-importer@lorry> | 2017-06-27 06:07:23 +0000 |
---|---|---|
committer | Lorry Tar Creator <lorry-tar-importer@lorry> | 2017-06-27 06:07:23 +0000 |
commit | 1bf1084f2b10c3b47fd1a588d85d21ed0eb41d0c (patch) | |
tree | 46dcd36c86e7fbc6e5df36deb463b33e9967a6f7 /Source/WebCore/css/MediaFeatureNames.cpp | |
parent | 32761a6cee1d0dee366b885b7b9c777e67885688 (diff) | |
download | WebKitGtk-tarball-master.tar.gz |
webkitgtk-2.16.5HEADwebkitgtk-2.16.5master
Diffstat (limited to 'Source/WebCore/css/MediaFeatureNames.cpp')
-rw-r--r-- | Source/WebCore/css/MediaFeatureNames.cpp | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/Source/WebCore/css/MediaFeatureNames.cpp b/Source/WebCore/css/MediaFeatureNames.cpp index 73a0ba351..18430c90c 100644 --- a/Source/WebCore/css/MediaFeatureNames.cpp +++ b/Source/WebCore/css/MediaFeatureNames.cpp @@ -1,5 +1,5 @@ /* - * Copyright (C) 2005 Apple Computer, Inc. + * Copyright (C) 2005 Apple Inc. * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Library General Public @@ -30,8 +30,7 @@ namespace WebCore { namespace MediaFeatureNames { -#define DEFINE_MEDIAFEATURE_GLOBAL(name, str) \ - DEFINE_GLOBAL(AtomicString, name##MediaFeature, str) +#define DEFINE_MEDIAFEATURE_GLOBAL(name, string) DEFINE_GLOBAL(AtomicString, name) CSS_MEDIAQUERY_NAMES_FOR_EACH_MEDIAFEATURE(DEFINE_MEDIAFEATURE_GLOBAL) #undef DEFINE_MEDIAFEATURE_GLOBAL @@ -39,10 +38,9 @@ void init() { static bool initialized; if (!initialized) { - // Use placement new to initialize the globals. - + // Use placement new to initialize the globals. AtomicString::init(); -#define INITIALIZE_GLOBAL(name, str) new (NotNull, (void*)&name##MediaFeature) AtomicString(str, AtomicString::ConstructFromLiteral); +#define INITIALIZE_GLOBAL(name, string) new (NotNull, (void*)&name) AtomicString(string, AtomicString::ConstructFromLiteral); CSS_MEDIAQUERY_NAMES_FOR_EACH_MEDIAFEATURE(INITIALIZE_GLOBAL) #undef INITIALIZE_GLOBAL initialized = true; |