Skip to content
  • weinig@apple.com's avatar
    WebCore: · 5b942cb0
    weinig@apple.com authored
    2009-07-21  Sam Weinig  <sam@webkit.org>
    
            Reviewed by Dan Bernstein.
    
            Fix for https://bugs.webkit.org/show_bug.cgi?id=27242
            JSC bindings should use an auto-bound RGBColor class instead of hand-rolled JSRGBColor
    
            Move the JSC and Objective-C bindings onto using the RGBColor object instead
            of just an unsigned int. The JSC bindings are now completely autogenerated for
            this class. (Also removes the last lut from WebCore).
    
            * DerivedSources.make:
            * GNUmakefile.am:
            * WebCore.pro:
            * WebCore.vcproj/WebCore.vcproj:
            * WebCore.xcodeproj/project.pbxproj:
            * WebCoreSources.bkl:
            * bindings/js/JSRGBColor.cpp: Removed.
            * bindings/js/JSRGBColor.h: Removed.
            * bindings/objc/DOM.mm:
            (-[DOMRGBColor _color]):
            * bindings/objc/DOMRGBColor.mm:
            (-[DOMRGBColor dealloc]):
            (-[DOMRGBColor finalize]):
            (-[DOMRGBColor red]):
            (-[DOMRGBColor green]):
            (-[DOMRGBColor blue]):
            (-[DOMRGBColor alpha]):
            (-[DOMRGBColor color]):
            * bindings/scripts/CodeGenerator.pm:
            * bindings/scripts/CodeGeneratorJS.pm:
            * bindings/scripts/CodeGeneratorObjC.pm:
            * css/CSSParser.cpp:
            (WebCore::CSSParser::parseColor):
            * css/CSSPrimitiveValue.cpp:
            (WebCore::CSSPrimitiveValue::getRGBColorValue):
            * css/CSSPrimitiveValue.h:
            (WebCore::CSSPrimitiveValue::getRGBA32Value):
            * css/CSSStyleSelector.cpp:
            (WebCore::CSSStyleSelector::getColorFromPrimitiveValue):
            * css/RGBColor.cpp:
            (WebCore::RGBColor::alpha):
            * css/RGBColor.h:
            (WebCore::RGBColor::color):
            (WebCore::RGBColor::RGBColor):
            * css/RGBColor.idl:
            * page/DOMWindow.idl:
            * svg/SVGColor.cpp:
            (WebCore::SVGColor::rgbColor):
            * svg/SVGColor.h:
    
    LayoutTests:
    
    2009-07-21  Sam Weinig  <sam@webkit.org>
    
            Reviewed by Dan Bernstein.
    
            Changes for https://bugs.webkit.org/show_bug.cgi?id=27242
            JSC bindings should use an auto-bound RGBColor class instead of hand-rolled JSRGBColor
    
            * fast/dom/Window/window-properties-expected.txt:
            * fast/dom/dom-constructors-expected.txt:
            * fast/dom/prototype-inheritance-expected.txt:
            * fast/dom/wrapper-classes-expected.txt:
            * fast/js/global-constructors-expected.txt:
    
    
    
    git-svn-id: http://svn.webkit.org/repository/webkit/trunk@46211 268f45cc-cd09-0410-ab3c-d52691b4dbfc
    5b942cb0