2 * Copyright (C) 2011 Nokia Inc. All rights reserved.
3 * Copyright (C) 2012 Google Inc. All rights reserved.
5 * This library is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU Library General Public
7 * License as published by the Free Software Foundation; either
8 * version 2 of the License, or (at your option) any later version.
10 * This library is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 * Library General Public License for more details.
15 * You should have received a copy of the GNU Library General Public License
16 * along with this library; see the file COPYING.LIB. If not, write to
17 * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
18 * Boston, MA 02110-1301, USA.
25 #include "core/rendering/RenderInline.h"
26 #include "core/rendering/style/QuotesData.h"
27 #include "core/rendering/style/RenderStyle.h"
28 #include "core/rendering/style/RenderStyleConstants.h"
34 class RenderQuote final : public RenderInline {
36 RenderQuote(Document*, const QuoteType);
37 virtual ~RenderQuote();
38 virtual void trace(Visitor*) override;
44 virtual void willBeDestroyed() override;
45 virtual const char* renderName() const override { return "RenderQuote"; };
46 virtual bool isOfType(RenderObjectType type) const override { return type == RenderObjectQuote || RenderInline::isOfType(type); }
47 virtual void styleDidChange(StyleDifference, const RenderStyle*) override;
48 virtual void willBeRemovedFromTree() override;
50 String computeText() const;
52 const QuotesData* quotesData() const;
54 bool isAttached() { return m_attached; }
56 RenderTextFragment* findFragmentChild() const;
60 RawPtrWillBeMember<RenderQuote> m_next;
61 RawPtrWillBeMember<RenderQuote> m_previous;
66 DEFINE_RENDER_OBJECT_TYPE_CASTS(RenderQuote, isQuote());
70 #endif // RenderQuote_h