Changeset 203228 in webkit
- Timestamp:
- Jul 14, 2016 10:59:17 AM (8 years ago)
- Location:
- trunk/Source/WebCore
- Files:
-
- 26 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebCore/ChangeLog
r203225 r203228 1 2016-07-14 Frederic Wang <fred.wang@free.fr> 2 3 Cleanup of MathML headers 4 https://bugs.webkit.org/show_bug.cgi?id=159336 5 6 Reviewed by Alex Christensen. 7 8 We do some cleanup in MathML headers: 9 - Use #pragma once 10 - Use final for class that are not extended. 11 - Use final instead of override for virtual members that are not overridden by derived classes. 12 - Try and reduce the visibility of function members to private or protected as appropriate. 13 - Remove useless #include 14 - Remove useless class or friendship declaration 15 - Remove unused functions 16 17 No new tests, behavior is unchanged. 18 19 * mathml/MathMLElement.h: 20 * mathml/MathMLInlineContainerElement.h: 21 * mathml/MathMLMathElement.h: 22 * mathml/MathMLMencloseElement.h: 23 * mathml/MathMLOperatorDictionary.h: 24 * mathml/MathMLPaddedElement.h: 25 * mathml/MathMLSelectElement.h: 26 * mathml/MathMLSpaceElement.h: 27 * mathml/MathMLTextElement.h: 28 * rendering/mathml/MathOperator.h: 29 * rendering/mathml/RenderMathMLBlock.h: 30 * rendering/mathml/RenderMathMLFenced.h: 31 * rendering/mathml/RenderMathMLFraction.h: 32 * rendering/mathml/RenderMathMLMath.h: 33 * rendering/mathml/RenderMathMLMenclose.h: 34 * rendering/mathml/RenderMathMLOperator.h: 35 * rendering/mathml/RenderMathMLRoot.h: 36 * rendering/mathml/RenderMathMLRow.cpp: 37 (WebCore::RenderMathMLRow::RenderMathMLRow): Deleted. We no longer create anonymous row. 38 * rendering/mathml/RenderMathMLRow.h: 39 * rendering/mathml/RenderMathMLScripts.h: 40 * rendering/mathml/RenderMathMLSpace.h: 41 * rendering/mathml/RenderMathMLToken.h: 42 * rendering/mathml/RenderMathMLUnderOver.h: 43 1 44 2016-07-14 Alex Christensen <achristensen@webkit.org> 2 45 -
trunk/Source/WebCore/mathml/MathMLElement.h
r203108 r203228 26 26 */ 27 27 28 #ifndef MathMLElement_h 29 #define MathMLElement_h 28 #pragma once 30 29 31 30 #if ENABLE(MATHML) … … 114 113 115 114 #endif // ENABLE(MATHML) 116 117 #endif // MathMLElement_h -
trunk/Source/WebCore/mathml/MathMLInlineContainerElement.h
r202960 r203228 25 25 */ 26 26 27 #ifndef MathMLInlineContainerElement_h 28 #define MathMLInlineContainerElement_h 27 #pragma once 29 28 30 29 #if ENABLE(MATHML) … … 37 36 static Ref<MathMLInlineContainerElement> create(const QualifiedName& tagName, Document&); 38 37 39 bool isPresentationMathML() const override { return true; }40 41 38 protected: 42 39 MathMLInlineContainerElement(const QualifiedName& tagName, Document&); … … 46 43 private: 47 44 RenderPtr<RenderElement> createElementRenderer(RenderStyle&&, const RenderTreePosition&) override; 45 bool isPresentationMathML() const final { return true; } 48 46 }; 49 47 … … 51 49 52 50 #endif // ENABLE(MATHML) 53 #endif // MathMLInlineContainerElement_h -
trunk/Source/WebCore/mathml/MathMLMathElement.h
r202960 r203228 25 25 */ 26 26 27 #ifndef MathMLMathElement_h 28 #define MathMLMathElement_h 27 #pragma once 29 28 30 29 #if ENABLE(MATHML) … … 33 32 namespace WebCore { 34 33 35 class MathMLMathElement : public MathMLInlineContainerElement {34 class MathMLMathElement final : public MathMLInlineContainerElement { 36 35 public: 37 36 static Ref<MathMLMathElement> create(const QualifiedName& tagName, Document&); 38 39 protected:40 void didAttachRenderers() final;41 37 42 38 private: 43 39 MathMLMathElement(const QualifiedName& tagName, Document&); 44 40 void parseAttribute(const QualifiedName&, const AtomicString&) final; 41 void didAttachRenderers() final; 45 42 46 RenderPtr<RenderElement> createElementRenderer(RenderStyle&&, const RenderTreePosition&) override;43 RenderPtr<RenderElement> createElementRenderer(RenderStyle&&, const RenderTreePosition&) final; 47 44 }; 48 45 … … 50 47 51 48 #endif // ENABLE(MATHML) 52 #endif // MathMLMathElement_h -
trunk/Source/WebCore/mathml/MathMLMencloseElement.h
r200041 r203228 25 25 */ 26 26 27 #ifndef MathMLMencloseElement_h 28 #define MathMLMencloseElement_h 27 #pragma once 29 28 30 29 #if ENABLE(MATHML) … … 37 36 public: 38 37 static Ref<MathMLMencloseElement> create(const QualifiedName& tagName, Document&); 39 void parseAttribute(const QualifiedName&, const AtomicString&) final;40 38 41 39 enum MencloseNotationFlag { … … 60 58 MathMLMencloseElement(const QualifiedName&, Document&); 61 59 RenderPtr<RenderElement> createElementRenderer(RenderStyle&&, const RenderTreePosition&) final; 60 void parseAttribute(const QualifiedName&, const AtomicString&) final; 62 61 void clearNotations() { m_notationFlags = 0; } 63 62 void addNotation(MencloseNotationFlag notationFlag) { m_notationFlags |= notationFlag; } … … 68 67 69 68 #endif // ENABLE(MATHML) 70 #endif // MathMLMencloseElement_h -
trunk/Source/WebCore/mathml/MathMLOperatorDictionary.h
r203116 r203228 24 24 */ 25 25 26 #ifndef MathMLOperatorDictionary_h 27 #define MathMLOperatorDictionary_h 26 #pragma once 28 27 29 28 #if ENABLE(MATHML) … … 58 57 } 59 58 #endif // ENABLE(MATHML) 60 #endif // MathMLOperatorDictionary_h -
trunk/Source/WebCore/mathml/MathMLPaddedElement.h
r203150 r203228 24 24 */ 25 25 26 #ifndef MathMLPaddedElement_h 27 #define MathMLPaddedElement_h 26 #pragma once 28 27 29 28 #if ENABLE(MATHML) … … 56 55 57 56 #endif // ENABLE(MATHML) 58 #endif // MathMLPaddedElement_h -
trunk/Source/WebCore/mathml/MathMLSelectElement.h
r200041 r203228 24 24 */ 25 25 26 #ifndef MathMLSelectElement_h 27 #define MathMLSelectElement_h 26 #pragma once 28 27 29 28 #if ENABLE(MATHML) … … 41 40 private: 42 41 MathMLSelectElement(const QualifiedName& tagName, Document&); 43 RenderPtr<RenderElement> createElementRenderer(RenderStyle&&, const RenderTreePosition&) override;42 RenderPtr<RenderElement> createElementRenderer(RenderStyle&&, const RenderTreePosition&) final; 44 43 45 bool childShouldCreateRenderer(const Node&) const override;44 bool childShouldCreateRenderer(const Node&) const final; 46 45 47 void finishParsingChildren() override;48 void childrenChanged(const ChildChange&) override;49 void attributeChanged(const QualifiedName&, const AtomicString& oldValue, const AtomicString& newValue, AttributeModificationReason = ModifiedDirectly) override;50 void defaultEventHandler(Event*) override;51 bool willRespondToMouseClickEvents() override;46 void finishParsingChildren() final; 47 void childrenChanged(const ChildChange&) final; 48 void attributeChanged(const QualifiedName&, const AtomicString& oldValue, const AtomicString& newValue, AttributeModificationReason = ModifiedDirectly) final; 49 void defaultEventHandler(Event*) final; 50 bool willRespondToMouseClickEvents() final; 52 51 53 52 void toggle(); … … 56 55 Element* getSelectedSemanticsChild(); 57 56 58 void updateSelectedChild() override;57 void updateSelectedChild() final; 59 58 RefPtr<Element> m_selectedChild; 60 59 }; … … 63 62 64 63 #endif // ENABLE(MATHML) 65 #endif // MathMLSelectElement_h -
trunk/Source/WebCore/mathml/MathMLSpaceElement.h
r203108 r203228 24 24 */ 25 25 26 #ifndef MathMLSpaceElement_h 27 #define MathMLSpaceElement_h 26 #pragma once 28 27 29 28 #if ENABLE(MATHML) … … 52 51 53 52 #endif // ENABLE(MATHML) 54 #endif // MathMLSpaceElement_h -
trunk/Source/WebCore/mathml/MathMLTextElement.h
r202727 r203228 25 25 */ 26 26 27 #ifndef MathMLTextElement_h 28 #define MathMLTextElement_h 27 #pragma once 29 28 30 29 #if ENABLE(MATHML) … … 36 35 public: 37 36 static Ref<MathMLTextElement> create(const QualifiedName& tagName, Document&); 38 void didAttachRenderers() override;39 40 bool isPresentationMathML() const override { return true; }41 37 42 38 private: 43 39 MathMLTextElement(const QualifiedName& tagName, Document&); 44 40 45 RenderPtr<RenderElement> createElementRenderer(RenderStyle&&, const RenderTreePosition&) override;46 bool childShouldCreateRenderer(const Node&) const override;41 RenderPtr<RenderElement> createElementRenderer(RenderStyle&&, const RenderTreePosition&) final; 42 bool childShouldCreateRenderer(const Node&) const final; 47 43 48 void childrenChanged(const ChildChange&) override; 49 void parseAttribute(const QualifiedName&, const AtomicString&) override; 44 void childrenChanged(const ChildChange&) final; 45 void parseAttribute(const QualifiedName&, const AtomicString&) final; 46 void didAttachRenderers() final; 47 48 bool isPresentationMathML() const final { return true; } 50 49 }; 51 50 … … 53 52 54 53 #endif // ENABLE(MATHML) 55 #endif // MathMLTextElement_h -
trunk/Source/WebCore/rendering/mathml/MathMLStyle.h
r203072 r203228 24 24 */ 25 25 26 #ifndef MathMLStyle_h27 #define MathMLStyle_h28 26 #pragma once 29 27 … … 87 85 88 86 #endif // ENABLE(MATHML) 89 #endif // MathMLStyle_h -
trunk/Source/WebCore/rendering/mathml/MathOperator.h
r202271 r203228 24 24 */ 25 25 26 #ifndef MathOperator_h 27 #define MathOperator_h 26 #pragma once 28 27 29 28 #if ENABLE(MATHML) … … 105 104 106 105 #endif // ENABLE(MATHML) 107 #endif // MathOperator_h -
trunk/Source/WebCore/rendering/mathml/RenderMathMLBlock.h
r203106 r203228 25 25 */ 26 26 27 #ifndef RenderMathMLBlock_h 28 #define RenderMathMLBlock_h 27 #pragma once 29 28 30 29 #if ENABLE(MATHML) … … 105 104 } 106 105 107 Optional<int> firstLineBaseline() const override;108 106 109 107 MathMLStyle* mathMLStyle() const { return const_cast<MathMLStyle*>(&m_mathMLStyle.get()); } 110 108 111 109 private: 112 bool isRenderMathMLTable() const override { return true; } 113 const char* renderName() const override { return "RenderMathMLTable"; } 110 bool isRenderMathMLTable() const final { return true; } 111 const char* renderName() const final { return "RenderMathMLTable"; } 112 Optional<int> firstLineBaseline() const final; 114 113 115 114 Ref<MathMLStyle> m_mathMLStyle; … … 126 125 127 126 #endif // ENABLE(MATHML) 128 #endif // RenderMathMLBlock_h -
trunk/Source/WebCore/rendering/mathml/RenderMathMLFenced.h
r202727 r203228 24 24 */ 25 25 26 #ifndef RenderMathMLFenced_h 27 #define RenderMathMLFenced_h 26 #pragma once 28 27 29 28 #if ENABLE(MATHML) … … 41 40 42 41 private: 43 bool isRenderMathMLFenced() const override{ return true; }44 const char* renderName() const override{ return "RenderMathMLFenced"; }45 void addChild(RenderObject* child, RenderObject* beforeChild) override;46 void updateFromElement() override;42 bool isRenderMathMLFenced() const final { return true; } 43 const char* renderName() const final { return "RenderMathMLFenced"; } 44 void addChild(RenderObject* child, RenderObject* beforeChild) final; 45 void updateFromElement() final; 47 46 48 47 RenderPtr<RenderMathMLOperator> createMathMLOperator(const String& operatorString, MathMLOperatorDictionary::Form, MathMLOperatorDictionary::Flag); … … 59 58 60 59 #endif // ENABLE(MATHML) 61 62 #endif // RenderMathMLFenced_h -
trunk/Source/WebCore/rendering/mathml/RenderMathMLFraction.h
r203073 r203228 26 26 */ 27 27 28 #ifndef RenderMathMLFraction_h 29 #define RenderMathMLFraction_h 28 #pragma once 30 29 31 30 #if ENABLE(MATHML) … … 43 42 float relativeLineThickness() const { return m_defaultLineThickness ? m_lineThickness / m_defaultLineThickness : LayoutUnit(0); } 44 43 45 void layoutBlock(bool relayoutChildren, LayoutUnit pageLogicalHeight = 0) final;46 44 void updateFromElement() final; 47 48 protected:49 void computePreferredLogicalWidths() final;50 45 51 46 private: … … 53 48 const char* renderName() const final { return "RenderMathMLFraction"; } 54 49 50 void computePreferredLogicalWidths() final; 51 void layoutBlock(bool relayoutChildren, LayoutUnit pageLogicalHeight = 0) final; 55 52 Optional<int> firstLineBaseline() const final; 56 53 void paint(PaintInfo&, const LayoutPoint&) final; … … 95 92 96 93 #endif // ENABLE(MATHML) 97 98 #endif // RenderMathMLFraction_h -
trunk/Source/WebCore/rendering/mathml/RenderMathMLMath.h
r202727 r203228 24 24 */ 25 25 26 #ifndef RenderMathMLMath_h 27 #define RenderMathMLMath_h 26 #pragma once 28 27 29 28 #if ENABLE(MATHML) … … 38 37 39 38 private: 40 bool isRenderMathMLMath() const override{ return true; }41 const char* renderName() const override{ return "RenderMathMLMath"; }39 bool isRenderMathMLMath() const final { return true; } 40 const char* renderName() const final { return "RenderMathMLMath"; } 42 41 }; 43 42 … … 47 46 48 47 #endif // ENABLE(MATHML) 49 #endif // RenderMathMLMath_h -
trunk/Source/WebCore/rendering/mathml/RenderMathMLMenclose.h
r202727 r203228 25 25 */ 26 26 27 #ifndef RenderMathMLMenclose_h 28 #define RenderMathMLMenclose_h 27 #pragma once 29 28 30 29 #if ENABLE(MATHML) … … 59 58 60 59 #endif // ENABLE(MATHML) 61 #endif // RenderMathMLMenclose_h -
trunk/Source/WebCore/rendering/mathml/RenderMathMLOperator.h
r202970 r203228 24 24 */ 25 25 26 #ifndef RenderMathMLOperator_h 27 #define RenderMathMLOperator_h 26 #pragma once 28 27 29 28 #if ENABLE(MATHML) 30 29 31 #include "Font.h"32 #include "GlyphPage.h"33 30 #include "MathMLElement.h" 34 31 #include "MathMLOperatorDictionary.h" 35 32 #include "MathOperator.h" 36 #include "OpenTypeMathData.h"37 33 #include "RenderMathMLToken.h" 38 34 39 35 namespace WebCore { 40 36 41 class RenderMathMLOperator : public RenderMathMLToken {37 class RenderMathMLOperator final : public RenderMathMLToken { 42 38 public: 43 39 RenderMathMLOperator(MathMLElement&, RenderStyle&&); … … 55 51 LayoutUnit italicCorrection() const { return m_mathOperator.italicCorrection(); } 56 52 57 void styleDidChange(StyleDifference, const RenderStyle* oldStyle) final;58 59 void paint(PaintInfo&, const LayoutPoint&) final;60 61 53 void updateTokenContent(const String& operatorString); 62 54 void updateTokenContent() final; … … 65 57 UChar textContent() const { return m_textContent; } 66 58 67 pr otected:59 private: 68 60 virtual void setOperatorProperties(); 61 void styleDidChange(StyleDifference, const RenderStyle* oldStyle) final; 69 62 void computePreferredLogicalWidths() final; 70 63 void layoutBlock(bool relayoutChildren, LayoutUnit pageLogicalHeight = 0) final; 64 void paint(PaintInfo&, const LayoutPoint&) final; 65 71 66 void setLeadingSpace(LayoutUnit leadingSpace) { m_leadingSpace = leadingSpace; } 72 67 void setTrailingSpace(LayoutUnit trailingSpace) { m_trailingSpace = trailingSpace; } 73 68 74 private: 75 const char* renderName() const override { return isAnonymous() ? "RenderMathMLOperator (anonymous)" : "RenderMathMLOperator"; } 69 const char* renderName() const final { return isAnonymous() ? "RenderMathMLOperator (anonymous)" : "RenderMathMLOperator"; } 76 70 void paintChildren(PaintInfo& forSelf, const LayoutPoint&, PaintInfo& forChild, bool usePrintRect) final; 77 71 bool isRenderMathMLOperator() const final { return true; } … … 110 104 111 105 #endif // ENABLE(MATHML) 112 #endif // RenderMathMLOperator_h -
trunk/Source/WebCore/rendering/mathml/RenderMathMLPadded.h
r203150 r203228 24 24 */ 25 25 26 #ifndef RenderMathMLPadded_h27 #define RenderMathMLPadded_h28 26 #pragma once 29 27 … … 62 60 63 61 #endif // ENABLE(MATHML) 64 #endif // RenderMathMLPadded_h -
trunk/Source/WebCore/rendering/mathml/RenderMathMLRoot.h
r202960 r203228 25 25 */ 26 26 27 #ifndef RenderMathMLRoot_h 28 #define RenderMathMLRoot_h 27 #pragma once 29 28 30 29 #if ENABLE(MATHML) … … 36 35 namespace WebCore { 37 36 38 class RenderMathMLMenclose;39 40 37 // Render base^(1/index), or sqrt(base) using radical notation. 41 class RenderMathMLRoot : public RenderMathMLRow { 42 43 friend class RenderMathMLRootWrapper; 38 class RenderMathMLRoot final : public RenderMathMLRow { 44 39 45 40 public: 46 41 RenderMathMLRoot(Element&, RenderStyle&&); 47 void styleDidChange(StyleDifference, const RenderStyle* oldStyle) final;48 42 void updateFromElement() final; 49 50 void computePreferredLogicalWidths() final;51 void layoutBlock(bool relayoutChildren, LayoutUnit pageLogicalHeight = 0) final;52 43 void updateStyle(); 53 54 protected:55 void paint(PaintInfo&, const LayoutPoint&) final;56 44 57 45 private: … … 61 49 bool isRenderMathMLRoot() const final { return true; } 62 50 const char* renderName() const final { return "RenderMathMLRoot"; } 51 52 void styleDidChange(StyleDifference, const RenderStyle* oldStyle) final; 53 54 void computePreferredLogicalWidths() final; 55 void layoutBlock(bool relayoutChildren, LayoutUnit pageLogicalHeight = 0) final; 56 void paint(PaintInfo&, const LayoutPoint&) final; 63 57 64 58 MathOperator m_radicalOperator; … … 82 76 83 77 #endif // ENABLE(MATHML) 84 85 #endif // RenderMathMLRoot_h -
trunk/Source/WebCore/rendering/mathml/RenderMathMLRow.cpp
r202934 r203228 42 42 RenderMathMLRow::RenderMathMLRow(Element& element, RenderStyle&& style) 43 43 : RenderMathMLBlock(element, WTFMove(style)) 44 {45 }46 47 RenderMathMLRow::RenderMathMLRow(Document& document, RenderStyle&& style)48 : RenderMathMLBlock(document, WTFMove(style))49 44 { 50 45 } -
trunk/Source/WebCore/rendering/mathml/RenderMathMLRow.h
r202934 r203228 25 25 */ 26 26 27 #ifndef RenderMathMLRow_h 28 #define RenderMathMLRow_h 27 #pragma once 29 28 30 29 #if ENABLE(MATHML) … … 34 33 namespace WebCore { 35 34 36 class RenderMathMLRoot;37 38 35 class RenderMathMLRow : public RenderMathMLBlock { 39 36 public: 40 37 RenderMathMLRow(Element&, RenderStyle&&); 41 RenderMathMLRow(Document&, RenderStyle&&);42 38 43 39 void updateOperatorProperties(); 44 40 41 protected: 45 42 void layoutBlock(bool relayoutChildren, LayoutUnit pageLogicalHeight = 0) override; 46 43 Optional<int> firstLineBaseline() const override; 47 44 48 protected:49 45 void layoutRowItems(LayoutUnit& ascent, LayoutUnit& descent); 50 46 void computeLineVerticalStretch(LayoutUnit& ascent, LayoutUnit& descent); … … 61 57 62 58 #endif // ENABLE(MATHML) 63 #endif // RenderMathMLRow_h -
trunk/Source/WebCore/rendering/mathml/RenderMathMLScripts.h
r202970 r203228 26 26 */ 27 27 28 #ifndef RenderMathMLScripts_h 29 #define RenderMathMLScripts_h 28 #pragma once 30 29 31 30 #if ENABLE(MATHML) … … 39 38 RenderMathMLScripts(Element&, RenderStyle&&); 40 39 RenderMathMLOperator* unembellishedOperator() final; 41 Optional<int> firstLineBaseline() const final;42 void layoutBlock(bool relayoutChildren, LayoutUnit pageLogicalHeight = 0) override;43 40 44 41 protected: … … 46 43 const char* renderName() const override { return "RenderMathMLScripts"; } 47 44 void computePreferredLogicalWidths() override; 45 void layoutBlock(bool relayoutChildren, LayoutUnit pageLogicalHeight = 0) override; 48 46 49 47 enum ScriptsType { Sub, Super, SubSup, Multiscripts, Under, Over, UnderOver }; … … 51 49 52 50 private: 51 Optional<int> firstLineBaseline() const final; 53 52 bool getBaseAndScripts(RenderBox*& base, RenderBox*& firstPostScript, RenderBox*& firstPreScript); 54 53 LayoutUnit spaceAfterScript(); … … 62 61 63 62 #endif // ENABLE(MATHML) 64 65 #endif // RenderMathMLScripts_h -
trunk/Source/WebCore/rendering/mathml/RenderMathMLSpace.h
r203108 r203228 24 24 */ 25 25 26 #ifndef RenderMathMLSpace_h 27 #define RenderMathMLSpace_h 26 #pragma once 28 27 29 28 #if ENABLE(MATHML) … … 56 55 57 56 #endif // ENABLE(MATHML) 58 #endif // RenderMathMLSpace_h -
trunk/Source/WebCore/rendering/mathml/RenderMathMLToken.h
r202727 r203228 25 25 */ 26 26 27 #ifndef RenderMathMLToken_h 28 #define RenderMathMLToken_h 27 #pragma once 29 28 30 29 #if ENABLE(MATHML) … … 32 31 #include "MathMLTextElement.h" 33 32 #include "RenderMathMLBlock.h" 34 #include "RenderText.h"35 33 36 34 namespace WebCore { … … 43 41 MathMLTextElement& element() { return static_cast<MathMLTextElement&>(nodeForNonAnonymous()); } 44 42 45 bool isChildAllowed(const RenderObject&, const RenderStyle&) const override { return true; };46 43 virtual void updateTokenContent(); 47 44 void updateFromElement() override; 48 45 46 protected: 49 47 void paint(PaintInfo&, const LayoutPoint&) override; 50 48 void paintChildren(PaintInfo& forSelf, const LayoutPoint&, PaintInfo& forChild, bool usePrintRect) override; … … 56 54 bool isRenderMathMLToken() const final { return true; } 57 55 const char* renderName() const override { return "RenderMathMLToken"; } 56 bool isChildAllowed(const RenderObject&, const RenderStyle&) const final { return true; }; 58 57 void styleDidChange(StyleDifference, const RenderStyle* oldStyle) override; 59 58 void updateMathVariantGlyph(); … … 72 71 73 72 #endif // ENABLE(MATHML) 74 #endif // RenderMathMLToken_h -
trunk/Source/WebCore/rendering/mathml/RenderMathMLUnderOver.h
r203074 r203228 25 25 */ 26 26 27 #ifndef RenderMathMLUnderOver_h 28 #define RenderMathMLUnderOver_h 27 #pragma once 29 28 30 29 #if ENABLE(MATHML) … … 37 36 public: 38 37 RenderMathMLUnderOver(Element&, RenderStyle&&); 39 void computePreferredLogicalWidths() final;40 void layoutBlock(bool relayoutChildren, LayoutUnit pageLogicalHeight = 0) final;41 38 42 39 private: 43 40 bool isRenderMathMLScripts() const final { return false; } 44 bool isRenderMathMLUnderOver() const override { return true; } 45 const char* renderName() const override { return "RenderMathMLUnderOver"; } 41 bool isRenderMathMLUnderOver() const final { return true; } 42 const char* renderName() const final { return "RenderMathMLUnderOver"; } 43 44 void computePreferredLogicalWidths() final; 45 void layoutBlock(bool relayoutChildren, LayoutUnit pageLogicalHeight = 0) final; 46 46 47 47 void computeOperatorsHorizontalStretch(); … … 62 62 63 63 #endif // ENABLE(MATHML) 64 65 #endif // RenderMathMLUnderOver_h
Note: See TracChangeset
for help on using the changeset viewer.