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

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

Issue 2159183003: Revert "Don't call _ensureRequestAnimationFrame in Dartium." (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Created 4 years, 5 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
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 384 matching lines...) Expand 10 before | Expand all | Expand 10 after
395 'Window.scrollY', 395 'Window.scrollY',
396 'Window.pageXOffset', 396 'Window.pageXOffset',
397 'Window.pageYOffset', 397 'Window.pageYOffset',
398 398
399 'WindowTimers.clearInterval', 399 'WindowTimers.clearInterval',
400 'WindowTimers.clearTimeout', 400 'WindowTimers.clearTimeout',
401 'WindowTimers.setInterval', 401 'WindowTimers.setInterval',
402 'WindowTimers.setTimeout', 402 'WindowTimers.setTimeout',
403 'Window.moveTo', 403 'Window.moveTo',
404 'Window.requestAnimationFrame', 404 'Window.requestAnimationFrame',
405 'Window.cancelAnimationFrame',
406 'Window.setInterval', 405 'Window.setInterval',
407 'Window.setTimeout', 406 'Window.setTimeout',
408 ]) 407 ])
409 408
410 # Members from the standard dom that exist in the dart:html library with 409 # Members from the standard dom that exist in the dart:html library with
411 # identical functionality but with cleaner names. 410 # identical functionality but with cleaner names.
412 renamed_html_members = monitored.Dict('htmlrenamer.renamed_html_members', { 411 renamed_html_members = monitored.Dict('htmlrenamer.renamed_html_members', {
413 'ConsoleBase.assert': 'assertCondition', 412 'ConsoleBase.assert': 'assertCondition',
414 'CSSKeyframesRule.insertRule': 'appendRule', 413 'CSSKeyframesRule.insertRule': 'appendRule',
415 'DirectoryEntry.getDirectory': '_getDirectory', 414 'DirectoryEntry.getDirectory': '_getDirectory',
(...skipping 615 matching lines...) Expand 10 before | Expand all | Expand 10 after
1031 1030
1032 # We're looking for a sequence of letters which start with capital letter 1031 # We're looking for a sequence of letters which start with capital letter
1033 # then a series of caps and finishes with either the end of the string or 1032 # then a series of caps and finishes with either the end of the string or
1034 # a capital letter. 1033 # a capital letter.
1035 # The [0-9] check is for names such as 2D or 3D 1034 # The [0-9] check is for names such as 2D or 3D
1036 # The following test cases should match as: 1035 # The following test cases should match as:
1037 # WebKitCSSFilterValue: WebKit(C)(SS)(F)ilterValue 1036 # WebKitCSSFilterValue: WebKit(C)(SS)(F)ilterValue
1038 # XPathNSResolver: (X)()(P)ath(N)(S)(R)esolver (no change) 1037 # XPathNSResolver: (X)()(P)ath(N)(S)(R)esolver (no change)
1039 # IFrameElement: (I)()(F)rameElement (no change) 1038 # IFrameElement: (I)()(F)rameElement (no change)
1040 return re.sub(r'([A-Z])([A-Z]{2,})([A-Z]|$)', toLower, name) 1039 return re.sub(r'([A-Z])([A-Z]{2,})([A-Z]|$)', toLower, name)
OLDNEW
« no previous file with comments | « sdk/lib/html/dartium/html_dartium.dart ('k') | tools/dom/templates/html/impl/impl_Window.darttemplate » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698