| 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 796 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 807 'Performance.webkitGetEntriesByType', | 807 'Performance.webkitGetEntriesByType', |
| 808 'Performance.webkitMark', | 808 'Performance.webkitMark', |
| 809 'Performance.webkitMeasure', | 809 'Performance.webkitMeasure', |
| 810 'ShadowRoot.getElementsByTagNameNS', | 810 'ShadowRoot.getElementsByTagNameNS', |
| 811 'SVGElement.getPresentationAttribute', | 811 'SVGElement.getPresentationAttribute', |
| 812 'SVGElementInstance.on:wheel', | 812 'SVGElementInstance.on:wheel', |
| 813 'Touch.get:webkitRadiusX', | 813 'Touch.get:webkitRadiusX', |
| 814 'Touch.get:webkitRadiusY', | 814 'Touch.get:webkitRadiusY', |
| 815 'Touch.get:webkitForce', | 815 'Touch.get:webkitForce', |
| 816 'WheelEvent.wheelDelta', | 816 'WheelEvent.wheelDelta', |
| 817 'WheelEvent.wheelDeltaX', |
| 818 'WheelEvent.wheelDeltaY', |
| 817 'Window.on:wheel', | 819 'Window.on:wheel', |
| 818 'WindowEventHandlers.on:beforeUnload', | 820 'WindowEventHandlers.on:beforeUnload', |
| 819 'WorkerGlobalScope.webkitIndexedDB', | 821 'WorkerGlobalScope.webkitIndexedDB', |
| 820 # TODO(jacobr): should these be removed? | 822 # TODO(jacobr): should these be removed? |
| 821 'Document.close', | 823 'Document.close', |
| 822 'Document.hasFocus', | 824 'Document.hasFocus', |
| 823 ]) | 825 ]) |
| 824 | 826 |
| 825 # Manual dart: library name lookup. | 827 # Manual dart: library name lookup. |
| 826 _library_names = monitored.Dict('htmlrenamer._library_names', { | 828 _library_names = monitored.Dict('htmlrenamer._library_names', { |
| (...skipping 199 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1026 | 1028 |
| 1027 # 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 |
| 1028 # 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 |
| 1029 # a capital letter. | 1031 # a capital letter. |
| 1030 # 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 |
| 1031 # The following test cases should match as: | 1033 # The following test cases should match as: |
| 1032 # WebKitCSSFilterValue: WebKit(C)(SS)(F)ilterValue | 1034 # WebKitCSSFilterValue: WebKit(C)(SS)(F)ilterValue |
| 1033 # XPathNSResolver: (X)()(P)ath(N)(S)(R)esolver (no change) | 1035 # XPathNSResolver: (X)()(P)ath(N)(S)(R)esolver (no change) |
| 1034 # IFrameElement: (I)()(F)rameElement (no change) | 1036 # IFrameElement: (I)()(F)rameElement (no change) |
| 1035 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 |