#include "core/rendering/RenderBlockFlow.h"
-namespace WebCore {
+namespace blink {
class RenderRubyBase;
class RenderRubyText;
// RenderRubyRun are 'inline-block/table' like objects,and wrap a single pairing of a ruby base with its ruby text(s).
// See RenderRuby.h for further comments on the structure
-class RenderRubyRun FINAL : public RenderBlockFlow {
+class RenderRubyRun final : public RenderBlockFlow {
public:
virtual ~RenderRubyRun();
bool hasRubyText() const;
bool hasRubyBase() const;
- bool isEmpty() const;
RenderRubyText* rubyText() const;
RenderRubyBase* rubyBase() const;
RenderRubyBase* rubyBaseSafe(); // creates the base if it doesn't already exist
- virtual RenderObject* layoutSpecialExcludedChild(bool relayoutChildren, SubtreeLayoutScope&);
- virtual void layout();
+ virtual RenderObject* layoutSpecialExcludedChild(bool relayoutChildren, SubtreeLayoutScope&) override;
+ virtual void layout() override;
- virtual bool isChildAllowed(RenderObject*, RenderStyle*) const;
- virtual void addChild(RenderObject* child, RenderObject* beforeChild = 0);
- virtual void removeChild(RenderObject* child);
-
- virtual RenderBlock* firstLineBlock() const;
- virtual void updateFirstLetter();
+ virtual bool isChildAllowed(RenderObject*, RenderStyle*) const override;
+ virtual void addChild(RenderObject* child, RenderObject* beforeChild = 0) override;
+ virtual void removeChild(RenderObject* child) override;
void getOverhang(bool firstLine, RenderObject* startRenderer, RenderObject* endRenderer, int& startOverhang, int& endOverhang) const;
private:
RenderRubyRun();
- virtual bool isRubyRun() const { return true; }
- virtual const char* renderName() const { return "RenderRubyRun (anonymous)"; }
- virtual bool supportsPartialLayout() const OVERRIDE { return false; }
- virtual bool createsAnonymousWrapper() const { return true; }
- virtual void removeLeftoverAnonymousBlock(RenderBlock*) { }
+ virtual bool isOfType(RenderObjectType type) const override { return type == RenderObjectRubyRun || RenderBlockFlow::isOfType(type); }
+ virtual const char* renderName() const override { return "RenderRubyRun (anonymous)"; }
+ virtual bool createsAnonymousWrapper() const override { return true; }
+ virtual void removeLeftoverAnonymousBlock(RenderBlock*) override { }
};
DEFINE_RENDER_OBJECT_TYPE_CASTS(RenderRubyRun, isRubyRun());
-} // namespace WebCore
+} // namespace blink
#endif // RenderRubyRun_h