| 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 205 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 216   'IDBIndex.count', | 216   'IDBIndex.count', | 
| 217   'IDBIndex.get', | 217   'IDBIndex.get', | 
| 218   'IDBIndex.getKey', | 218   'IDBIndex.getKey', | 
| 219   'IDBIndex.openCursor', | 219   'IDBIndex.openCursor', | 
| 220   'IDBIndex.openKeyCursor', | 220   'IDBIndex.openKeyCursor', | 
| 221   'IDBObjectStore.add', | 221   'IDBObjectStore.add', | 
| 222   'IDBObjectStore.clear', | 222   'IDBObjectStore.clear', | 
| 223   'IDBObjectStore.count', | 223   'IDBObjectStore.count', | 
| 224   'IDBObjectStore.createIndex', | 224   'IDBObjectStore.createIndex', | 
| 225   'IDBObjectStore.delete', | 225   'IDBObjectStore.delete', | 
| 226   'IDBObjectStore.getObject', | 226   'IDBObjectStore.get', | 
| 227   'IDBObjectStore.openCursor', | 227   'IDBObjectStore.openCursor', | 
| 228   'IDBObjectStore.put', | 228   'IDBObjectStore.put', | 
| 229   'KeyboardEvent.initKeyboardEvent', | 229   'KeyboardEvent.initKeyboardEvent', | 
| 230   'KeyboardEvent.keyIdentifier', | 230   'KeyboardEvent.keyIdentifier', | 
| 231   'MessageEvent.initMessageEvent', | 231   'MessageEvent.initMessageEvent', | 
| 232   'MouseEvent.initMouseEvent', | 232   'MouseEvent.initMouseEvent', | 
| 233   'MouseEvent.clientX', | 233   'MouseEvent.clientX', | 
| 234   'MouseEvent.clientY', | 234   'MouseEvent.clientY', | 
| 235   'MouseEvent.webkitMovementX', | 235   'MouseEvent.webkitMovementX', | 
| 236   'MouseEvent.webkitMovementY', | 236   'MouseEvent.webkitMovementY', | 
| (...skipping 479 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 716 | 716 | 
| 717     # We're looking for a sequence of letters which start with capital letter | 717     # 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 | 718     # then a series of caps and finishes with either the end of the string or | 
| 719     # a capital letter. | 719     # a capital letter. | 
| 720     # The [0-9] check is for names such as 2D or 3D | 720     # The [0-9] check is for names such as 2D or 3D | 
| 721     # The following test cases should match as: | 721     # The following test cases should match as: | 
| 722     #   WebKitCSSFilterValue: WebKit(C)(SS)(F)ilterValue | 722     #   WebKitCSSFilterValue: WebKit(C)(SS)(F)ilterValue | 
| 723     #   XPathNSResolver: (X)()(P)ath(N)(S)(R)esolver (no change) | 723     #   XPathNSResolver: (X)()(P)ath(N)(S)(R)esolver (no change) | 
| 724     #   IFrameElement: (I)()(F)rameElement (no change) | 724     #   IFrameElement: (I)()(F)rameElement (no change) | 
| 725     return re.sub(r'([A-Z])([A-Z]{2,})([A-Z]|$)', toLower, name) | 725     return re.sub(r'([A-Z])([A-Z]{2,})([A-Z]|$)', toLower, name) | 
| OLD | NEW | 
|---|