OLD | NEW |
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 115 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
126 # TODO(jacobr): cleanup and augment this list. | 126 # TODO(jacobr): cleanup and augment this list. |
127 _removed_html_members = set([ | 127 _removed_html_members = set([ |
128 'NodeList.item', | 128 'NodeList.item', |
129 "Attr.*", | 129 "Attr.*", |
130 # "BarProp.*", | 130 # "BarProp.*", |
131 # "BarInfo.*", | 131 # "BarInfo.*", |
132 # "Blob.webkitSlice", | 132 # "Blob.webkitSlice", |
133 # "CDATASection.*", | 133 # "CDATASection.*", |
134 # "Comment.*", | 134 # "Comment.*", |
135 # "DOMImplementation.*", | 135 # "DOMImplementation.*", |
| 136 "CanvasRenderingContext2D.setFillColor", |
| 137 "CanvasRenderingContext2D.setStrokeColor", |
136 "Document.get:forms", | 138 "Document.get:forms", |
137 # "Document.get:selectedStylesheetSet", | 139 # "Document.get:selectedStylesheetSet", |
138 # "Document.set:selectedStylesheetSet", | 140 # "Document.set:selectedStylesheetSet", |
139 # "Document.get:preferredStylesheetSet", | 141 # "Document.get:preferredStylesheetSet", |
140 "Document.get:links", | 142 "Document.get:links", |
141 "Document.set:domain", | 143 "Document.set:domain", |
142 "Document.createAttributeNS", | 144 "Document.createAttributeNS", |
143 "Document.get:inputEncoding", | 145 "Document.get:inputEncoding", |
144 "Document.get:height", | 146 "Document.get:height", |
145 "Document.get:width", | 147 "Document.get:width", |
(...skipping 173 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
319 | 321 |
320 def _FindMatch(self, interface, member, member_prefix, candidates): | 322 def _FindMatch(self, interface, member, member_prefix, candidates): |
321 for interface in self._database.Hierarchy(interface): | 323 for interface in self._database.Hierarchy(interface): |
322 html_interface_name = self.RenameInterface(interface) | 324 html_interface_name = self.RenameInterface(interface) |
323 member_name = html_interface_name + '.' + member | 325 member_name = html_interface_name + '.' + member |
324 if member_name in candidates: | 326 if member_name in candidates: |
325 return member_name | 327 return member_name |
326 member_name = html_interface_name + '.' + member_prefix + member | 328 member_name = html_interface_name + '.' + member_prefix + member |
327 if member_name in candidates: | 329 if member_name in candidates: |
328 return member_name | 330 return member_name |
OLD | NEW |