| 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 92 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 103 'Element.querySelectorAll', | 103 'Element.querySelectorAll', |
| 104 'Element.removeAttribute', | 104 'Element.removeAttribute', |
| 105 'Element.removeAttributeNS', | 105 'Element.removeAttributeNS', |
| 106 'Element.setAttribute', | 106 'Element.setAttribute', |
| 107 'Element.setAttributeNS', | 107 'Element.setAttributeNS', |
| 108 'ElementTraversal.childElementCount', | 108 'ElementTraversal.childElementCount', |
| 109 'ElementTraversal.firstElementChild', | 109 'ElementTraversal.firstElementChild', |
| 110 'ElementTraversal.lastElementChild', | 110 'ElementTraversal.lastElementChild', |
| 111 'Event.initEvent', | 111 'Event.initEvent', |
| 112 'EventTarget.addEventListener', | 112 'EventTarget.addEventListener', |
| 113 'EventTarget.dispatchEvent', | |
| 114 'EventTarget.removeEventListener', | 113 'EventTarget.removeEventListener', |
| 115 'KeyboardEvent.initKeyboardEvent', | 114 'KeyboardEvent.initKeyboardEvent', |
| 116 'KeyboardEvent.keyIdentifier', | 115 'KeyboardEvent.keyIdentifier', |
| 117 'MouseEvent.initMouseEvent', | 116 'MouseEvent.initMouseEvent', |
| 118 'Node.appendChild', | 117 'Node.appendChild', |
| 119 'Node.attributes', | 118 'Node.attributes', |
| 120 'Node.childNodes', | 119 'Node.childNodes', |
| 121 'Node.firstChild', | 120 'Node.firstChild', |
| 122 'Node.lastChild', | 121 'Node.lastChild', |
| 123 'Node.localName', | 122 'Node.localName', |
| (...skipping 412 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 536 | 535 |
| 537 # We're looking for a sequence of letters which start with capital letter | 536 # We're looking for a sequence of letters which start with capital letter |
| 538 # then a series of caps and finishes with either the end of the string or | 537 # then a series of caps and finishes with either the end of the string or |
| 539 # a capital letter. | 538 # a capital letter. |
| 540 # The [0-9] check is for names such as 2D or 3D | 539 # The [0-9] check is for names such as 2D or 3D |
| 541 # The following test cases should match as: | 540 # The following test cases should match as: |
| 542 # WebKitCSSFilterValue: WebKit(C)(SS)(F)ilterValue | 541 # WebKitCSSFilterValue: WebKit(C)(SS)(F)ilterValue |
| 543 # XPathNSResolver: (X)()(P)ath(N)(S)(R)esolver (no change) | 542 # XPathNSResolver: (X)()(P)ath(N)(S)(R)esolver (no change) |
| 544 # IFrameElement: (I)()(F)rameElement (no change) | 543 # IFrameElement: (I)()(F)rameElement (no change) |
| 545 return re.sub(r'([A-Z])([A-Z]{2,})([A-Z]|$)', toLower, name) | 544 return re.sub(r'([A-Z])([A-Z]{2,})([A-Z]|$)', toLower, name) |
| OLD | NEW |