diff options
Diffstat (limited to 'Source/WebCore/rendering/mathml/RenderMathMLFenced.h')
-rw-r--r-- | Source/WebCore/rendering/mathml/RenderMathMLFenced.h | 39 |
1 files changed, 17 insertions, 22 deletions
diff --git a/Source/WebCore/rendering/mathml/RenderMathMLFenced.h b/Source/WebCore/rendering/mathml/RenderMathMLFenced.h index 97263a334..dc0b9f9b6 100644 --- a/Source/WebCore/rendering/mathml/RenderMathMLFenced.h +++ b/Source/WebCore/rendering/mathml/RenderMathMLFenced.h @@ -23,42 +23,37 @@ * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#ifndef RenderMathMLFenced_h -#define RenderMathMLFenced_h +#pragma once #if ENABLE(MATHML) -#include "MathMLInlineContainerElement.h" -#include "RenderMathMLOperator.h" +#include "RenderMathMLFencedOperator.h" #include "RenderMathMLRow.h" namespace WebCore { - + +class MathMLRowElement; + class RenderMathMLFenced final : public RenderMathMLRow { public: - RenderMathMLFenced(MathMLInlineContainerElement&, PassRef<RenderStyle>); - MathMLInlineContainerElement& element() { return static_cast<MathMLInlineContainerElement&>(nodeForNonAnonymous()); } - -private: - virtual bool isRenderMathMLFenced() const override { return true; } - virtual const char* renderName() const override { return "RenderMathMLFenced"; } - virtual void addChild(RenderObject* child, RenderObject* beforeChild) override; - virtual void styleDidChange(StyleDifference, const RenderStyle* oldStyle) override; + RenderMathMLFenced(MathMLRowElement&, RenderStyle&&); - virtual void updateFromElement() override; +private: + bool isRenderMathMLFenced() const final { return true; } + const char* renderName() const final { return "RenderMathMLFenced"; } + void addChild(RenderObject* child, RenderObject* beforeChild) final; + void updateFromElement() final; - RenderPtr<RenderMathMLOperator> createMathMLOperator(UChar, RenderMathMLOperator::OperatorType); + RenderPtr<RenderMathMLFencedOperator> createMathMLOperator(const String& operatorString, MathMLOperatorDictionary::Form, MathMLOperatorDictionary::Flag); void makeFences(); - UChar m_open; - UChar m_close; + String m_open; + String m_close; RefPtr<StringImpl> m_separators; - - RenderMathMLOperator* m_closeFenceRenderer; + + RenderMathMLFencedOperator* m_closeFenceRenderer; }; - + } #endif // ENABLE(MATHML) - -#endif // RenderMathMLFenced_h |