Esempio n. 1
0
void EventPath::initialize()
{
    if (eventPathShouldBeEmptyFor(*m_node))
        return;
    calculatePath();
    calculateAdjustedTargets();
    calculateTreeScopePrePostOrderNumbers();
}
Esempio n. 2
0
EventPath::EventPath(Node& node, Event* event)
    : m_node(node)
    , m_event(event)
{
    calculatePath();
    calculateAdjustedTargets();
    calculateTreeScopePrePostOrderNumbers();
}
Esempio n. 3
0
void EventPath::initialize()
{
    if (eventPathShouldBeEmptyFor(*m_node))
        return;
    calculatePath();
    calculateAdjustedTargets();
    calculateTreeOrderAndSetNearestAncestorClosedTree();
}
Esempio n. 4
0
void EventPath::resetWith(Node* node)
{
    ASSERT(node);
    m_node = node;
    m_nodeEventContexts.clear();
    m_treeScopeEventContexts.clear();
    calculatePath();
    calculateAdjustedTargets();
    calculateAdjustedEventPath();
}
Esempio n. 5
0
void EventPath::resetWith(Node* node)
{
    ASSERT(node);
    m_node = node;
    m_nodeEventContexts.clear();
    m_treeScopeEventContexts.clear();
    calculatePath();
    calculateAdjustedTargets();
    if (!usesDeprecatedSVGUseTreeEventRules(node))
        calculateTreeScopePrePostOrderNumbers();
}