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

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

Issue 12207015: Changes for the roll. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 10 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 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 13 matching lines...) Expand all
24 'SVGElement': 'SvgElement', # Manual to avoid name conflicts. 24 'SVGElement': 'SvgElement', # Manual to avoid name conflicts.
25 'SVGException': 'SvgException', # Manual of avoid conflict with Exception. 25 'SVGException': 'SvgException', # Manual of avoid conflict with Exception.
26 'SVGSVGElement': 'SvgSvgElement', # Manual to avoid name conflicts. 26 'SVGSVGElement': 'SvgSvgElement', # Manual to avoid name conflicts.
27 'WebGLVertexArrayObjectOES': 'WebGLVertexArrayObject', 27 'WebGLVertexArrayObjectOES': 'WebGLVertexArrayObject',
28 'WebKitAnimationEvent': 'AnimationEvent', 28 'WebKitAnimationEvent': 'AnimationEvent',
29 'WebKitCSSKeyframeRule': 'CssKeyframeRule', 29 'WebKitCSSKeyframeRule': 'CssKeyframeRule',
30 'WebKitCSSKeyframesRule': 'CssKeyframesRule', 30 'WebKitCSSKeyframesRule': 'CssKeyframesRule',
31 'WebKitCSSMatrix': 'CssMatrix', 31 'WebKitCSSMatrix': 'CssMatrix',
32 'WebKitCSSTransformValue': 'CssTransformValue', 32 'WebKitCSSTransformValue': 'CssTransformValue',
33 'WebKitPoint': 'DomPoint', 33 'WebKitPoint': 'DomPoint',
34 'WebKitTransitionEvent': 'TransitionEvent',
35 'XMLHttpRequest': 'HttpRequest', 34 'XMLHttpRequest': 'HttpRequest',
36 'XMLHttpRequestException': 'HttpRequestException', 35 'XMLHttpRequestException': 'HttpRequestException',
37 'XMLHttpRequestProgressEvent': 'HttpRequestProgressEvent', 36 'XMLHttpRequestProgressEvent': 'HttpRequestProgressEvent',
38 'XMLHttpRequestUpload': 'HttpRequestUpload', 37 'XMLHttpRequestUpload': 'HttpRequestUpload',
39 }) 38 })
40 39
41 # Interfaces that are suppressed, but need to still exist for Dartium and to 40 # Interfaces that are suppressed, but need to still exist for Dartium and to
42 # properly wrap DOM objects if/when encountered. 41 # properly wrap DOM objects if/when encountered.
43 _removed_html_interfaces = [ 42 _removed_html_interfaces = [
44 'HTMLAppletElement', 43 'HTMLAppletElement',
(...skipping 529 matching lines...) Expand 10 before | Expand all | Expand 10 after
574 573
575 # We're looking for a sequence of letters which start with capital letter 574 # We're looking for a sequence of letters which start with capital letter
576 # then a series of caps and finishes with either the end of the string or 575 # then a series of caps and finishes with either the end of the string or
577 # a capital letter. 576 # a capital letter.
578 # The [0-9] check is for names such as 2D or 3D 577 # The [0-9] check is for names such as 2D or 3D
579 # The following test cases should match as: 578 # The following test cases should match as:
580 # WebKitCSSFilterValue: WebKit(C)(SS)(F)ilterValue 579 # WebKitCSSFilterValue: WebKit(C)(SS)(F)ilterValue
581 # XPathNSResolver: (X)()(P)ath(N)(S)(R)esolver (no change) 580 # XPathNSResolver: (X)()(P)ath(N)(S)(R)esolver (no change)
582 # IFrameElement: (I)()(F)rameElement (no change) 581 # IFrameElement: (I)()(F)rameElement (no change)
583 return re.sub(r'([A-Z])([A-Z]{2,})([A-Z]|$)', toLower, name) 582 return re.sub(r'([A-Z])([A-Z]{2,})([A-Z]|$)', toLower, name)
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698