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

Side by Side Diff: lib/html/scripts/htmlrenamer.py

Issue 11036037: Revert "Adding synchronous measurement methods to Element." (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 2 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 #!/usr/bin/python 1 #!/usr/bin/python
2 # Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 2 # Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
3 # for details. All rights reserved. Use of this source code is governed by a 3 # for details. All rights reserved. Use of this source code is governed by a
4 # BSD-style license that can be found in the LICENSE file. 4 # BSD-style license that can be found in the LICENSE file.
5 5
6 html_interface_renames = { 6 html_interface_renames = {
7 'DOMCoreException': 'DOMException', 7 'DOMCoreException': 'DOMException',
8 'DOMFormData': 'FormData', 8 'DOMFormData': 'FormData',
9 'DOMWindow': 'Window', 9 'DOMWindow': 'Window',
10 'WebKitAnimation': 'Animation', 10 'WebKitAnimation': 'Animation',
(...skipping 28 matching lines...) Expand all
39 'Document.getElementsByClassName', 39 'Document.getElementsByClassName',
40 'Document.getElementsByName', 40 'Document.getElementsByName',
41 'Document.getElementsByTagName', 41 'Document.getElementsByTagName',
42 'Document.querySelector', 42 'Document.querySelector',
43 'Document.querySelectorAll', 43 'Document.querySelectorAll',
44 'DocumentFragment.querySelector', 44 'DocumentFragment.querySelector',
45 'DocumentFragment.querySelectorAll', 45 'DocumentFragment.querySelectorAll',
46 'Element.childElementCount', 46 'Element.childElementCount',
47 'Element.children', 47 'Element.children',
48 'Element.className', 48 'Element.className',
49 'Element.clientHeight',
50 'Element.clientLeft',
51 'Element.clientTop',
52 'Element.clientWidth',
49 'Element.firstElementChild', 53 'Element.firstElementChild',
50 'Element.getAttribute', 54 'Element.getAttribute',
55 'Element.getBoundingClientRect',
56 'Element.getClientRects',
51 'Element.getElementsByClassName', 57 'Element.getElementsByClassName',
52 'Element.getElementsByTagName', 58 'Element.getElementsByTagName',
53 'Element.hasAttribute', 59 'Element.hasAttribute',
54 'Element.lastElementChild', 60 'Element.lastElementChild',
61 'Element.offsetHeight',
62 'Element.offsetLeft',
63 'Element.offsetTop',
64 'Element.offsetWidth',
55 'Element.querySelector', 65 'Element.querySelector',
56 'Element.querySelectorAll', 66 'Element.querySelectorAll',
57 'Element.removeAttribute', 67 'Element.removeAttribute',
68 'Element.scrollHeight',
69 'Element.scrollLeft',
70 'Element.scrollTop',
71 'Element.scrollWidth',
58 'Element.setAttribute', 72 'Element.setAttribute',
59 'Event.initEvent', 73 'Event.initEvent',
60 'EventTarget.addEventListener', 74 'EventTarget.addEventListener',
61 'EventTarget.dispatchEvent', 75 'EventTarget.dispatchEvent',
62 'EventTarget.removeEventListener', 76 'EventTarget.removeEventListener',
63 'MouseEvent.initMouseEvent', 77 'MouseEvent.initMouseEvent',
64 'Node.appendChild', 78 'Node.appendChild',
65 'Node.attributes', 79 'Node.attributes',
66 'Node.childNodes', 80 'Node.childNodes',
67 'Node.firstChild', 81 'Node.firstChild',
(...skipping 233 matching lines...) Expand 10 before | Expand all | Expand 10 after
301 315
302 def _FindMatch(self, interface, member, member_prefix, candidates): 316 def _FindMatch(self, interface, member, member_prefix, candidates):
303 for interface in self._database.Hierarchy(interface): 317 for interface in self._database.Hierarchy(interface):
304 html_interface_name = self.RenameInterface(interface) 318 html_interface_name = self.RenameInterface(interface)
305 member_name = html_interface_name + '.' + member 319 member_name = html_interface_name + '.' + member
306 if member_name in candidates: 320 if member_name in candidates:
307 return member_name 321 return member_name
308 member_name = html_interface_name + '.' + member_prefix + member 322 member_name = html_interface_name + '.' + member_prefix + member
309 if member_name in candidates: 323 if member_name in candidates:
310 return member_name 324 return member_name
OLDNEW
« no previous file with comments | « lib/html/dartium/html_dartium.dart ('k') | lib/html/templates/html/dart2js/impl_MouseEvent.darttemplate » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698