Changeset 164980 in webkit


Ignore:
Timestamp:
Mar 3, 2014 2:16:55 AM (10 years ago)
Author:
commit-queue@webkit.org
Message:

[GTK] webkit_dom_range_compare_boundary_points fails when 0 is passed as how parameter
https://bugs.webkit.org/show_bug.cgi?id=129145

Patch by Tomas Popela <tpopela@redhat.com> on 2014-03-03
Reviewed by Carlos Garcia Campos.

While generating GObject DOM API the generator should skip non pointer
types while generating the g_return_val_if_fail macro.
This will avoid the situation when Range.START_TO_START is defined as 0,
thus the webkit_dom_range_compare_boundary_points function will fail
everytime it is called with 0 as how value.

  • bindings/scripts/CodeGeneratorGObject.pm:

(GenerateFunction):

Location:
trunk/Source/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r164979 r164980  
     12014-03-03  Tomas Popela  <tpopela@redhat.com>
     2
     3        [GTK] webkit_dom_range_compare_boundary_points fails when 0 is passed as how parameter
     4        https://bugs.webkit.org/show_bug.cgi?id=129145
     5
     6        Reviewed by Carlos Garcia Campos.
     7
     8        While generating GObject DOM API the generator should skip non pointer
     9        types while generating the g_return_val_if_fail macro.
     10        This will avoid the situation when Range.START_TO_START is defined as 0,
     11        thus the webkit_dom_range_compare_boundary_points function will fail
     12        everytime it is called with 0 as how value.
     13
     14        * bindings/scripts/CodeGeneratorGObject.pm:
     15        (GenerateFunction):
     16
    1172014-03-03  Jozsef Berta  <jberta.u-szeged@partner.samsung.com>
    218
  • trunk/Source/WebCore/bindings/scripts/CodeGeneratorGObject.pm

    r162766 r164980  
    10541054        my $paramName = $param->name;
    10551055        my $paramIDLType = $param->type;
    1056         my $paramTypeIsPrimitive = $codeGenerator->IsPrimitiveType($paramIDLType);
    1057         my $paramIsGDOMType = IsGDOMClassType($paramIDLType);
    1058         if (!$paramTypeIsPrimitive) {
     1056        my $paramTypeIsPointer = !$codeGenerator->IsNonPointerType($paramIDLType);
     1057        if ($paramTypeIsPointer) {
    10591058            $gReturnMacro = GetGReturnMacro($paramName, $paramIDLType, $returnType, $functionName);
    10601059            push(@cBody, $gReturnMacro);
Note: See TracChangeset for help on using the changeset viewer.