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

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

Issue 1987073002: Strip unused functionality from dart:html and fix strong mode errors. Switch from blacklisting pure… (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 4 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
OLDNEW
1 #!/usr/bin/python 1 #!/usr/bin/python
2 # Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file 2 # Copyright (c) 2011, 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 5
6 """Module to manage IDL files.""" 6 """Module to manage IDL files."""
7 7
8 import copy 8 import copy
9 import pickle 9 import pickle
10 import logging 10 import logging
(...skipping 315 matching lines...) Expand 10 before | Expand all | Expand 10 after
326 if not(parent_interface in walk_result): 326 if not(parent_interface in walk_result):
327 # Interface has multi-inherited don't add interfaces more than once 327 # Interface has multi-inherited don't add interfaces more than once
328 # to our parent result list. 328 # to our parent result list.
329 walk_result.append(parent_interface) 329 walk_result.append(parent_interface)
330 walk(parent_interface.parents, walk_result) 330 walk(parent_interface.parents, walk_result)
331 return walk_result 331 return walk_result
332 332
333 result = [] 333 result = []
334 if interface.parents: 334 if interface.parents:
335 parent = interface.parents[0] 335 parent = interface.parents[0]
336 if (IsPureInterface(parent.type.id) or 336 if (IsPureInterface(parent.type.id, self) or
337 (propagate_event_target and parent.type.id == 'EventTarget')): 337 (propagate_event_target and parent.type.id == 'EventTarget')):
338 result = walk(interface.parents, []) 338 result = walk(interface.parents, [])
339 else: 339 else:
340 result = walk(interface.parents[1:], []) 340 result = walk(interface.parents[1:], [])
341 341
342 return result 342 return result
343 343
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698