From 1bf1084f2b10c3b47fd1a588d85d21ed0eb41d0c Mon Sep 17 00:00:00 2001 From: Lorry Tar Creator Date: Tue, 27 Jun 2017 06:07:23 +0000 Subject: webkitgtk-2.16.5 --- Source/WebCore/mathml/MathMLMathElement.h | 23 ++++++++++++++--------- 1 file changed, 14 insertions(+), 9 deletions(-) (limited to 'Source/WebCore/mathml/MathMLMathElement.h') diff --git a/Source/WebCore/mathml/MathMLMathElement.h b/Source/WebCore/mathml/MathMLMathElement.h index 23873e922..a1e377e39 100644 --- a/Source/WebCore/mathml/MathMLMathElement.h +++ b/Source/WebCore/mathml/MathMLMathElement.h @@ -1,6 +1,7 @@ /* * Copyright (C) 2009 Alex Milowski (alex@milowski.com). All rights reserved. * Copyright (C) 2010 Apple Inc. All rights reserved. + * Copyright (C) 2016 Igalia S.L. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions @@ -24,26 +25,30 @@ * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#ifndef MathMLMathElement_h -#define MathMLMathElement_h +#pragma once #if ENABLE(MATHML) -#include "MathMLInlineContainerElement.h" + +#include "MathMLRowElement.h" namespace WebCore { -class MathMLMathElement : public MathMLInlineContainerElement { +class MathMLMathElement final : public MathMLRowElement { public: - static PassRefPtr create(const QualifiedName& tagName, Document&); + static Ref create(const QualifiedName& tagName, Document&); private: MathMLMathElement(const QualifiedName& tagName, Document&); + void parseAttribute(const QualifiedName&, const AtomicString&) final; + void didAttachRenderers() final; + + bool acceptsDisplayStyleAttribute() final { return true; } + bool acceptsMathVariantAttribute() final { return true; } + std::optional specifiedDisplayStyle() final; - virtual InsertionNotificationRequest insertedInto(ContainerNode&) override; - virtual RenderPtr createElementRenderer(PassRef) override; + RenderPtr createElementRenderer(RenderStyle&&, const RenderTreePosition&) final; }; - + } #endif // ENABLE(MATHML) -#endif // MathMLMathElement_h -- cgit v1.2.1