#include <algorithm>#include <functional>#include <memory>#include <optional>#include <span>#include <string_view>#include <unordered_set>#include <utility>#include <vector>#include "donner/base/EcsRegistry.h"#include "donner/base/FileOffset.h"#include "donner/base/ParseWarningSink.h"#include "donner/css/Specificity.h"#include "donner/css/selectors/SelectorMatchOptions.h"#include "donner/svg/components/DocumentResourceFamilyBudget.h"#include "donner/svg/components/style/ComputedStyleComponent.h"#include "donner/svg/components/style/ExternalUseStyleContext.h"#include "donner/svg/components/style/StyleCascadeMetrics.h"#include "donner/svg/components/style/StylePassScheduler.h"Classes | |
| class | donner::svg::components::CascadeAncestorFilter |
| Optional pass-local ancestor test. The owning pass keeps the document stable while it runs. More... | |
| struct | donner::svg::components::CascadeAncestorFilters |
| A document may install a provider to create an independent filter for each executing context. An absent provider, or a null result, selects ordinary matching. Creation must be safe across independent document preparations. Each filter runs on its bound thread and can be destroyed on the pass owner after the join. More... | |
| struct | donner::svg::components::UnindexedCascadeForTesting |
| Test-only switch: while a registry's context holds this, the cascade and StyleSystem::collectMatchedStyleRules test every rule of every applicable stylesheet against every element instead of only the rule index's candidates. More... | |
| struct | donner::svg::components::UnfilteredCascadeForTesting |
| Runs the ordinary cascade without its ancestor filter for differential comparisons. More... | |
| struct | donner::svg::components::StylesheetEditScanLimitsForTesting |
| Test-only rule-to-element allowance for the old-and-new stylesheet edit scan. More... | |
| class | donner::svg::components::StyleResourceBudget |
| Aggregate stylesheet cascade and selector traversal budget for one style-computation pass. More... | |
| struct | donner::svg::components::StyleResourceBudget::Limits |
| Independent cascade, traversal, and retained-property limits. More... | |
| class | donner::svg::components::StyleResourceBudget::OwnerScope |
| Shared owner scope; nested recording and fallback work preserves the current allowance. More... | |
| class | donner::svg::components::StyleResourceBudget::ActiveRegistryScope |
| Keep mutable document storage active throughout preparation, drawing and restoration. More... | |
| struct | donner::svg::components::MatchedStyleRule |
| Diagnostic record for one stylesheet rule that matched an element. More... | |
| struct | donner::svg::components::StyleRuleAtSourceOffset |
| Stylesheet rule found at a document source offset. More... | |
| struct | donner::svg::components::CustomPropertyDeclarationBatchResult |
| Internal result of one aggregate custom-property provenance query. More... | |
| class | donner::svg::components::StyleSystem |
| Computes stylesheet information for elements, applying the CSS cascade and inheritance rules. More... | |
| class | donner::svg::components::StyleSystem::StagedRecords |
| Exclusive provisional storage for one executing cascade context. More... | |
| struct | donner::svg::components::StyleSystem::CascadePass |
| Mutable state used exclusively by one worker or by a nested serial cascade. More... | |
| class | donner::svg::components::StyleSystem::PreparedBatch |
| Holds bounded selector traces for a static document while the caller owns its access. More... | |
Namespaces | |
| namespace | donner |
| Top-level Donner namespace, which is split into different sub-namespaces such as donner::svg and donner::css. | |
| namespace | donner::css |
| Donner CSS library, a standalone composable CSS parser. | |
| namespace | donner::svg |
| Donner SVG library, which can load, manipulate and render SVG files. | |
| namespace | donner::svg::components |
| Contains the implementation of the Donner ECS,. | |
| struct donner::svg::components::CascadeAncestorFilters |
A document may install a provider to create an independent filter for each executing context. An absent provider, or a null result, selects ordinary matching. Creation must be safe across independent document preparations. Each filter runs on its bound thread and can be destroyed on the pass owner after the join.
| Class Members | ||
|---|---|---|
| function< unique_ptr< CascadeAncestorFilter >(const Registry &, StyleCascadeCounters &)> | create | |
| size_t | maximumBytesPerWorker = 0 | Conservative size of one filter's object and retained scratch. Charged before construction. |
| struct donner::svg::components::UnindexedCascadeForTesting |
Test-only switch: while a registry's context holds this, the cascade and StyleSystem::collectMatchedStyleRules test every rule of every applicable stylesheet against every element instead of only the rule index's candidates.
Differential tests compare the two; nothing else changes, so any difference is a rule the index wrongly skipped.
| struct donner::svg::components::UnfilteredCascadeForTesting |
Runs the ordinary cascade without its ancestor filter for differential comparisons.
| struct donner::svg::components::StylesheetEditScanLimitsForTesting |
| struct donner::svg::components::CustomPropertyDeclarationBatchResult |
Internal result of one aggregate custom-property provenance query.
| Class Members | ||
|---|---|---|
| bool | budgetExceeded = false | |
| bool | complete = false | |
| vector< optional< SourceRange > > | declarations | |
| size_t | work = 0 | |
| struct donner::svg::components::StyleSystem::CascadePass |
Mutable state used exclusively by one worker or by a nested serial cascade.
| Class Members | ||
|---|---|---|
| unsigned | activeCascades = 0 | Nesting for whole-registry copy accounting. |
| StyleAncestorFilter * | ancestorFilter = nullptr | Optional pass-owned ancestor filter. |
| StyleResourceBudget & | budget | Work allowance and shared record account. |
| MatchedPropertiesCache & | cache | Cache exclusive to this worker and this stylesheet generation. |
| StyleCascadeCounters & | counters | Work attributed to this pass. |
| const DocumentLayerOrder * | layers = nullptr | Frozen document layer ranks, if used. |
| StagedRecords * | staging = nullptr | Optional worker-private tentative output. |
| CascadeAncestorFilter * | testFilter = nullptr | Optional test provider owned by the pass. |