#include "third_party/blink/renderer/core/css/style_environment_variables.h"
#include "base/containers/contains.h"
#include "third_party/blink/renderer/core/css/parser/css_tokenizer.h"
#include "third_party/blink/renderer/platform/runtime_enabled_features.h"
namespace blink {
namespace {
static const char kSafeAreaInsetDefault[] = …;
static const char kKeyboardInsetDefault[] = …;
void SetDefaultEnvironmentVariables(StyleEnvironmentVariables* instance) { … }
}
StyleEnvironmentVariables::StyleEnvironmentVariables() : … { … }
StyleEnvironmentVariables& StyleEnvironmentVariables::GetRootInstance() { … }
const AtomicString StyleEnvironmentVariables::GetVariableName(
UADefinedVariable variable,
const FeatureContext* feature_context) { … }
const AtomicString StyleEnvironmentVariables::GetVariableName(
UADefinedTwoDimensionalVariable variable,
const FeatureContext* feature_context) { … }
void StyleEnvironmentVariables::SetVariable(const AtomicString& name,
const String& value) { … }
void StyleEnvironmentVariables::SetVariable(const AtomicString& name,
unsigned first_dimension,
unsigned second_dimension,
const String& value) { … }
void StyleEnvironmentVariables::SetVariable(UADefinedVariable variable,
const String& value) { … }
void StyleEnvironmentVariables::SetVariable(
UADefinedTwoDimensionalVariable variable,
unsigned first_dimension,
unsigned second_dimension,
const String& value,
const FeatureContext* feature_context) { … }
void StyleEnvironmentVariables::RemoveVariable(UADefinedVariable variable) { … }
void StyleEnvironmentVariables::RemoveVariable(
UADefinedTwoDimensionalVariable variable,
const FeatureContext* feature_context) { … }
void StyleEnvironmentVariables::RemoveVariable(const AtomicString& name) { … }
CSSVariableData* StyleEnvironmentVariables::ResolveVariable(
const AtomicString& name,
WTF::Vector<unsigned> indices) { … }
void StyleEnvironmentVariables::DetachFromParent() { … }
String StyleEnvironmentVariables::FormatPx(int value) { … }
const FeatureContext* StyleEnvironmentVariables::GetFeatureContext() const { … }
void StyleEnvironmentVariables::ClearForTesting() { … }
void StyleEnvironmentVariables::ParentInvalidatedVariable(
const AtomicString& name) { … }
void StyleEnvironmentVariables::InvalidateVariable(const AtomicString& name) { … }
}