| 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 707 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 718 'NodeIterator.filter', | 718 'NodeIterator.filter', |
| 719 'NodeList.item', | 719 'NodeList.item', |
| 720 'Performance.webkitClearMarks', | 720 'Performance.webkitClearMarks', |
| 721 'Performance.webkitClearMeasures', | 721 'Performance.webkitClearMeasures', |
| 722 'Performance.webkitGetEntries', | 722 'Performance.webkitGetEntries', |
| 723 'Performance.webkitGetEntriesByName', | 723 'Performance.webkitGetEntriesByName', |
| 724 'Performance.webkitGetEntriesByType', | 724 'Performance.webkitGetEntriesByType', |
| 725 'Performance.webkitMark', | 725 'Performance.webkitMark', |
| 726 'Performance.webkitMeasure', | 726 'Performance.webkitMeasure', |
| 727 'ShadowRoot.getElementsByTagNameNS', | 727 'ShadowRoot.getElementsByTagNameNS', |
| 728 'SVGElement.getPresentationAttribute', |
| 728 'SVGStyledElement.getPresentationAttribute', | 729 'SVGStyledElement.getPresentationAttribute', |
| 729 'WheelEvent.wheelDelta', | 730 'WheelEvent.wheelDelta', |
| 730 'WorkerGlobalScope.webkitIndexedDB', | 731 'WorkerGlobalScope.webkitIndexedDB', |
| 731 # TODO(jacobr): should these be removed? | 732 # TODO(jacobr): should these be removed? |
| 732 'Document.close', | 733 'Document.close', |
| 733 'Document.hasFocus', | 734 'Document.hasFocus', |
| 734 ]) | 735 ]) |
| 735 | 736 |
| 736 # Manual dart: library name lookup. | 737 # Manual dart: library name lookup. |
| 737 _library_names = monitored.Dict('htmlrenamer._library_names', { | 738 _library_names = monitored.Dict('htmlrenamer._library_names', { |
| (...skipping 146 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 884 | 885 |
| 885 # We're looking for a sequence of letters which start with capital letter | 886 # We're looking for a sequence of letters which start with capital letter |
| 886 # then a series of caps and finishes with either the end of the string or | 887 # then a series of caps and finishes with either the end of the string or |
| 887 # a capital letter. | 888 # a capital letter. |
| 888 # The [0-9] check is for names such as 2D or 3D | 889 # The [0-9] check is for names such as 2D or 3D |
| 889 # The following test cases should match as: | 890 # The following test cases should match as: |
| 890 # WebKitCSSFilterValue: WebKit(C)(SS)(F)ilterValue | 891 # WebKitCSSFilterValue: WebKit(C)(SS)(F)ilterValue |
| 891 # XPathNSResolver: (X)()(P)ath(N)(S)(R)esolver (no change) | 892 # XPathNSResolver: (X)()(P)ath(N)(S)(R)esolver (no change) |
| 892 # IFrameElement: (I)()(F)rameElement (no change) | 893 # IFrameElement: (I)()(F)rameElement (no change) |
| 893 return re.sub(r'([A-Z])([A-Z]{2,})([A-Z]|$)', toLower, name) | 894 return re.sub(r'([A-Z])([A-Z]{2,})([A-Z]|$)', toLower, name) |
| OLD | NEW |