| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2012 Apple Inc. All rights reserved. | 2 * Copyright (C) 2012 Apple Inc. All rights reserved. |
| 3 * Copyright (C) 2014 Google Inc. All rights reserved. | 3 * Copyright (C) 2014 Google Inc. All rights reserved. |
| 4 * | 4 * |
| 5 * Redistribution and use in source and binary forms, with or without | 5 * Redistribution and use in source and binary forms, with or without |
| 6 * modification, are permitted provided that the following conditions | 6 * modification, are permitted provided that the following conditions |
| 7 * are met: | 7 * are met: |
| 8 * 1. Redistributions of source code must retain the above copyright | 8 * 1. Redistributions of source code must retain the above copyright |
| 9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
| 10 * 2. Redistributions in binary form must reproduce the above copyright | 10 * 2. Redistributions in binary form must reproduce the above copyright |
| (...skipping 22 matching lines...) Expand all Loading... |
| 33 #include <memory> | 33 #include <memory> |
| 34 | 34 |
| 35 namespace blink { | 35 namespace blink { |
| 36 | 36 |
| 37 class LayoutObject; | 37 class LayoutObject; |
| 38 | 38 |
| 39 enum GeometryInfoFlag { | 39 enum GeometryInfoFlag { |
| 40 AccumulatingTransform = 1 << 0, | 40 AccumulatingTransform = 1 << 0, |
| 41 IsNonUniform = 1 << 1, // Mapping depends on the input point, e.g. because o
f CSS columns. | 41 IsNonUniform = 1 << 1, // Mapping depends on the input point, e.g. because o
f CSS columns. |
| 42 IsFixedPosition = 1 << 2, | 42 IsFixedPosition = 1 << 2, |
| 43 HasTransform = 1 << 3, | 43 ContainsFixedPosition = 1 << 3, |
| 44 }; | 44 }; |
| 45 typedef unsigned GeometryInfoFlags; | 45 typedef unsigned GeometryInfoFlags; |
| 46 | 46 |
| 47 // Stores data about how to map from one layoutObject to its container. | 47 // Stores data about how to map from one layoutObject to its container. |
| 48 struct LayoutGeometryMapStep { | 48 struct LayoutGeometryMapStep { |
| 49 DISALLOW_NEW_EXCEPT_PLACEMENT_NEW(); | 49 DISALLOW_NEW_EXCEPT_PLACEMENT_NEW(); |
| 50 LayoutGeometryMapStep(const LayoutGeometryMapStep& o) | 50 LayoutGeometryMapStep(const LayoutGeometryMapStep& o) |
| 51 : m_layoutObject(o.m_layoutObject) | 51 : m_layoutObject(o.m_layoutObject) |
| 52 , m_offset(o.m_offset) | 52 , m_offset(o.m_offset) |
| 53 , m_offsetForFixedPosition(o.m_offsetForFixedPosition) | 53 , m_offsetForFixedPosition(o.m_offsetForFixedPosition) |
| (...skipping 15 matching lines...) Expand all Loading... |
| 69 LayoutSize m_offsetForFixedPosition; | 69 LayoutSize m_offsetForFixedPosition; |
| 70 LayoutSize m_offsetForStickyPosition; | 70 LayoutSize m_offsetForStickyPosition; |
| 71 GeometryInfoFlags m_flags; | 71 GeometryInfoFlags m_flags; |
| 72 }; | 72 }; |
| 73 | 73 |
| 74 } // namespace blink | 74 } // namespace blink |
| 75 | 75 |
| 76 WTF_ALLOW_MOVE_INIT_AND_COMPARE_WITH_MEM_FUNCTIONS(blink::LayoutGeometryMapStep)
; | 76 WTF_ALLOW_MOVE_INIT_AND_COMPARE_WITH_MEM_FUNCTIONS(blink::LayoutGeometryMapStep)
; |
| 77 | 77 |
| 78 #endif // LayoutGeometryMapStep_h | 78 #endif // LayoutGeometryMapStep_h |
| OLD | NEW |