#include "third_party/blink/renderer/core/css/css_computed_style_declaration.h"
#include "base/memory/values_equivalent.h"
#include "third_party/blink/renderer/core/animation/css/css_animation_data.h"
#include "third_party/blink/renderer/core/css/computed_style_css_value_mapping.h"
#include "third_party/blink/renderer/core/css/css_identifier_value.h"
#include "third_party/blink/renderer/core/css/css_primitive_value.h"
#include "third_party/blink/renderer/core/css/css_primitive_value_mappings.h"
#include "third_party/blink/renderer/core/css/css_property_names.h"
#include "third_party/blink/renderer/core/css/css_selector.h"
#include "third_party/blink/renderer/core/css/css_variable_data.h"
#include "third_party/blink/renderer/core/css/parser/css_parser.h"
#include "third_party/blink/renderer/core/css/parser/css_selector_parser.h"
#include "third_party/blink/renderer/core/css/properties/css_property_ref.h"
#include "third_party/blink/renderer/core/css/style_engine.h"
#include "third_party/blink/renderer/core/css/zoom_adjusted_pixel_value.h"
#include "third_party/blink/renderer/core/display_lock/display_lock_document_state.h"
#include "third_party/blink/renderer/core/dom/document.h"
#include "third_party/blink/renderer/core/dom/flat_tree_traversal.h"
#include "third_party/blink/renderer/core/dom/node_computed_style.h"
#include "third_party/blink/renderer/core/dom/pseudo_element.h"
#include "third_party/blink/renderer/core/frame/web_feature.h"
#include "third_party/blink/renderer/core/html/html_frame_owner_element.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/core/style/computed_style_constants.h"
#include "third_party/blink/renderer/platform/bindings/exception_state.h"
#include "third_party/blink/renderer/platform/heap/garbage_collected.h"
#include "third_party/blink/renderer/platform/instrumentation/use_counter.h"
#include "third_party/blink/renderer/platform/runtime_enabled_features.h"
#include "third_party/blink/renderer/platform/wtf/text/string_builder.h"
namespace blink {
namespace {
CSSValueID CssIdentifierForFontSizeKeyword(int keyword_size) { … }
void LogUnimplementedPropertyID(const CSSProperty& property) { … }
void UseCountIfAnimationDurationZero(Document& document,
const ComputedStyle& style,
mojom::blink::WebFeature feature) { … }
}
const Vector<const CSSProperty*>&
CSSComputedStyleDeclaration::ComputableProperties(
const ExecutionContext* execution_context) { … }
CSSComputedStyleDeclaration::CSSComputedStyleDeclaration(
Element* element,
bool allow_visited_style,
const String& pseudo_element_name)
: … { … }
CSSComputedStyleDeclaration::~CSSComputedStyleDeclaration() = default;
String CSSComputedStyleDeclaration::cssText() const { … }
void CSSComputedStyleDeclaration::setCSSText(const ExecutionContext*,
const String&,
ExceptionState& exception_state) { … }
const CSSValue*
CSSComputedStyleDeclaration::GetFontSizeCSSValuePreferringKeyword() const { … }
bool CSSComputedStyleDeclaration::IsMonospaceFont() const { … }
const ComputedStyle* CSSComputedStyleDeclaration::ComputeComputedStyle() const { … }
const Vector<AtomicString>* CSSComputedStyleDeclaration::GetVariableNames()
const { … }
wtf_size_t CSSComputedStyleDeclaration::GetVariableNamesCount() const { … }
Element* CSSComputedStyleDeclaration::StyledElement() const { … }
LayoutObject* CSSComputedStyleDeclaration::StyledLayoutObject() const { … }
const CSSValue* CSSComputedStyleDeclaration::GetPropertyCSSValue(
CSSPropertyID property_id) const { … }
const CSSValue* CSSComputedStyleDeclaration::GetPropertyCSSValue(
const AtomicString& custom_property_name) const { … }
HeapHashMap<AtomicString, Member<const CSSValue>>
CSSComputedStyleDeclaration::GetVariables() const { … }
void CSSComputedStyleDeclaration::UpdateStyleAndLayoutTreeIfNeeded(
const CSSPropertyName* property_name,
bool for_all_properties) const { … }
void CSSComputedStyleDeclaration::UpdateStyleAndLayoutIfNeeded(
const CSSProperty* property,
bool for_all_properties) const { … }
const CSSValue* CSSComputedStyleDeclaration::GetPropertyCSSValue(
const CSSPropertyName& property_name) const { … }
String CSSComputedStyleDeclaration::GetPropertyValue(
CSSPropertyID property_id) const { … }
unsigned CSSComputedStyleDeclaration::length() const { … }
String CSSComputedStyleDeclaration::item(unsigned i) const { … }
bool CSSComputedStyleDeclaration::CssPropertyMatches(
CSSPropertyID property_id,
const CSSValue& property_value) const { … }
MutableCSSPropertyValueSet* CSSComputedStyleDeclaration::CopyProperties()
const { … }
MutableCSSPropertyValueSet* CSSComputedStyleDeclaration::CopyPropertiesInSet(
const Vector<const CSSProperty*>& properties) const { … }
CSSRule* CSSComputedStyleDeclaration::parentRule() const { … }
String CSSComputedStyleDeclaration::getPropertyValue(
const String& property_name) { … }
String CSSComputedStyleDeclaration::getPropertyPriority(const String&) { … }
String CSSComputedStyleDeclaration::GetPropertyShorthand(const String&) { … }
bool CSSComputedStyleDeclaration::IsPropertyImplicit(const String&) { … }
void CSSComputedStyleDeclaration::setProperty(const ExecutionContext*,
const String& name,
const String&,
const String&,
ExceptionState& exception_state) { … }
String CSSComputedStyleDeclaration::removeProperty(
const String& name,
ExceptionState& exception_state) { … }
const CSSValue* CSSComputedStyleDeclaration::GetPropertyCSSValueInternal(
CSSPropertyID property_id) { … }
const CSSValue* CSSComputedStyleDeclaration::GetPropertyCSSValueInternal(
const AtomicString& custom_property_name) { … }
String CSSComputedStyleDeclaration::GetPropertyValueInternal(
CSSPropertyID property_id) { … }
String CSSComputedStyleDeclaration::GetPropertyValueWithHint(
const String& property_name,
unsigned index) { … }
String CSSComputedStyleDeclaration::GetPropertyPriorityWithHint(
const String& property_name,
unsigned index) { … }
void CSSComputedStyleDeclaration::SetPropertyInternal(
CSSPropertyID id,
const String&,
StringView,
bool,
SecureContextMode,
ExceptionState& exception_state) { … }
void CSSComputedStyleDeclaration::Trace(Visitor* visitor) const { … }
CSSComputedStyleDeclaration::ScopedCleanStyleForAllProperties::
ScopedCleanStyleForAllProperties(CSSComputedStyleDeclaration* declaration)
: … { … }
CSSComputedStyleDeclaration::ScopedCleanStyleForAllProperties::
~ScopedCleanStyleForAllProperties() { … }
}