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

Side by Side Diff: tools/dom/scripts/htmlrenamer.py

Issue 14646035: Syncing CssStyleDeclaration.setPropertyValue's signature between dart2js and dartium (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 7 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 import logging 5 import logging
6 import monitored 6 import monitored
7 import re 7 import re
8 8
9 typed_array_renames = { 9 typed_array_renames = {
10 'ArrayBuffer': 'ByteBuffer', 10 'ArrayBuffer': 'ByteBuffer',
(...skipping 293 matching lines...) Expand 10 before | Expand all | Expand 10 after
304 'WheelEvent.wheelDeltaX', 304 'WheelEvent.wheelDeltaX',
305 'WheelEvent.wheelDeltaY', 305 'WheelEvent.wheelDeltaY',
306 'WheelEvent.initWebKitWheelEvent', 306 'WheelEvent.initWebKitWheelEvent',
307 'DOMWindow.getComputedStyle', 307 'DOMWindow.getComputedStyle',
308 ]) 308 ])
309 309
310 # Members from the standard dom that exist in the dart:html library with 310 # Members from the standard dom that exist in the dart:html library with
311 # identical functionality but with cleaner names. 311 # identical functionality but with cleaner names.
312 renamed_html_members = monitored.Dict('htmlrenamer.renamed_html_members', { 312 renamed_html_members = monitored.Dict('htmlrenamer.renamed_html_members', {
313 'CSSStyleDeclaration.getPropertyValue': '_getPropertyValue', 313 'CSSStyleDeclaration.getPropertyValue': '_getPropertyValue',
314 'CSSStyleDeclaration.setProperty': '_setProperty',
314 'DirectoryEntry.getDirectory': '_getDirectory', 315 'DirectoryEntry.getDirectory': '_getDirectory',
315 'DirectoryEntry.getFile': '_getFile', 316 'DirectoryEntry.getFile': '_getFile',
316 'Document.createCDATASection': 'createCDataSection', 317 'Document.createCDATASection': 'createCDataSection',
317 'Document.defaultView': 'window', 318 'Document.defaultView': 'window',
318 'Document.querySelector': 'query', 319 'Document.querySelector': 'query',
319 'DOMURL.createObjectURL': 'createObjectUrl', 320 'DOMURL.createObjectURL': 'createObjectUrl',
320 'DOMURL.revokeObjectURL': 'revokeObjectUrl', 321 'DOMURL.revokeObjectURL': 'revokeObjectUrl',
321 'DOMWindow.clearTimeout': '_clearTimeout', 322 'DOMWindow.clearTimeout': '_clearTimeout',
322 'DOMWindow.clearInterval': '_clearInterval', 323 'DOMWindow.clearInterval': '_clearInterval',
323 'DOMWindow.setTimeout': '_setTimeout', 324 'DOMWindow.setTimeout': '_setTimeout',
(...skipping 435 matching lines...) Expand 10 before | Expand all | Expand 10 after
759 760
760 # We're looking for a sequence of letters which start with capital letter 761 # We're looking for a sequence of letters which start with capital letter
761 # then a series of caps and finishes with either the end of the string or 762 # then a series of caps and finishes with either the end of the string or
762 # a capital letter. 763 # a capital letter.
763 # The [0-9] check is for names such as 2D or 3D 764 # The [0-9] check is for names such as 2D or 3D
764 # The following test cases should match as: 765 # The following test cases should match as:
765 # WebKitCSSFilterValue: WebKit(C)(SS)(F)ilterValue 766 # WebKitCSSFilterValue: WebKit(C)(SS)(F)ilterValue
766 # XPathNSResolver: (X)()(P)ath(N)(S)(R)esolver (no change) 767 # XPathNSResolver: (X)()(P)ath(N)(S)(R)esolver (no change)
767 # IFrameElement: (I)()(F)rameElement (no change) 768 # IFrameElement: (I)()(F)rameElement (no change)
768 return re.sub(r'([A-Z])([A-Z]{2,})([A-Z]|$)', toLower, name) 769 return re.sub(r'([A-Z])([A-Z]{2,})([A-Z]|$)', toLower, name)
OLDNEW
« no previous file with comments | « sdk/lib/html/dartium/html_dartium.dart ('k') | tools/dom/templates/html/impl/impl_CSSStyleDeclaration.darttemplate » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698