Skip to content
  • gyuyoung.kim@samsung.com's avatar
    [CSS] Introduce new structure to pass image orientation values. · 0d92f4d6
    gyuyoung.kim@samsung.com authored
    https://bugs.webkit.org/show_bug.cgi?id=119418
    
    Reviewed by Beth Dakin.
    
    Add a ImageOrientationDescription struct in order to reduce count of argument for
    image orientation.
    
    No new tests, no behavior change.
    
    * html/HTMLCanvasElement.cpp:
    (WebCore::HTMLCanvasElement::paint):
    * page/DragController.cpp:
    (WebCore::DragController::doImageDrag):
    * page/Frame.cpp:
    (WebCore::Frame::nodeImage):
    (WebCore::Frame::dragImageForSelection):
    * platform/DragImage.h:
    * platform/blackberry/DragImageBlackBerry.cpp:
    (WebCore::createDragImageFromImage):
    * platform/efl/DragImageEfl.cpp:
    (WebCore::createDragImageFromImage):
    * platform/graphics/BitmapImage.cpp:
    (WebCore::BitmapImage::updateSize):
    * platform/graphics/BitmapImage.h:
    * platform/graphics/GraphicsContext.cpp:
    (WebCore::GraphicsContext::drawImage):
    * platform/graphics/GraphicsContext.h:
    * platform/graphics/Image.cpp:
    (WebCore::Image::draw):
    * platform/graphics/Image.h:
    * platform/graphics/ImageOrientation.h:
    (WebCore::ImageOrientationDescription::ImageOrientationDescription):
    (WebCore::ImageOrientationDescription::respectImageOrientation):
    (WebCore::ImageOrientationDescription::imageOrientation):
    * platform/graphics/ImageSource.cpp:
    (WebCore::ImageSource::size):
    (WebCore::ImageSource::frameSizeAtIndex):
    * platform/graphics/ImageSource.h:
    * platform/graphics/blackberry/ImageBlackBerry.cpp:
    (WebCore::BitmapImage::draw):
    * platform/graphics/cairo/BitmapImageCairo.cpp:
    (WebCore::BitmapImage::draw):
    * platform/graphics/cairo/ImageBufferCairo.cpp:
    (WebCore::ImageBuffer::draw):
    * platform/graphics/cg/BitmapImageCG.cpp:
    (WebCore::BitmapImage::draw):
    * platform/graphics/cg/ImageSourceCG.cpp:
    (WebCore::ImageSource::frameSizeAtIndex):
    (WebCore::ImageSource::size):
    (WebCore::ImageSource::frameBytesAtIndex):
    * platform/graphics/gstreamer/MediaPlayerPrivateGStreamerBase.cpp:
    (WebCore::MediaPlayerPrivateGStreamerBase::paint):
    * platform/graphics/qt/ImageBufferQt.cpp:
    (WebCore::ImageBuffer::draw):
    * platform/graphics/wince/ImageBufferWinCE.cpp:
    (WebCore::ImageBuffer::draw):
    * platform/gtk/ClipboardGtk.cpp:
    (WebCore::Clipboard::createDragImage):
    * platform/gtk/DragImageGtk.cpp:
    (WebCore::createDragImageFromImage):
    * platform/mac/DragImageMac.mm:
    (WebCore::createDragImageFromImage):
    * platform/qt/ClipboardQt.cpp:
    (WebCore::Clipboard::createDragImage):
    * platform/qt/DragImageQt.cpp:
    (WebCore::createDragImageFromImage):
    * platform/win/ClipboardWin.cpp:
    (WebCore::Clipboard::createDragImage):
    * platform/win/DragImageCGWin.cpp:
    (WebCore::createDragImageFromImage):
    * platform/win/DragImageCairoWin.cpp:
    (WebCore::createDragImageFromImage):
    * rendering/RenderEmbeddedObject.cpp:
    (WebCore::RenderEmbeddedObject::paintSnapshotImage):
    * 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@154088 268f45cc-cd09-0410-ab3c-d52691b4dbfc
    0d92f4d6