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

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

Issue 10983052: Revert "Replacing non-portable CanvasRenderingContext.setFillColor with more portable variants." (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 '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
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",
134 "Document.get:forms", 132 "Document.get:forms",
135 # "Document.get:selectedStylesheetSet", 133 # "Document.get:selectedStylesheetSet",
136 # "Document.set:selectedStylesheetSet", 134 # "Document.set:selectedStylesheetSet",
137 # "Document.get:preferredStylesheetSet", 135 # "Document.get:preferredStylesheetSet",
138 "Document.get:links", 136 "Document.get:links",
139 "Document.set:domain", 137 "Document.set:domain",
140 "Document.createAttributeNS", 138 "Document.createAttributeNS",
141 "Document.get:inputEncoding", 139 "Document.get:inputEncoding",
142 "Document.get:height", 140 "Document.get:height",
143 "Document.get:width", 141 "Document.get:width",
(...skipping 171 matching lines...) Expand 10 before | Expand all | Expand 10 after
315 313
316 def _FindMatch(self, interface, member, member_prefix, candidates): 314 def _FindMatch(self, interface, member, member_prefix, candidates):
317 for interface in self._database.Hierarchy(interface): 315 for interface in self._database.Hierarchy(interface):
318 html_interface_name = self.RenameInterface(interface) 316 html_interface_name = self.RenameInterface(interface)
319 member_name = html_interface_name + '.' + member 317 member_name = html_interface_name + '.' + member
320 if member_name in candidates: 318 if member_name in candidates:
321 return member_name 319 return member_name
322 member_name = html_interface_name + '.' + member_prefix + member 320 member_name = html_interface_name + '.' + member_prefix + member
323 if member_name in candidates: 321 if member_name in candidates:
324 return member_name 322 return member_name
OLDNEW
« no previous file with comments | « lib/html/dartium/html_dartium.dart ('k') | lib/html/templates/html/impl/impl_CanvasRenderingContext2D.darttemplate » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698