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 |
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | 11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
12 * Library General Public License for more details. | 12 * Library General Public License for more details. |
13 * | 13 * |
14 * You should have received a copy of the GNU Library General Public License | 14 * You should have received a copy of the GNU Library General Public License |
15 * along with this library; see the file COPYING.LIB. If not, write to | 15 * along with this library; see the file COPYING.LIB. If not, write to |
16 * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, | 16 * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, |
17 * Boston, MA 02110-1301, USA. | 17 * Boston, MA 02110-1301, USA. |
18 */ | 18 */ |
19 | 19 |
20 #ifndef EventRetargeter_h | 20 #ifndef EventRetargeter_h |
21 #define EventRetargeter_h | 21 #define EventRetargeter_h |
22 | 22 |
23 #include "SVGNames.h" | 23 #include "SVGNames.h" |
24 #include "core/dom/ContainerNode.h" | 24 #include "core/dom/ContainerNode.h" |
25 #include "core/dom/EventContext.h" | 25 #include "core/dom/EventContext.h" |
26 #include "core/dom/shadow/ShadowRoot.h" | 26 #include "core/dom/shadow/ShadowRoot.h" |
27 #include "core/svg/SVGElementInstance.h" | 27 #include "core/svg/SVGElementInstance.h" |
28 #include "core/svg/SVGUseElement.h" | 28 #include "core/svg/SVGUseElement.h" |
29 #include "wtf/HashMap.h" | 29 #include "wtf/HashMap.h" |
30 #include "wtf/PassRefPtr.h" | |
31 #include "wtf/RefPtr.h" | 30 #include "wtf/RefPtr.h" |
32 | 31 |
33 namespace WebCore { | 32 namespace WebCore { |
34 | 33 |
35 class EventTarget; | 34 class EventTarget; |
36 class FocusEvent; | 35 class FocusEvent; |
37 class MouseEvent; | 36 class MouseEvent; |
38 class Node; | 37 class Node; |
39 class TouchEvent; | 38 class TouchEvent; |
40 class TreeScope; | 39 class TreeScope; |
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
89 SVGUseElement* useElement = static_cast<SVGUseElement*>(shadowHostElement); | 88 SVGUseElement* useElement = static_cast<SVGUseElement*>(shadowHostElement); |
90 if (SVGElementInstance* instance = useElement->instanceForShadowTreeElement(
referenceNode)) | 89 if (SVGElementInstance* instance = useElement->instanceForShadowTreeElement(
referenceNode)) |
91 return instance; | 90 return instance; |
92 | 91 |
93 return referenceNode; | 92 return referenceNode; |
94 } | 93 } |
95 | 94 |
96 } | 95 } |
97 | 96 |
98 #endif // EventRetargeter_h | 97 #endif // EventRetargeter_h |
OLD | NEW |