Aggregate bound on selector work: element visits and bounded chunks of text inspection.
More...
#include "donner/css/selectors/SelectorMatchOptions.h"
|
| | SelectorTraversalBudget (std::size_t maximumSteps) |
| | Create an aggregate selector traversal budget with a caller-selected work-step ceiling.
|
|
bool | consume () |
| | Consume one work step, returning false once the limit is reached.
|
|
std::size_t | steps () const |
| | Work steps charged to this budget.
|
|
bool | rejected () const |
| | Whether a traversal exceeded the visit ceiling.
|
|
std::size_t | maximumSteps () const |
| | Configured maximum work steps.
|
|
void | reset () |
| | Clear accumulated work steps and rejection state while preserving the ceiling.
|
|
|
static constexpr std::size_t | kMaximumSteps = 4 * 1024 * 1024 |
| | Maximum work steps in one aggregate cascade or standalone match.
|
Aggregate bound on selector work: element visits and bounded chunks of text inspection.
◆ SelectorTraversalBudget()
| donner::css::SelectorTraversalBudget::SelectorTraversalBudget |
( |
std::size_t | maximumSteps | ) |
|
|
inlineexplicit |
Create an aggregate selector traversal budget with a caller-selected work-step ceiling.
- Parameters
-
| maximumSteps | Maximum work steps to admit. |
The documentation for this class was generated from the following file: