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

Unified Diff: Source/bindings/scripts/code_generator_v8.pm

Issue 131013002: IDL compiler: EventHandler attributes in Node interfaces (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: rename Created 6 years, 11 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | Source/bindings/scripts/unstable/v8_types.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/bindings/scripts/code_generator_v8.pm
diff --git a/Source/bindings/scripts/code_generator_v8.pm b/Source/bindings/scripts/code_generator_v8.pm
index 1e976f8246b656e81c06282074317af31902030b..d2f4c19630bbae5b0676334f8024f83686453cc4 100644
--- a/Source/bindings/scripts/code_generator_v8.pm
+++ b/Source/bindings/scripts/code_generator_v8.pm
@@ -202,6 +202,26 @@ my %typedArrayHash = ("ArrayBuffer" => [],
"Float64Array" => ["double", "v8::kExternalDoubleArray"],
);
+my %domNodeTypes = ("Attr" => 1,
+ "CDATASection" => 1,
+ "CharacterData" => 1,
+ "Comment" => 1,
+ "Document" => 1,
+ "DocumentFragment" => 1,
+ "DocumentType" => 1,
+ "Element" => 1,
+ "Entity" => 1,
+ "HTMLDocument" => 1,
+ "Node" => 1,
+ "Notation" => 1,
+ "ProcessingInstruction" => 1,
+ "ShadowRoot" => 1,
+ "SVGDocument" => 1,
+ "Text" => 1,
+ "TestNode" => 1,
+ "TestInterfaceNode" => 1,
+ );
+
my %callbackFunctionTypeHash = ();
my %enumTypeHash = ();
@@ -5606,28 +5626,10 @@ sub IsDOMNodeType
{
my $type = shift;
- return 1 if $type eq 'Attr';
- return 1 if $type eq 'CDATASection';
- return 1 if $type eq 'CharacterData';
- return 1 if $type eq 'Comment';
- return 1 if $type eq 'Document';
- return 1 if $type eq 'DocumentFragment';
- return 1 if $type eq 'DocumentType';
- return 1 if $type eq 'Element';
- return 1 if $type eq 'Entity';
- return 1 if $type eq 'HTMLDocument';
- return 1 if $type eq 'Node';
- return 1 if $type eq 'Notation';
- return 1 if $type eq 'ProcessingInstruction';
- return 1 if $type eq 'ShadowRoot';
- return 1 if $type eq 'SVGDocument';
- return 1 if $type eq 'Text';
-
+ return 1 if $domNodeTypes{$type};
return 1 if $type =~ /^HTML.*Element$/;
return 1 if $type =~ /^SVG.*Element$/;
- return 1 if $type eq 'TestNode';
-
return 0;
}
« no previous file with comments | « no previous file | Source/bindings/scripts/unstable/v8_types.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698