Skip to content
  • gyuyoung.kim@samsung.com's avatar
    Introduce IMAGE_TYPE_CASTS, and use it · 3886a9b6
    gyuyoung.kim@samsung.com authored
    https://bugs.webkit.org/show_bug.cgi?id=125330
    
    Reviewed by Ryosuke Niwa.
    
    Source/WebCore:
    
    As a step to use TYPE_CASTS_BASE, this cl introduce IMAGE_TYPE_CASTS.
    BitmapImage and SVGImage can use it to generate toFoo() type case helper functions.
    
    No new tests, no behavior changes.
    
    * loader/cache/CachedImage.cpp:
    (WebCore::CachedImage::imageSizeForRenderer):
    (WebCore::CachedImage::resumeAnimatingImagesForLoader):
    * platform/graphics/BitmapImage.h:
    * platform/graphics/Image.h:
    * platform/mac/DragImageMac.mm:
    (WebCore::createDragImageFromImage):
    * svg/graphics/SVGImage.h:
    
    Source/WebKit2:
    
    As a step to use TYPE_CASTS_BASE, this cl introduce IMAGE_TYPE_CASTS.
    BitmapImage, SVGImage can use it to generate toFoo() type case helper functions.
    
    * WebProcess/Plugins/PluginView.cpp:
    (WebKit::PluginView::pluginSnapshotTimerFired):
    
    
    git-svn-id: http://svn.webkit.org/repository/webkit/trunk@160212 268f45cc-cd09-0410-ab3c-d52691b4dbfc
    3886a9b6