2013-08-23  Antonio Gomes  <a1.gomes@sisa.samsung.com>

        Use JSDictionary class instead of parsing WebCLContextProperties manually
        Issue #282

        Reviewed by Igor.

        Other classes like HTMLCanvasElement and Geolocation
        use JSDictionary to parse their dictionary-like object parameters.
        Patch makes our implementation to follow the same way. In practice,
        there should be no behavior difference, though.

        No new tests (OOPS!).

        * Modules/webcl/WebCLContextProperties.cpp:
        (WebCore::WebCLContextProperties::create):
        Added a overload method that takes no parameter.

        (WebCore::WebCLContextProperties::WebCLContextProperties):
        Added a default constructor, that takes no parameters.

        (WebCore::WebCLContextProperties::setDevices):
        (WebCore::WebCLContextProperties::webGLRenderingContext):
        (WebCore::WebCLContextProperties::setWebGLRenderingContext):
        Methods added to match the other class members' getters and setters.

        (WebCore::WebCLContextProperties::deviceType):
        Changed the return type from int to unsigned long, as per the spec.

        (WebCore::WebCLContextProperties::setDeviceType):
        Changed the parameter type from int to unsigned long, as per the spec.

        * Modules/webcl/WebCLContextProperties.h:
        * Modules/webcl/WebCLContextProperties.idl:
        Fixed 'deviceType' declaration type from int to unsigned CLenum, as per the spec.

        * bindings/js/JSDictionary.cpp:
        (WebCore::JSDictionary::convertValue):
        * bindings/js/JSDictionary.h:
        Add support for acquiring WebCL and WebGL pecific object types:
        WebCLPlatform, Vector<WebCLDevice> and WebGLRenderingContext.

        * bindings/js/JSWebCLCustom.h:
        (WebCore::setPlatform):
        (WebCore::setDevices):
        (WebCore::setDeviceType):
        (WebCore::setSharedContext):
        Helper setter methods.

        (WebCore::parsePropertiesAndCreateContext):
        Make use of JSDictionary to parse dictionary-like objects.
2013-08-23  Antonio Gomes  <a1.gomes@sisa.samsung.com>

        Unreviewed WebCLImageDescriptor files clean up.

        * Modules/webcl/WebCLImageDescriptor.cpp:
        (WebCore::WebCLImageDescriptor::create):
        (WebCore::WebCLImageDescriptor::WebCLImageDescriptor):
        * Modules/webcl/WebCLImageDescriptor.h:
        * Modules/webcl/WebCLImageDescriptor.idl:
2013-08-23  Antonio Gomes  <a1.gomes@sisa.samsung.com>

        Use JSDictionary class instead of parsing WebCLImageDescriptor manually
        Issue #289

        Reviewed by Igor.

        Other classes like HTMLCanvasElement and Geolocation
        use JSDictionary to parse their dictionary-like object parameters.
        Patch makes our implementation to follow the same way. In practice,
        there should be no behavior difference, though.

        WebCLImageDescriptor also got its types changed to
        match the spec.

        * Modules/webcl/WebCLImageDescriptor.cpp:
        (WebCore::WebCLImageDescriptor::setWidth):
        (WebCore::WebCLImageDescriptor::width):
        (WebCore::WebCLImageDescriptor::setHeight):
        (WebCore::WebCLImageDescriptor::height):
        (WebCore::WebCLImageDescriptor::setRowPitch):
        (WebCore::WebCLImageDescriptor::rowPitch):
        * Modules/webcl/WebCLImageDescriptor.h:
        * Modules/webcl/WebCLImageDescriptor.idl:
        * bindings/js/JSDictionary.cpp:
        (WebCore::JSDictionary::convertValue):
        * bindings/js/JSDictionary.h:
        * bindings/js/JSWebCLContextCustom.cpp:
        (WebCore::setChannelOrder):
        (WebCore::setChannelType):
        (WebCore::setWidth):
        (WebCore::setHeight):
        (WebCore::setRowPitch):
        (WebCore::JSWebCLContext::createImage):