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

Side by Side Diff: lib/html/scripts/systemhtml.py

Issue 11047008: CSSStyleDeclaration.getPropertyValue returns empty string instead of null. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years, 2 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 | Annotate | Revision Log
OLDNEW
1 #!/usr/bin/python 1 #!/usr/bin/python
2 # Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 2 # Copyright (c) 2012, 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 """This module provides shared functionality for the system to generate 6 """This module provides shared functionality for the system to generate
7 Dart:html APIs from the IDL database.""" 7 Dart:html APIs from the IDL database."""
8 8
9 import emitter 9 import emitter
10 10
11 from systembase import * 11 from systembase import *
12 12
13 _js_custom_members = set([ 13 _js_custom_members = set([
14 'CSSStyleDeclaration.getPropertyValue',
14 'CSSStyleDeclaration.setProperty', 15 'CSSStyleDeclaration.setProperty',
15 'Element.insertAdjacentElement', 16 'Element.insertAdjacentElement',
16 'Element.insertAdjacentHTML', 17 'Element.insertAdjacentHTML',
17 'Element.insertAdjacentText', 18 'Element.insertAdjacentText',
18 'Element.remove', 19 'Element.remove',
19 'ElementEvents.mouseWheel', 20 'ElementEvents.mouseWheel',
20 'IDBDatabase.transaction', 21 'IDBDatabase.transaction',
21 'IFrameElement.contentWindow', 22 'IFrameElement.contentWindow',
22 'MouseEvent.offsetX', 23 'MouseEvent.offsetX',
23 'MouseEvent.offsetY', 24 'MouseEvent.offsetY',
(...skipping 999 matching lines...) Expand 10 before | Expand all | Expand 10 after
1023 1024
1024 library_emitter = self._multiemitter.FileEmitter(library_file_path) 1025 library_emitter = self._multiemitter.FileEmitter(library_file_path)
1025 library_file_dir = os.path.dirname(library_file_path) 1026 library_file_dir = os.path.dirname(library_file_path)
1026 auxiliary_dir = os.path.relpath(auxiliary_dir, library_file_dir) 1027 auxiliary_dir = os.path.relpath(auxiliary_dir, library_file_dir)
1027 imports_emitter = library_emitter.Emit( 1028 imports_emitter = library_emitter.Emit(
1028 self._template, AUXILIARY_DIR=massage_path(auxiliary_dir)) 1029 self._template, AUXILIARY_DIR=massage_path(auxiliary_dir))
1029 for path in sorted(self._path_to_emitter.keys()): 1030 for path in sorted(self._path_to_emitter.keys()):
1030 relpath = os.path.relpath(path, library_file_dir) 1031 relpath = os.path.relpath(path, library_file_dir)
1031 imports_emitter.Emit( 1032 imports_emitter.Emit(
1032 "#source('$PATH');\n", PATH=massage_path(relpath)) 1033 "#source('$PATH');\n", PATH=massage_path(relpath))
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698