| 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 235 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 246 'Element.clientLeft', | 246 'Element.clientLeft', |
| 247 'Element.clientTop', | 247 'Element.clientTop', |
| 248 'Element.clientWidth', | 248 'Element.clientWidth', |
| 249 'Element.clientHeight', | 249 'Element.clientHeight', |
| 250 'Element.scrollLeft', | 250 'Element.scrollLeft', |
| 251 'Element.scrollTop', | 251 'Element.scrollTop', |
| 252 'Element.scrollWidth', | 252 'Element.scrollWidth', |
| 253 'Element.scrollHeight', | 253 'Element.scrollHeight', |
| 254 | 254 |
| 255 'Event.initEvent', | 255 'Event.initEvent', |
| 256 'FileReader.result', |
| 256 'Geolocation.clearWatch', | 257 'Geolocation.clearWatch', |
| 257 'Geolocation.getCurrentPosition', | 258 'Geolocation.getCurrentPosition', |
| 258 'Geolocation.watchPosition', | 259 'Geolocation.watchPosition', |
| 259 'HashChangeEvent.initHashChangeEvent', | 260 'HashChangeEvent.initHashChangeEvent', |
| 260 'HTMLCanvasElement.toDataURL', | 261 'HTMLCanvasElement.toDataURL', |
| 261 'HTMLTableElement.createCaption', | 262 'HTMLTableElement.createCaption', |
| 262 'HTMLTableElement.createTFoot', | 263 'HTMLTableElement.createTFoot', |
| 263 'HTMLTableElement.createTHead', | 264 'HTMLTableElement.createTHead', |
| 264 'HTMLTableElement.createTBody', | 265 'HTMLTableElement.createTBody', |
| 265 'HTMLTableElement.insertRow', | 266 'HTMLTableElement.insertRow', |
| (...skipping 715 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 981 | 982 |
| 982 # We're looking for a sequence of letters which start with capital letter | 983 # We're looking for a sequence of letters which start with capital letter |
| 983 # then a series of caps and finishes with either the end of the string or | 984 # then a series of caps and finishes with either the end of the string or |
| 984 # a capital letter. | 985 # a capital letter. |
| 985 # The [0-9] check is for names such as 2D or 3D | 986 # The [0-9] check is for names such as 2D or 3D |
| 986 # The following test cases should match as: | 987 # The following test cases should match as: |
| 987 # WebKitCSSFilterValue: WebKit(C)(SS)(F)ilterValue | 988 # WebKitCSSFilterValue: WebKit(C)(SS)(F)ilterValue |
| 988 # XPathNSResolver: (X)()(P)ath(N)(S)(R)esolver (no change) | 989 # XPathNSResolver: (X)()(P)ath(N)(S)(R)esolver (no change) |
| 989 # IFrameElement: (I)()(F)rameElement (no change) | 990 # IFrameElement: (I)()(F)rameElement (no change) |
| 990 return re.sub(r'([A-Z])([A-Z]{2,})([A-Z]|$)', toLower, name) | 991 return re.sub(r'([A-Z])([A-Z]{2,})([A-Z]|$)', toLower, name) |
| OLD | NEW |