| 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 285 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 296 'UIEvent.charCode', | 296 'UIEvent.charCode', |
| 297 'UIEvent.initUIEvent', | 297 'UIEvent.initUIEvent', |
| 298 'UIEvent.keyCode', | 298 'UIEvent.keyCode', |
| 299 'UIEvent.layerX', | 299 'UIEvent.layerX', |
| 300 'UIEvent.layerY', | 300 'UIEvent.layerY', |
| 301 'UIEvent.pageX', | 301 'UIEvent.pageX', |
| 302 'UIEvent.pageY', | 302 'UIEvent.pageY', |
| 303 'WheelEvent.initWebKitWheelEvent', | 303 'WheelEvent.initWebKitWheelEvent', |
| 304 'Window.getComputedStyle', | 304 'Window.getComputedStyle', |
| 305 'Window.moveTo', | 305 'Window.moveTo', |
| 306 'Window.scrollX', |
| 307 'Window.scrollY', |
| 306 ]) | 308 ]) |
| 307 | 309 |
| 308 # 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 |
| 309 # identical functionality but with cleaner names. | 311 # identical functionality but with cleaner names. |
| 310 renamed_html_members = monitored.Dict('htmlrenamer.renamed_html_members', { | 312 renamed_html_members = monitored.Dict('htmlrenamer.renamed_html_members', { |
| 311 'CanvasRenderingContext2D.drawImage': '_drawImage', | 313 'CanvasRenderingContext2D.drawImage': '_drawImage', |
| 312 'WebKitCSSKeyframesRule.insertRule': 'appendRule', | 314 'WebKitCSSKeyframesRule.insertRule': 'appendRule', |
| 313 'CSSStyleDeclaration.getPropertyValue': '_getPropertyValue', | 315 'CSSStyleDeclaration.getPropertyValue': '_getPropertyValue', |
| 314 'CSSStyleDeclaration.setProperty': '_setProperty', | 316 'CSSStyleDeclaration.setProperty': '_setProperty', |
| 315 'DirectoryEntry.getDirectory': '_getDirectory', | 317 'DirectoryEntry.getDirectory': '_getDirectory', |
| (...skipping 544 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 860 | 862 |
| 861 # We're looking for a sequence of letters which start with capital letter | 863 # We're looking for a sequence of letters which start with capital letter |
| 862 # then a series of caps and finishes with either the end of the string or | 864 # then a series of caps and finishes with either the end of the string or |
| 863 # a capital letter. | 865 # a capital letter. |
| 864 # The [0-9] check is for names such as 2D or 3D | 866 # The [0-9] check is for names such as 2D or 3D |
| 865 # The following test cases should match as: | 867 # The following test cases should match as: |
| 866 # WebKitCSSFilterValue: WebKit(C)(SS)(F)ilterValue | 868 # WebKitCSSFilterValue: WebKit(C)(SS)(F)ilterValue |
| 867 # XPathNSResolver: (X)()(P)ath(N)(S)(R)esolver (no change) | 869 # XPathNSResolver: (X)()(P)ath(N)(S)(R)esolver (no change) |
| 868 # IFrameElement: (I)()(F)rameElement (no change) | 870 # IFrameElement: (I)()(F)rameElement (no change) |
| 869 return re.sub(r'([A-Z])([A-Z]{2,})([A-Z]|$)', toLower, name) | 871 return re.sub(r'([A-Z])([A-Z]{2,})([A-Z]|$)', toLower, name) |
| OLD | NEW |