Move RenderObject::shouldRespectImageOrientation to RenderElement.
authorzalan@apple.com <zalan@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 15 Sep 2016 21:57:33 +0000 (21:57 +0000)
committerzalan@apple.com <zalan@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 15 Sep 2016 21:57:33 +0000 (21:57 +0000)
commit08d1d870c1c3079dffb87d69e15b823226d8ce42
tree9c2c74aacbb2cbc0925956762d3b08e7ed54a94f
parenta7f0e58f976b8c42be9b16b486121fed927c283a
Move RenderObject::shouldRespectImageOrientation to RenderElement.
https://bugs.webkit.org/show_bug.cgi?id=162028

Reviewed by Antti Koivisto.

Tighten the type for imageSizeForRenderer/canRender so that RenderObject::shouldRespectImageOrientation could
be moved to RenderElement.

No change in functionality.

* loader/cache/CachedImage.cpp:
(WebCore::CachedImage::imageSizeForRenderer):
* loader/cache/CachedImage.h:
* rendering/RenderElement.cpp:
(WebCore::RenderElement::shouldRespectImageOrientation):
* rendering/RenderElement.h:
* rendering/RenderObject.cpp:
(WebCore::RenderObject::shouldRespectImageOrientation): Deleted.
* rendering/RenderObject.h:
* rendering/style/StyleCachedImage.cpp:
(WebCore::StyleCachedImage::canRender):
* rendering/style/StyleCachedImage.h:
* rendering/style/StyleImage.h:
(WebCore::StyleImage::canRender):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@205997 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Source/WebCore/ChangeLog
Source/WebCore/loader/cache/CachedImage.cpp
Source/WebCore/loader/cache/CachedImage.h
Source/WebCore/platform/DragImage.cpp
Source/WebCore/rendering/RenderElement.cpp
Source/WebCore/rendering/RenderElement.h
Source/WebCore/rendering/RenderObject.cpp
Source/WebCore/rendering/RenderObject.h
Source/WebCore/rendering/style/StyleCachedImage.cpp
Source/WebCore/rendering/style/StyleCachedImage.h
Source/WebCore/rendering/style/StyleImage.h