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

Unified Diff: tools/dom/scripts/htmlrenamer.py

Issue 13744005: Making supressed DOM types abstract (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 8 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « sdk/lib/web_sql/dartium/web_sql_dartium.dart ('k') | tools/dom/scripts/systemhtml.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/dom/scripts/htmlrenamer.py
diff --git a/tools/dom/scripts/htmlrenamer.py b/tools/dom/scripts/htmlrenamer.py
index 971cd27693d1264ef5c34c3eeb5ef6dbb02728ea..b86107f44ad490178fc4c79bd61a5803002745f8 100644
--- a/tools/dom/scripts/htmlrenamer.py
+++ b/tools/dom/scripts/htmlrenamer.py
@@ -41,6 +41,7 @@ html_interface_renames = monitored.Dict('htmlrenamer.html_interface_renames', {
'SVGDocument': 'SvgDocument', # Manual to avoid name conflicts.
'SVGElement': 'SvgElement', # Manual to avoid name conflicts.
'SVGException': 'SvgException', # Manual of avoid conflict with Exception.
+ 'SVGGradientElement': '_GradientElement',
'SVGSVGElement': 'SvgSvgElement', # Manual to avoid name conflicts.
'WebGLVertexArrayObjectOES': 'VertexArrayObject',
'WebKitAnimationEvent': 'AnimationEvent',
@@ -92,7 +93,6 @@ _removed_html_interfaces = [
'SVGFontFaceUriElement',
'SVGGlyphElement',
'SVGGlyphRefElement',
- 'SVGGradientElement', # Currently not supported anywhere.
'SVGHKernElement',
'SVGMPathElement',
'SVGMissingGlyphElement',
@@ -673,6 +673,11 @@ class HtmlRenamer(object):
return True
return False
+ def ShouldSuppressInterface(self, interface):
+ """ Returns true if the interface should be suppressed."""
+ if interface.id in _removed_html_interfaces:
+ return True
+
def _FindMatch(self, interface, member, member_prefix, candidates):
for interface in self._database.Hierarchy(interface):
member_name = interface.id + '.' + member
« no previous file with comments | « sdk/lib/web_sql/dartium/web_sql_dartium.dart ('k') | tools/dom/scripts/systemhtml.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698