| 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 html_interface_renames = monitored.Dict('htmlrenamer.html_interface_renames', { | 9 html_interface_renames = monitored.Dict('htmlrenamer.html_interface_renames', { |
| 10 'CDATASection': 'CDataSection', | 10 'CDATASection': 'CDataSection', |
| (...skipping 27 matching lines...) Expand all Loading... |
| 38 'RTCDTMFToneChangeEvent': 'RtcDtmfToneChangeEvent', | 38 'RTCDTMFToneChangeEvent': 'RtcDtmfToneChangeEvent', |
| 39 'RTCErrorCallback': '_RtcErrorCallback', | 39 'RTCErrorCallback': '_RtcErrorCallback', |
| 40 'RTCSessionDescriptionCallback': '_RtcSessionDescriptionCallback', | 40 'RTCSessionDescriptionCallback': '_RtcSessionDescriptionCallback', |
| 41 'StorageInfoErrorCallback': '_StorageInfoErrorCallback', | 41 'StorageInfoErrorCallback': '_StorageInfoErrorCallback', |
| 42 'StorageInfoUsageCallback': '_StorageInfoUsageCallback', | 42 'StorageInfoUsageCallback': '_StorageInfoUsageCallback', |
| 43 'StringCallback': '_StringCallback', | 43 'StringCallback': '_StringCallback', |
| 44 'SVGDocument': 'SvgDocument', # Manual to avoid name conflicts. | 44 'SVGDocument': 'SvgDocument', # Manual to avoid name conflicts. |
| 45 'SVGElement': 'SvgElement', # Manual to avoid name conflicts. | 45 'SVGElement': 'SvgElement', # Manual to avoid name conflicts. |
| 46 'SVGException': 'SvgException', # Manual of avoid conflict with Exception. | 46 'SVGException': 'SvgException', # Manual of avoid conflict with Exception. |
| 47 'SVGSVGElement': 'SvgSvgElement', # Manual to avoid name conflicts. | 47 'SVGSVGElement': 'SvgSvgElement', # Manual to avoid name conflicts. |
| 48 'WebGLVertexArrayObjectOES': 'WebGLVertexArrayObject', | 48 'WebGLVertexArrayObjectOES': 'VertexArrayObject', |
| 49 'WebKitAnimationEvent': 'AnimationEvent', | 49 'WebKitAnimationEvent': 'AnimationEvent', |
| 50 'WebKitCSSKeyframeRule': 'CssKeyframeRule', | 50 'WebKitCSSKeyframeRule': 'CssKeyframeRule', |
| 51 'WebKitCSSKeyframesRule': 'CssKeyframesRule', | 51 'WebKitCSSKeyframesRule': 'CssKeyframesRule', |
| 52 'WebKitCSSMatrix': 'CssMatrix', | 52 'WebKitCSSMatrix': 'CssMatrix', |
| 53 'WebKitCSSTransformValue': 'CssTransformValue', | 53 'WebKitCSSTransformValue': 'CssTransformValue', |
| 54 'WebKitPoint': 'DomPoint', | 54 'WebKitPoint': 'DomPoint', |
| 55 'WebKitTransitionEvent': '_WebKitTransitionEvent', | 55 'WebKitTransitionEvent': '_WebKitTransitionEvent', |
| 56 'XMLHttpRequest': 'HttpRequest', | 56 'XMLHttpRequest': 'HttpRequest', |
| 57 'XMLHttpRequestException': 'HttpRequestException', | 57 'XMLHttpRequestException': 'HttpRequestException', |
| 58 'XMLHttpRequestProgressEvent': 'HttpRequestProgressEvent', | 58 'XMLHttpRequestProgressEvent': 'HttpRequestProgressEvent', |
| (...skipping 654 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 713 | 713 |
| 714 # We're looking for a sequence of letters which start with capital letter | 714 # We're looking for a sequence of letters which start with capital letter |
| 715 # then a series of caps and finishes with either the end of the string or | 715 # then a series of caps and finishes with either the end of the string or |
| 716 # a capital letter. | 716 # a capital letter. |
| 717 # The [0-9] check is for names such as 2D or 3D | 717 # The [0-9] check is for names such as 2D or 3D |
| 718 # The following test cases should match as: | 718 # The following test cases should match as: |
| 719 # WebKitCSSFilterValue: WebKit(C)(SS)(F)ilterValue | 719 # WebKitCSSFilterValue: WebKit(C)(SS)(F)ilterValue |
| 720 # XPathNSResolver: (X)()(P)ath(N)(S)(R)esolver (no change) | 720 # XPathNSResolver: (X)()(P)ath(N)(S)(R)esolver (no change) |
| 721 # IFrameElement: (I)()(F)rameElement (no change) | 721 # IFrameElement: (I)()(F)rameElement (no change) |
| 722 return re.sub(r'([A-Z])([A-Z]{2,})([A-Z]|$)', toLower, name) | 722 return re.sub(r'([A-Z])([A-Z]{2,})([A-Z]|$)', toLower, name) |
| OLD | NEW |