| 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 "platform/geometry/IntPoint.h" | 8 #include "platform/geometry/IntPoint.h" |
| 9 #include "platform/geometry/IntRect.h" | 9 #include "platform/geometry/IntRect.h" |
| 10 #include "platform/geometry/IntSize.h" | 10 #include "platform/geometry/IntSize.h" |
| 11 #include "wtf/Allocator.h" |
| 11 | 12 |
| 12 namespace blink { | 13 namespace blink { |
| 13 | 14 |
| 14 class BackgroundImageGeometry { | 15 class BackgroundImageGeometry { |
| 16 STACK_ALLOCATED(); |
| 15 public: | 17 public: |
| 16 BackgroundImageGeometry() | 18 BackgroundImageGeometry() |
| 17 : m_hasNonLocalGeometry(false) | 19 : m_hasNonLocalGeometry(false) |
| 18 { } | 20 { } |
| 19 | 21 |
| 20 IntRect destRect() const { return m_destRect; } | 22 IntRect destRect() const { return m_destRect; } |
| 21 void setDestRect(const IntRect& destRect) | 23 void setDestRect(const IntRect& destRect) |
| 22 { | 24 { |
| 23 m_destRect = destRect; | 25 m_destRect = destRect; |
| 24 } | 26 } |
| (...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 60 IntRect m_destRect; | 62 IntRect m_destRect; |
| 61 IntPoint m_phase; | 63 IntPoint m_phase; |
| 62 IntSize m_tileSize; | 64 IntSize m_tileSize; |
| 63 IntSize m_repeatSpacing; | 65 IntSize m_repeatSpacing; |
| 64 bool m_hasNonLocalGeometry; // Has background-attachment: fixed. Implies tha
t we can't always cheaply compute destRect. | 66 bool m_hasNonLocalGeometry; // Has background-attachment: fixed. Implies tha
t we can't always cheaply compute destRect. |
| 65 }; | 67 }; |
| 66 | 68 |
| 67 } // namespace blink | 69 } // namespace blink |
| 68 | 70 |
| 69 #endif // BackgroundImageGeometry_h | 71 #endif // BackgroundImageGeometry_h |
| OLD | NEW |