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 491 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
502 # Members and classes from the dom that should be removed completely from | 502 # Members and classes from the dom that should be removed completely from |
503 # dart:html. These could be expressed in the IDL instead but expressing this | 503 # dart:html. These could be expressed in the IDL instead but expressing this |
504 # as a simple table instead is more concise. | 504 # as a simple table instead is more concise. |
505 # Syntax is: ClassName.(get\:|set\:|call\:|on\:)?MemberName | 505 # Syntax is: ClassName.(get\:|set\:|call\:|on\:)?MemberName |
506 # Using get: and set: is optional and should only be used when a getter needs | 506 # Using get: and set: is optional and should only be used when a getter needs |
507 # to be suppressed but not the setter, etc. | 507 # to be suppressed but not the setter, etc. |
508 # Prepending ClassName with = will only match against direct class, not for | 508 # Prepending ClassName with = will only match against direct class, not for |
509 # subclasses. | 509 # subclasses. |
510 # TODO(jacobr): cleanup and augment this list. | 510 # TODO(jacobr): cleanup and augment this list. |
511 removed_html_members = monitored.Set('htmlrenamer.removed_html_members', [ | 511 removed_html_members = monitored.Set('htmlrenamer.removed_html_members', [ |
| 512 'Attr.textContent', # Not needed as it is the same as Node.textContent. |
512 'AudioBufferSourceNode.looping', # TODO(vsm): Use deprecated IDL annotation | 513 'AudioBufferSourceNode.looping', # TODO(vsm): Use deprecated IDL annotation |
513 'CSSStyleDeclaration.getPropertyCSSValue', | 514 'CSSStyleDeclaration.getPropertyCSSValue', |
514 'CanvasRenderingContext2D.clearShadow', | 515 'CanvasRenderingContext2D.clearShadow', |
515 'CanvasRenderingContext2D.drawImageFromRect', | 516 'CanvasRenderingContext2D.drawImageFromRect', |
516 'CanvasRenderingContext2D.setAlpha', | 517 'CanvasRenderingContext2D.setAlpha', |
517 'CanvasRenderingContext2D.setCompositeOperation', | 518 'CanvasRenderingContext2D.setCompositeOperation', |
518 'CanvasRenderingContext2D.setFillColor', | 519 'CanvasRenderingContext2D.setFillColor', |
519 'CanvasRenderingContext2D.setLineCap', | 520 'CanvasRenderingContext2D.setLineCap', |
520 'CanvasRenderingContext2D.setLineJoin', | 521 'CanvasRenderingContext2D.setLineJoin', |
521 'CanvasRenderingContext2D.setLineWidth', | 522 'CanvasRenderingContext2D.setLineWidth', |
(...skipping 502 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1024 | 1025 |
1025 # We're looking for a sequence of letters which start with capital letter | 1026 # We're looking for a sequence of letters which start with capital letter |
1026 # then a series of caps and finishes with either the end of the string or | 1027 # then a series of caps and finishes with either the end of the string or |
1027 # a capital letter. | 1028 # a capital letter. |
1028 # The [0-9] check is for names such as 2D or 3D | 1029 # The [0-9] check is for names such as 2D or 3D |
1029 # The following test cases should match as: | 1030 # The following test cases should match as: |
1030 # WebKitCSSFilterValue: WebKit(C)(SS)(F)ilterValue | 1031 # WebKitCSSFilterValue: WebKit(C)(SS)(F)ilterValue |
1031 # XPathNSResolver: (X)()(P)ath(N)(S)(R)esolver (no change) | 1032 # XPathNSResolver: (X)()(P)ath(N)(S)(R)esolver (no change) |
1032 # IFrameElement: (I)()(F)rameElement (no change) | 1033 # IFrameElement: (I)()(F)rameElement (no change) |
1033 return re.sub(r'([A-Z])([A-Z]{2,})([A-Z]|$)', toLower, name) | 1034 return re.sub(r'([A-Z])([A-Z]{2,})([A-Z]|$)', toLower, name) |
OLD | NEW |