Chromium Code Reviews| 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 typed_array_renames = { | 9 typed_array_renames = { |
| 10 'ArrayBuffer': 'ByteBuffer', | 10 'ArrayBuffer': 'ByteBuffer', |
| (...skipping 307 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 318 'DOMWindow.CSS': 'css', | 318 'DOMWindow.CSS': 'css', |
| 319 'DOMWindow.clearTimeout': '_clearTimeout', | 319 'DOMWindow.clearTimeout': '_clearTimeout', |
| 320 'DOMWindow.clearInterval': '_clearInterval', | 320 'DOMWindow.clearInterval': '_clearInterval', |
| 321 'DOMWindow.setTimeout': '_setTimeout', | 321 'DOMWindow.setTimeout': '_setTimeout', |
| 322 'DOMWindow.setInterval': '_setInterval', | 322 'DOMWindow.setInterval': '_setInterval', |
| 323 'DOMWindow.webkitConvertPointFromNodeToPage': '_convertPointFromNodeToPage', | 323 'DOMWindow.webkitConvertPointFromNodeToPage': '_convertPointFromNodeToPage', |
| 324 'DOMWindow.webkitConvertPointFromPageToNode': '_convertPointFromPageToNode', | 324 'DOMWindow.webkitConvertPointFromPageToNode': '_convertPointFromPageToNode', |
| 325 'DOMWindow.webkitNotifications': 'notifications', | 325 'DOMWindow.webkitNotifications': 'notifications', |
| 326 'DOMWindow.webkitRequestFileSystem': '_requestFileSystem', | 326 'DOMWindow.webkitRequestFileSystem': '_requestFileSystem', |
| 327 'DOMWindow.webkitResolveLocalFileSystemURL': 'resolveLocalFileSystemUrl', | 327 'DOMWindow.webkitResolveLocalFileSystemURL': 'resolveLocalFileSystemUrl', |
| 328 'Element.innerHTML': 'deprecatedInnerHtml', | |
|
Jacob
2013/06/05 23:42:50
why not just use $dom_ as for the other deprecated
blois
2013/06/06 16:59:42
Done.
| |
| 328 'Element.querySelector': 'query', | 329 'Element.querySelector': 'query', |
| 329 'Element.webkitCreateShadowRoot': 'createShadowRoot', | 330 'Element.webkitCreateShadowRoot': 'createShadowRoot', |
| 330 'Element.webkitMatchesSelector' : 'matches', | 331 'Element.webkitMatchesSelector' : 'matches', |
| 331 'MutationObserver.observe': '_observe', | 332 'MutationObserver.observe': '_observe', |
| 332 'Navigator.webkitGetUserMedia': '_getUserMedia', | 333 'Navigator.webkitGetUserMedia': '_getUserMedia', |
| 333 'Node.appendChild': 'append', | 334 'Node.appendChild': 'append', |
| 334 'Node.cloneNode': 'clone', | 335 'Node.cloneNode': 'clone', |
| 335 'Node.nextSibling': 'nextNode', | 336 'Node.nextSibling': 'nextNode', |
| 336 'Node.ownerDocument': 'document', | 337 'Node.ownerDocument': 'document', |
| 337 'Node.parentElement': 'parent', | 338 'Node.parentElement': 'parent', |
| (...skipping 432 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 770 | 771 |
| 771 # We're looking for a sequence of letters which start with capital letter | 772 # We're looking for a sequence of letters which start with capital letter |
| 772 # then a series of caps and finishes with either the end of the string or | 773 # then a series of caps and finishes with either the end of the string or |
| 773 # a capital letter. | 774 # a capital letter. |
| 774 # The [0-9] check is for names such as 2D or 3D | 775 # The [0-9] check is for names such as 2D or 3D |
| 775 # The following test cases should match as: | 776 # The following test cases should match as: |
| 776 # WebKitCSSFilterValue: WebKit(C)(SS)(F)ilterValue | 777 # WebKitCSSFilterValue: WebKit(C)(SS)(F)ilterValue |
| 777 # XPathNSResolver: (X)()(P)ath(N)(S)(R)esolver (no change) | 778 # XPathNSResolver: (X)()(P)ath(N)(S)(R)esolver (no change) |
| 778 # IFrameElement: (I)()(F)rameElement (no change) | 779 # IFrameElement: (I)()(F)rameElement (no change) |
| 779 return re.sub(r'([A-Z])([A-Z]{2,})([A-Z]|$)', toLower, name) | 780 return re.sub(r'([A-Z])([A-Z]{2,})([A-Z]|$)', toLower, name) |
| OLD | NEW |