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

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

Issue 27602002: Renaming Node.document back to Node.ownerDocument (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 337 matching lines...) Expand 10 before | Expand all | Expand 10 after
348 'Window.webkitConvertPointFromNodeToPage': '_convertPointFromNodeToPage', 348 'Window.webkitConvertPointFromNodeToPage': '_convertPointFromNodeToPage',
349 'Window.webkitConvertPointFromPageToNode': '_convertPointFromPageToNode', 349 'Window.webkitConvertPointFromPageToNode': '_convertPointFromPageToNode',
350 'Window.webkitNotifications': 'notifications', 350 'Window.webkitNotifications': 'notifications',
351 'Window.webkitRequestFileSystem': '_requestFileSystem', 351 'Window.webkitRequestFileSystem': '_requestFileSystem',
352 'Window.webkitResolveLocalFileSystemURL': 'resolveLocalFileSystemUrl', 352 'Window.webkitResolveLocalFileSystemURL': 'resolveLocalFileSystemUrl',
353 'Element.webkitMatchesSelector' : 'matches', 353 'Element.webkitMatchesSelector' : 'matches',
354 'Navigator.webkitGetUserMedia': '_getUserMedia', 354 'Navigator.webkitGetUserMedia': '_getUserMedia',
355 'Node.appendChild': 'append', 355 'Node.appendChild': 'append',
356 'Node.cloneNode': 'clone', 356 'Node.cloneNode': 'clone',
357 'Node.nextSibling': 'nextNode', 357 'Node.nextSibling': 'nextNode',
358 'Node.ownerDocument': 'document',
359 'Node.parentElement': 'parent', 358 'Node.parentElement': 'parent',
360 'Node.previousSibling': 'previousNode', 359 'Node.previousSibling': 'previousNode',
361 'Node.textContent': 'text', 360 'Node.textContent': 'text',
362 'SVGElement.className': '_svgClassName', 361 'SVGElement.className': '_svgClassName',
363 'SVGStopElement.offset': 'gradientOffset', 362 'SVGStopElement.offset': 'gradientOffset',
364 'URL.createObjectURL': 'createObjectUrl', 363 'URL.createObjectURL': 'createObjectUrl',
365 'URL.revokeObjectURL': 'revokeObjectUrl', 364 'URL.revokeObjectURL': 'revokeObjectUrl',
366 'WebGLRenderingContext.texSubImage2D': '_texSubImageImage2D', 365 'WebGLRenderingContext.texSubImage2D': '_texSubImageImage2D',
367 #'WorkerContext.webkitRequestFileSystem': '_requestFileSystem', 366 #'WorkerContext.webkitRequestFileSystem': '_requestFileSystem',
368 #'WorkerContext.webkitRequestFileSystemSync': '_requestFileSystemSync', 367 #'WorkerContext.webkitRequestFileSystemSync': '_requestFileSystemSync',
(...skipping 574 matching lines...) Expand 10 before | Expand all | Expand 10 after
943 942
944 # We're looking for a sequence of letters which start with capital letter 943 # We're looking for a sequence of letters which start with capital letter
945 # then a series of caps and finishes with either the end of the string or 944 # then a series of caps and finishes with either the end of the string or
946 # a capital letter. 945 # a capital letter.
947 # The [0-9] check is for names such as 2D or 3D 946 # The [0-9] check is for names such as 2D or 3D
948 # The following test cases should match as: 947 # The following test cases should match as:
949 # WebKitCSSFilterValue: WebKit(C)(SS)(F)ilterValue 948 # WebKitCSSFilterValue: WebKit(C)(SS)(F)ilterValue
950 # XPathNSResolver: (X)()(P)ath(N)(S)(R)esolver (no change) 949 # XPathNSResolver: (X)()(P)ath(N)(S)(R)esolver (no change)
951 # IFrameElement: (I)()(F)rameElement (no change) 950 # IFrameElement: (I)()(F)rameElement (no change)
952 return re.sub(r'([A-Z])([A-Z]{2,})([A-Z]|$)', toLower, name) 951 return re.sub(r'([A-Z])([A-Z]{2,})([A-Z]|$)', toLower, name)
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698