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

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

Issue 11314016: restore dirName. It was added in html5 (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 1 month 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
« no previous file with comments | « lib/html/dartium/html_dartium.dart ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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': 'LocalWindow', 9 'DOMWindow': 'LocalWindow',
10 'History': 'LocalHistory', 10 'History': 'LocalHistory',
(...skipping 197 matching lines...) Expand 10 before | Expand all | Expand 10 after
208 "Element.get:itemProp", 208 "Element.get:itemProp",
209 'Element.scrollIntoView', 209 'Element.scrollIntoView',
210 'Element.get:classList', 210 'Element.get:classList',
211 "FormElement.get:elements", 211 "FormElement.get:elements",
212 "HTMLFrameElement.*", 212 "HTMLFrameElement.*",
213 "HTMLFrameSetElement.*", 213 "HTMLFrameSetElement.*",
214 "HtmlElement.version", 214 "HtmlElement.version",
215 "HtmlElement.manifest", 215 "HtmlElement.manifest",
216 "Document.version", 216 "Document.version",
217 "Document.manifest", 217 "Document.manifest",
218 "InputElement.dirName",
219 "HTMLIsIndexElement.*", 218 "HTMLIsIndexElement.*",
220 "HTMLOptionsCollection.*", 219 "HTMLOptionsCollection.*",
221 "HTMLPropertiesCollection.*", 220 "HTMLPropertiesCollection.*",
222 "SelectElement.remove", 221 "SelectElement.remove",
223 "TextAreaElement.dirName",
224 "NamedNodeMap.*", 222 "NamedNodeMap.*",
225 "Node.isEqualNode", 223 "Node.isEqualNode",
226 "Node.get:TEXT_NODE", 224 "Node.get:TEXT_NODE",
227 "Node.hasAttributes", 225 "Node.hasAttributes",
228 "Node.get:DOCUMENT_TYPE_NODE", 226 "Node.get:DOCUMENT_TYPE_NODE",
229 "Node.get:DOCUMENT_POSITION_FOLLOWING", 227 "Node.get:DOCUMENT_POSITION_FOLLOWING",
230 "Node.lookupNamespaceURI", 228 "Node.lookupNamespaceURI",
231 "Node.get:ELEMENT_NODE", 229 "Node.get:ELEMENT_NODE",
232 "Node.get:namespaceURI", 230 "Node.get:namespaceURI",
233 "Node.get:DOCUMENT_FRAGMENT_NODE", 231 "Node.get:DOCUMENT_FRAGMENT_NODE",
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after
301 299
302 def _FindMatch(self, interface, member, member_prefix, candidates): 300 def _FindMatch(self, interface, member, member_prefix, candidates):
303 for interface in self._database.Hierarchy(interface): 301 for interface in self._database.Hierarchy(interface):
304 html_interface_name = self.RenameInterface(interface) 302 html_interface_name = self.RenameInterface(interface)
305 member_name = html_interface_name + '.' + member 303 member_name = html_interface_name + '.' + member
306 if member_name in candidates: 304 if member_name in candidates:
307 return member_name 305 return member_name
308 member_name = html_interface_name + '.' + member_prefix + member 306 member_name = html_interface_name + '.' + member_prefix + member
309 if member_name in candidates: 307 if member_name in candidates:
310 return member_name 308 return member_name
OLDNEW
« no previous file with comments | « lib/html/dartium/html_dartium.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698