| // Copyright 2020 The Chromium Authors. All rights reserved. |
| // Use of this source code is governed by a BSD-style license that can be |
| // found in the LICENSE file. |
| |
| #ifndef THIRD_PARTY_BLINK_RENDERER_CORE_MATHML_MATHML_PADDED_ELEMENT_H_ |
| #define THIRD_PARTY_BLINK_RENDERER_CORE_MATHML_MATHML_PADDED_ELEMENT_H_ |
| |
| #include "third_party/blink/renderer/core/mathml/mathml_row_element.h" |
| |
| namespace blink { |
| |
| class ComputedStyle; |
| class Document; |
| |
| class CORE_EXPORT MathMLPaddedElement final : public MathMLRowElement { |
| public: |
| explicit MathMLPaddedElement(Document&); |
| |
| void AddMathBaselineIfNeeded(ComputedStyle&, |
| const CSSToLengthConversionData&); |
| void AddMathPaddedDepthIfNeeded(ComputedStyle&, |
| const CSSToLengthConversionData&); |
| void AddMathPaddedLSpaceIfNeeded(ComputedStyle&, |
| const CSSToLengthConversionData&); |
| void AddMathPaddedVOffsetIfNeeded(ComputedStyle&, |
| const CSSToLengthConversionData&); |
| |
| private: |
| void ParseAttribute(const AttributeModificationParams&) final; |
| bool IsPresentationAttribute(const QualifiedName&) const final; |
| void CollectStyleForPresentationAttribute(const QualifiedName&, |
| const AtomicString&, |
| MutableCSSPropertyValueSet*) final; |
| LayoutObject* CreateLayoutObject(const ComputedStyle&, |
| LegacyLayout legacy) final; |
| }; |
| } // namespace blink |
| |
| #endif // THIRD_PARTY_BLINK_RENDERER_CORE_MATHML_MATHML_PADDED_ELEMENT_H_ |