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

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

Issue 12094081: Support for Crome roll 176827->179299. (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 | « tools/dom/scripts/generator.py ('k') | 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 157 matching lines...) Expand 10 before | Expand all | Expand 10 after
168 'Element.webkitCreateShadowRoot': 'createShadowRoot', 168 'Element.webkitCreateShadowRoot': 'createShadowRoot',
169 'Element.webkitMatchesSelector' : 'matches', 169 'Element.webkitMatchesSelector' : 'matches',
170 'Navigator.webkitGetUserMedia': '_getUserMedia', 170 'Navigator.webkitGetUserMedia': '_getUserMedia',
171 'Node.cloneNode': 'clone', 171 'Node.cloneNode': 'clone',
172 'Node.nextSibling': 'nextNode', 172 'Node.nextSibling': 'nextNode',
173 'Node.ownerDocument': 'document', 173 'Node.ownerDocument': 'document',
174 'Node.parentElement': 'parent', 174 'Node.parentElement': 'parent',
175 'Node.previousSibling': 'previousNode', 175 'Node.previousSibling': 'previousNode',
176 'Node.textContent': 'text', 176 'Node.textContent': 'text',
177 'SVGElement.className': '$dom_svgClassName', 177 'SVGElement.className': '$dom_svgClassName',
178 'SVGStylable.className': '$dom_svgClassName',
179 'WorkerContext.webkitRequestFileSystem': 'requestFileSystem', 178 'WorkerContext.webkitRequestFileSystem': 'requestFileSystem',
180 'WorkerContext.webkitRequestFileSystemSync': 'requestFileSystemSync', 179 'WorkerContext.webkitRequestFileSystemSync': 'requestFileSystemSync',
181 'WorkerContext.webkitResolveLocalFileSystemSyncURL': 180 'WorkerContext.webkitResolveLocalFileSystemSyncURL':
182 'resolveLocalFileSystemSyncUrl', 181 'resolveLocalFileSystemSyncUrl',
183 'WorkerContext.webkitResolveLocalFileSystemURL': 182 'WorkerContext.webkitResolveLocalFileSystemURL':
184 'resolveLocalFileSystemUrl', 183 'resolveLocalFileSystemUrl',
185 }) 184 })
186 185
187 # Members and classes from the dom that should be removed completely from 186 # Members and classes from the dom that should be removed completely from
188 # dart:html. These could be expressed in the IDL instead but expressing this 187 # dart:html. These could be expressed in the IDL instead but expressing this
(...skipping 358 matching lines...) Expand 10 before | Expand all | Expand 10 after
547 546
548 # We're looking for a sequence of letters which start with capital letter 547 # We're looking for a sequence of letters which start with capital letter
549 # then a series of caps and finishes with either the end of the string or 548 # then a series of caps and finishes with either the end of the string or
550 # a capital letter. 549 # a capital letter.
551 # The [0-9] check is for names such as 2D or 3D 550 # The [0-9] check is for names such as 2D or 3D
552 # The following test cases should match as: 551 # The following test cases should match as:
553 # WebKitCSSFilterValue: WebKit(C)(SS)(F)ilterValue 552 # WebKitCSSFilterValue: WebKit(C)(SS)(F)ilterValue
554 # XPathNSResolver: (X)()(P)ath(N)(S)(R)esolver (no change) 553 # XPathNSResolver: (X)()(P)ath(N)(S)(R)esolver (no change)
555 # IFrameElement: (I)()(F)rameElement (no change) 554 # IFrameElement: (I)()(F)rameElement (no change)
556 return re.sub(r'([A-Z])([A-Z]{2,})([A-Z]|$)', toLower, name) 555 return re.sub(r'([A-Z])([A-Z]{2,})([A-Z]|$)', toLower, name)
OLDNEW
« no previous file with comments | « tools/dom/scripts/generator.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698