| 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 16 matching lines...) Expand all Loading... |
| 27 #define TransformState_h | 27 #define TransformState_h |
| 28 | 28 |
| 29 #include <memory> | 29 #include <memory> |
| 30 #include "platform/geometry/FloatPoint.h" | 30 #include "platform/geometry/FloatPoint.h" |
| 31 #include "platform/geometry/FloatQuad.h" | 31 #include "platform/geometry/FloatQuad.h" |
| 32 #include "platform/geometry/IntSize.h" | 32 #include "platform/geometry/IntSize.h" |
| 33 #include "platform/geometry/LayoutPoint.h" | 33 #include "platform/geometry/LayoutPoint.h" |
| 34 #include "platform/geometry/LayoutSize.h" | 34 #include "platform/geometry/LayoutSize.h" |
| 35 #include "platform/transforms/AffineTransform.h" | 35 #include "platform/transforms/AffineTransform.h" |
| 36 #include "platform/transforms/TransformationMatrix.h" | 36 #include "platform/transforms/TransformationMatrix.h" |
| 37 #include "wtf/Allocator.h" | 37 #include "platform/wtf/Allocator.h" |
| 38 | 38 |
| 39 namespace blink { | 39 namespace blink { |
| 40 | 40 |
| 41 class PLATFORM_EXPORT TransformState { | 41 class PLATFORM_EXPORT TransformState { |
| 42 STACK_ALLOCATED(); | 42 STACK_ALLOCATED(); |
| 43 | 43 |
| 44 public: | 44 public: |
| 45 enum TransformDirection { | 45 enum TransformDirection { |
| 46 ApplyTransformDirection, | 46 ApplyTransformDirection, |
| 47 UnapplyInverseTransformDirection | 47 UnapplyInverseTransformDirection |
| (...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 148 LayoutSize m_accumulatedOffset; | 148 LayoutSize m_accumulatedOffset; |
| 149 bool m_accumulatingTransform; | 149 bool m_accumulatingTransform; |
| 150 bool m_forceAccumulatingTransform; | 150 bool m_forceAccumulatingTransform; |
| 151 bool m_mapPoint, m_mapQuad; | 151 bool m_mapPoint, m_mapQuad; |
| 152 TransformDirection m_direction; | 152 TransformDirection m_direction; |
| 153 }; | 153 }; |
| 154 | 154 |
| 155 } // namespace blink | 155 } // namespace blink |
| 156 | 156 |
| 157 #endif // TransformState_h | 157 #endif // TransformState_h |
| OLD | NEW |