Changeset 57163 in webkit


Ignore:
Timestamp:
Apr 6, 2010 12:50:58 PM (14 years ago)
Author:
eric@webkit.org
Message:

2010-04-06 Simon Hausmann <simon.hausmann@nokia.com>

Reviewed by Darin Adler.

JS code generator does not support feature conditional attributes that are writable
https://bugs.webkit.org/show_bug.cgi?id=37149

Write out the feature #ifdef not only for the getter, but also for the setter
function.

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

Legend:

Unmodified
Added
Removed
  • trunk/WebCore/ChangeLog

    r57162 r57163  
     12010-04-06  Simon Hausmann  <simon.hausmann@nokia.com>
     2
     3        Reviewed by Darin Adler.
     4
     5        JS code generator does not support feature conditional attributes that are writable
     6        https://bugs.webkit.org/show_bug.cgi?id=37149
     7
     8        Write out the feature #ifdef not only for the getter, but also for the setter
     9        function.
     10
     11        * bindings/scripts/CodeGeneratorJS.pm:
     12
    1132010-04-06  Evan Stade  <estade@chromium.org>
    214
  • trunk/WebCore/bindings/scripts/CodeGeneratorJS.pm

    r57134 r57163  
    14671467                        my $implSetterFunctionName = $codeGenerator->WK_ucfirst($name);
    14681468
     1469                        my $conditional = $attribute->signature->extendedAttributes->{"Conditional"};
     1470                        if ($conditional) {
     1471                            $conditionalString = "ENABLE(" . join(") && ENABLE(", split(/&/, $conditional)) . ")";
     1472                            push(@implContent, "#if ${conditionalString}\n");
     1473                        }
     1474
    14691475                        push(@implContent, "void ${putFunctionName}(ExecState* exec, JSObject* thisObject, JSValue value)\n");
    14701476                        push(@implContent, "{\n");
     
    15351541                        }
    15361542                       
    1537                         push(@implContent, "}\n\n");
     1543                        push(@implContent, "}\n");
     1544
     1545                        if ($conditional) {
     1546                            push(@implContent, "#endif\n");
     1547                        }
     1548
     1549                        push(@implContent, "\n");
    15381550                    }
    15391551                }
Note: See TracChangeset for help on using the changeset viewer.