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

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

Issue 2329463004: ABANDONED CL: Changes needed to make things compile after running rewrite_to_chrome_style tool. (Closed)
Patch Set: More fixes - things build fine at this point. Created 3 years, 8 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
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 b3e05b07a39d058c7fff93bb6dfacb065522f3c4..949c1825d049d9c45178307a90a924c0c326da0b 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
@@ -122,7 +122,7 @@ struct Property;
%%define class-name %(class_name)sHash
%%define lookup-function-name findPropertyImpl
%%define hash-function-name property_hash_function
-%%define slot-name nameOffset
+%%define slot-name name_offset
%%define word-array-name property_word_list
%%enum
%%%%
@@ -133,7 +133,7 @@ struct Property;
#pragma clang diagnostic pop
#endif
-const Property* findProperty(const char* str, unsigned int len) {
+const Property* FindProperty(const char* str, unsigned int len) {
return %(class_name)sHash::findPropertyImpl(str, len);
}
@@ -149,7 +149,7 @@ const AtomicString& getPropertyNameAtomicString(CSSPropertyID id) {
static AtomicString* propertyStrings =
new AtomicString[lastUnresolvedCSSProperty]; // Leaked.
AtomicString& propertyString = propertyStrings[index];
- if (propertyString.isNull()) {
+ if (propertyString.IsNull()) {
propertyString = AtomicString(propertyNameStringsPool +
propertyNameStringsOffsets[index]);
}
@@ -158,7 +158,7 @@ const AtomicString& getPropertyNameAtomicString(CSSPropertyID id) {
String getPropertyNameString(CSSPropertyID id) {
// We share the StringImpl with the AtomicStrings.
- return getPropertyNameAtomicString(id).getString();
+ return getPropertyNameAtomicString(id).GetString();
}
String getJSPropertyName(CSSPropertyID id) {
@@ -166,7 +166,7 @@ String getJSPropertyName(CSSPropertyID id) {
const char* cssPropertyName = getPropertyName(id);
const char* propertyNamePointer = cssPropertyName;
if (!propertyNamePointer)
- return emptyString;
+ return g_empty_string;
char* resultPointer = result;
while (char character = *propertyNamePointer++) {
@@ -175,7 +175,7 @@ String getJSPropertyName(CSSPropertyID id) {
if (!nextCharacter)
break;
character = (propertyNamePointer - 2 != cssPropertyName)
- ? toASCIIUpper(nextCharacter) : nextCharacter;
+ ? ToASCIIUpper(nextCharacter) : nextCharacter;
}
*resultPointer++ = character;
}

Powered by Google App Engine
This is Rietveld 408576698