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 362 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
373 'UIEvent.layerY', | 373 'UIEvent.layerY', |
374 'UIEvent.pageX', | 374 'UIEvent.pageX', |
375 'UIEvent.pageY', | 375 'UIEvent.pageY', |
376 'WheelEvent.initWebKitWheelEvent', | 376 'WheelEvent.initWebKitWheelEvent', |
377 'WheelEvent.deltaX', | 377 'WheelEvent.deltaX', |
378 'WheelEvent.deltaY', | 378 'WheelEvent.deltaY', |
379 'WorkerGlobalScope.webkitNotifications', | 379 'WorkerGlobalScope.webkitNotifications', |
380 'Window.getComputedStyle', | 380 'Window.getComputedStyle', |
381 'Window.clearInterval', | 381 'Window.clearInterval', |
382 'Window.clearTimeout', | 382 'Window.clearTimeout', |
| 383 # TODO(tll): These have been converted from int to double in Chrome 39 for |
| 384 # subpixel precision. Special case for backward compatibility. |
| 385 'Window.scrollX', |
| 386 'Window.scrollY', |
| 387 'Window.pageXOffset', |
| 388 'Window.pageYOffset', |
| 389 |
383 'WindowTimers.clearInterval', | 390 'WindowTimers.clearInterval', |
384 'WindowTimers.clearTimeout', | 391 'WindowTimers.clearTimeout', |
385 'WindowTimers.setInterval', | 392 'WindowTimers.setInterval', |
386 'WindowTimers.setTimeout', | 393 'WindowTimers.setTimeout', |
387 'Window.moveTo', | 394 'Window.moveTo', |
388 'Window.requestAnimationFrame', | 395 'Window.requestAnimationFrame', |
389 'Window.setInterval', | 396 'Window.setInterval', |
390 'Window.setTimeout', | 397 'Window.setTimeout', |
391 ]) | 398 ]) |
392 | 399 |
(...skipping 628 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1021 | 1028 |
1022 # We're looking for a sequence of letters which start with capital letter | 1029 # We're looking for a sequence of letters which start with capital letter |
1023 # then a series of caps and finishes with either the end of the string or | 1030 # then a series of caps and finishes with either the end of the string or |
1024 # a capital letter. | 1031 # a capital letter. |
1025 # The [0-9] check is for names such as 2D or 3D | 1032 # The [0-9] check is for names such as 2D or 3D |
1026 # The following test cases should match as: | 1033 # The following test cases should match as: |
1027 # WebKitCSSFilterValue: WebKit(C)(SS)(F)ilterValue | 1034 # WebKitCSSFilterValue: WebKit(C)(SS)(F)ilterValue |
1028 # XPathNSResolver: (X)()(P)ath(N)(S)(R)esolver (no change) | 1035 # XPathNSResolver: (X)()(P)ath(N)(S)(R)esolver (no change) |
1029 # IFrameElement: (I)()(F)rameElement (no change) | 1036 # IFrameElement: (I)()(F)rameElement (no change) |
1030 return re.sub(r'([A-Z])([A-Z]{2,})([A-Z]|$)', toLower, name) | 1037 return re.sub(r'([A-Z])([A-Z]{2,})([A-Z]|$)', toLower, name) |
OLD | NEW |