Changeset 46229 in webkit


Ignore:
Timestamp:
Jul 22, 2009 11:55:05 AM (15 years ago)
Author:
levin@chromium.org
Message:

2009-07-22 Paul Godavari <paul@chromium.org>

Reviewed by Darin Fisher.

Chromium has a build break after removal of JSRGBColor bindings
https://bugs.webkit.org/show_bug.cgi?id=27548

Fix a build break in Chromium V8 after the JSRGBColor bindings change:
https://bugs.webkit.org/show_bug.cgi?id=27242

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

Legend:

Unmodified
Added
Removed
  • trunk/WebCore/ChangeLog

    r46226 r46229  
     12009-07-22  Paul Godavari  <paul@chromium.org>
     2
     3        Reviewed by Darin Fisher.
     4
     5        Chromium has a build break after removal of JSRGBColor bindings
     6        https://bugs.webkit.org/show_bug.cgi?id=27548
     7
     8        Fix a build break in Chromium V8 after the JSRGBColor bindings change:
     9        https://bugs.webkit.org/show_bug.cgi?id=27242
     10
     11        * bindings/scripts/CodeGeneratorV8.pm:
     12
    1132009-07-22  Adam Langley  <agl@google.com>
    214
  • trunk/WebCore/bindings/scripts/CodeGeneratorV8.pm

    r46145 r46229  
    114114{
    115115    my $type = shift;
    116     return 0 if $type eq "RGBColor";
    117116    return $codeGenerator->IsPodType($type);
    118117}
     
    597596
    598597        push(@implContentDecls, "    void* wrapper = $wrapper;\n");
    599     } elsif ($nativeType ne "RGBColor") {
     598    } else {
    600599        push(@implContentDecls, "    $nativeType v = ");
    601600
     
    610609            $result = "WTF::getPtr(" . $result . ")";
    611610        }
    612     } else {
    613         # Special case: RGBColor is noncopyable
    614         $result = $getterString;
    615     }
    616 
     611    }
    617612
    618613    if (IsSVGTypeNeedingContextParameter($attrType) && !$skipContext) {
     
    17001695    return "DOMTimeStamp" if $type eq "DOMTimeStamp";
    17011696    return "unsigned" if $type eq "unsigned int";
    1702     return "unsigned" if $type eq "RGBColor";
    17031697    return "Node*" if $type eq "EventTarget" and $isParameter;
    17041698
     
    20402034    }
    20412035
    2042     if ($type eq "RGBColor") {
    2043         my $construct = "RefPtr<RGBColor> rgbcolor = RGBColor::create($value);\n";
    2044         my $convert = "V8DOMWrapper::convertToV8Object(V8ClassIndex::RGBCOLOR, WTF::getPtr(rgbcolor))";
    2045         return $construct . $indent . "return " . $convert;
    2046     }
    2047 
    20482036    if ($type eq "WorkerContext" or $type eq "WorkerLocation" or $type eq "WorkerNavigator") {
    20492037        $implIncludes{"WorkerContextExecutionProxy.h"} = 1;
Note: See TracChangeset for help on using the changeset viewer.