| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2013 Adobe Systems Incorporated. All rights reserved. | 2 * Copyright (C) 2013 Adobe Systems Incorporated. All rights reserved. |
| 3 * | 3 * |
| 4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
| 5 * modification, are permitted provided that the following conditions | 5 * modification, are permitted provided that the following conditions |
| 6 * are met: | 6 * are met: |
| 7 * | 7 * |
| 8 * 1. Redistributions of source code must retain the above | 8 * 1. Redistributions of source code must retain the above |
| 9 * copyright notice, this list of conditions and the following | 9 * copyright notice, this list of conditions and the following |
| 10 * disclaimer. | 10 * disclaimer. |
| (...skipping 13 matching lines...) Expand all Loading... |
| 24 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR | 24 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR |
| 25 * TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF | 25 * TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF |
| 26 * THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF | 26 * THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF |
| 27 * SUCH DAMAGE. | 27 * SUCH DAMAGE. |
| 28 */ | 28 */ |
| 29 | 29 |
| 30 #ifndef IntRectOutsets_h | 30 #ifndef IntRectOutsets_h |
| 31 #define IntRectOutsets_h | 31 #define IntRectOutsets_h |
| 32 | 32 |
| 33 #include "platform/PlatformExport.h" | 33 #include "platform/PlatformExport.h" |
| 34 #include "wtf/Allocator.h" | 34 #include "platform/wtf/Allocator.h" |
| 35 | 35 |
| 36 namespace blink { | 36 namespace blink { |
| 37 | 37 |
| 38 // Specifies integral lengths to be used to expand a rectangle. | 38 // Specifies integral lengths to be used to expand a rectangle. |
| 39 // For example, |top()| returns the distance the top edge should be moved | 39 // For example, |top()| returns the distance the top edge should be moved |
| 40 // upward. | 40 // upward. |
| 41 // | 41 // |
| 42 // Negative lengths can be used to express insets. | 42 // Negative lengths can be used to express insets. |
| 43 class PLATFORM_EXPORT IntRectOutsets { | 43 class PLATFORM_EXPORT IntRectOutsets { |
| 44 DISALLOW_NEW(); | 44 DISALLOW_NEW(); |
| (...skipping 26 matching lines...) Expand all Loading... |
| 71 inline void operator+=(IntRectOutsets& a, const IntRectOutsets& b) { | 71 inline void operator+=(IntRectOutsets& a, const IntRectOutsets& b) { |
| 72 a.setTop(a.top() + b.top()); | 72 a.setTop(a.top() + b.top()); |
| 73 a.setRight(a.right() + b.right()); | 73 a.setRight(a.right() + b.right()); |
| 74 a.setBottom(a.bottom() + b.bottom()); | 74 a.setBottom(a.bottom() + b.bottom()); |
| 75 a.setLeft(a.left() + b.left()); | 75 a.setLeft(a.left() + b.left()); |
| 76 } | 76 } |
| 77 | 77 |
| 78 } // namespace blink | 78 } // namespace blink |
| 79 | 79 |
| 80 #endif // IntRectOutsets_h | 80 #endif // IntRectOutsets_h |
| OLD | NEW |