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

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

Issue 2124863002: Fix animationFrameRequest for dartium. (Closed) Base URL: git@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',
405 'Window.setInterval', 406 'Window.setInterval',
406 'Window.setTimeout', 407 'Window.setTimeout',
407 408
408 'XMLHttpRequest.send', 409 'XMLHttpRequest.send',
409 ]) 410 ])
410 411
411 # Members from the standard dom that exist in the dart:html library with 412 # Members from the standard dom that exist in the dart:html library with
412 # identical functionality but with cleaner names. 413 # identical functionality but with cleaner names.
413 renamed_html_members = monitored.Dict('htmlrenamer.renamed_html_members', { 414 renamed_html_members = monitored.Dict('htmlrenamer.renamed_html_members', {
414 'ConsoleBase.assert': 'assertCondition', 415 'ConsoleBase.assert': 'assertCondition',
(...skipping 617 matching lines...) Expand 10 before | Expand all | Expand 10 after
1032 1033
1033 # We're looking for a sequence of letters which start with capital letter 1034 # We're looking for a sequence of letters which start with capital letter
1034 # then a series of caps and finishes with either the end of the string or 1035 # then a series of caps and finishes with either the end of the string or
1035 # a capital letter. 1036 # a capital letter.
1036 # The [0-9] check is for names such as 2D or 3D 1037 # The [0-9] check is for names such as 2D or 3D
1037 # The following test cases should match as: 1038 # The following test cases should match as:
1038 # WebKitCSSFilterValue: WebKit(C)(SS)(F)ilterValue 1039 # WebKitCSSFilterValue: WebKit(C)(SS)(F)ilterValue
1039 # XPathNSResolver: (X)()(P)ath(N)(S)(R)esolver (no change) 1040 # XPathNSResolver: (X)()(P)ath(N)(S)(R)esolver (no change)
1040 # IFrameElement: (I)()(F)rameElement (no change) 1041 # IFrameElement: (I)()(F)rameElement (no change)
1041 return re.sub(r'([A-Z])([A-Z]{2,})([A-Z]|$)', toLower, name) 1042 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