| 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 re | 5 import re |
| 6 | 6 |
| 7 html_interface_renames = { | 7 html_interface_renames = { |
| 8 'DOMCoreException': 'DOMException', | 8 'DOMCoreException': 'DOMException', |
| 9 'DOMFormData': 'FormData', | 9 'DOMFormData': 'FormData', |
| 10 'DOMURL': 'Url', | 10 'DOMURL': 'Url', |
| 11 'DOMWindow': 'LocalWindow', | 11 'DOMWindow': 'LocalWindow', |
| 12 'History': 'LocalHistory', | 12 'History': 'LocalHistory', |
| 13 'HTMLDocument' : 'HtmlDocument', | 13 'HTMLDocument' : 'HtmlDocument', |
| 14 'Location': 'LocalLocation', | 14 'Location': 'LocalLocation', |
| 15 'SVGDocument': 'SvgDocument', # Manual to avoid name conflicts. | 15 'SVGDocument': 'SvgDocument', # Manual to avoid name conflicts. |
| 16 'SVGElement': 'SvgElement', # Manual to avoid name conflicts. | 16 'SVGElement': 'SvgElement', # Manual to avoid name conflicts. |
| 17 'SVGException': 'SvgException', # Manual of avoid conflict with Exception. |
| 17 'SVGSVGElement': 'SvgSvgElement', # Manual to avoid name conflicts. | 18 'SVGSVGElement': 'SvgSvgElement', # Manual to avoid name conflicts. |
| 18 'WebKitAnimation': 'Animation', | 19 'WebKitAnimation': 'Animation', |
| 19 'WebKitAnimationEvent': 'AnimationEvent', | 20 'WebKitAnimationEvent': 'AnimationEvent', |
| 20 'WebKitBlobBuilder': 'BlobBuilder', | 21 'WebKitBlobBuilder': 'BlobBuilder', |
| 21 'WebKitCSSKeyframeRule': 'CSSKeyframeRule', | 22 'WebKitCSSKeyframeRule': 'CSSKeyframeRule', |
| 22 'WebKitCSSKeyframesRule': 'CSSKeyframesRule', | 23 'WebKitCSSKeyframesRule': 'CSSKeyframesRule', |
| 23 'WebKitCSSMatrix': 'CSSMatrix', | 24 'WebKitCSSMatrix': 'CSSMatrix', |
| 24 'WebKitCSSTransformValue': 'CSSTransformValue', | 25 'WebKitCSSTransformValue': 'CSSTransformValue', |
| 25 'WebKitFlags': 'Flags', | 26 'WebKitFlags': 'Flags', |
| 26 'WebKitLoseContext': 'LoseContext', | 27 'WebKitLoseContext': 'LoseContext', |
| (...skipping 359 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 386 | 387 |
| 387 # We're looking for a sequence of letters which start with capital letter | 388 # We're looking for a sequence of letters which start with capital letter |
| 388 # then a series of caps and finishes with either the end of the string or | 389 # then a series of caps and finishes with either the end of the string or |
| 389 # a capital letter. | 390 # a capital letter. |
| 390 # The [0-9] check is for names such as 2D or 3D | 391 # The [0-9] check is for names such as 2D or 3D |
| 391 # The following test cases should match as: | 392 # The following test cases should match as: |
| 392 # WebKitCSSFilterValue: WebKit(C)(SS)(F)ilterValue | 393 # WebKitCSSFilterValue: WebKit(C)(SS)(F)ilterValue |
| 393 # XPathNSResolver: (X)()(P)ath(N)(S)(R)esolver (no change) | 394 # XPathNSResolver: (X)()(P)ath(N)(S)(R)esolver (no change) |
| 394 # IFrameElement: (I)()(F)rameElement (no change) | 395 # IFrameElement: (I)()(F)rameElement (no change) |
| 395 return re.sub(r'([A-Z])([A-Z]{2,})([A-Z]|$)', toLower, name) | 396 return re.sub(r'([A-Z])([A-Z]{2,})([A-Z]|$)', toLower, name) |
| OLD | NEW |