| OLD | NEW |
| 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 331 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 342 'CanvasRenderingContext2D.drawImageFromRect', | 342 'CanvasRenderingContext2D.drawImageFromRect', |
| 343 'CanvasRenderingContext2D.setAlpha', | 343 'CanvasRenderingContext2D.setAlpha', |
| 344 'CanvasRenderingContext2D.setCompositeOperation', | 344 'CanvasRenderingContext2D.setCompositeOperation', |
| 345 'CanvasRenderingContext2D.setFillColor', | 345 'CanvasRenderingContext2D.setFillColor', |
| 346 'CanvasRenderingContext2D.setLineCap', | 346 'CanvasRenderingContext2D.setLineCap', |
| 347 'CanvasRenderingContext2D.setLineJoin', | 347 'CanvasRenderingContext2D.setLineJoin', |
| 348 'CanvasRenderingContext2D.setLineWidth', | 348 'CanvasRenderingContext2D.setLineWidth', |
| 349 'CanvasRenderingContext2D.setMiterLimit', | 349 'CanvasRenderingContext2D.setMiterLimit', |
| 350 'CanvasRenderingContext2D.setShadow', | 350 'CanvasRenderingContext2D.setShadow', |
| 351 'CanvasRenderingContext2D.setStrokeColor', | 351 'CanvasRenderingContext2D.setStrokeColor', |
| 352 'CanvasRenderingContext2D.webkitLineDash', |
| 352 'CanvasRenderingContext2D.webkitLineDashOffset', | 353 'CanvasRenderingContext2D.webkitLineDashOffset', |
| 353 'CharacterData.remove', | 354 'CharacterData.remove', |
| 354 'DOMWindow.call:blur', | 355 'DOMWindow.call:blur', |
| 355 'DOMWindow.clientInformation', | 356 'DOMWindow.clientInformation', |
| 356 'DOMWindow.call:focus', | 357 'DOMWindow.call:focus', |
| 357 'DOMWindow.get:frames', | 358 'DOMWindow.get:frames', |
| 358 'DOMWindow.get:length', | 359 'DOMWindow.get:length', |
| 359 'DOMWindow.prompt', | 360 'DOMWindow.prompt', |
| 360 'DOMWindow.webkitCancelAnimationFrame', | 361 'DOMWindow.webkitCancelAnimationFrame', |
| 361 'DOMWindow.webkitCancelRequestAnimationFrame', | 362 'DOMWindow.webkitCancelRequestAnimationFrame', |
| (...skipping 344 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 706 | 707 |
| 707 # We're looking for a sequence of letters which start with capital letter | 708 # We're looking for a sequence of letters which start with capital letter |
| 708 # then a series of caps and finishes with either the end of the string or | 709 # then a series of caps and finishes with either the end of the string or |
| 709 # a capital letter. | 710 # a capital letter. |
| 710 # The [0-9] check is for names such as 2D or 3D | 711 # The [0-9] check is for names such as 2D or 3D |
| 711 # The following test cases should match as: | 712 # The following test cases should match as: |
| 712 # WebKitCSSFilterValue: WebKit(C)(SS)(F)ilterValue | 713 # WebKitCSSFilterValue: WebKit(C)(SS)(F)ilterValue |
| 713 # XPathNSResolver: (X)()(P)ath(N)(S)(R)esolver (no change) | 714 # XPathNSResolver: (X)()(P)ath(N)(S)(R)esolver (no change) |
| 714 # IFrameElement: (I)()(F)rameElement (no change) | 715 # IFrameElement: (I)()(F)rameElement (no change) |
| 715 return re.sub(r'([A-Z])([A-Z]{2,})([A-Z]|$)', toLower, name) | 716 return re.sub(r'([A-Z])([A-Z]{2,})([A-Z]|$)', toLower, name) |
| OLD | NEW |