chromium/third_party/blink/renderer/core/mathml/mathml_operator_element.cc

// Copyright 2020 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#ifdef UNSAFE_BUFFERS_BUILD
// TODO(crbug.com/351564777): Remove this and convert code to safer constructs.
#pragma allow_unsafe_buffers
#endif

#include "third_party/blink/renderer/core/mathml/mathml_operator_element.h"

#include "third_party/blink/renderer/core/css/style_change_reason.h"
#include "third_party/blink/renderer/core/dom/element_traversal.h"
#include "third_party/blink/renderer/core/layout/layout_object.h"
#include "third_party/blink/renderer/core/style/computed_style.h"
#include "third_party/blink/renderer/platform/text/mathml_operator_dictionary.h"

namespace blink {

namespace {

static const uint32_t kOperatorPropertyFlagsAll =;
static const uint32_t kOperatorPropertyFlagsNone =;

// https://w3c.github.io/mathml-core/#operator-dictionary-categories-values
// Leading and trailing spaces are respresented in math units, i.e. 1/18em.
struct MathMLOperatorDictionaryProperties {};
static const MathMLOperatorDictionaryProperties
    MathMLOperatorDictionaryCategories[] =;

static const QualifiedName& OperatorPropertyFlagToAttributeName(
    MathMLOperatorElement::OperatorPropertyFlag flag) {}

}  // namespace

MathMLOperatorElement::MathMLOperatorElement(Document& doc)
    :{}

void MathMLOperatorElement::ChildrenChanged(
    const ChildrenChange& children_change) {}

void MathMLOperatorElement::SetOperatorPropertyDirtyFlagIfNeeded(
    const AttributeModificationParams& param,
    const OperatorPropertyFlag& flag,
    bool& needs_layout) {}

void MathMLOperatorElement::ParseAttribute(
    const AttributeModificationParams& param) {}

// https://w3c.github.io/mathml-core/#dfn-algorithm-for-determining-the-properties-of-an-embellished-operator
void MathMLOperatorElement::ComputeDictionaryCategory() {}

void MathMLOperatorElement::ComputeOperatorProperty(OperatorPropertyFlag flag) {}

bool MathMLOperatorElement::IsVertical() {}

bool MathMLOperatorElement::HasBooleanProperty(OperatorPropertyFlag flag) {}

void MathMLOperatorElement::CheckFormAfterSiblingChange() {}

void MathMLOperatorElement::SetOperatorFormDirty() {}

void MathMLOperatorElement::AddMathLSpaceIfNeeded(
    ComputedStyleBuilder& builder,
    const CSSToLengthConversionData& conversion_data) {}

void MathMLOperatorElement::AddMathRSpaceIfNeeded(
    ComputedStyleBuilder& builder,
    const CSSToLengthConversionData& conversion_data) {}

void MathMLOperatorElement::AddMathMinSizeIfNeeded(
    ComputedStyleBuilder& builder,
    const CSSToLengthConversionData& conversion_data) {}

void MathMLOperatorElement::AddMathMaxSizeIfNeeded(
    ComputedStyleBuilder& builder,
    const CSSToLengthConversionData& conversion_data) {}

double MathMLOperatorElement::DefaultLeadingSpace() {}

double MathMLOperatorElement::DefaultTrailingSpace() {}

}  // namespace blink