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

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

Issue 14954007: Changes for webkit roll 148757-149482 (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 7 years, 7 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
« no previous file with comments | « tests/html/html.status ('k') | tools/dom/scripts/idlnode.py » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 346 matching lines...) Expand 10 before | Expand all | Expand 10 after
357 357
358 # Members and classes from the dom that should be removed completely from 358 # Members and classes from the dom that should be removed completely from
359 # dart:html. These could be expressed in the IDL instead but expressing this 359 # dart:html. These could be expressed in the IDL instead but expressing this
360 # as a simple table instead is more concise. 360 # as a simple table instead is more concise.
361 # Syntax is: ClassName.(get\:|set\:|call\:|on\:)?MemberName 361 # Syntax is: ClassName.(get\:|set\:|call\:|on\:)?MemberName
362 # Using get: and set: is optional and should only be used when a getter needs 362 # Using get: and set: is optional and should only be used when a getter needs
363 # to be suppressed but not the setter, etc. 363 # to be suppressed but not the setter, etc.
364 # TODO(jacobr): cleanup and augment this list. 364 # TODO(jacobr): cleanup and augment this list.
365 _removed_html_members = monitored.Set('htmlrenamer._removed_html_members', [ 365 _removed_html_members = monitored.Set('htmlrenamer._removed_html_members', [
366 'Attr.*', 366 'Attr.*',
367 'AudioBufferSourceNode.looping', # TODO(vsm): Use deprecated IDL annotation
367 'CSSStyleDeclaration.getPropertyCSSValue', 368 'CSSStyleDeclaration.getPropertyCSSValue',
368 'CanvasRenderingContext2D.clearShadow', 369 'CanvasRenderingContext2D.clearShadow',
369 'CanvasRenderingContext2D.drawImageFromRect', 370 'CanvasRenderingContext2D.drawImageFromRect',
370 'CanvasRenderingContext2D.setAlpha', 371 'CanvasRenderingContext2D.setAlpha',
371 'CanvasRenderingContext2D.setCompositeOperation', 372 'CanvasRenderingContext2D.setCompositeOperation',
372 'CanvasRenderingContext2D.setFillColor', 373 'CanvasRenderingContext2D.setFillColor',
373 'CanvasRenderingContext2D.setLineCap', 374 'CanvasRenderingContext2D.setLineCap',
374 'CanvasRenderingContext2D.setLineJoin', 375 'CanvasRenderingContext2D.setLineJoin',
375 'CanvasRenderingContext2D.setLineWidth', 376 'CanvasRenderingContext2D.setLineWidth',
376 'CanvasRenderingContext2D.setMiterLimit', 377 'CanvasRenderingContext2D.setMiterLimit',
(...skipping 230 matching lines...) Expand 10 before | Expand all | Expand 10 after
607 'Node.isSameNode', 608 'Node.isSameNode',
608 'Node.isSupported', 609 'Node.isSupported',
609 'Node.lookupNamespaceURI', 610 'Node.lookupNamespaceURI',
610 'Node.lookupPrefix', 611 'Node.lookupPrefix',
611 'Node.normalize', 612 'Node.normalize',
612 'Node.set:nodeValue', 613 'Node.set:nodeValue',
613 'NodeFilter.acceptNode', 614 'NodeFilter.acceptNode',
614 'NodeIterator.expandEntityReferences', 615 'NodeIterator.expandEntityReferences',
615 'NodeIterator.filter', 616 'NodeIterator.filter',
616 'NodeList.item', 617 'NodeList.item',
618 'Performance.webkitClearMarks',
619 'Performance.webkitClearMeasures',
620 'Performance.webkitGetEntries',
621 'Performance.webkitGetEntriesByName',
622 'Performance.webkitGetEntriesByType',
623 'Performance.webkitMark',
624 'Performance.webkitMeasure',
617 'ShadowRoot.getElementsByTagNameNS', 625 'ShadowRoot.getElementsByTagNameNS',
618 'SVGStyledElement.getPresentationAttribute', 626 'SVGStyledElement.getPresentationAttribute',
619 'WheelEvent.wheelDelta', 627 'WheelEvent.wheelDelta',
620 'WorkerContext.webkitIndexedDB', 628 'WorkerContext.webkitIndexedDB',
621 # TODO(jacobr): should these be removed? 629 # TODO(jacobr): should these be removed?
622 'Document.close', 630 'Document.close',
623 'Document.hasFocus', 631 'Document.hasFocus',
624 ]) 632 ])
625 633
626 # Manual dart: library name lookup. 634 # Manual dart: library name lookup.
(...skipping 133 matching lines...) Expand 10 before | Expand all | Expand 10 after
760 768
761 # We're looking for a sequence of letters which start with capital letter 769 # We're looking for a sequence of letters which start with capital letter
762 # then a series of caps and finishes with either the end of the string or 770 # then a series of caps and finishes with either the end of the string or
763 # a capital letter. 771 # a capital letter.
764 # The [0-9] check is for names such as 2D or 3D 772 # The [0-9] check is for names such as 2D or 3D
765 # The following test cases should match as: 773 # The following test cases should match as:
766 # WebKitCSSFilterValue: WebKit(C)(SS)(F)ilterValue 774 # WebKitCSSFilterValue: WebKit(C)(SS)(F)ilterValue
767 # XPathNSResolver: (X)()(P)ath(N)(S)(R)esolver (no change) 775 # XPathNSResolver: (X)()(P)ath(N)(S)(R)esolver (no change)
768 # IFrameElement: (I)()(F)rameElement (no change) 776 # IFrameElement: (I)()(F)rameElement (no change)
769 return re.sub(r'([A-Z])([A-Z]{2,})([A-Z]|$)', toLower, name) 777 return re.sub(r'([A-Z])([A-Z]{2,})([A-Z]|$)', toLower, name)
OLDNEW
« no previous file with comments | « tests/html/html.status ('k') | tools/dom/scripts/idlnode.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698