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