Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(609)

Side by Side Diff: tools/dom/scripts/htmlrenamer.py

Issue 14159020: Make RadioNodeList be NodeList (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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 75 matching lines...) Expand 10 before | Expand all | Expand 10 after
86 'FileWriterSync', # Workers 86 'FileWriterSync', # Workers
87 'HTMLAppletElement', 87 'HTMLAppletElement',
88 'HTMLBaseFontElement', 88 'HTMLBaseFontElement',
89 'HTMLDirectoryElement', 89 'HTMLDirectoryElement',
90 'HTMLFontElement', 90 'HTMLFontElement',
91 'HTMLFrameElement', 91 'HTMLFrameElement',
92 'HTMLFrameSetElement', 92 'HTMLFrameSetElement',
93 'HTMLMarqueeElement', 93 'HTMLMarqueeElement',
94 'IDBAny', 94 'IDBAny',
95 'RGBColor', 95 'RGBColor',
96 'RadioNodeList', # Folded onto NodeList in dart2js.
96 'Rect', 97 'Rect',
97 'SQLTransactionSync', # Workers 98 'SQLTransactionSync', # Workers
98 'SQLTransactionSyncCallback', # Workers 99 'SQLTransactionSyncCallback', # Workers
99 'SVGAltGlyphDefElement', # Webkit only. 100 'SVGAltGlyphDefElement', # Webkit only.
100 'SVGAltGlyphItemElement', # Webkit only. 101 'SVGAltGlyphItemElement', # Webkit only.
101 'SVGAnimateColorElement', # Deprecated. Use AnimateElement instead. 102 'SVGAnimateColorElement', # Deprecated. Use AnimateElement instead.
102 'SVGColor', 103 'SVGColor',
103 'SVGComponentTransferFunctionElement', # Currently not supported anywhere. 104 'SVGComponentTransferFunctionElement', # Currently not supported anywhere.
104 'SVGCursorElement', # Webkit only. 105 'SVGCursorElement', # Webkit only.
105 'SVGFEDropShadowElement', # Webkit only for the following: 106 'SVGFEDropShadowElement', # Webkit only for the following:
(...skipping 649 matching lines...) Expand 10 before | Expand all | Expand 10 after
755 756
756 # We're looking for a sequence of letters which start with capital letter 757 # We're looking for a sequence of letters which start with capital letter
757 # then a series of caps and finishes with either the end of the string or 758 # then a series of caps and finishes with either the end of the string or
758 # a capital letter. 759 # a capital letter.
759 # The [0-9] check is for names such as 2D or 3D 760 # The [0-9] check is for names such as 2D or 3D
760 # The following test cases should match as: 761 # The following test cases should match as:
761 # WebKitCSSFilterValue: WebKit(C)(SS)(F)ilterValue 762 # WebKitCSSFilterValue: WebKit(C)(SS)(F)ilterValue
762 # XPathNSResolver: (X)()(P)ath(N)(S)(R)esolver (no change) 763 # XPathNSResolver: (X)()(P)ath(N)(S)(R)esolver (no change)
763 # IFrameElement: (I)()(F)rameElement (no change) 764 # IFrameElement: (I)()(F)rameElement (no change)
764 return re.sub(r'([A-Z])([A-Z]{2,})([A-Z]|$)', toLower, name) 765 return re.sub(r'([A-Z])([A-Z]{2,})([A-Z]|$)', toLower, name)
OLDNEW
« no previous file with comments | « tools/dom/scripts/generator.py ('k') | tools/dom/templates/html/impl/impl_RadioNodeList.darttemplate » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698