Changeset 57163 in webkit
- Timestamp:
- Apr 6, 2010 12:50:58 PM (14 years ago)
- Location:
- trunk/WebCore
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/WebCore/ChangeLog
r57162 r57163 1 2010-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 1 13 2010-04-06 Evan Stade <estade@chromium.org> 2 14 -
trunk/WebCore/bindings/scripts/CodeGeneratorJS.pm
r57134 r57163 1467 1467 my $implSetterFunctionName = $codeGenerator->WK_ucfirst($name); 1468 1468 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 1469 1475 push(@implContent, "void ${putFunctionName}(ExecState* exec, JSObject* thisObject, JSValue value)\n"); 1470 1476 push(@implContent, "{\n"); … … 1535 1541 } 1536 1542 1537 push(@implContent, "}\n\n"); 1543 push(@implContent, "}\n"); 1544 1545 if ($conditional) { 1546 push(@implContent, "#endif\n"); 1547 } 1548 1549 push(@implContent, "\n"); 1538 1550 } 1539 1551 }
Note: See TracChangeset
for help on using the changeset viewer.