| 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 134 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 145 'ElementTraversal.childElementCount', | 145 'ElementTraversal.childElementCount', |
| 146 'ElementTraversal.firstElementChild', | 146 'ElementTraversal.firstElementChild', |
| 147 'ElementTraversal.lastElementChild', | 147 'ElementTraversal.lastElementChild', |
| 148 'Event.initEvent', | 148 'Event.initEvent', |
| 149 'EventTarget.addEventListener', | 149 'EventTarget.addEventListener', |
| 150 'EventTarget.removeEventListener', | 150 'EventTarget.removeEventListener', |
| 151 'Geolocation.clearWatch', | 151 'Geolocation.clearWatch', |
| 152 'Geolocation.getCurrentPosition', | 152 'Geolocation.getCurrentPosition', |
| 153 'Geolocation.watchPosition', | 153 'Geolocation.watchPosition', |
| 154 'HashChangeEvent.initHashChangeEvent', | 154 'HashChangeEvent.initHashChangeEvent', |
| 155 'IDBCursor.delete', |
| 156 'IDBCursor.update', |
| 157 'IDBDatabase.createObjectStore', |
| 155 'IDBFactory.deleteDatabase', | 158 'IDBFactory.deleteDatabase', |
| 159 'IDBFactory.webkitGetDatabaseNames', |
| 156 'IDBFactory.open', | 160 'IDBFactory.open', |
| 157 'IDBObjectStore.put', | 161 'IDBIndex.count', |
| 162 'IDBIndex.get', |
| 163 'IDBIndex.getKey', |
| 164 'IDBIndex.openCursor', |
| 165 'IDBIndex.openKeyCursor', |
| 166 'IDBObjectStore.add', |
| 167 'IDBObjectStore.clear', |
| 168 'IDBObjectStore.count', |
| 169 'IDBObjectStore.createIndex', |
| 170 'IDBObjectStore.delete', |
| 158 'IDBObjectStore.getObject', | 171 'IDBObjectStore.getObject', |
| 159 'IDBObjectStore.openCursor', | 172 'IDBObjectStore.openCursor', |
| 173 'IDBObjectStore.put', |
| 160 'KeyboardEvent.initKeyboardEvent', | 174 'KeyboardEvent.initKeyboardEvent', |
| 161 'KeyboardEvent.keyIdentifier', | 175 'KeyboardEvent.keyIdentifier', |
| 162 'MessageEvent.initMessageEvent', | 176 'MessageEvent.initMessageEvent', |
| 163 'MouseEvent.initMouseEvent', | 177 'MouseEvent.initMouseEvent', |
| 164 'MutationEvent.initMutationEvent', | 178 'MutationEvent.initMutationEvent', |
| 165 'Node.appendChild', | 179 'Node.appendChild', |
| 166 'Node.attributes', | 180 'Node.attributes', |
| 167 'Node.childNodes', | 181 'Node.childNodes', |
| 168 'Node.firstChild', | 182 'Node.firstChild', |
| 169 'Node.lastChild', | 183 'Node.lastChild', |
| (...skipping 431 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 601 | 615 |
| 602 # We're looking for a sequence of letters which start with capital letter | 616 # We're looking for a sequence of letters which start with capital letter |
| 603 # then a series of caps and finishes with either the end of the string or | 617 # then a series of caps and finishes with either the end of the string or |
| 604 # a capital letter. | 618 # a capital letter. |
| 605 # The [0-9] check is for names such as 2D or 3D | 619 # The [0-9] check is for names such as 2D or 3D |
| 606 # The following test cases should match as: | 620 # The following test cases should match as: |
| 607 # WebKitCSSFilterValue: WebKit(C)(SS)(F)ilterValue | 621 # WebKitCSSFilterValue: WebKit(C)(SS)(F)ilterValue |
| 608 # XPathNSResolver: (X)()(P)ath(N)(S)(R)esolver (no change) | 622 # XPathNSResolver: (X)()(P)ath(N)(S)(R)esolver (no change) |
| 609 # IFrameElement: (I)()(F)rameElement (no change) | 623 # IFrameElement: (I)()(F)rameElement (no change) |
| 610 return re.sub(r'([A-Z])([A-Z]{2,})([A-Z]|$)', toLower, name) | 624 return re.sub(r'([A-Z])([A-Z]{2,})([A-Z]|$)', toLower, name) |
| OLD | NEW |