Donner SVG main
0.8.0 ยท 766e862a0.8.0 main
SVG editor and embeddable C⁠+⁠+⁠20 engine.
Loading...
Searching...
No Matches
donner::svg::components::StylesheetImportBudget Struct Reference

Bounds applied to one document-wide @import resolution pass, across every stylesheet of the document. More...

#include "donner/svg/components/resources/StylesheetImportLoader.h"

Public Attributes

std::size_t remainingImports = kMaximumImports
 Import loads still permitted.
std::size_t remainingBytes = kMaximumBytes
 Imported CSS bytes still permitted. Parsed rules still permitted across all imported sheets: one stylesheet's worth in total.
std::size_t remainingRules = css::parser::RuleParser::kMaximumRules
std::size_t remainingComponentValues = css::parser::RuleParser::kMaximumComponentValues
 Parsed component values still permitted across all imported sheets.

Static Public Attributes

static constexpr std::size_t kMaximumDepth = 16
 Maximum nesting depth; a top-level import has depth 1.
static constexpr std::size_t kMaximumImports = 64
 Maximum number of import loads, counting each occurrence (including repeats of one URL).
static constexpr std::size_t kMaximumBytes = 2 * 1024 * 1024
 Maximum total bytes of imported CSS text.

Detailed Description

Bounds applied to one document-wide @import resolution pass, across every stylesheet of the document.

Fetches are additionally charged against the document's existing external-fetch and aggregate resource budgets by the caller.


The documentation for this struct was generated from the following file: