class Document;
-class RenderQuote FINAL : public RenderInline {
+class RenderQuote final : public RenderInline {
public:
RenderQuote(Document*, const QuoteType);
virtual ~RenderQuote();
- virtual void trace(Visitor*) OVERRIDE;
+ virtual void trace(Visitor*) override;
void attachQuote();
private:
void detachQuote();
- virtual void willBeDestroyed() OVERRIDE;
- virtual const char* renderName() const OVERRIDE { return "RenderQuote"; };
- virtual bool isQuote() const OVERRIDE { return true; };
- virtual void styleDidChange(StyleDifference, const RenderStyle*) OVERRIDE;
- virtual void willBeRemovedFromTree() OVERRIDE;
+ virtual void willBeDestroyed() override;
+ virtual const char* renderName() const override { return "RenderQuote"; };
+ virtual bool isOfType(RenderObjectType type) const override { return type == RenderObjectQuote || RenderInline::isOfType(type); }
+ virtual void styleDidChange(StyleDifference, const RenderStyle*) override;
+ virtual void willBeRemovedFromTree() override;
String computeText() const;
void updateText();
void updateDepth();
bool isAttached() { return m_attached; }
+ RenderTextFragment* findFragmentChild() const;
+
QuoteType m_type;
int m_depth;
RawPtrWillBeMember<RenderQuote> m_next;