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 609 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
620 'HTMLBodyElement.background', | 620 'HTMLBodyElement.background', |
621 'HTMLBodyElement.bgColor', | 621 'HTMLBodyElement.bgColor', |
622 'HTMLBodyElement.link', | 622 'HTMLBodyElement.link', |
623 'HTMLBodyElement.on:beforeUnload', | 623 'HTMLBodyElement.on:beforeUnload', |
624 'HTMLBodyElement.text', | 624 'HTMLBodyElement.text', |
625 'HTMLBodyElement.vLink', | 625 'HTMLBodyElement.vLink', |
626 'HTMLDListElement.compact', | 626 'HTMLDListElement.compact', |
627 'HTMLDirectoryElement.*', | 627 'HTMLDirectoryElement.*', |
628 'HTMLDivElement.align', | 628 'HTMLDivElement.align', |
629 'HTMLFontElement.*', | 629 'HTMLFontElement.*', |
| 630 'HTMLFormControlsCollection.__getter__', |
| 631 'HTMLFormControlsCollection.get:Node', |
630 'HTMLFormElement.get:elements', | 632 'HTMLFormElement.get:elements', |
631 'HTMLFrameElement.*', | 633 'HTMLFrameElement.*', |
632 'HTMLFrameSetElement.*', | 634 'HTMLFrameSetElement.*', |
633 'HTMLHRElement.align', | 635 'HTMLHRElement.align', |
634 'HTMLHRElement.noShade', | 636 'HTMLHRElement.noShade', |
635 'HTMLHRElement.size', | 637 'HTMLHRElement.size', |
636 'HTMLHRElement.width', | 638 'HTMLHRElement.width', |
637 'HTMLHeadElement.profile', | 639 'HTMLHeadElement.profile', |
638 'HTMLHeadingElement.align', | 640 'HTMLHeadingElement.align', |
639 'HTMLHtmlElement.manifest', | 641 'HTMLHtmlElement.manifest', |
(...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
746 'Performance.webkitGetEntries', | 748 'Performance.webkitGetEntries', |
747 'Performance.webkitGetEntriesByName', | 749 'Performance.webkitGetEntriesByName', |
748 'Performance.webkitGetEntriesByType', | 750 'Performance.webkitGetEntriesByType', |
749 'Performance.webkitMark', | 751 'Performance.webkitMark', |
750 'Performance.webkitMeasure', | 752 'Performance.webkitMeasure', |
751 'ShadowRoot.getElementsByTagNameNS', | 753 'ShadowRoot.getElementsByTagNameNS', |
752 'SVGElement.getPresentationAttribute', | 754 'SVGElement.getPresentationAttribute', |
753 'SVGElementInstance.on:wheel', | 755 'SVGElementInstance.on:wheel', |
754 'WheelEvent.wheelDelta', | 756 'WheelEvent.wheelDelta', |
755 'Window.on:wheel', | 757 'Window.on:wheel', |
| 758 'WindowEventHandlers.on:beforeUnload', |
756 'WorkerGlobalScope.webkitIndexedDB', | 759 'WorkerGlobalScope.webkitIndexedDB', |
757 # TODO(jacobr): should these be removed? | 760 # TODO(jacobr): should these be removed? |
758 'Document.close', | 761 'Document.close', |
759 'Document.hasFocus', | 762 'Document.hasFocus', |
760 ]) | 763 ]) |
761 | 764 |
762 # Manual dart: library name lookup. | 765 # Manual dart: library name lookup. |
763 _library_names = monitored.Dict('htmlrenamer._library_names', { | 766 _library_names = monitored.Dict('htmlrenamer._library_names', { |
764 'ANGLEInstancedArrays': 'web_gl', | 767 'ANGLEInstancedArrays': 'web_gl', |
765 'Database': 'web_sql', | 768 'Database': 'web_sql', |
(...skipping 197 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
963 | 966 |
964 # We're looking for a sequence of letters which start with capital letter | 967 # We're looking for a sequence of letters which start with capital letter |
965 # then a series of caps and finishes with either the end of the string or | 968 # then a series of caps and finishes with either the end of the string or |
966 # a capital letter. | 969 # a capital letter. |
967 # The [0-9] check is for names such as 2D or 3D | 970 # The [0-9] check is for names such as 2D or 3D |
968 # The following test cases should match as: | 971 # The following test cases should match as: |
969 # WebKitCSSFilterValue: WebKit(C)(SS)(F)ilterValue | 972 # WebKitCSSFilterValue: WebKit(C)(SS)(F)ilterValue |
970 # XPathNSResolver: (X)()(P)ath(N)(S)(R)esolver (no change) | 973 # XPathNSResolver: (X)()(P)ath(N)(S)(R)esolver (no change) |
971 # IFrameElement: (I)()(F)rameElement (no change) | 974 # IFrameElement: (I)()(F)rameElement (no change) |
972 return re.sub(r'([A-Z])([A-Z]{2,})([A-Z]|$)', toLower, name) | 975 return re.sub(r'([A-Z])([A-Z]{2,})([A-Z]|$)', toLower, name) |
OLD | NEW |