| 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 228 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 239 'MouseEvent.initMouseEvent', | 239 'MouseEvent.initMouseEvent', |
| 240 'MouseEvent.clientX', | 240 'MouseEvent.clientX', |
| 241 'MouseEvent.clientY', | 241 'MouseEvent.clientY', |
| 242 'MouseEvent.webkitMovementX', | 242 'MouseEvent.webkitMovementX', |
| 243 'MouseEvent.webkitMovementY', | 243 'MouseEvent.webkitMovementY', |
| 244 'MouseEvent.offsetX', | 244 'MouseEvent.offsetX', |
| 245 'MouseEvent.offsetY', | 245 'MouseEvent.offsetY', |
| 246 'MouseEvent.screenX', | 246 'MouseEvent.screenX', |
| 247 'MouseEvent.screenY', | 247 'MouseEvent.screenY', |
| 248 'MutationEvent.initMutationEvent', | 248 'MutationEvent.initMutationEvent', |
| 249 'Node.appendChild', | |
| 250 'Node.attributes', | 249 'Node.attributes', |
| 251 'Node.childNodes', | 250 'Node.childNodes', |
| 252 'Node.firstChild', | 251 'Node.firstChild', |
| 253 'Node.lastChild', | 252 'Node.lastChild', |
| 254 'Node.localName', | 253 'Node.localName', |
| 255 'Node.namespaceURI', | 254 'Node.namespaceURI', |
| 256 'Node.removeChild', | 255 'Node.removeChild', |
| 257 'Node.replaceChild', | 256 'Node.replaceChild', |
| 258 'Screen.availHeight', | 257 'Screen.availHeight', |
| 259 'Screen.availLeft', | 258 'Screen.availLeft', |
| (...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 302 'DOMWindow.setTimeout': '_setTimeout', | 301 'DOMWindow.setTimeout': '_setTimeout', |
| 303 'DOMWindow.setInterval': '_setInterval', | 302 'DOMWindow.setInterval': '_setInterval', |
| 304 'DOMWindow.webkitConvertPointFromNodeToPage': 'convertPointFromNodeToPage', | 303 'DOMWindow.webkitConvertPointFromNodeToPage': 'convertPointFromNodeToPage', |
| 305 'DOMWindow.webkitConvertPointFromPageToNode': 'convertPointFromPageToNode', | 304 'DOMWindow.webkitConvertPointFromPageToNode': 'convertPointFromPageToNode', |
| 306 'DOMWindow.webkitNotifications': 'notifications', | 305 'DOMWindow.webkitNotifications': 'notifications', |
| 307 'DOMWindow.webkitRequestFileSystem': 'requestFileSystem', | 306 'DOMWindow.webkitRequestFileSystem': 'requestFileSystem', |
| 308 'DOMWindow.webkitResolveLocalFileSystemURL': 'resolveLocalFileSystemUrl', | 307 'DOMWindow.webkitResolveLocalFileSystemURL': 'resolveLocalFileSystemUrl', |
| 309 'Element.webkitCreateShadowRoot': 'createShadowRoot', | 308 'Element.webkitCreateShadowRoot': 'createShadowRoot', |
| 310 'Element.webkitMatchesSelector' : 'matches', | 309 'Element.webkitMatchesSelector' : 'matches', |
| 311 'Navigator.webkitGetUserMedia': '_getUserMedia', | 310 'Navigator.webkitGetUserMedia': '_getUserMedia', |
| 311 'Node.appendChild': 'append', |
| 312 'Node.cloneNode': 'clone', | 312 'Node.cloneNode': 'clone', |
| 313 'Node.nextSibling': 'nextNode', | 313 'Node.nextSibling': 'nextNode', |
| 314 'Node.ownerDocument': 'document', | 314 'Node.ownerDocument': 'document', |
| 315 'Node.parentElement': 'parent', | 315 'Node.parentElement': 'parent', |
| 316 'Node.previousSibling': 'previousNode', | 316 'Node.previousSibling': 'previousNode', |
| 317 'Node.textContent': 'text', | 317 'Node.textContent': 'text', |
| 318 'SVGComponentTransferFunctionElement.offset': 'gradientOffset', | 318 'SVGComponentTransferFunctionElement.offset': 'gradientOffset', |
| 319 'SVGElement.className': '$dom_svgClassName', | 319 'SVGElement.className': '$dom_svgClassName', |
| 320 'SVGStopElement.offset': 'gradientOffset', | 320 'SVGStopElement.offset': 'gradientOffset', |
| 321 'WorkerContext.webkitRequestFileSystem': 'requestFileSystem', | 321 'WorkerContext.webkitRequestFileSystem': 'requestFileSystem', |
| (...skipping 387 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 709 | 709 |
| 710 # We're looking for a sequence of letters which start with capital letter | 710 # We're looking for a sequence of letters which start with capital letter |
| 711 # then a series of caps and finishes with either the end of the string or | 711 # then a series of caps and finishes with either the end of the string or |
| 712 # a capital letter. | 712 # a capital letter. |
| 713 # The [0-9] check is for names such as 2D or 3D | 713 # The [0-9] check is for names such as 2D or 3D |
| 714 # The following test cases should match as: | 714 # The following test cases should match as: |
| 715 # WebKitCSSFilterValue: WebKit(C)(SS)(F)ilterValue | 715 # WebKitCSSFilterValue: WebKit(C)(SS)(F)ilterValue |
| 716 # XPathNSResolver: (X)()(P)ath(N)(S)(R)esolver (no change) | 716 # XPathNSResolver: (X)()(P)ath(N)(S)(R)esolver (no change) |
| 717 # IFrameElement: (I)()(F)rameElement (no change) | 717 # IFrameElement: (I)()(F)rameElement (no change) |
| 718 return re.sub(r'([A-Z])([A-Z]{2,})([A-Z]|$)', toLower, name) | 718 return re.sub(r'([A-Z])([A-Z]{2,})([A-Z]|$)', toLower, name) |
| OLD | NEW |