Image subclasses should support is<> and downcast<>
authorsimon.fraser@apple.com <simon.fraser@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 20 Sep 2017 02:40:40 +0000 (02:40 +0000)
committersimon.fraser@apple.com <simon.fraser@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 20 Sep 2017 02:40:40 +0000 (02:40 +0000)
commitc65d462ee5da8fcf4ac5a95be0c630a317a9848f
tree4b7adc3d2c45721f813b74728d6c03bb7a414ba4
parent0e0bcd6c978e611e998e3308d94cf61733d791f2
Image subclasses should support is<> and downcast<>
https://bugs.webkit.org/show_bug.cgi?id=177209

Reviewed by Tim Horton.

Add SPECIALIZE_TYPE_TRAITS_IMAGE() for Image subclasses.

Also use #pragma once in these headers.

* platform/graphics/CrossfadeGeneratedImage.h:
* platform/graphics/GeneratedImage.h:
* platform/graphics/GradientImage.h:
* platform/graphics/Image.h:
* platform/graphics/NamedImageGeneratedImage.h:

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@222246 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Source/WebCore/ChangeLog
Source/WebCore/platform/graphics/CrossfadeGeneratedImage.h
Source/WebCore/platform/graphics/GeneratedImage.h
Source/WebCore/platform/graphics/GradientImage.h
Source/WebCore/platform/graphics/Image.h
Source/WebCore/platform/graphics/NamedImageGeneratedImage.h