Index: Source/core/rendering/RenderRuby.h |
diff --git a/Source/core/rendering/RenderRuby.h b/Source/core/rendering/RenderRuby.h |
index 2058cad94885639f08f914d849a06d9f9cae5c9e..8f1453c29c80653e9ae1f0a508856d0491217318 100644 |
--- a/Source/core/rendering/RenderRuby.h |
+++ b/Source/core/rendering/RenderRuby.h |
@@ -63,7 +63,7 @@ protected: |
virtual void styleDidChange(StyleDifference, const RenderStyle* oldStyle) OVERRIDE; |
private: |
- virtual bool isRuby() const OVERRIDE { return true; } |
+ virtual bool isOfType(RenderObjectType type) const OVERRIDE { return type == RenderObjectRuby || RenderInline::isOfType(type); } |
virtual const char* renderName() const OVERRIDE { return "RenderRuby (inline)"; } |
virtual bool createsAnonymousWrapper() const OVERRIDE { return true; } |
}; |
@@ -81,7 +81,7 @@ protected: |
virtual void styleDidChange(StyleDifference, const RenderStyle* oldStyle) OVERRIDE; |
private: |
- virtual bool isRuby() const OVERRIDE { return true; } |
+ virtual bool isOfType(RenderObjectType type) const OVERRIDE { return type == RenderObjectRuby || RenderBlockFlow::isOfType(type); } |
virtual const char* renderName() const OVERRIDE { return "RenderRuby (block)"; } |
virtual bool createsAnonymousWrapper() const OVERRIDE { return true; } |
virtual void removeLeftoverAnonymousBlock(RenderBlock*) OVERRIDE { ASSERT_NOT_REACHED(); } |