Index: Source/core/rendering/RenderMedia.h |
diff --git a/Source/core/rendering/RenderMedia.h b/Source/core/rendering/RenderMedia.h |
index a5cda7b6274bcb36ce0e35af7fb720f5adc8cc97..04615ecb33d33f416bc39c51487d38c44f24a7ea 100644 |
--- a/Source/core/rendering/RenderMedia.h |
+++ b/Source/core/rendering/RenderMedia.h |
@@ -53,6 +53,8 @@ public: |
protected: |
virtual void layout() OVERRIDE; |
+ virtual bool isOfType(RenderObjectType type) const OVERRIDE { return type == RenderObjectMedia || RenderImage::isOfType(type); } |
+ |
private: |
virtual RenderObjectChildList* virtualChildren() OVERRIDE FINAL { return children(); } |
virtual const RenderObjectChildList* virtualChildren() const OVERRIDE FINAL { return children(); } |
@@ -65,7 +67,6 @@ private: |
virtual bool canHaveChildren() const OVERRIDE FINAL { return true; } |
virtual const char* renderName() const OVERRIDE { return "RenderMedia"; } |
- virtual bool isMedia() const OVERRIDE FINAL { return true; } |
virtual bool isImage() const OVERRIDE FINAL { return false; } |
virtual void paintReplaced(PaintInfo&, const LayoutPoint&) OVERRIDE; |