mirror of
https://github.com/dart-lang/sdk
synced 2024-11-02 06:20:13 +00:00
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 .
This commit is contained in:
parent
0b29970605
commit
fd58be1816
1 changed files with 42 additions and 0 deletions
|
@ -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)):
|
||||
|
|
Loading…
Reference in a new issue