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

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

Issue 424983002: Stop using WebCore namespace in generated code (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 5 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 | « Source/bindings/core/v8/V8WindowShell.cpp ('k') | Source/build/scripts/make_css_value_keywords.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/build/scripts/make_css_property_names.py
diff --git a/Source/build/scripts/make_css_property_names.py b/Source/build/scripts/make_css_property_names.py
index f0a3a7f7ff474a7362e1db956527a3215099813a..30e86677b4376293cf04e47e4e710a8a5a61c5b9 100755
--- a/Source/build/scripts/make_css_property_names.py
+++ b/Source/build/scripts/make_css_property_names.py
@@ -26,7 +26,7 @@ class AtomicString;
class String;
}
-namespace WebCore {
+namespace blink {
enum CSSPropertyID {
CSSPropertyInvalid = 0,
@@ -50,15 +50,15 @@ inline CSSPropertyID convertToCSSPropertyID(int value)
return static_cast<CSSPropertyID>(value);
}
-} // namespace WebCore
+} // namespace blink
namespace WTF {
-template<> struct DefaultHash<WebCore::CSSPropertyID> { typedef IntHash<unsigned> Hash; };
-template<> struct HashTraits<WebCore::CSSPropertyID> : GenericHashTraits<WebCore::CSSPropertyID> {
+template<> struct DefaultHash<blink::CSSPropertyID> { typedef IntHash<unsigned> Hash; };
+template<> struct HashTraits<blink::CSSPropertyID> : GenericHashTraits<blink::CSSPropertyID> {
static const bool emptyValueIsZero = true;
static const bool needsDestruction = false;
- static void constructDeletedValue(WebCore::CSSPropertyID& slot) { slot = static_cast<WebCore::CSSPropertyID>(WebCore::lastCSSProperty + 1); }
- static bool isDeletedValue(WebCore::CSSPropertyID value) { return value == (WebCore::lastCSSProperty + 1); }
+ static void constructDeletedValue(blink::CSSPropertyID& slot) { slot = static_cast<blink::CSSPropertyID>(blink::lastCSSProperty + 1); }
+ static bool isDeletedValue(blink::CSSPropertyID value) { return value == (blink::lastCSSProperty + 1); }
};
}
@@ -78,7 +78,7 @@ GPERF_TEMPLATE = """
#include "wtf/text/AtomicString.h"
#include "wtf/text/WTFString.h"
-namespace WebCore {
+namespace blink {
static const char propertyNameStringsPool[] = {
%(property_name_strings)s
};
@@ -174,7 +174,7 @@ bool isInternalProperty(CSSPropertyID id)
}
}
-} // namespace WebCore
+} // namespace blink
"""
« no previous file with comments | « Source/bindings/core/v8/V8WindowShell.cpp ('k') | Source/build/scripts/make_css_value_keywords.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698