| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2003, 2009, 2012 Apple Inc. All rights reserved. | 2 * Copyright (C) 2003, 2009, 2012 Apple Inc. 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 * 1. Redistributions of source code must retain the above copyright | 7 * 1. Redistributions of source code must retain the above copyright |
| 8 * notice, this list of conditions and the following disclaimer. | 8 * notice, this list of conditions and the following disclaimer. |
| 9 * 2. Redistributions in binary form must reproduce the above copyright | 9 * 2. Redistributions in binary form must reproduce the above copyright |
| 10 * notice, this list of conditions and the following disclaimer in the | 10 * notice, this list of conditions and the following disclaimer in the |
| (...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 69 void setFixed(bool fixed) { m_fixed = fixed ? 1 : 0; } | 69 void setFixed(bool fixed) { m_fixed = fixed ? 1 : 0; } |
| 70 | 70 |
| 71 bool operator==(const ClipRects& other) const | 71 bool operator==(const ClipRects& other) const |
| 72 { | 72 { |
| 73 return m_overflowClipRect == other.overflowClipRect() | 73 return m_overflowClipRect == other.overflowClipRect() |
| 74 && m_fixedClipRect == other.fixedClipRect() | 74 && m_fixedClipRect == other.fixedClipRect() |
| 75 && m_posClipRect == other.posClipRect() | 75 && m_posClipRect == other.posClipRect() |
| 76 && fixed() == other.fixed(); | 76 && fixed() == other.fixed(); |
| 77 } | 77 } |
| 78 | 78 |
| 79 bool operator!=(const ClipRects& other) const { return !(*this == other); } |
| 80 |
| 79 ClipRects& operator=(const ClipRects& other) | 81 ClipRects& operator=(const ClipRects& other) |
| 80 { | 82 { |
| 81 m_overflowClipRect = other.overflowClipRect(); | 83 m_overflowClipRect = other.overflowClipRect(); |
| 82 m_fixedClipRect = other.fixedClipRect(); | 84 m_fixedClipRect = other.fixedClipRect(); |
| 83 m_posClipRect = other.posClipRect(); | 85 m_posClipRect = other.posClipRect(); |
| 84 m_fixed = other.fixed(); | 86 m_fixed = other.fixed(); |
| 85 return *this; | 87 return *this; |
| 86 } | 88 } |
| 87 | 89 |
| 88 private: | 90 private: |
| (...skipping 15 matching lines...) Expand all Loading... |
| 104 | 106 |
| 105 ClipRect m_overflowClipRect; | 107 ClipRect m_overflowClipRect; |
| 106 ClipRect m_fixedClipRect; | 108 ClipRect m_fixedClipRect; |
| 107 ClipRect m_posClipRect; | 109 ClipRect m_posClipRect; |
| 108 unsigned m_fixed; | 110 unsigned m_fixed; |
| 109 }; | 111 }; |
| 110 | 112 |
| 111 } // namespace blink | 113 } // namespace blink |
| 112 | 114 |
| 113 #endif // ClipRects_h | 115 #endif // ClipRects_h |
| OLD | NEW |