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

Unified Diff: third_party/WebKit/Source/build/scripts/templates/ElementTypeHelpers.h.tmpl

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/templates/ElementTypeHelpers.h.tmpl
diff --git a/third_party/WebKit/Source/build/scripts/templates/ElementTypeHelpers.h.tmpl b/third_party/WebKit/Source/build/scripts/templates/ElementTypeHelpers.h.tmpl
index 35ca29d97c3c3120e5310e7f973a129972512e89..4ea2e9657a03fa582c0554698aeb78f4323832c0 100644
--- a/third_party/WebKit/Source/build/scripts/templates/ElementTypeHelpers.h.tmpl
+++ b/third_party/WebKit/Source/build/scripts/templates/ElementTypeHelpers.h.tmpl
@@ -21,23 +21,23 @@ inline bool is{{tag.interface}}(const {{namespace}}Element& element) {
if (!RuntimeEnabledFeatures::{{tag.runtimeEnabled}}Enabled())
return false;
{% endif %}
- return element.hasTagName({{namespace}}Names::{{tag|symbol}}Tag);
+ return element.HasTagName({{namespace}}Names::{{tag|symbol}}Tag);
}
inline bool is{{tag.interface}}(const {{namespace}}Element* element) {
return element && is{{tag.interface}}(*element);
}
inline bool is{{tag.interface}}(const Node& node) {
- return node.is{{namespace}}Element() && is{{tag.interface}}(to{{namespace}}Element(node));
+ return node.Is{{namespace}}Element() && is{{tag.interface}}(To{{namespace}}Element(node));
}
inline bool is{{tag.interface}}(const Node* node) {
return node && is{{tag.interface}}(*node);
}
template <>
-inline bool isElementOfType<const {{tag.interface}}>(const Node& node) {
+inline bool IsElementOfType<const {{tag.interface}}>(const Node& node) {
return is{{tag.interface}}(node);
}
template <>
-inline bool isElementOfType<const {{tag.interface}}>(const {{namespace}}Element& element) {
+inline bool IsElementOfType<const {{tag.interface}}>(const {{namespace}}Element& element) {
return is{{tag.interface}}(element);
}
@@ -47,8 +47,8 @@ inline bool isElementOfType<const {{tag.interface}}>(const {{namespace}}Element&
// unsafe due to multiple inheritence.
{% for tag in tags|sort if not tag.multipleTagNames and not tag.noTypeHelpers %}
-#define to{{tag.interface}}(x) blink::toElement<blink::{{tag.interface}}>(x)
-#define to{{tag.interface}}OrDie(x) blink::toElementOrDie<blink::{{tag.interface}}>(x)
+#define to{{tag.interface}}(x) blink::ToElement<blink::{{tag.interface}}>(x)
+#define to{{tag.interface}}OrDie(x) blink::ToElementOrDie<blink::{{tag.interface}}>(x)
{% endfor %}
{% if namespace == "HTML" %}

Powered by Google App Engine
This is Rietveld 408576698