| 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 re | 5 import re |
| 6 | 6 |
| 7 html_interface_renames = { | 7 html_interface_renames = { |
| 8 'DOMCoreException': 'DOMException', | 8 'DOMCoreException': 'DOMException', |
| 9 'DOMFormData': 'FormData', | 9 'DOMFormData': 'FormData', |
| 10 'DOMURL': 'Url', | 10 'DOMURL': 'Url', |
| (...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 68 'Document.webkitPointerLockElement', | 68 'Document.webkitPointerLockElement', |
| 69 'Document.webkitVisibilityState', | 69 'Document.webkitVisibilityState', |
| 70 | 70 |
| 71 'DocumentFragment.querySelector', | 71 'DocumentFragment.querySelector', |
| 72 'DocumentFragment.querySelectorAll', | 72 'DocumentFragment.querySelectorAll', |
| 73 'Element.childElementCount', | 73 'Element.childElementCount', |
| 74 'Element.children', | 74 'Element.children', |
| 75 'Element.className', | 75 'Element.className', |
| 76 'Element.firstElementChild', | 76 'Element.firstElementChild', |
| 77 'Element.getAttribute', | 77 'Element.getAttribute', |
| 78 'Element.getAttributeNS', |
| 78 'Element.getElementsByClassName', | 79 'Element.getElementsByClassName', |
| 79 'Element.getElementsByTagName', | 80 'Element.getElementsByTagName', |
| 80 'Element.hasAttribute', | 81 'Element.hasAttribute', |
| 82 'Element.hasAttributeNS', |
| 81 'Element.lastElementChild', | 83 'Element.lastElementChild', |
| 82 'Element.querySelector', | 84 'Element.querySelector', |
| 83 'Element.querySelectorAll', | 85 'Element.querySelectorAll', |
| 84 'Element.removeAttribute', | 86 'Element.removeAttribute', |
| 87 'Element.removeAttributeNS', |
| 85 'Element.setAttribute', | 88 'Element.setAttribute', |
| 89 'Element.setAttributeNS', |
| 86 'Event.initEvent', | 90 'Event.initEvent', |
| 87 'EventTarget.addEventListener', | 91 'EventTarget.addEventListener', |
| 88 'EventTarget.dispatchEvent', | 92 'EventTarget.dispatchEvent', |
| 89 'EventTarget.removeEventListener', | 93 'EventTarget.removeEventListener', |
| 90 'LocalWindow.getComputedStyle', | 94 'LocalWindow.getComputedStyle', |
| 91 'MouseEvent.initMouseEvent', | 95 'MouseEvent.initMouseEvent', |
| 92 'Node.appendChild', | 96 'Node.appendChild', |
| 93 'Node.attributes', | 97 'Node.attributes', |
| 94 'Node.childNodes', | 98 'Node.childNodes', |
| 95 'Node.firstChild', | 99 'Node.firstChild', |
| 96 'Node.lastChild', | 100 'Node.lastChild', |
| 101 "Node.localName", |
| 102 'Node.namespaceURI', |
| 97 'Node.removeChild', | 103 'Node.removeChild', |
| 98 'Node.replaceChild', | 104 'Node.replaceChild', |
| 99 'ShadowRoot.getElementById', | 105 'ShadowRoot.getElementById', |
| 100 'ShadowRoot.getElementsByClassName', | 106 'ShadowRoot.getElementsByClassName', |
| 101 'ShadowRoot.getElementsByTagName', | 107 'ShadowRoot.getElementsByTagName', |
| 102 'Storage.clear', | 108 'Storage.clear', |
| 103 'Storage.getItem', | 109 'Storage.getItem', |
| 104 'Storage.key', | 110 'Storage.key', |
| 105 'Storage.length', | 111 'Storage.length', |
| 106 'Storage.removeItem', | 112 'Storage.removeItem', |
| (...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 184 "Document.get:xmlEncoding", | 190 "Document.get:xmlEncoding", |
| 185 "Document.get:defaultCharset", | 191 "Document.get:defaultCharset", |
| 186 "Document.get:applets", | 192 "Document.get:applets", |
| 187 "Document.getSelection", | 193 "Document.getSelection", |
| 188 "Document.xmlVersion", | 194 "Document.xmlVersion", |
| 189 "Document.get:anchors", | 195 "Document.get:anchors", |
| 190 "Document.getElementsByTagNameNS", | 196 "Document.getElementsByTagNameNS", |
| 191 'Document.webkitCurrentFullScreenElement', | 197 'Document.webkitCurrentFullScreenElement', |
| 192 'Document.webkitFullScreenKeyboardInputAllowed', | 198 'Document.webkitFullScreenKeyboardInputAllowed', |
| 193 "DocumentType.*", | 199 "DocumentType.*", |
| 194 "Element.hasAttributeNS", | |
| 195 "Element.getAttributeNS", | |
| 196 "Element.setAttributeNode", | 200 "Element.setAttributeNode", |
| 197 "Element.getAttributeNode", | 201 "Element.getAttributeNode", |
| 198 "Element.removeAttributeNode", | 202 "Element.removeAttributeNode", |
| 199 "Element.removeAttributeNS", | |
| 200 "Element.setAttributeNodeNS", | 203 "Element.setAttributeNodeNS", |
| 201 "Element.getAttributeNodeNS", | 204 "Element.getAttributeNodeNS", |
| 202 "Element.setAttributeNS", | |
| 203 "Event.srcElement", | 205 "Event.srcElement", |
| 204 "BodyElement.text", | 206 "BodyElement.text", |
| 205 "AnchorElement.text", | 207 "AnchorElement.text", |
| 206 "OptionElement.text", | 208 "OptionElement.text", |
| 207 "ScriptElement.text", | 209 "ScriptElement.text", |
| 208 "TitleElement.text", | 210 "TitleElement.text", |
| 209 # "EventSource.get:url", | 211 # "EventSource.get:url", |
| 210 # TODO(jacobr): should these be removed? | 212 # TODO(jacobr): should these be removed? |
| 211 "Document.close", | 213 "Document.close", |
| 212 "Document.hasFocus", | 214 "Document.hasFocus", |
| (...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 253 "HTMLPropertiesCollection.*", | 255 "HTMLPropertiesCollection.*", |
| 254 "SelectElement.remove", | 256 "SelectElement.remove", |
| 255 "NamedNodeMap.*", | 257 "NamedNodeMap.*", |
| 256 "Node.isEqualNode", | 258 "Node.isEqualNode", |
| 257 "Node.get:TEXT_NODE", | 259 "Node.get:TEXT_NODE", |
| 258 "Node.hasAttributes", | 260 "Node.hasAttributes", |
| 259 "Node.get:DOCUMENT_TYPE_NODE", | 261 "Node.get:DOCUMENT_TYPE_NODE", |
| 260 "Node.get:DOCUMENT_POSITION_FOLLOWING", | 262 "Node.get:DOCUMENT_POSITION_FOLLOWING", |
| 261 "Node.lookupNamespaceURI", | 263 "Node.lookupNamespaceURI", |
| 262 "Node.get:ELEMENT_NODE", | 264 "Node.get:ELEMENT_NODE", |
| 263 "Node.get:namespaceURI", | |
| 264 "Node.get:DOCUMENT_FRAGMENT_NODE", | 265 "Node.get:DOCUMENT_FRAGMENT_NODE", |
| 265 "Node.get:localName", | |
| 266 "Node.isDefaultNamespace", | 266 "Node.isDefaultNamespace", |
| 267 "Node.compareDocumentPosition", | 267 "Node.compareDocumentPosition", |
| 268 "Node.get:baseURI", | 268 "Node.get:baseURI", |
| 269 "Node.isSameNode", | 269 "Node.isSameNode", |
| 270 "Node.get:DOCUMENT_POSITION_DISCONNECTED", | 270 "Node.get:DOCUMENT_POSITION_DISCONNECTED", |
| 271 "Node.get:DOCUMENT_NODE", | 271 "Node.get:DOCUMENT_NODE", |
| 272 "Node.get:DOCUMENT_POSITION_CONTAINS", | 272 "Node.get:DOCUMENT_POSITION_CONTAINS", |
| 273 "Node.get:COMMENT_NODE", | 273 "Node.get:COMMENT_NODE", |
| 274 "Node.get:ENTITY_REFERENCE_NODE", | 274 "Node.get:ENTITY_REFERENCE_NODE", |
| 275 "Node.isSupported", | 275 "Node.isSupported", |
| (...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 372 | 372 |
| 373 # We're looking for a sequence of letters which start with capital letter | 373 # We're looking for a sequence of letters which start with capital letter |
| 374 # then a series of caps and finishes with either the end of the string or | 374 # then a series of caps and finishes with either the end of the string or |
| 375 # a capital letter. | 375 # a capital letter. |
| 376 # The [0-9] check is for names such as 2D or 3D | 376 # The [0-9] check is for names such as 2D or 3D |
| 377 # The following test cases should match as: | 377 # The following test cases should match as: |
| 378 # WebKitCSSFilterValue: WebKit(C)(SS)(F)ilterValue | 378 # WebKitCSSFilterValue: WebKit(C)(SS)(F)ilterValue |
| 379 # XPathNSResolver: (X)()(P)ath(N)(S)(R)esolver (no change) | 379 # XPathNSResolver: (X)()(P)ath(N)(S)(R)esolver (no change) |
| 380 # IFrameElement: (I)()(F)rameElement (no change) | 380 # IFrameElement: (I)()(F)rameElement (no change) |
| 381 return re.sub(r'([A-Z])([A-Z]{2,})([A-Z]|$)', toLower, name) | 381 return re.sub(r'([A-Z])([A-Z]{2,})([A-Z]|$)', toLower, name) |
| OLD | NEW |