| 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 314 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 325 'UIEvent.layerY', | 325 'UIEvent.layerY', |
| 326 'UIEvent.pageX', | 326 'UIEvent.pageX', |
| 327 'UIEvent.pageY', | 327 'UIEvent.pageY', |
| 328 'WheelEvent.initWebKitWheelEvent', | 328 'WheelEvent.initWebKitWheelEvent', |
| 329 'WheelEvent.deltaX', | 329 'WheelEvent.deltaX', |
| 330 'WheelEvent.deltaY', | 330 'WheelEvent.deltaY', |
| 331 'WorkerGlobalScope.webkitNotifications', | 331 'WorkerGlobalScope.webkitNotifications', |
| 332 'Window.getComputedStyle', | 332 'Window.getComputedStyle', |
| 333 'Window.clearInterval', | 333 'Window.clearInterval', |
| 334 'Window.clearTimeout', | 334 'Window.clearTimeout', |
| 335 'WindowTimers.clearInterval', |
| 336 'WindowTimers.clearTimeout', |
| 337 'WindowTimers.setInterval', |
| 338 'WindowTimers.setTimeout', |
| 335 'Window.moveTo', | 339 'Window.moveTo', |
| 336 'Window.requestAnimationFrame', | 340 'Window.requestAnimationFrame', |
| 337 'Window.setInterval', | 341 'Window.setInterval', |
| 338 'Window.setTimeout', | 342 'Window.setTimeout', |
| 339 ]) | 343 ]) |
| 340 | 344 |
| 341 # Members from the standard dom that exist in the dart:html library with | 345 # Members from the standard dom that exist in the dart:html library with |
| 342 # identical functionality but with cleaner names. | 346 # identical functionality but with cleaner names. |
| 343 renamed_html_members = monitored.Dict('htmlrenamer.renamed_html_members', { | 347 renamed_html_members = monitored.Dict('htmlrenamer.renamed_html_members', { |
| 344 'CSSKeyframesRule.insertRule': 'appendRule', | 348 'CSSKeyframesRule.insertRule': 'appendRule', |
| (...skipping 612 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 957 | 961 |
| 958 # We're looking for a sequence of letters which start with capital letter | 962 # We're looking for a sequence of letters which start with capital letter |
| 959 # then a series of caps and finishes with either the end of the string or | 963 # then a series of caps and finishes with either the end of the string or |
| 960 # a capital letter. | 964 # a capital letter. |
| 961 # The [0-9] check is for names such as 2D or 3D | 965 # The [0-9] check is for names such as 2D or 3D |
| 962 # The following test cases should match as: | 966 # The following test cases should match as: |
| 963 # WebKitCSSFilterValue: WebKit(C)(SS)(F)ilterValue | 967 # WebKitCSSFilterValue: WebKit(C)(SS)(F)ilterValue |
| 964 # XPathNSResolver: (X)()(P)ath(N)(S)(R)esolver (no change) | 968 # XPathNSResolver: (X)()(P)ath(N)(S)(R)esolver (no change) |
| 965 # IFrameElement: (I)()(F)rameElement (no change) | 969 # IFrameElement: (I)()(F)rameElement (no change) |
| 966 return re.sub(r'([A-Z])([A-Z]{2,})([A-Z]|$)', toLower, name) | 970 return re.sub(r'([A-Z])([A-Z]{2,})([A-Z]|$)', toLower, name) |
| OLD | NEW |