#include "third_party/blink/renderer/core/css/counter_style_map.h"
#include "third_party/blink/renderer/core/css/cascade_layer_map.h"
#include "third_party/blink/renderer/core/css/css_default_style_sheets.h"
#include "third_party/blink/renderer/core/css/resolver/scoped_style_resolver.h"
#include "third_party/blink/renderer/core/css/rule_set.h"
#include "third_party/blink/renderer/core/css/style_engine.h"
#include "third_party/blink/renderer/core/css/style_rule_counter_style.h"
#include "third_party/blink/renderer/core/dom/document.h"
#include "third_party/blink/renderer/platform/instrumentation/tracing/trace_event.h"
namespace blink {
namespace {
bool CounterStyleShouldOverride(Document& document,
const TreeScope* tree_scope,
const StyleRuleCounterStyle& new_rule,
const StyleRuleCounterStyle& existing_rule) { … }
}
CounterStyleMap* CounterStyleMap::GetUserCounterStyleMap(Document& document) { … }
CounterStyleMap* CounterStyleMap::GetAuthorCounterStyleMap(
const TreeScope& scope) { … }
CounterStyleMap* CounterStyleMap::CreateUserCounterStyleMap(
Document& document) { … }
CounterStyleMap* CounterStyleMap::CreateAuthorCounterStyleMap(
TreeScope& tree_scope) { … }
CounterStyleMap::CounterStyleMap(Document* document, TreeScope* tree_scope)
: … { … }
void CounterStyleMap::AddCounterStyles(const RuleSet& rule_set) { … }
CounterStyleMap* CounterStyleMap::GetAncestorMap() const { … }
CounterStyle* CounterStyleMap::FindCounterStyleAcrossScopes(
const AtomicString& name) const { … }
void CounterStyleMap::ResolveExtendsFor(CounterStyle& counter_style) { … }
void CounterStyleMap::ResolveFallbackFor(CounterStyle& counter_style) { … }
void CounterStyleMap::ResolveSpeakAsReferenceFor(CounterStyle& counter_style) { … }
void CounterStyleMap::ResolveReferences(
HeapHashSet<Member<CounterStyleMap>>& visited_maps) { … }
void CounterStyleMap::MarkDirtyCounterStyles(
HeapHashSet<Member<CounterStyle>>& visited_counter_styles) { … }
void CounterStyleMap::MarkAllDirtyCounterStyles(
Document& document,
const HeapHashSet<Member<TreeScope>>& active_tree_scopes) { … }
void CounterStyleMap::ResolveAllReferences(
Document& document,
const HeapHashSet<Member<TreeScope>>& active_tree_scopes) { … }
void CounterStyleMap::Dispose() { … }
void CounterStyleMap::Trace(Visitor* visitor) const { … }
}