| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2006 Apple Computer, Inc. | 2 * Copyright (C) 2006 Apple Computer, Inc. |
| 3 * Copyright (C) 2012 Nokia Corporation and/or its subsidiary(-ies) | 3 * Copyright (C) 2012 Nokia Corporation and/or its subsidiary(-ies) |
| 4 * | 4 * |
| 5 * This library is free software; you can redistribute it and/or | 5 * This library is free software; you can redistribute it and/or |
| 6 * modify it under the terms of the GNU Library General Public | 6 * modify it under the terms of the GNU Library General Public |
| 7 * License as published by the Free Software Foundation; either | 7 * License as published by the Free Software Foundation; either |
| 8 * version 2 of the License, or (at your option) any later version. | 8 * version 2 of the License, or (at your option) any later version. |
| 9 * | 9 * |
| 10 * This library is distributed in the hope that it will be useful, | 10 * This library is distributed in the hope that it will be useful, |
| 11 * but WITHOUT ANY WARRANTY; without even the implied warranty of | 11 * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | 12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
| 13 * Library General Public License for more details. | 13 * Library General Public License for more details. |
| 14 * | 14 * |
| 15 * You should have received a copy of the GNU Library General Public License | 15 * You should have received a copy of the GNU Library General Public License |
| 16 * along with this library; see the file COPYING.LIB. If not, write to | 16 * along with this library; see the file COPYING.LIB. If not, write to |
| 17 * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, | 17 * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, |
| 18 * Boston, MA 02110-1301, USA. | 18 * Boston, MA 02110-1301, USA. |
| 19 * | 19 * |
| 20 */ | 20 */ |
| 21 | 21 |
| 22 #ifndef HitTestResult_h | 22 #ifndef HitTestResult_h |
| 23 #define HitTestResult_h | 23 #define HitTestResult_h |
| 24 | 24 |
| 25 #include "core/CoreExport.h" | 25 #include "core/CoreExport.h" |
| 26 #include "core/editing/PositionWithAffinity.h" |
| 26 #include "core/layout/HitTestLocation.h" | 27 #include "core/layout/HitTestLocation.h" |
| 27 #include "core/layout/HitTestRequest.h" | 28 #include "core/layout/HitTestRequest.h" |
| 28 #include "platform/geometry/FloatQuad.h" | 29 #include "platform/geometry/FloatQuad.h" |
| 29 #include "platform/geometry/FloatRect.h" | 30 #include "platform/geometry/FloatRect.h" |
| 30 #include "platform/geometry/LayoutRect.h" | 31 #include "platform/geometry/LayoutRect.h" |
| 31 #include "platform/heap/Handle.h" | 32 #include "platform/heap/Handle.h" |
| 32 #include "platform/text/TextDirection.h" | 33 #include "platform/text/TextDirection.h" |
| 33 #include "wtf/Forward.h" | 34 #include "wtf/Forward.h" |
| 34 #include "wtf/ListHashSet.h" | 35 #include "wtf/ListHashSet.h" |
| 35 #include "wtf/OwnPtr.h" | 36 #include "wtf/OwnPtr.h" |
| 36 #include "wtf/RefPtr.h" | 37 #include "wtf/RefPtr.h" |
| 37 #include "wtf/VectorTraits.h" | 38 #include "wtf/VectorTraits.h" |
| 38 | 39 |
| 39 namespace blink { | 40 namespace blink { |
| 40 | 41 |
| 41 class Element; | 42 class Element; |
| 42 class LocalFrame; | 43 class LocalFrame; |
| 43 class HTMLAreaElement; | 44 class HTMLAreaElement; |
| 44 class HTMLMediaElement; | 45 class HTMLMediaElement; |
| 45 class Image; | 46 class Image; |
| 46 class KURL; | 47 class KURL; |
| 47 class Node; | 48 class Node; |
| 48 class LayoutObject; | 49 class LayoutObject; |
| 49 class PositionWithAffinity; | |
| 50 class Scrollbar; | 50 class Scrollbar; |
| 51 | 51 |
| 52 class CORE_EXPORT HitTestResult { | 52 class CORE_EXPORT HitTestResult { |
| 53 ALLOW_ONLY_INLINE_ALLOCATION(); | 53 ALLOW_ONLY_INLINE_ALLOCATION(); |
| 54 | 54 |
| 55 public: | 55 public: |
| 56 typedef WillBeHeapListHashSet<RefPtrWillBeMember<Node>> NodeSet; | 56 typedef WillBeHeapListHashSet<RefPtrWillBeMember<Node>> NodeSet; |
| 57 | 57 |
| 58 HitTestResult(); | 58 HitTestResult(); |
| 59 HitTestResult(const HitTestRequest&, const LayoutPoint&); | 59 HitTestResult(const HitTestRequest&, const LayoutPoint&); |
| (...skipping 119 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 179 // in the wider sense of what canInitializeWithMemset provides, so fix this | 179 // in the wider sense of what canInitializeWithMemset provides, so fix this |
| 180 // by introducing a trait that encompasses "unused slot" handling and use it | 180 // by introducing a trait that encompasses "unused slot" handling and use it |
| 181 // here instead. | 181 // here instead. |
| 182 // | 182 // |
| 183 // Until that time, make this trait specialization conditional on OILPAN to | 183 // Until that time, make this trait specialization conditional on OILPAN to |
| 184 // limit exposure. | 184 // limit exposure. |
| 185 WTF_ALLOW_INIT_WITH_MEM_FUNCTIONS(blink::HitTestResult); | 185 WTF_ALLOW_INIT_WITH_MEM_FUNCTIONS(blink::HitTestResult); |
| 186 #endif | 186 #endif |
| 187 | 187 |
| 188 #endif // HitTestResult_h | 188 #endif // HitTestResult_h |
| OLD | NEW |