Skip to content
  • gyuyoung.kim@samsung.com's avatar
    <https://webkit.org/b/92330> [CSS] Pass an image orientation data to drawImage() · b1c9a8e5
    gyuyoung.kim@samsung.com authored
    Reviewed by Beth Dakin.
    
    In support of ongoing css3-images image-orientation implementation. This patch passes
    an imageOrientationDescription object to drawImage() function as a argument. The drawImage()
    can know information of image orientation by the argument.
    
    Spec: http://www.w3.org/TR/2012/CR-css3-images-20120417/#the-image-orientation
    
    * html/HTMLCanvasElement.cpp:
    (WebCore::HTMLCanvasElement::paint):
    * html/canvas/CanvasRenderingContext2D.cpp:
    (WebCore::CanvasRenderingContext2D::drawImage):
    (WebCore::drawImageToContext):
    * platform/graphics/ImageOrientation.h: Add setter functions.
    (WebCore::ImageOrientationDescription::setRespectImageOrientation):
    (WebCore::ImageOrientationDescription::setImageOrientationEnum):
    * platform/graphics/texmap/TextureMapperImageBuffer.cpp:
    (WebCore::BitmapTextureImageBuffer::updateContents):
    * rendering/RenderBoxModelObject.cpp:
    (WebCore::RenderBoxModelObject::paintNinePieceImage):
    * rendering/RenderImage.cpp:
    (WebCore::RenderImage::paintReplaced):
    (WebCore::RenderImage::paintIntoRect):
    * rendering/RenderSnapshottedPlugIn.cpp:
    (WebCore::RenderSnapshottedPlugIn::paintSnapshot):
    
    
    git-svn-id: http://svn.webkit.org/repository/webkit/trunk@154375 268f45cc-cd09-0410-ab3c-d52691b4dbfc
    b1c9a8e5