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

Side by Side Diff: sdk/lib/html/scripts/htmlrenamer.py

Issue 11610006: Revert revision 16240 (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years 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 | « sdk/lib/html/idl/dart/dart.idl ('k') | tests/html/css_test.dart » ('j') | 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 re 5 import re
6 6
7 html_interface_renames = { 7 html_interface_renames = {
8 'CDATASection': 'CDataSection', 8 'CDATASection': 'CDataSection',
9 'DOMApplicationCache': 'ApplicationCache', 9 'DOMApplicationCache': 'ApplicationCache',
10 'DOMCoreException': 'DomException', 10 'DOMCoreException': 'DomException',
(...skipping 14 matching lines...) Expand all
25 'WebGLVertexArrayObjectOES': 'WebGLVertexArrayObject', 25 'WebGLVertexArrayObjectOES': 'WebGLVertexArrayObject',
26 'WebKitAnimation': 'Animation', 26 'WebKitAnimation': 'Animation',
27 'WebKitAnimationEvent': 'AnimationEvent', 27 'WebKitAnimationEvent': 'AnimationEvent',
28 'WebKitBlobBuilder': 'BlobBuilder', 28 'WebKitBlobBuilder': 'BlobBuilder',
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 'WebKitFlags': 'Flags', 33 'WebKitFlags': 'Flags',
34 'WebKitLoseContext': 'LoseContext', 34 'WebKitLoseContext': 'LoseContext',
35 'WebKitPoint': 'Point',
35 'WebKitTransitionEvent': 'TransitionEvent', 36 'WebKitTransitionEvent': 'TransitionEvent',
36 'XMLHttpRequest': 'HttpRequest', 37 'XMLHttpRequest': 'HttpRequest',
37 'XMLHttpRequestException': 'HttpRequestException', 38 'XMLHttpRequestException': 'HttpRequestException',
38 'XMLHttpRequestProgressEvent': 'HttpRequestProgressEvent', 39 'XMLHttpRequestProgressEvent': 'HttpRequestProgressEvent',
39 'XMLHttpRequestUpload': 'HttpRequestUpload', 40 'XMLHttpRequestUpload': 'HttpRequestUpload',
40 } 41 }
41 42
42 # Members from the standard dom that should not be exposed publicly in dart:html 43 # Members from the standard dom that should not be exposed publicly in dart:html
43 # but need to be exposed internally to implement dart:html on top of a standard 44 # but need to be exposed internally to implement dart:html on top of a standard
44 # browser. 45 # browser.
(...skipping 367 matching lines...) Expand 10 before | Expand all | Expand 10 after
412 413
413 # We're looking for a sequence of letters which start with capital letter 414 # We're looking for a sequence of letters which start with capital letter
414 # then a series of caps and finishes with either the end of the string or 415 # then a series of caps and finishes with either the end of the string or
415 # a capital letter. 416 # a capital letter.
416 # The [0-9] check is for names such as 2D or 3D 417 # The [0-9] check is for names such as 2D or 3D
417 # The following test cases should match as: 418 # The following test cases should match as:
418 # WebKitCSSFilterValue: WebKit(C)(SS)(F)ilterValue 419 # WebKitCSSFilterValue: WebKit(C)(SS)(F)ilterValue
419 # XPathNSResolver: (X)()(P)ath(N)(S)(R)esolver (no change) 420 # XPathNSResolver: (X)()(P)ath(N)(S)(R)esolver (no change)
420 # IFrameElement: (I)()(F)rameElement (no change) 421 # IFrameElement: (I)()(F)rameElement (no change)
421 return re.sub(r'([A-Z])([A-Z]{2,})([A-Z]|$)', toLower, name) 422 return re.sub(r'([A-Z])([A-Z]{2,})([A-Z]|$)', toLower, name)
OLDNEW
« no previous file with comments | « sdk/lib/html/idl/dart/dart.idl ('k') | tests/html/css_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698