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

Unified Diff: third_party/WebKit/Source/build/scripts/make_css_property_names.py

Issue 2007073003: Move CSSPropertyID templates instantiations to a separate file. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Remove more includes from CSSPropertyNames.h Created 4 years, 7 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | third_party/WebKit/Source/build/scripts/templates/CSSOMKeywords.cpp.tmpl » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/build/scripts/make_css_property_names.py
diff --git a/third_party/WebKit/Source/build/scripts/make_css_property_names.py b/third_party/WebKit/Source/build/scripts/make_css_property_names.py
index 4b3ad32f9579f269990fb27c62017b2463573257..e32dc5f682ec57857b5377e715ae9de30937f352 100755
--- a/third_party/WebKit/Source/build/scripts/make_css_property_names.py
+++ b/third_party/WebKit/Source/build/scripts/make_css_property_names.py
@@ -15,10 +15,8 @@ HEADER_TEMPLATE = """
#define %(class_name)s_h
#include "core/CoreExport.h"
-#include "core/css/parser/CSSParserMode.h"
-#include "wtf/HashFunctions.h"
-#include "wtf/HashTraits.h"
-#include <string.h>
+#include "wtf/Assertions.h"
+#include <stddef.h>
namespace WTF {
class AtomicString;
@@ -65,15 +63,6 @@ CSSPropertyID CORE_EXPORT cssPropertyID(const WTF::String&);
} // namespace blink
-namespace WTF {
-template<> struct DefaultHash<blink::CSSPropertyID> { typedef IntHash<unsigned> Hash; };
-template<> struct HashTraits<blink::CSSPropertyID> : GenericHashTraits<blink::CSSPropertyID> {
- static const bool emptyValueIsZero = true;
- static void constructDeletedValue(blink::CSSPropertyID& slot, bool) { slot = static_cast<blink::CSSPropertyID>(blink::lastUnresolvedCSSProperty + 1); }
- static bool isDeletedValue(blink::CSSPropertyID value) { return value == (blink::lastUnresolvedCSSProperty + 1); }
-};
-}
-
#endif // %(class_name)s_h
"""
« no previous file with comments | « no previous file | third_party/WebKit/Source/build/scripts/templates/CSSOMKeywords.cpp.tmpl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698