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 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
69 # properly wrap DOM objects if/when encountered. | 69 # properly wrap DOM objects if/when encountered. |
70 _removed_html_interfaces = [ | 70 _removed_html_interfaces = [ |
71 'CDataSection', | 71 'CDataSection', |
72 'CSSPrimitiveValue', | 72 'CSSPrimitiveValue', |
73 'CSSUnknownRule', | 73 'CSSUnknownRule', |
74 'CSSValue', | 74 'CSSValue', |
75 'Counter', | 75 'Counter', |
76 'DOMFileSystemSync', # Workers | 76 'DOMFileSystemSync', # Workers |
77 'DatabaseSync', # Workers | 77 'DatabaseSync', # Workers |
78 'DataView', # Typed arrays | 78 'DataView', # Typed arrays |
79 'DeprecatedStorageQuota', | |
80 'DeprecatedStorageInfo', | |
81 'DirectoryEntrySync', # Workers | 79 'DirectoryEntrySync', # Workers |
82 'DirectoryReaderSync', # Workers | 80 'DirectoryReaderSync', # Workers |
83 'DocumentType', | 81 'DocumentType', |
84 'EntrySync', # Workers | 82 'EntrySync', # Workers |
85 'FileEntrySync', # Workers | 83 'FileEntrySync', # Workers |
86 'FileReaderSync', # Workers | 84 'FileReaderSync', # Workers |
87 'FileWriterSync', # Workers | 85 'FileWriterSync', # Workers |
88 'HTMLAllCollection', | 86 'HTMLAllCollection', |
89 'HTMLAppletElement', | 87 'HTMLAppletElement', |
90 'HTMLBaseFontElement', | 88 'HTMLBaseFontElement', |
(...skipping 876 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
967 | 965 |
968 # We're looking for a sequence of letters which start with capital letter | 966 # We're looking for a sequence of letters which start with capital letter |
969 # then a series of caps and finishes with either the end of the string or | 967 # then a series of caps and finishes with either the end of the string or |
970 # a capital letter. | 968 # a capital letter. |
971 # The [0-9] check is for names such as 2D or 3D | 969 # The [0-9] check is for names such as 2D or 3D |
972 # The following test cases should match as: | 970 # The following test cases should match as: |
973 # WebKitCSSFilterValue: WebKit(C)(SS)(F)ilterValue | 971 # WebKitCSSFilterValue: WebKit(C)(SS)(F)ilterValue |
974 # XPathNSResolver: (X)()(P)ath(N)(S)(R)esolver (no change) | 972 # XPathNSResolver: (X)()(P)ath(N)(S)(R)esolver (no change) |
975 # IFrameElement: (I)()(F)rameElement (no change) | 973 # IFrameElement: (I)()(F)rameElement (no change) |
976 return re.sub(r'([A-Z])([A-Z]{2,})([A-Z]|$)', toLower, name) | 974 return re.sub(r'([A-Z])([A-Z]{2,})([A-Z]|$)', toLower, name) |
OLD | NEW |