| 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 FloatRectOutsets_h | 5 #ifndef FloatRectOutsets_h |
| 6 #define FloatRectOutsets_h | 6 #define FloatRectOutsets_h |
| 7 | 7 |
| 8 #include <algorithm> |
| 8 #include "platform/PlatformExport.h" | 9 #include "platform/PlatformExport.h" |
| 9 #include "wtf/Allocator.h" | 10 #include "wtf/Allocator.h" |
| 10 #include <algorithm> | |
| 11 | 11 |
| 12 namespace blink { | 12 namespace blink { |
| 13 | 13 |
| 14 // Specifies floating-point lengths to be used to expand a rectangle. | 14 // Specifies floating-point lengths to be used to expand a rectangle. |
| 15 // For example, |top()| returns the distance the top edge should be moved | 15 // For example, |top()| returns the distance the top edge should be moved |
| 16 // upward. | 16 // upward. |
| 17 // | 17 // |
| 18 // Negative lengths can be used to express insets. | 18 // Negative lengths can be used to express insets. |
| 19 class PLATFORM_EXPORT FloatRectOutsets { | 19 class PLATFORM_EXPORT FloatRectOutsets { |
| 20 STACK_ALLOCATED(); | 20 STACK_ALLOCATED(); |
| (...skipping 25 matching lines...) Expand all Loading... |
| 46 private: | 46 private: |
| 47 float m_top; | 47 float m_top; |
| 48 float m_right; | 48 float m_right; |
| 49 float m_bottom; | 49 float m_bottom; |
| 50 float m_left; | 50 float m_left; |
| 51 }; | 51 }; |
| 52 | 52 |
| 53 } // namespace blink | 53 } // namespace blink |
| 54 | 54 |
| 55 #endif // FloatRectOutsets_h | 55 #endif // FloatRectOutsets_h |
| OLD | NEW |