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

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

Issue 639593002: Add webgl constants back to correct class (Closed) Base URL: https://dart.googlecode.com/svn/trunk/dart
Patch Set: Created 6 years, 2 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 | « tools/dom/scripts/htmldartgenerator.py ('k') | tools/dom/src/WebGLConstants.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 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 108 matching lines...) Expand 10 before | Expand all | Expand 10 after
119 'SVGFontFaceUriElement', 119 'SVGFontFaceUriElement',
120 'SVGGlyphElement', 120 'SVGGlyphElement',
121 'SVGGlyphRefElement', 121 'SVGGlyphRefElement',
122 'SVGHKernElement', 122 'SVGHKernElement',
123 'SVGMPathElement', 123 'SVGMPathElement',
124 'SVGPaint', 124 'SVGPaint',
125 'SVGMissingGlyphElement', 125 'SVGMissingGlyphElement',
126 'SVGTRefElement', 126 'SVGTRefElement',
127 'SVGVKernElement', 127 'SVGVKernElement',
128 'SubtleCrypto', 128 'SubtleCrypto',
129 'WebGLRenderingContextBase',
129 'WebKitCSSFilterValue', 130 'WebKitCSSFilterValue',
130 'WebKitCSSMatrix', 131 'WebKitCSSMatrix',
131 'WebKitCSSMixFunctionValue', 132 'WebKitCSSMixFunctionValue',
132 'WebKitCSSTransformValue', 133 'WebKitCSSTransformValue',
133 'WebKitMediaSource', 134 'WebKitMediaSource',
134 'WebKitNotification', 135 'WebKitNotification',
135 'WebKitSourceBuffer', 136 'WebKitSourceBuffer',
136 'WebKitSourceBufferList', 137 'WebKitSourceBufferList',
137 'WorkerLocation', # Workers 138 'WorkerLocation', # Workers
138 'WorkerNavigator', # Workers 139 'WorkerNavigator', # Workers
(...skipping 862 matching lines...) Expand 10 before | Expand all | Expand 10 after
1001 1002
1002 # We're looking for a sequence of letters which start with capital letter 1003 # We're looking for a sequence of letters which start with capital letter
1003 # then a series of caps and finishes with either the end of the string or 1004 # then a series of caps and finishes with either the end of the string or
1004 # a capital letter. 1005 # a capital letter.
1005 # The [0-9] check is for names such as 2D or 3D 1006 # The [0-9] check is for names such as 2D or 3D
1006 # The following test cases should match as: 1007 # The following test cases should match as:
1007 # WebKitCSSFilterValue: WebKit(C)(SS)(F)ilterValue 1008 # WebKitCSSFilterValue: WebKit(C)(SS)(F)ilterValue
1008 # XPathNSResolver: (X)()(P)ath(N)(S)(R)esolver (no change) 1009 # XPathNSResolver: (X)()(P)ath(N)(S)(R)esolver (no change)
1009 # IFrameElement: (I)()(F)rameElement (no change) 1010 # IFrameElement: (I)()(F)rameElement (no change)
1010 return re.sub(r'([A-Z])([A-Z]{2,})([A-Z]|$)', toLower, name) 1011 return re.sub(r'([A-Z])([A-Z]{2,})([A-Z]|$)', toLower, name)
OLDNEW
« no previous file with comments | « tools/dom/scripts/htmldartgenerator.py ('k') | tools/dom/src/WebGLConstants.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698