| 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 583 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 594 'Element.getAttributeNodeNS', | 594 'Element.getAttributeNodeNS', |
| 595 'Element.getElementsByTagNameNS', | 595 'Element.getElementsByTagNameNS', |
| 596 'Element.innerText', | 596 'Element.innerText', |
| 597 'Element.on:wheel', | 597 'Element.on:wheel', |
| 598 'Element.outerText', | 598 'Element.outerText', |
| 599 'Element.removeAttributeNode', | 599 'Element.removeAttributeNode', |
| 600 'Element.set:outerHTML', | 600 'Element.set:outerHTML', |
| 601 'Element.setAttributeNode', | 601 'Element.setAttributeNode', |
| 602 'Element.setAttributeNodeNS', | 602 'Element.setAttributeNodeNS', |
| 603 'Element.webkitCreateShadowRoot', | 603 'Element.webkitCreateShadowRoot', |
| 604 'Element.webkitMatchesSelector', |
| 604 'Element.webkitPseudo', | 605 'Element.webkitPseudo', |
| 605 'Element.webkitShadowRoot', | 606 'Element.webkitShadowRoot', |
| 606 '=Event.returnValue', # Only suppress on Event, allow for BeforeUnloadEvnt. | 607 '=Event.returnValue', # Only suppress on Event, allow for BeforeUnloadEvnt. |
| 607 'Event.srcElement', | 608 'Event.srcElement', |
| 608 'EventSource.URL', | 609 'EventSource.URL', |
| 609 'FontFace.ready', | 610 'FontFace.ready', |
| 610 'FontFaceSet.load', | 611 'FontFaceSet.load', |
| 611 'FontFaceSet.ready', | 612 'FontFaceSet.ready', |
| 612 'HTMLAnchorElement.charset', | 613 'HTMLAnchorElement.charset', |
| 613 'HTMLAnchorElement.coords', | 614 'HTMLAnchorElement.coords', |
| (...skipping 353 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 967 | 968 |
| 968 # We're looking for a sequence of letters which start with capital letter | 969 # We're looking for a sequence of letters which start with capital letter |
| 969 # then a series of caps and finishes with either the end of the string or | 970 # then a series of caps and finishes with either the end of the string or |
| 970 # a capital letter. | 971 # a capital letter. |
| 971 # The [0-9] check is for names such as 2D or 3D | 972 # The [0-9] check is for names such as 2D or 3D |
| 972 # The following test cases should match as: | 973 # The following test cases should match as: |
| 973 # WebKitCSSFilterValue: WebKit(C)(SS)(F)ilterValue | 974 # WebKitCSSFilterValue: WebKit(C)(SS)(F)ilterValue |
| 974 # XPathNSResolver: (X)()(P)ath(N)(S)(R)esolver (no change) | 975 # XPathNSResolver: (X)()(P)ath(N)(S)(R)esolver (no change) |
| 975 # IFrameElement: (I)()(F)rameElement (no change) | 976 # IFrameElement: (I)()(F)rameElement (no change) |
| 976 return re.sub(r'([A-Z])([A-Z]{2,})([A-Z]|$)', toLower, name) | 977 return re.sub(r'([A-Z])([A-Z]{2,})([A-Z]|$)', toLower, name) |
| OLD | NEW |