| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2014 Google Inc. All Rights Reserved. | 2 * Copyright (C) 2014 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 | 5 * modification, are permitted provided that the following conditions |
| 6 * are met: | 6 * are met: |
| 7 * 1. Redistributions of source code must retain the above copyright | 7 * 1. Redistributions of source code must retain the above copyright |
| 8 * notice, this list of conditions and the following disclaimer. | 8 * notice, this list of conditions and the following disclaimer. |
| 9 * 2. Redistributions in binary form must reproduce the above copyright | 9 * 2. Redistributions in binary form must reproduce the above copyright |
| 10 * notice, this list of conditions and the following disclaimer in the | 10 * notice, this list of conditions and the following disclaimer in the |
| (...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 84 } | 84 } |
| 85 | 85 |
| 86 private: | 86 private: |
| 87 TreeScopeEventContext(TreeScope&); | 87 TreeScopeEventContext(TreeScope&); |
| 88 | 88 |
| 89 void checkReachableNode(EventTarget&); | 89 void checkReachableNode(EventTarget&); |
| 90 | 90 |
| 91 bool isUnclosedTreeOf(const TreeScopeEventContext& other); | 91 bool isUnclosedTreeOf(const TreeScopeEventContext& other); |
| 92 | 92 |
| 93 Member<TreeScope> m_treeScope; | 93 Member<TreeScope> m_treeScope; |
| 94 Member<Node> | 94 Member<Node> m_rootNode; // Prevents TreeScope from being freed. TreeScope |
| 95 m_rootNode; // Prevents TreeScope from being freed. TreeScope itself isn'
t RefCounted. | 95 // itself isn't RefCounted. |
| 96 Member<EventTarget> m_target; | 96 Member<EventTarget> m_target; |
| 97 Member<EventTarget> m_relatedTarget; | 97 Member<EventTarget> m_relatedTarget; |
| 98 Member<HeapVector<Member<EventTarget>>> m_eventPath; | 98 Member<HeapVector<Member<EventTarget>>> m_eventPath; |
| 99 Member<TouchEventContext> m_touchEventContext; | 99 Member<TouchEventContext> m_touchEventContext; |
| 100 Member<TreeScopeEventContext> m_containingClosedShadowTree; | 100 Member<TreeScopeEventContext> m_containingClosedShadowTree; |
| 101 | 101 |
| 102 HeapVector<Member<TreeScopeEventContext>> m_children; | 102 HeapVector<Member<TreeScopeEventContext>> m_children; |
| 103 int m_preOrder; | 103 int m_preOrder; |
| 104 int m_postOrder; | 104 int m_postOrder; |
| 105 }; | 105 }; |
| (...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 159 DCHECK_NE(other.m_preOrder, -1); | 159 DCHECK_NE(other.m_preOrder, -1); |
| 160 DCHECK_NE(other.m_postOrder, -1); | 160 DCHECK_NE(other.m_postOrder, -1); |
| 161 return (m_preOrder < other.m_preOrder && m_postOrder < other.m_preOrder) || | 161 return (m_preOrder < other.m_preOrder && m_postOrder < other.m_preOrder) || |
| 162 (m_preOrder > other.m_preOrder && m_preOrder > other.m_postOrder); | 162 (m_preOrder > other.m_preOrder && m_preOrder > other.m_postOrder); |
| 163 } | 163 } |
| 164 #endif | 164 #endif |
| 165 | 165 |
| 166 } // namespace blink | 166 } // namespace blink |
| 167 | 167 |
| 168 #endif // TreeScopeEventContext_h | 168 #endif // TreeScopeEventContext_h |
| OLD | NEW |