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

Unified Diff: tools/dom/scripts/htmlrenamer.py

Issue 14855011: Cleanup of DOM classname generation (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 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
« no previous file with comments | « tools/dom/scripts/dartmetadata.py ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/dom/scripts/htmlrenamer.py
diff --git a/tools/dom/scripts/htmlrenamer.py b/tools/dom/scripts/htmlrenamer.py
index 8ab708190e452f689506e524ac716fe5b181f78a..9073f9878217a87615097b430e9882923b471cab 100644
--- a/tools/dom/scripts/htmlrenamer.py
+++ b/tools/dom/scripts/htmlrenamer.py
@@ -28,12 +28,8 @@ html_interface_renames = monitored.Dict('htmlrenamer.html_interface_renames',
'Database': 'SqlDatabase', # Avoid conflict with Index DB's Database.
'DatabaseSync': 'SqlDatabaseSync',
'DOMApplicationCache': 'ApplicationCache',
- 'DOMCoreException': 'DomException',
'DOMFileSystem': 'FileSystem',
- 'DOMFormData': 'FormData',
'DOMPoint': '_DomPoint',
- 'DOMURL': 'Url',
- 'DOMWindow': 'Window',
'EntryCallback': '_EntryCallback',
'EntriesCallback': '_EntriesCallback',
'ErrorCallback': '_ErrorCallback',
@@ -59,9 +55,6 @@ html_interface_renames = monitored.Dict('htmlrenamer.html_interface_renames',
'SVGGradientElement': '_GradientElement',
'SVGSVGElement': 'SvgSvgElement', # Manual to avoid name conflicts.
'WebGLVertexArrayObjectOES': 'VertexArrayObject',
- 'WebKitCSSKeyframeRule': 'CssKeyframeRule',
- 'WebKitCSSKeyframesRule': 'CssKeyframesRule',
- 'WebKitCSSTransformValue': 'CssTransformValue',
'XMLHttpRequest': 'HttpRequest',
'XMLHttpRequestException': 'HttpRequestException',
'XMLHttpRequestProgressEvent': 'HttpRequestProgressEvent',
@@ -649,7 +642,7 @@ class HtmlRenamer(object):
if any(interface.id in ['Element', 'Document']
for interface in self._database.Hierarchy(interface)):
return interface.id[len('HTML'):]
- return self.DartifyTypeName(interface.id)
+ return self.DartifyTypeName(interface.javascript_binding_name)
def RenameMember(self, interface_name, member_node, member, member_prefix='',
@@ -747,6 +740,7 @@ class HtmlRenamer(object):
name = re.sub(r'^SVG', '', type_name)
name = re.sub(r'^IDB', '', name)
name = re.sub(r'^WebGL', '', name)
+ name = re.sub(r'^WebKit', '', name)
return self._CamelCaseName(name)
« no previous file with comments | « tools/dom/scripts/dartmetadata.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698