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

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

Issue 35723002: "Reverting 29013" (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 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
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 163 matching lines...) Expand 10 before | Expand all | Expand 10 after
174 ]) 174 ])
175 175
176 # Members from the standard dom that should not be exposed publicly in dart:html 176 # Members from the standard dom that should not be exposed publicly in dart:html
177 # but need to be exposed internally to implement dart:html on top of a standard 177 # but need to be exposed internally to implement dart:html on top of a standard
178 # browser. They are exposed simply by placing an underscore in front of the 178 # browser. They are exposed simply by placing an underscore in front of the
179 # name. 179 # name.
180 private_html_members = monitored.Set('htmlrenamer.private_html_members', [ 180 private_html_members = monitored.Set('htmlrenamer.private_html_members', [
181 'AudioNode.connect', 181 'AudioNode.connect',
182 'CanvasRenderingContext2D.arc', 182 'CanvasRenderingContext2D.arc',
183 'CanvasRenderingContext2D.drawImage', 183 'CanvasRenderingContext2D.drawImage',
184 'CanvasRenderingContext2D.getLineDash',
185 'CSSStyleDeclaration.getPropertyValue', 184 'CSSStyleDeclaration.getPropertyValue',
186 'CSSStyleDeclaration.setProperty', 185 'CSSStyleDeclaration.setProperty',
187 'CSSStyleDeclaration.var', 186 'CSSStyleDeclaration.var',
188 'CompositionEvent.initCompositionEvent', 187 'CompositionEvent.initCompositionEvent',
189 'CustomEvent.detail', 188 'CustomEvent.detail',
190 'CustomEvent.initCustomEvent', 189 'CustomEvent.initCustomEvent',
191 'DeviceOrientationEvent.initDeviceOrientationEvent', 190 'DeviceOrientationEvent.initDeviceOrientationEvent',
192 'Document.createElement', 191 'Document.createElement',
193 'Document.createEvent', 192 'Document.createEvent',
194 'Document.createNodeIterator', 193 'Document.createNodeIterator',
(...skipping 749 matching lines...) Expand 10 before | Expand all | Expand 10 after
944 943
945 # We're looking for a sequence of letters which start with capital letter 944 # We're looking for a sequence of letters which start with capital letter
946 # then a series of caps and finishes with either the end of the string or 945 # then a series of caps and finishes with either the end of the string or
947 # a capital letter. 946 # a capital letter.
948 # The [0-9] check is for names such as 2D or 3D 947 # The [0-9] check is for names such as 2D or 3D
949 # The following test cases should match as: 948 # The following test cases should match as:
950 # WebKitCSSFilterValue: WebKit(C)(SS)(F)ilterValue 949 # WebKitCSSFilterValue: WebKit(C)(SS)(F)ilterValue
951 # XPathNSResolver: (X)()(P)ath(N)(S)(R)esolver (no change) 950 # XPathNSResolver: (X)()(P)ath(N)(S)(R)esolver (no change)
952 # IFrameElement: (I)()(F)rameElement (no change) 951 # IFrameElement: (I)()(F)rameElement (no change)
953 return re.sub(r'([A-Z])([A-Z]{2,})([A-Z]|$)', toLower, name) 952 return re.sub(r'([A-Z])([A-Z]{2,})([A-Z]|$)', toLower, name)
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698