| 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 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 Loading... |
| 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 Loading... |
| 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) |
| OLD | NEW |