• weinig's avatar
    JavaScriptCore: · c475562b
    weinig authored
            Reviewed by Darin.
    
            Second pass at fixing implicit 64-32 bit conversion errors.
            <rdar://problem/5292262>
    
            - Add a toFloat() method to JSValue for float conversion.
    
            * JavaScriptCore.exp:
            * kjs/value.cpp:
            (KJS::JSValue::toFloat):
            * kjs/value.h:
    
    WebCore:
    
            Reviewed by Darin.
    
            Second pass at fixing implicit 64-32 bit conversion errors.
            <rdar://problem/5292262>
    
            - Use new JSValue::toFloat() method instead of toNumber() where
              appropriate.
    
            * bindings/js/JSCanvasRenderingContext2DCustom.cpp:
            (WebCore::JSCanvasRenderingContext2D::setFillColor):
            (WebCore::JSCanvasRenderingContext2D::setStrokeColor):
            (WebCore::JSCanvasRenderingContext2D::strokeRect):
            (WebCore::JSCanvasRenderingContext2D::drawImage):
            (WebCore::JSCanvasRenderingContext2D::drawImageFromRect):
            (WebCore::JSCanvasRenderingContext2D::setShadow):
            * bindings/js/JSHTMLSelectElementCustom.cpp:
            (WebCore::JSHTMLSelectElement::remove):
            * bindings/js/JSSVGMatrixCustom.cpp:
            (WebCore::JSSVGMatrix::rotateFromVector):
            * bindings/js/kjs_events.cpp:
            (KJS::JSClipboardPrototypeFunction::callAsFunction):
            * bindings/scripts/CodeGeneratorJS.pm:
            * ksvg2/svg/SVGScriptElement.cpp:
            (WebCore::SVGScriptElement::executeScript):
    
    
    
    git-svn-id: http://svn.webkit.org/repository/webkit/trunk@23892 268f45cc-cd09-0410-ab3c-d52691b4dbfc
    c475562b
kjs_events.cpp 16.2 KB