summaryrefslogtreecommitdiff
path: root/src/core/CSS.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/core/CSS.hpp')
-rw-r--r--src/core/CSS.hpp11
1 files changed, 9 insertions, 2 deletions
diff --git a/src/core/CSS.hpp b/src/core/CSS.hpp
index 8c87ee7..e730721 100644
--- a/src/core/CSS.hpp
+++ b/src/core/CSS.hpp
@@ -227,8 +227,9 @@ public:
const SelectionOperator selectionOperator;
public:
- SelectorEdge(Manager &mgr, Handle<SelectorNode> target,
- SelectionOperator selectionOperator)
+ SelectorEdge(
+ Manager &mgr, Handle<SelectorNode> target,
+ SelectionOperator selectionOperator = SelectionOperator::DESCENDANT)
: Managed(mgr),
target(acquire(target)),
selectionOperator(selectionOperator)
@@ -378,6 +379,12 @@ public:
* because they were already contained.
*/
std::vector<Rooted<SelectorNode>> append(Rooted<SelectorEdge> edge);
+
+ /**
+ * This is just a convenience function which creates a new edge
+ * automatically using the DESCENDANT SelectionOperator.
+ */
+ std::vector<Rooted<SelectorNode>> append(Rooted<SelectorNode> node);
};
}
#endif