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 224 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
235 'CanvasRenderingContext2D.setLineJoin', | 235 'CanvasRenderingContext2D.setLineJoin', |
236 'CanvasRenderingContext2D.setLineWidth', | 236 'CanvasRenderingContext2D.setLineWidth', |
237 'CanvasRenderingContext2D.setMiterLimit', | 237 'CanvasRenderingContext2D.setMiterLimit', |
238 'CanvasRenderingContext2D.setShadow', | 238 'CanvasRenderingContext2D.setShadow', |
239 'CanvasRenderingContext2D.setStrokeColor', | 239 'CanvasRenderingContext2D.setStrokeColor', |
240 'CanvasRenderingContext2D.webkitLineDashOffset', | 240 'CanvasRenderingContext2D.webkitLineDashOffset', |
241 'CharacterData.remove', | 241 'CharacterData.remove', |
242 'DOMWindow.call:blur', | 242 'DOMWindow.call:blur', |
243 'DOMWindow.clientInformation', | 243 'DOMWindow.clientInformation', |
244 'DOMWindow.call:focus', | 244 'DOMWindow.call:focus', |
245 'DOMWindow.clearTimeout', | |
246 'DOMWindow.clearInterval', | |
247 'DOMWindow.get:frames', | 245 'DOMWindow.get:frames', |
248 'DOMWindow.get:length', | 246 'DOMWindow.get:length', |
249 'DOMWindow.prompt', | 247 'DOMWindow.prompt', |
250 'DOMWindow.setTimeout', | |
251 'DOMWindow.setInterval', | |
252 'DOMWindow.webkitCancelAnimationFrame', | 248 'DOMWindow.webkitCancelAnimationFrame', |
253 'DOMWindow.webkitCancelRequestAnimationFrame', | 249 'DOMWindow.webkitCancelRequestAnimationFrame', |
254 'DOMWindow.webkitIndexedDB', | 250 'DOMWindow.webkitIndexedDB', |
255 'DOMWindow.webkitRequestAnimationFrame', | 251 'DOMWindow.webkitRequestAnimationFrame', |
256 'Document.adoptNode', | 252 'Document.adoptNode', |
257 'Document.alinkColor', | 253 'Document.alinkColor', |
258 'Document.all', | 254 'Document.all', |
259 'Document.applets', | 255 'Document.applets', |
260 'Document.bgColor', | 256 'Document.bgColor', |
261 'Document.captureEvents', | 257 'Document.captureEvents', |
(...skipping 332 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
594 | 590 |
595 # We're looking for a sequence of letters which start with capital letter | 591 # We're looking for a sequence of letters which start with capital letter |
596 # then a series of caps and finishes with either the end of the string or | 592 # then a series of caps and finishes with either the end of the string or |
597 # a capital letter. | 593 # a capital letter. |
598 # The [0-9] check is for names such as 2D or 3D | 594 # The [0-9] check is for names such as 2D or 3D |
599 # The following test cases should match as: | 595 # The following test cases should match as: |
600 # WebKitCSSFilterValue: WebKit(C)(SS)(F)ilterValue | 596 # WebKitCSSFilterValue: WebKit(C)(SS)(F)ilterValue |
601 # XPathNSResolver: (X)()(P)ath(N)(S)(R)esolver (no change) | 597 # XPathNSResolver: (X)()(P)ath(N)(S)(R)esolver (no change) |
602 # IFrameElement: (I)()(F)rameElement (no change) | 598 # IFrameElement: (I)()(F)rameElement (no change) |
603 return re.sub(r'([A-Z])([A-Z]{2,})([A-Z]|$)', toLower, name) | 599 return re.sub(r'([A-Z])([A-Z]{2,})([A-Z]|$)', toLower, name) |
OLD | NEW |