| 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 598 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 609 'Node.isSupported', | 609 'Node.isSupported', |
| 610 'Node.lookupNamespaceURI', | 610 'Node.lookupNamespaceURI', |
| 611 'Node.lookupPrefix', | 611 'Node.lookupPrefix', |
| 612 'Node.normalize', | 612 'Node.normalize', |
| 613 'Node.set:nodeValue', | 613 'Node.set:nodeValue', |
| 614 'NodeFilter.acceptNode', | 614 'NodeFilter.acceptNode', |
| 615 'NodeIterator.expandEntityReferences', | 615 'NodeIterator.expandEntityReferences', |
| 616 'NodeIterator.filter', | 616 'NodeIterator.filter', |
| 617 'NodeList.item', | 617 'NodeList.item', |
| 618 'ShadowRoot.getElementsByTagNameNS', | 618 'ShadowRoot.getElementsByTagNameNS', |
| 619 'SVGStyledElement.getPresentationAttribute', |
| 619 'WheelEvent.wheelDelta', | 620 'WheelEvent.wheelDelta', |
| 620 'WorkerContext.webkitIndexedDB', | 621 'WorkerContext.webkitIndexedDB', |
| 621 # TODO(jacobr): should these be removed? | 622 # TODO(jacobr): should these be removed? |
| 622 'Document.close', | 623 'Document.close', |
| 623 'Document.hasFocus', | 624 'Document.hasFocus', |
| 624 ]) | 625 ]) |
| 625 | 626 |
| 626 # Manual dart: library name lookup. | 627 # Manual dart: library name lookup. |
| 627 _library_names = monitored.Dict('htmlrenamer._library_names', { | 628 _library_names = monitored.Dict('htmlrenamer._library_names', { |
| 628 'DOMWindow': 'html', | 629 'DOMWindow': 'html', |
| (...skipping 130 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 759 | 760 |
| 760 # We're looking for a sequence of letters which start with capital letter | 761 # We're looking for a sequence of letters which start with capital letter |
| 761 # then a series of caps and finishes with either the end of the string or | 762 # then a series of caps and finishes with either the end of the string or |
| 762 # a capital letter. | 763 # a capital letter. |
| 763 # The [0-9] check is for names such as 2D or 3D | 764 # The [0-9] check is for names such as 2D or 3D |
| 764 # The following test cases should match as: | 765 # The following test cases should match as: |
| 765 # WebKitCSSFilterValue: WebKit(C)(SS)(F)ilterValue | 766 # WebKitCSSFilterValue: WebKit(C)(SS)(F)ilterValue |
| 766 # XPathNSResolver: (X)()(P)ath(N)(S)(R)esolver (no change) | 767 # XPathNSResolver: (X)()(P)ath(N)(S)(R)esolver (no change) |
| 767 # IFrameElement: (I)()(F)rameElement (no change) | 768 # IFrameElement: (I)()(F)rameElement (no change) |
| 768 return re.sub(r'([A-Z])([A-Z]{2,})([A-Z]|$)', toLower, name) | 769 return re.sub(r'([A-Z])([A-Z]{2,})([A-Z]|$)', toLower, name) |
| OLD | NEW |