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 'DOMFormData': 'FormData', | 7 'DOMFormData': 'FormData', |
8 'DOMWindow': 'Window', | 8 'DOMWindow': 'Window', |
9 'WebKitAnimation': 'Animation', | 9 'WebKitAnimation': 'Animation', |
10 'WebKitAnimationEvent': 'AnimationEvent', | 10 'WebKitAnimationEvent': 'AnimationEvent', |
(...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
122 # TODO(jacobr): cleanup and augment this list. | 122 # TODO(jacobr): cleanup and augment this list. |
123 _removed_html_members = set([ | 123 _removed_html_members = set([ |
124 'NodeList.item', | 124 'NodeList.item', |
125 "Attr.*", | 125 "Attr.*", |
126 # "BarProp.*", | 126 # "BarProp.*", |
127 # "BarInfo.*", | 127 # "BarInfo.*", |
128 # "Blob.webkitSlice", | 128 # "Blob.webkitSlice", |
129 # "CDATASection.*", | 129 # "CDATASection.*", |
130 # "Comment.*", | 130 # "Comment.*", |
131 # "DOMImplementation.*", | 131 # "DOMImplementation.*", |
| 132 "CanvasRenderingContext2D.setFillColor", |
| 133 "CanvasRenderingContext2D.setStrokeColor", |
132 "Document.get:forms", | 134 "Document.get:forms", |
133 # "Document.get:selectedStylesheetSet", | 135 # "Document.get:selectedStylesheetSet", |
134 # "Document.set:selectedStylesheetSet", | 136 # "Document.set:selectedStylesheetSet", |
135 # "Document.get:preferredStylesheetSet", | 137 # "Document.get:preferredStylesheetSet", |
136 "Document.get:links", | 138 "Document.get:links", |
137 "Document.set:domain", | 139 "Document.set:domain", |
138 "Document.createAttributeNS", | 140 "Document.createAttributeNS", |
139 "Document.get:inputEncoding", | 141 "Document.get:inputEncoding", |
140 "Document.get:height", | 142 "Document.get:height", |
141 "Document.get:width", | 143 "Document.get:width", |
(...skipping 171 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
313 | 315 |
314 def _FindMatch(self, interface, member, member_prefix, candidates): | 316 def _FindMatch(self, interface, member, member_prefix, candidates): |
315 for interface in self._database.Hierarchy(interface): | 317 for interface in self._database.Hierarchy(interface): |
316 html_interface_name = self.RenameInterface(interface) | 318 html_interface_name = self.RenameInterface(interface) |
317 member_name = html_interface_name + '.' + member | 319 member_name = html_interface_name + '.' + member |
318 if member_name in candidates: | 320 if member_name in candidates: |
319 return member_name | 321 return member_name |
320 member_name = html_interface_name + '.' + member_prefix + member | 322 member_name = html_interface_name + '.' + member_prefix + member |
321 if member_name in candidates: | 323 if member_name in candidates: |
322 return member_name | 324 return member_name |
OLD | NEW |