Changeset 155778 in webkit


Ignore:
Timestamp:
Sep 14, 2013 12:21:01 PM (11 years ago)
Author:
berto@igalia.com
Message:

Missing allow-none introspection annotation for DomDocument.evaluate method
https://bugs.webkit.org/show_bug.cgi?id=118310

Reviewed by Martin Robinson.

Add (allow-none) introspection annotation to parameters that can
be NULL.

  • bindings/scripts/CodeGeneratorGObject.pm:

(GenerateFunction):

Location:
trunk/Source/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r155777 r155778  
     12013-09-14  Alberto Garcia  <berto@igalia.com>
     2
     3        Missing  allow-none introspection annotation for DomDocument.evaluate method
     4        https://bugs.webkit.org/show_bug.cgi?id=118310
     5
     6        Reviewed by Martin Robinson.
     7
     8        Add (allow-none) introspection annotation to parameters that can
     9        be NULL.
     10
     11        * bindings/scripts/CodeGeneratorGObject.pm:
     12        (GenerateFunction):
     13
    1142013-09-14  Sam Weinig  <sam@webkit.org>
    215
  • trunk/Source/WebCore/bindings/scripts/CodeGeneratorGObject.pm

    r155435 r155778  
    940940        $paramType =~ s/\*$//;
    941941        my $paramName = $param->name;
    942         push(@hBody, " * \@${paramName}: A #${paramType}\n");
     942        my $paramAnnotations = "";
     943        if (ParamCanBeNull($functionName, $paramName)) {
     944            $paramAnnotations = " (allow-none):";
     945        }
     946        push(@hBody, " * \@${paramName}:${paramAnnotations} A #${paramType}\n");
    943947    }
    944948    push(@hBody, " * \@error: #GError\n") if $raisesException;
Note: See TracChangeset for help on using the changeset viewer.