| 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 97 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 108 'Element.removeAttributeNS', | 108 'Element.removeAttributeNS', |
| 109 'Element.setAttribute', | 109 'Element.setAttribute', |
| 110 'Element.setAttributeNS', | 110 'Element.setAttributeNS', |
| 111 'ElementTraversal.childElementCount', | 111 'ElementTraversal.childElementCount', |
| 112 'ElementTraversal.firstElementChild', | 112 'ElementTraversal.firstElementChild', |
| 113 'ElementTraversal.lastElementChild', | 113 'ElementTraversal.lastElementChild', |
| 114 'Event.initEvent', | 114 'Event.initEvent', |
| 115 'EventTarget.addEventListener', | 115 'EventTarget.addEventListener', |
| 116 'EventTarget.removeEventListener', | 116 'EventTarget.removeEventListener', |
| 117 'HashChangeEvent.initHashChangeEvent', | 117 'HashChangeEvent.initHashChangeEvent', |
| 118 'IDBFactory.deleteDatabase', |
| 119 'IDBFactory.open', |
| 120 'IDBObjectStore.put', |
| 121 'IDBObjectStore.getObject', |
| 122 'IDBObjectStore.openCursor', |
| 118 'KeyboardEvent.initKeyboardEvent', | 123 'KeyboardEvent.initKeyboardEvent', |
| 119 'KeyboardEvent.keyIdentifier', | 124 'KeyboardEvent.keyIdentifier', |
| 120 'MessageEvent.initMessageEvent', | 125 'MessageEvent.initMessageEvent', |
| 121 'MouseEvent.initMouseEvent', | 126 'MouseEvent.initMouseEvent', |
| 122 'MutationEvent.initMutationEvent', | 127 'MutationEvent.initMutationEvent', |
| 123 'Node.appendChild', | 128 'Node.appendChild', |
| 124 'Node.attributes', | 129 'Node.attributes', |
| 125 'Node.childNodes', | 130 'Node.childNodes', |
| 126 'Node.firstChild', | 131 'Node.firstChild', |
| 127 'Node.lastChild', | 132 'Node.lastChild', |
| (...skipping 418 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 546 | 551 |
| 547 # We're looking for a sequence of letters which start with capital letter | 552 # We're looking for a sequence of letters which start with capital letter |
| 548 # then a series of caps and finishes with either the end of the string or | 553 # then a series of caps and finishes with either the end of the string or |
| 549 # a capital letter. | 554 # a capital letter. |
| 550 # The [0-9] check is for names such as 2D or 3D | 555 # The [0-9] check is for names such as 2D or 3D |
| 551 # The following test cases should match as: | 556 # The following test cases should match as: |
| 552 # WebKitCSSFilterValue: WebKit(C)(SS)(F)ilterValue | 557 # WebKitCSSFilterValue: WebKit(C)(SS)(F)ilterValue |
| 553 # XPathNSResolver: (X)()(P)ath(N)(S)(R)esolver (no change) | 558 # XPathNSResolver: (X)()(P)ath(N)(S)(R)esolver (no change) |
| 554 # IFrameElement: (I)()(F)rameElement (no change) | 559 # IFrameElement: (I)()(F)rameElement (no change) |
| 555 return re.sub(r'([A-Z])([A-Z]{2,})([A-Z]|$)', toLower, name) | 560 return re.sub(r'([A-Z])([A-Z]{2,})([A-Z]|$)', toLower, name) |
| OLD | NEW |