OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2013 Google Inc. All rights reserved. | 2 * Copyright (C) 2013 Google Inc. All rights reserved. |
3 * | 3 * |
4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
5 * modification, are permitted provided that the following conditions are | 5 * modification, are permitted provided that the following conditions are |
6 * met: | 6 * met: |
7 * | 7 * |
8 * * Redistributions of source code must retain the above copyright | 8 * * Redistributions of source code must retain the above copyright |
9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
10 * * Neither the name of Google Inc. nor the names of its | 10 * * Neither the name of Google Inc. nor the names of its |
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
69 | 69 |
70 void addNodeEventContext(Node*); | 70 void addNodeEventContext(Node*); |
71 | 71 |
72 void calculatePath(); | 72 void calculatePath(); |
73 void calculateAdjustedTargets(); | 73 void calculateAdjustedTargets(); |
74 void calculateTreeScopePrePostOrderNumbers(); | 74 void calculateTreeScopePrePostOrderNumbers(); |
75 | 75 |
76 void shrink(size_t newSize) { m_nodeEventContexts.shrink(newSize); } | 76 void shrink(size_t newSize) { m_nodeEventContexts.shrink(newSize); } |
77 void shrinkIfNeeded(const Node* target, const EventTarget* relatedTarget); | 77 void shrinkIfNeeded(const Node* target, const EventTarget* relatedTarget); |
78 | 78 |
79 void adjustTouchList(const Node*, const TouchList*, WillBeHeapVector<RawPtrW
illBeMember<TouchList> > adjustedTouchList, const WillBeHeapVector<RawPtrWillBeM
ember<TreeScope> >& treeScopes); | 79 void adjustTouchList(const Node*, const TouchList*, WillBeHeapVector<RawPtrW
illBeMember<TouchList>> adjustedTouchList, const WillBeHeapVector<RawPtrWillBeMe
mber<TreeScope>>& treeScopes); |
80 | 80 |
81 typedef WillBeHeapHashMap<RawPtrWillBeMember<TreeScope>, RefPtrWillBeMember<
TreeScopeEventContext> > TreeScopeEventContextMap; | 81 typedef WillBeHeapHashMap<RawPtrWillBeMember<TreeScope>, RefPtrWillBeMember<
TreeScopeEventContext>> TreeScopeEventContextMap; |
82 TreeScopeEventContext* ensureTreeScopeEventContext(Node* currentTarget, Tree
Scope*, TreeScopeEventContextMap&); | 82 TreeScopeEventContext* ensureTreeScopeEventContext(Node* currentTarget, Tree
Scope*, TreeScopeEventContextMap&); |
83 | 83 |
84 typedef WillBeHeapHashMap<RawPtrWillBeMember<TreeScope>, RawPtrWillBeMember<
EventTarget> > RelatedTargetMap; | 84 typedef WillBeHeapHashMap<RawPtrWillBeMember<TreeScope>, RawPtrWillBeMember<
EventTarget>> RelatedTargetMap; |
85 | 85 |
86 static void buildRelatedNodeMap(const Node*, RelatedTargetMap&); | 86 static void buildRelatedNodeMap(const Node*, RelatedTargetMap&); |
87 static EventTarget* findRelatedNode(TreeScope*, RelatedTargetMap&); | 87 static EventTarget* findRelatedNode(TreeScope*, RelatedTargetMap&); |
88 | 88 |
89 #if ENABLE(ASSERT) | 89 #if ENABLE(ASSERT) |
90 static void checkReachability(TreeScope&, TouchList&); | 90 static void checkReachability(TreeScope&, TouchList&); |
91 #endif | 91 #endif |
92 | 92 |
93 WillBeHeapVector<NodeEventContext, 64> m_nodeEventContexts; | 93 WillBeHeapVector<NodeEventContext, 64> m_nodeEventContexts; |
94 RawPtrWillBeMember<Node> m_node; | 94 RawPtrWillBeMember<Node> m_node; |
95 RawPtrWillBeMember<Event> m_event; | 95 RawPtrWillBeMember<Event> m_event; |
96 WillBeHeapVector<RefPtrWillBeMember<TreeScopeEventContext> > m_treeScopeEven
tContexts; | 96 WillBeHeapVector<RefPtrWillBeMember<TreeScopeEventContext>> m_treeScopeEvent
Contexts; |
97 }; | 97 }; |
98 | 98 |
99 } // namespace | 99 } // namespace |
100 | 100 |
101 #endif | 101 #endif |
OLD | NEW |