OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2011 Apple Inc. All rights reserved. | 2 * Copyright (C) 2011 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 13 matching lines...) Expand all Loading... |
24 */ | 24 */ |
25 | 25 |
26 #ifndef HitTestingTransformState_h | 26 #ifndef HitTestingTransformState_h |
27 #define HitTestingTransformState_h | 27 #define HitTestingTransformState_h |
28 | 28 |
29 #include "platform/geometry/FloatPoint.h" | 29 #include "platform/geometry/FloatPoint.h" |
30 #include "platform/geometry/FloatQuad.h" | 30 #include "platform/geometry/FloatQuad.h" |
31 #include "platform/geometry/IntSize.h" | 31 #include "platform/geometry/IntSize.h" |
32 #include "platform/transforms/AffineTransform.h" | 32 #include "platform/transforms/AffineTransform.h" |
33 #include "platform/transforms/TransformationMatrix.h" | 33 #include "platform/transforms/TransformationMatrix.h" |
34 #include "wtf/PassRefPtr.h" | 34 #include "platform/wtf/PassRefPtr.h" |
35 #include "wtf/RefCounted.h" | 35 #include "platform/wtf/RefCounted.h" |
36 | 36 |
37 namespace blink { | 37 namespace blink { |
38 | 38 |
39 // FIXME: Now that TransformState lazily creates its TransformationMatrix it | 39 // FIXME: Now that TransformState lazily creates its TransformationMatrix it |
40 // takes up less space. | 40 // takes up less space. |
41 // So there's really no need for a ref counted version. So This class should be | 41 // So there's really no need for a ref counted version. So This class should be |
42 // removed and replaced with TransformState. There are some minor differences | 42 // removed and replaced with TransformState. There are some minor differences |
43 // (like the way translate() works slightly differently than move()) so care has | 43 // (like the way translate() works slightly differently than move()) so care has |
44 // to be taken when this is done. | 44 // to be taken when this is done. |
45 class HitTestingTransformState : public RefCounted<HitTestingTransformState> { | 45 class HitTestingTransformState : public RefCounted<HitTestingTransformState> { |
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
88 last_planar_area_(other.last_planar_area_), | 88 last_planar_area_(other.last_planar_area_), |
89 accumulated_transform_(other.accumulated_transform_), | 89 accumulated_transform_(other.accumulated_transform_), |
90 accumulating_transform_(other.accumulating_transform_) {} | 90 accumulating_transform_(other.accumulating_transform_) {} |
91 | 91 |
92 void FlattenWithTransform(const TransformationMatrix&); | 92 void FlattenWithTransform(const TransformationMatrix&); |
93 }; | 93 }; |
94 | 94 |
95 } // namespace blink | 95 } // namespace blink |
96 | 96 |
97 #endif // HitTestingTransformState_h | 97 #endif // HitTestingTransformState_h |
OLD | NEW |