| 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 116 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 127 'SVGMissingGlyphElement', | 127 'SVGMissingGlyphElement', |
| 128 'SVGTRefElement', | 128 'SVGTRefElement', |
| 129 'SVGVKernElement', | 129 'SVGVKernElement', |
| 130 'SubtleCrypto', | 130 'SubtleCrypto', |
| 131 'WebKitCSSFilterValue', | 131 'WebKitCSSFilterValue', |
| 132 'WebKitCSSMatrix', | 132 'WebKitCSSMatrix', |
| 133 'WebKitCSSMixFunctionValue', | 133 'WebKitCSSMixFunctionValue', |
| 134 'WebKitCSSTransformValue', | 134 'WebKitCSSTransformValue', |
| 135 'WebKitMediaSource', | 135 'WebKitMediaSource', |
| 136 'WebKitNotification', | 136 'WebKitNotification', |
| 137 'WebGLRenderingContextBase', |
| 137 'WebKitSourceBuffer', | 138 'WebKitSourceBuffer', |
| 138 'WebKitSourceBufferList', | 139 'WebKitSourceBufferList', |
| 139 'WorkerLocation', # Workers | 140 'WorkerLocation', # Workers |
| 140 'WorkerNavigator', # Workers | 141 'WorkerNavigator', # Workers |
| 141 'XMLHttpRequestProgressEvent', | 142 'XMLHttpRequestProgressEvent', |
| 142 ] | 143 ] |
| 143 | 144 |
| 144 for interface in _removed_html_interfaces: | 145 for interface in _removed_html_interfaces: |
| 145 html_interface_renames[interface] = '_' + interface | 146 html_interface_renames[interface] = '_' + interface |
| 146 | 147 |
| (...skipping 856 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1003 | 1004 |
| 1004 # We're looking for a sequence of letters which start with capital letter | 1005 # We're looking for a sequence of letters which start with capital letter |
| 1005 # then a series of caps and finishes with either the end of the string or | 1006 # then a series of caps and finishes with either the end of the string or |
| 1006 # a capital letter. | 1007 # a capital letter. |
| 1007 # The [0-9] check is for names such as 2D or 3D | 1008 # The [0-9] check is for names such as 2D or 3D |
| 1008 # The following test cases should match as: | 1009 # The following test cases should match as: |
| 1009 # WebKitCSSFilterValue: WebKit(C)(SS)(F)ilterValue | 1010 # WebKitCSSFilterValue: WebKit(C)(SS)(F)ilterValue |
| 1010 # XPathNSResolver: (X)()(P)ath(N)(S)(R)esolver (no change) | 1011 # XPathNSResolver: (X)()(P)ath(N)(S)(R)esolver (no change) |
| 1011 # IFrameElement: (I)()(F)rameElement (no change) | 1012 # IFrameElement: (I)()(F)rameElement (no change) |
| 1012 return re.sub(r'([A-Z])([A-Z]{2,})([A-Z]|$)', toLower, name) | 1013 return re.sub(r'([A-Z])([A-Z]{2,})([A-Z]|$)', toLower, name) |
| OLD | NEW |