OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2012 Apple Inc. All rights reserved. | 2 * Copyright (C) 2012 Apple 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 10 matching lines...) Expand all Loading... |
21 * OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT | 21 * OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT |
22 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE | 22 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE |
23 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | 23 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
24 */ | 24 */ |
25 | 25 |
26 #ifndef LayoutGeometryMap_h | 26 #ifndef LayoutGeometryMap_h |
27 #define LayoutGeometryMap_h | 27 #define LayoutGeometryMap_h |
28 | 28 |
29 #include "core/CoreExport.h" | 29 #include "core/CoreExport.h" |
30 #include "core/layout/LayoutGeometryMapStep.h" | 30 #include "core/layout/LayoutGeometryMapStep.h" |
31 #include "core/layout/LayoutObject.h" | 31 #include "core/layout/MapCoordinatesFlags.h" |
32 #include "platform/geometry/FloatPoint.h" | 32 #include "platform/geometry/FloatPoint.h" |
33 #include "platform/geometry/FloatQuad.h" | 33 #include "platform/geometry/FloatQuad.h" |
34 #include "platform/geometry/IntSize.h" | 34 #include "platform/geometry/IntSize.h" |
35 #include "platform/geometry/LayoutSize.h" | 35 #include "platform/geometry/LayoutSize.h" |
36 #include "wtf/Allocator.h" | 36 #include "wtf/Allocator.h" |
37 | 37 |
38 namespace blink { | 38 namespace blink { |
39 | 39 |
40 class PaintLayer; | 40 class PaintLayer; |
41 class LayoutBoxModelObject; | 41 class LayoutBoxModelObject; |
| 42 class LayoutObject; |
42 class TransformationMatrix; | 43 class TransformationMatrix; |
43 class TransformState; | 44 class TransformState; |
44 | 45 |
45 // Can be used while walking the layout tree to cache data about offsets and | 46 // Can be used while walking the layout tree to cache data about offsets and |
46 // transforms. | 47 // transforms. |
47 class CORE_EXPORT LayoutGeometryMap { | 48 class CORE_EXPORT LayoutGeometryMap { |
48 DISALLOW_NEW(); | 49 DISALLOW_NEW(); |
49 WTF_MAKE_NONCOPYABLE(LayoutGeometryMap); | 50 WTF_MAKE_NONCOPYABLE(LayoutGeometryMap); |
50 | 51 |
51 public: | 52 public: |
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
115 int m_transformedStepsCount; | 116 int m_transformedStepsCount; |
116 int m_fixedStepsCount; | 117 int m_fixedStepsCount; |
117 LayoutGeometryMapSteps m_mapping; | 118 LayoutGeometryMapSteps m_mapping; |
118 LayoutSize m_accumulatedOffset; | 119 LayoutSize m_accumulatedOffset; |
119 MapCoordinatesFlags m_mapCoordinatesFlags; | 120 MapCoordinatesFlags m_mapCoordinatesFlags; |
120 }; | 121 }; |
121 | 122 |
122 } // namespace blink | 123 } // namespace blink |
123 | 124 |
124 #endif // LayoutGeometryMap_h | 125 #endif // LayoutGeometryMap_h |
OLD | NEW |