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

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

Issue 12320102: Cleaning up the TableElement API (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 9 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 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 136 matching lines...) Expand 10 before | Expand all | Expand 10 after
147 'ElementTraversal.childElementCount', 147 'ElementTraversal.childElementCount',
148 'ElementTraversal.firstElementChild', 148 'ElementTraversal.firstElementChild',
149 'ElementTraversal.lastElementChild', 149 'ElementTraversal.lastElementChild',
150 'Event.initEvent', 150 'Event.initEvent',
151 'EventTarget.addEventListener', 151 'EventTarget.addEventListener',
152 'EventTarget.removeEventListener', 152 'EventTarget.removeEventListener',
153 'Geolocation.clearWatch', 153 'Geolocation.clearWatch',
154 'Geolocation.getCurrentPosition', 154 'Geolocation.getCurrentPosition',
155 'Geolocation.watchPosition', 155 'Geolocation.watchPosition',
156 'HashChangeEvent.initHashChangeEvent', 156 'HashChangeEvent.initHashChangeEvent',
157 'HTMLTableElement.createCaption',
158 'HTMLTableElement.createTBody',
159 'HTMLTableElement.createTFoot',
160 'HTMLTableElement.createTHead',
161 'HTMLTableElement.insertRow',
162 'HTMLTableElement.rows',
163 'HTMLTableElement.tBodies',
164 'HTMLTableRowElement.cells',
165 'HTMLTableRowElement.insertCell',
166 'HTMLTableSectionElement.insertRow',
167 'HTMLTableSectionElement.rows',
157 'IDBCursor.delete', 168 'IDBCursor.delete',
158 'IDBCursor.update', 169 'IDBCursor.update',
159 'IDBDatabase.createObjectStore', 170 'IDBDatabase.createObjectStore',
160 'IDBFactory.deleteDatabase', 171 'IDBFactory.deleteDatabase',
161 'IDBFactory.webkitGetDatabaseNames', 172 'IDBFactory.webkitGetDatabaseNames',
162 'IDBFactory.open', 173 'IDBFactory.open',
163 'IDBIndex.count', 174 'IDBIndex.count',
164 'IDBIndex.get', 175 'IDBIndex.get',
165 'IDBIndex.getKey', 176 'IDBIndex.getKey',
166 'IDBIndex.openCursor', 177 'IDBIndex.openCursor',
(...skipping 454 matching lines...) Expand 10 before | Expand all | Expand 10 after
621 632
622 # We're looking for a sequence of letters which start with capital letter 633 # We're looking for a sequence of letters which start with capital letter
623 # then a series of caps and finishes with either the end of the string or 634 # then a series of caps and finishes with either the end of the string or
624 # a capital letter. 635 # a capital letter.
625 # The [0-9] check is for names such as 2D or 3D 636 # The [0-9] check is for names such as 2D or 3D
626 # The following test cases should match as: 637 # The following test cases should match as:
627 # WebKitCSSFilterValue: WebKit(C)(SS)(F)ilterValue 638 # WebKitCSSFilterValue: WebKit(C)(SS)(F)ilterValue
628 # XPathNSResolver: (X)()(P)ath(N)(S)(R)esolver (no change) 639 # XPathNSResolver: (X)()(P)ath(N)(S)(R)esolver (no change)
629 # IFrameElement: (I)()(F)rameElement (no change) 640 # IFrameElement: (I)()(F)rameElement (no change)
630 return re.sub(r'([A-Z])([A-Z]{2,})([A-Z]|$)', toLower, name) 641 return re.sub(r'([A-Z])([A-Z]{2,})([A-Z]|$)', toLower, name)
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698