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 |