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 * This library is free software; you can redistribute it and/or | 4 * This library is free software; you can redistribute it and/or |
5 * modify it under the terms of the GNU Library General Public | 5 * modify it under the terms of the GNU Library General Public |
6 * License as published by the Free Software Foundation; either | 6 * License as published by the Free Software Foundation; either |
7 * version 2 of the License, or (at your option) any later version. | 7 * version 2 of the License, or (at your option) any later version. |
8 * | 8 * |
9 * This library is distributed in the hope that it will be useful, | 9 * This library is distributed in the hope that it will be useful, |
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of | 10 * but WITHOUT ANY WARRANTY; without even the implied warranty of |
(...skipping 14 matching lines...) Expand all Loading... |
25 #include "core/dom/EventContext.h" | 25 #include "core/dom/EventContext.h" |
26 #include "core/dom/EventPathWalker.h" | 26 #include "core/dom/EventPathWalker.h" |
27 #include "core/dom/FocusEvent.h" | 27 #include "core/dom/FocusEvent.h" |
28 #include "core/dom/FullscreenController.h" | 28 #include "core/dom/FullscreenController.h" |
29 #include "core/dom/MouseEvent.h" | 29 #include "core/dom/MouseEvent.h" |
30 #include "core/dom/Touch.h" | 30 #include "core/dom/Touch.h" |
31 #include "core/dom/TouchEvent.h" | 31 #include "core/dom/TouchEvent.h" |
32 #include "core/dom/TouchList.h" | 32 #include "core/dom/TouchList.h" |
33 #include "core/dom/TreeScope.h" | 33 #include "core/dom/TreeScope.h" |
34 #include "core/dom/shadow/ShadowRoot.h" | 34 #include "core/dom/shadow/ShadowRoot.h" |
35 #include <wtf/PassRefPtr.h> | 35 #include "wtf/PassRefPtr.h" |
36 #include <wtf/RefPtr.h> | 36 #include "wtf/RefPtr.h" |
37 #include <wtf/Vector.h> | 37 #include "wtf/Vector.h" |
38 | 38 |
39 namespace WebCore { | 39 namespace WebCore { |
40 | 40 |
41 static inline bool inTheSameScope(ShadowRoot* shadowRoot, EventTarget* target) | 41 static inline bool inTheSameScope(ShadowRoot* shadowRoot, EventTarget* target) |
42 { | 42 { |
43 return target->toNode() && target->toNode()->treeScope()->rootNode() == shad
owRoot; | 43 return target->toNode() && target->toNode()->treeScope()->rootNode() == shad
owRoot; |
44 } | 44 } |
45 | 45 |
46 static inline EventDispatchBehavior determineDispatchBehavior(Event* event, Shad
owRoot* shadowRoot, EventTarget* target) | 46 static inline EventDispatchBehavior determineDispatchBehavior(Event* event, Shad
owRoot* shadowRoot, EventTarget* target) |
47 { | 47 { |
(...skipping 226 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
274 break; | 274 break; |
275 } | 275 } |
276 scope = scope->parentTreeScope(); | 276 scope = scope->parentTreeScope(); |
277 } | 277 } |
278 for (Vector<TreeScope*, 32>::iterator iter = parentTreeScopes.begin(); iter
< parentTreeScopes.end(); ++iter) | 278 for (Vector<TreeScope*, 32>::iterator iter = parentTreeScopes.begin(); iter
< parentTreeScopes.end(); ++iter) |
279 relatedNodeMap.add(*iter, relatedNode); | 279 relatedNodeMap.add(*iter, relatedNode); |
280 return relatedNode; | 280 return relatedNode; |
281 } | 281 } |
282 | 282 |
283 } | 283 } |
OLD | NEW |