From fd58be18167f878ffa325dae32d66823d0fa0304 Mon Sep 17 00:00:00 2001 From: Jacob Richman Date: Tue, 24 May 2016 10:25:31 -0700 Subject: [PATCH] Add back in pure_interfaces list that turned out to still be needed. The checked in generated code matches this cl. BUG= Review URL: https://codereview.chromium.org/2005143004 . --- tools/dom/scripts/generator.py | 42 ++++++++++++++++++++++++++++++++++ 1 file changed, 42 insertions(+) diff --git a/tools/dom/scripts/generator.py b/tools/dom/scripts/generator.py index 125d64a040b..db475215bd8 100644 --- a/tools/dom/scripts/generator.py +++ b/tools/dom/scripts/generator.py @@ -14,6 +14,46 @@ import re from htmlrenamer import custom_html_constructors, html_interface_renames, \ typed_array_renames +_pure_interfaces = monitored.Set('generator._pure_interfaces', [ + 'AbstractWorker', + 'CanvasPathMethods', + 'ChildNode', + 'DocumentAnimation', + 'DocumentFontFaceSet', + 'DocumentFullscreen', + 'DocumentXPathEvaluator', + 'ElementAnimation', + 'ElementFullscreen', + 'EventListener', + 'GlobalEventHandlers', + 'ImageBitmapFactories', + 'MediaQueryListListener', + 'MouseEventHitRegion', + 'MutationCallback', + 'NavigatorCPU', + 'NavigatorEvents', + 'NavigatorID', + 'NavigatorLanguage', + 'NavigatorOnLine', + 'ParentNode', + 'SVGDocument', + 'SVGExternalResourcesRequired', + 'SVGFilterPrimitiveStandardAttributes', + 'SVGFitToViewBox', + 'SVGTests', + 'SVGURIReference', + 'SVGZoomAndPan', + 'TimeoutHandler', + 'URLUtils', + 'URLUtilsReadOnly', + 'WebGLRenderingContextBase', + 'WindowBase64', + 'WindowEventHandlers', + 'WindowImageBitmapFactories', + 'WindowPagePopup', + 'WindowTimers', + ]) + _safe_interfaces = monitored.Set('generator._safe_interfaces', [ 'double', 'Float32Array', @@ -149,6 +189,8 @@ _safe_interfaces_legacy = monitored.Set('generator._safe_interfaces_legacy', [ # SpeechGrammarList and friends def IsPureInterface(interface_name, database): + if (interface_name in _pure_interfaces): + return True if (interface_name in _safe_interfaces or interface_name in _safe_interfaces_legacy or database.HasInterface(interface_name)):