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 html_interface_renames = monitored.Dict('htmlrenamer.html_interface_renames', { | 9 html_interface_renames = monitored.Dict('htmlrenamer.html_interface_renames', { |
10 'CDATASection': 'CDataSection', | 10 'CDATASection': 'CDataSection', |
(...skipping 219 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
230 'MouseEvent.webkitMovementY', | 230 'MouseEvent.webkitMovementY', |
231 'MouseEvent.offsetX', | 231 'MouseEvent.offsetX', |
232 'MouseEvent.offsetY', | 232 'MouseEvent.offsetY', |
233 'MouseEvent.screenX', | 233 'MouseEvent.screenX', |
234 'MouseEvent.screenY', | 234 'MouseEvent.screenY', |
235 'MutationEvent.initMutationEvent', | 235 'MutationEvent.initMutationEvent', |
236 'Node.attributes', | 236 'Node.attributes', |
237 'Node.childNodes', | 237 'Node.childNodes', |
238 'Node.firstChild', | 238 'Node.firstChild', |
239 'Node.lastChild', | 239 'Node.lastChild', |
240 'Node.localName', | |
241 'Node.namespaceURI', | 240 'Node.namespaceURI', |
242 'Node.removeChild', | 241 'Node.removeChild', |
243 'Node.replaceChild', | 242 'Node.replaceChild', |
244 'Screen.availHeight', | 243 'Screen.availHeight', |
245 'Screen.availLeft', | 244 'Screen.availLeft', |
246 'Screen.availTop', | 245 'Screen.availTop', |
247 'Screen.availWidth', | 246 'Screen.availWidth', |
248 'Storage.clear', | 247 'Storage.clear', |
249 'Storage.getItem', | 248 'Storage.getItem', |
250 'Storage.key', | 249 'Storage.key', |
(...skipping 465 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
716 | 715 |
717 # We're looking for a sequence of letters which start with capital letter | 716 # We're looking for a sequence of letters which start with capital letter |
718 # then a series of caps and finishes with either the end of the string or | 717 # then a series of caps and finishes with either the end of the string or |
719 # a capital letter. | 718 # a capital letter. |
720 # The [0-9] check is for names such as 2D or 3D | 719 # The [0-9] check is for names such as 2D or 3D |
721 # The following test cases should match as: | 720 # The following test cases should match as: |
722 # WebKitCSSFilterValue: WebKit(C)(SS)(F)ilterValue | 721 # WebKitCSSFilterValue: WebKit(C)(SS)(F)ilterValue |
723 # XPathNSResolver: (X)()(P)ath(N)(S)(R)esolver (no change) | 722 # XPathNSResolver: (X)()(P)ath(N)(S)(R)esolver (no change) |
724 # IFrameElement: (I)()(F)rameElement (no change) | 723 # IFrameElement: (I)()(F)rameElement (no change) |
725 return re.sub(r'([A-Z])([A-Z]{2,})([A-Z]|$)', toLower, name) | 724 return re.sub(r'([A-Z])([A-Z]{2,})([A-Z]|$)', toLower, name) |
OLD | NEW |