Independently owned tokens whose style-byte reservation follows the last reference.
More...
#include "donner/svg/components/style/CustomPropertyMap.h"
|
|
std::span< const css::ComponentValue > | tokens () const |
| | Borrow the stored tokens for the lifetime of this sequence.
|
|
| TokenSequence (const TokenSequence &)=delete |
|
TokenSequence & | operator= (const TokenSequence &)=delete |
|
| static std::shared_ptr< const TokenSequence > | Create (std::shared_ptr< RetainedStyleBytes > account, std::span< const css::ComponentValue > values) |
| | Deep-copy an admitted token tree, detaching token strings from the declaration source.
|
|
|
static constexpr std::size_t | kMaximumComponentValues = 65'536 |
| | Maximum number of values in the entire token tree.
|
|
static constexpr std::size_t | kMaximumTextBytes = 1024 * 1024 |
| | Maximum aggregate stored token text.
|
Independently owned tokens whose style-byte reservation follows the last reference.
◆ Create()
Deep-copy an admitted token tree, detaching token strings from the declaration source.
- Parameters
-
| account | Account charged until the last reference releases the sequence. |
| values | Borrowed values. An empty tree is a valid custom property value. |
- Returns
- Null when a storage or retained-byte limit refuses the sequence.
The documentation for this class was generated from the following file: