diff options
author | Lorry Tar Creator <lorry-tar-importer@lorry> | 2017-06-27 06:07:23 +0000 |
---|---|---|
committer | Lorry Tar Creator <lorry-tar-importer@lorry> | 2017-06-27 06:07:23 +0000 |
commit | 1bf1084f2b10c3b47fd1a588d85d21ed0eb41d0c (patch) | |
tree | 46dcd36c86e7fbc6e5df36deb463b33e9967a6f7 /Source/WebCore/mathml/MathMLMathElement.h | |
parent | 32761a6cee1d0dee366b885b7b9c777e67885688 (diff) | |
download | WebKitGtk-tarball-master.tar.gz |
webkitgtk-2.16.5HEADwebkitgtk-2.16.5master
Diffstat (limited to 'Source/WebCore/mathml/MathMLMathElement.h')
-rw-r--r-- | Source/WebCore/mathml/MathMLMathElement.h | 23 |
1 files changed, 14 insertions, 9 deletions
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<MathMLMathElement> create(const QualifiedName& tagName, Document&); + static Ref<MathMLMathElement> 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<bool> specifiedDisplayStyle() final; - virtual InsertionNotificationRequest insertedInto(ContainerNode&) override; - virtual RenderPtr<RenderElement> createElementRenderer(PassRef<RenderStyle>) override; + RenderPtr<RenderElement> createElementRenderer(RenderStyle&&, const RenderTreePosition&) final; }; - + } #endif // ENABLE(MATHML) -#endif // MathMLMathElement_h |