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

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

Issue 10979029: Replacing non-portable CanvasRenderingContext.setFillColor with more portable variants. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Syncing to latest. 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",
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
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
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