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

Frozen author layer ranks for one cascade pass. More...

#include "donner/svg/components/style/DocumentLayerOrder.h"

Classes

struct  SheetRanks
 Borrowed rank lookup for one sheet occurrence. Zero denotes a limit refusal. More...

Public Member Functions

bool allowsImportsOf (const css::Stylesheet &sheet) const
 False when the root stylesheet has invalid flattened import provenance.
bool hasRanks () const
 Whether at least one attached author stylesheet enables ranked cascade.
SheetRanks ranksFor (const css::Stylesheet &sheet) const
 Returns ranks for a single author stylesheet occurrence.
std::span< const Entity > stylesheets () const
 Author and UA sheets in live tree order when layering is active.
void reportRefusal (ParseWarningSink &warnings) const
 Reports a bounded diagnostic when a layer or import exceeded a document limit.

Static Public Member Functions

static std::unique_ptr< DocumentLayerOrder > Build (const Registry &registry)
 Creates a pass-owned order. Returns null when no CSS author sheet carries layer syntax.
static std::vector< Entity > StylesheetsInDocumentOrder (const Registry &registry)
 Attached sheets in source order, including on the frame after the last layer is removed.

Detailed Description

Frozen author layer ranks for one cascade pass.


The documentation for this class was generated from the following file:
  • donner/svg/components/style/DocumentLayerOrder.h