| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 BackgroundImageGeometry_h | 5 #ifndef BackgroundImageGeometry_h |
| 6 #define BackgroundImageGeometry_h | 6 #define BackgroundImageGeometry_h |
| 7 | 7 |
| 8 #include "core/paint/PaintPhase.h" | 8 #include "core/paint/PaintPhase.h" |
| 9 #include "platform/geometry/LayoutPoint.h" | 9 #include "platform/geometry/LayoutPoint.h" |
| 10 #include "platform/geometry/LayoutRect.h" | 10 #include "platform/geometry/LayoutRect.h" |
| 11 #include "platform/geometry/LayoutSize.h" | 11 #include "platform/geometry/LayoutSize.h" |
| 12 #include "wtf/Allocator.h" | 12 #include "wtf/Allocator.h" |
| 13 | 13 |
| 14 namespace blink { | 14 namespace blink { |
| 15 | 15 |
| 16 class FillLayer; | 16 class FillLayer; |
| 17 class LayoutBoxModelObject; | 17 class LayoutBoxModelObject; |
| 18 class LayoutObject; | |
| 19 class LayoutRect; | 18 class LayoutRect; |
| 20 | 19 |
| 21 class BackgroundImageGeometry { | 20 class BackgroundImageGeometry { |
| 22 DISALLOW_NEW_EXCEPT_PLACEMENT_NEW(); | 21 DISALLOW_NEW_EXCEPT_PLACEMENT_NEW(); |
| 23 | 22 |
| 24 public: | 23 public: |
| 25 BackgroundImageGeometry() : m_hasNonLocalGeometry(false) {} | 24 BackgroundImageGeometry() : m_hasNonLocalGeometry(false) {} |
| 26 | 25 |
| 27 void calculate(const LayoutBoxModelObject&, | 26 void calculate(const LayoutBoxModelObject&, |
| 28 const LayoutBoxModelObject* paintContainer, | 27 const LayoutBoxModelObject* paintContainer, |
| (...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 83 LayoutRect m_destRect; | 82 LayoutRect m_destRect; |
| 84 LayoutPoint m_phase; | 83 LayoutPoint m_phase; |
| 85 LayoutSize m_tileSize; | 84 LayoutSize m_tileSize; |
| 86 LayoutSize m_repeatSpacing; | 85 LayoutSize m_repeatSpacing; |
| 87 bool m_hasNonLocalGeometry; | 86 bool m_hasNonLocalGeometry; |
| 88 }; | 87 }; |
| 89 | 88 |
| 90 } // namespace blink | 89 } // namespace blink |
| 91 | 90 |
| 92 #endif // BackgroundImageGeometry_h | 91 #endif // BackgroundImageGeometry_h |
| OLD | NEW |