| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef StickyPositionScrollingConstraints_h | 5 #ifndef StickyPositionScrollingConstraints_h |
| 6 #define StickyPositionScrollingConstraints_h | 6 #define StickyPositionScrollingConstraints_h |
| 7 | 7 |
| 8 #include "platform/geometry/FloatRect.h" | 8 #include "platform/geometry/FloatRect.h" |
| 9 | 9 |
| 10 namespace blink { | 10 namespace blink { |
| 11 | 11 |
| 12 class LayoutBoxModelObjectTest; | |
| 13 | 12 |
| 14 class StickyPositionScrollingConstraints final { | 13 class StickyPositionScrollingConstraints final { |
| 15 public: | 14 public: |
| 16 enum AnchorEdgeFlags { | 15 enum AnchorEdgeFlags { |
| 17 AnchorEdgeLeft = 1 << 0, | 16 AnchorEdgeLeft = 1 << 0, |
| 18 AnchorEdgeRight = 1 << 1, | 17 AnchorEdgeRight = 1 << 1, |
| 19 AnchorEdgeTop = 1 << 2, | 18 AnchorEdgeTop = 1 << 2, |
| 20 AnchorEdgeBottom = 1 << 3 | 19 AnchorEdgeBottom = 1 << 3 |
| 21 }; | 20 }; |
| 22 typedef unsigned AnchorEdges; | 21 typedef unsigned AnchorEdges; |
| (...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 94 float m_rightOffset; | 93 float m_rightOffset; |
| 95 float m_topOffset; | 94 float m_topOffset; |
| 96 float m_bottomOffset; | 95 float m_bottomOffset; |
| 97 FloatRect m_scrollContainerRelativeContainingBlockRect; | 96 FloatRect m_scrollContainerRelativeContainingBlockRect; |
| 98 FloatRect m_scrollContainerRelativeStickyBoxRect; | 97 FloatRect m_scrollContainerRelativeStickyBoxRect; |
| 99 }; | 98 }; |
| 100 | 99 |
| 101 } // namespace blink | 100 } // namespace blink |
| 102 | 101 |
| 103 #endif // StickyPositionScrollingConstraints_h | 102 #endif // StickyPositionScrollingConstraints_h |
| OLD | NEW |