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 13 matching lines...) Expand all Loading... |
24 * | 24 * |
25 */ | 25 */ |
26 | 26 |
27 #ifndef TreeScopeEventContext_h | 27 #ifndef TreeScopeEventContext_h |
28 #define TreeScopeEventContext_h | 28 #define TreeScopeEventContext_h |
29 | 29 |
30 #include "core/CoreExport.h" | 30 #include "core/CoreExport.h" |
31 #include "core/dom/Node.h" | 31 #include "core/dom/Node.h" |
32 #include "core/dom/TreeScope.h" | 32 #include "core/dom/TreeScope.h" |
33 #include "core/events/EventTarget.h" | 33 #include "core/events/EventTarget.h" |
34 #include "wtf/Vector.h" | 34 #include "platform/wtf/Vector.h" |
35 | 35 |
36 namespace blink { | 36 namespace blink { |
37 | 37 |
38 class ContainerNode; | 38 class ContainerNode; |
39 class EventPath; | 39 class EventPath; |
40 class EventTarget; | 40 class EventTarget; |
41 template <typename NodeType> | 41 template <typename NodeType> |
42 class StaticNodeTypeList; | 42 class StaticNodeTypeList; |
43 using StaticNodeList = StaticNodeTypeList<Node>; | 43 using StaticNodeList = StaticNodeTypeList<Node>; |
44 class TouchEventContext; | 44 class TouchEventContext; |
(...skipping 112 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
157 DCHECK_NE(other.pre_order_, -1); | 157 DCHECK_NE(other.pre_order_, -1); |
158 DCHECK_NE(other.post_order_, -1); | 158 DCHECK_NE(other.post_order_, -1); |
159 return (pre_order_ < other.pre_order_ && post_order_ < other.pre_order_) || | 159 return (pre_order_ < other.pre_order_ && post_order_ < other.pre_order_) || |
160 (pre_order_ > other.pre_order_ && pre_order_ > other.post_order_); | 160 (pre_order_ > other.pre_order_ && pre_order_ > other.post_order_); |
161 } | 161 } |
162 #endif | 162 #endif |
163 | 163 |
164 } // namespace blink | 164 } // namespace blink |
165 | 165 |
166 #endif // TreeScopeEventContext_h | 166 #endif // TreeScopeEventContext_h |
OLD | NEW |