Changeset 58749 in webkit


Ignore:
Timestamp:
May 4, 2010 4:16:20 AM (14 years ago)
Author:
xan@webkit.org
Message:

2010-05-04 Xan Lopez <xlopez@igalia.com>

Reviewed by Holger Freyther.

[GTK] GObject DOM bindings
https://bugs.webkit.org/show_bug.cgi?id=33590

Use helper functions from CodeGenerator.pm to figure out whether a
type is "fundamental" or not (basically whether it's anything
other than a string or a non-pointer type).

  • bindings/scripts/CodeGeneratorGObject.pm:
Location:
trunk/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/WebCore/ChangeLog

    r58748 r58749  
     12010-05-04  Xan Lopez  <xlopez@igalia.com>
     2
     3        Reviewed by Holger Freyther.
     4
     5        [GTK] GObject DOM bindings
     6        https://bugs.webkit.org/show_bug.cgi?id=33590
     7
     8        Use helper functions from CodeGenerator.pm to figure out whether a
     9        type is "fundamental" or not (basically whether it's anything
     10        other than a string or a non-pointer type).
     11
     12        * bindings/scripts/CodeGeneratorGObject.pm:
     13
    1142010-04-30  Alexander Pavlov  <apavlov@chromium.org>
    215
  • trunk/WebCore/bindings/scripts/CodeGeneratorGObject.pm

    r58633 r58749  
    262262    my $type = shift;
    263263
    264     return 0 if $type eq "DOMString";
    265     return 0 if $type eq "CompareHow";
    266     return 0 if $type eq "float";
    267     return 0 if $type eq "double";
    268     return 0 if $type eq "boolean";
    269     return 0 if $type eq "char";
    270     return 0 if $type eq "long";
    271     return 0 if $type eq "long long";
    272     return 0 if $type eq "short";
    273     return 0 if $type eq "uchar";
    274     return 0 if $type eq "unsigned";
    275     return 0 if $type eq "int";
    276     return 0 if $type eq "unsigned int";
    277     return 0 if $type eq "unsigned long";
    278     return 0 if $type eq "unsigned long long";
    279     return 0 if $type eq "unsigned short";
    280     return 0 if $type eq "void";
    281 
     264    return 0 if $codeGenerator->IsNonPointerType($type) || $codeGenerator->IsStringType($type);
    282265    return 1;
    283266}
Note: See TracChangeset for help on using the changeset viewer.