Skip to content
  • reni@webkit.org's avatar
    https://bugs.webkit.org/show_bug.cgi?id=51811 · fa0c6686
    reni@webkit.org authored
    Merge m_height and m_width members of ImageData into the new m_size member.
    
    Patch by Renata Hodovan <reni@webkit.org> on 2011-01-06
    Reviewed by Andreas Kling.
    
    Image (BitmapImage, ImageSource) types in WebKit use IntSize to store their
    width and height argument, except ImageData. This patch refactors ImageData
    to follow the style of other Image types in WebKit.
    Using of PassRefPtrs other than argument passing is not allowed in WebKit anymore.
    This patch also refactors the PassRefPtr usages of ImageData.
    
    It's just a refactoring, so we don't need any new tests.
    
    * bindings/js/SerializedScriptValue.cpp:
    (WebCore::CloneSerializer::write):
    (WebCore::CloneDeserializer::readTerminal):
    * bindings/v8/SerializedScriptValue.cpp:
    (WebCore::ZigZag::Reader::readImageData):
    * html/ImageData.cpp:
    (WebCore::ImageData::create):
    (WebCore::ImageData::ImageData):
    * html/ImageData.h:
    (WebCore::ImageData::size):
    (WebCore::ImageData::width):
    (WebCore::ImageData::height):
    * html/canvas/CanvasRenderingContext2D.cpp:
    (WebCore::createEmptyImageData):
    (WebCore::CanvasRenderingContext2D::createImageData):
    (WebCore::CanvasRenderingContext2D::getImageData):
    * html/canvas/CanvasRenderingContext2D.h:
    * platform/graphics/haiku/ImageBufferHaiku.cpp:
    (WebCore::getImageData):
    
    
    
    git-svn-id: http://svn.webkit.org/repository/webkit/trunk@75160 268f45cc-cd09-0410-ab3c-d52691b4dbfc
    fa0c6686