| 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 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 81 m_forceAccumulatingTransform(true), | 81 m_forceAccumulatingTransform(true), |
| 82 m_mapPoint(false), | 82 m_mapPoint(false), |
| 83 m_mapQuad(false), | 83 m_mapQuad(false), |
| 84 m_direction(mappingDirection) {} | 84 m_direction(mappingDirection) {} |
| 85 | 85 |
| 86 TransformState(const TransformState& other) { *this = other; } | 86 TransformState(const TransformState& other) { *this = other; } |
| 87 | 87 |
| 88 TransformState& operator=(const TransformState&); | 88 TransformState& operator=(const TransformState&); |
| 89 | 89 |
| 90 void setQuad(const FloatQuad& quad) { | 90 void setQuad(const FloatQuad& quad) { |
| 91 // FIXME: this assumes that the quad being added is in the coordinate system
of the current state. | 91 // FIXME: this assumes that the quad being added is in the coordinate system |
| 92 // This breaks if we're simultaneously mapping a point. https://bugs.webkit.
org/show_bug.cgi?id=106680 | 92 // of the current state. This breaks if we're simultaneously mapping a |
| 93 // point. https://bugs.webkit.org/show_bug.cgi?id=106680 |
| 93 ASSERT(!m_mapPoint); | 94 ASSERT(!m_mapPoint); |
| 94 m_accumulatedOffset = LayoutSize(); | 95 m_accumulatedOffset = LayoutSize(); |
| 95 m_lastPlanarQuad = quad; | 96 m_lastPlanarQuad = quad; |
| 96 } | 97 } |
| 97 | 98 |
| 98 void move(LayoutUnit x, | 99 void move(LayoutUnit x, |
| 99 LayoutUnit y, | 100 LayoutUnit y, |
| 100 TransformAccumulation accumulate = FlattenTransform) { | 101 TransformAccumulation accumulate = FlattenTransform) { |
| 101 move(LayoutSize(x, y), accumulate); | 102 move(LayoutSize(x, y), accumulate); |
| 102 } | 103 } |
| (...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 139 LayoutSize m_accumulatedOffset; | 140 LayoutSize m_accumulatedOffset; |
| 140 bool m_accumulatingTransform; | 141 bool m_accumulatingTransform; |
| 141 bool m_forceAccumulatingTransform; | 142 bool m_forceAccumulatingTransform; |
| 142 bool m_mapPoint, m_mapQuad; | 143 bool m_mapPoint, m_mapQuad; |
| 143 TransformDirection m_direction; | 144 TransformDirection m_direction; |
| 144 }; | 145 }; |
| 145 | 146 |
| 146 } // namespace blink | 147 } // namespace blink |
| 147 | 148 |
| 148 #endif // TransformState_h | 149 #endif // TransformState_h |
| OLD | NEW |