#ifndef RenderQuote_h
#define RenderQuote_h
#include "core/rendering/RenderInline.h"
#include "core/rendering/style/QuotesData.h"
#include "core/rendering/style/RenderStyle.h"
#include "core/rendering/style/RenderStyleConstants.h"
namespace WebCore {
class Document;
class RenderQuote FINAL : public RenderInline {
public:
RenderQuote(Document*, const QuoteType);
virtual ~RenderQuote();
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;
String computeText() const;
void updateText();
const QuotesData* quotesData() const;
void updateDepth();
bool isAttached() { return m_attached; }
QuoteType m_type;
int m_depth;
RenderQuote* m_next;
RenderQuote* m_previous;
bool m_attached;
String m_text;
};
DEFINE_RENDER_OBJECT_TYPE_CASTS(RenderQuote, isQuote());
}
#endif