| 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 120 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 131 { | 131 { |
| 132 if (!--m_refCnt) | 132 if (!--m_refCnt) |
| 133 delete this; | 133 delete this; |
| 134 } | 134 } |
| 135 | 135 |
| 136 bool operator==(const ClipRects& other) const | 136 bool operator==(const ClipRects& other) const |
| 137 { | 137 { |
| 138 return m_overflowClipRect == other.overflowClipRect() | 138 return m_overflowClipRect == other.overflowClipRect() |
| 139 && m_fixedClipRect == other.fixedClipRect() | 139 && m_fixedClipRect == other.fixedClipRect() |
| 140 && m_posClipRect == other.posClipRect() | 140 && m_posClipRect == other.posClipRect() |
| 141 && m_fixed == other.fixed(); | 141 && static_cast<bool>(m_fixed) == other.fixed(); |
| 142 } | 142 } |
| 143 | 143 |
| 144 ClipRects& operator=(const ClipRects& other) | 144 ClipRects& operator=(const ClipRects& other) |
| 145 { | 145 { |
| 146 m_overflowClipRect = other.overflowClipRect(); | 146 m_overflowClipRect = other.overflowClipRect(); |
| 147 m_fixedClipRect = other.fixedClipRect(); | 147 m_fixedClipRect = other.fixedClipRect(); |
| 148 m_posClipRect = other.posClipRect(); | 148 m_posClipRect = other.posClipRect(); |
| 149 m_fixed = other.fixed(); | 149 m_fixed = other.fixed(); |
| 150 return *this; | 150 return *this; |
| 151 } | 151 } |
| (...skipping 113 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 265 // Also unique to paginated fragments. An additional clip that applies to th
e layer. It is in layer-local | 265 // Also unique to paginated fragments. An additional clip that applies to th
e layer. It is in layer-local |
| 266 // (physical) coordinates. | 266 // (physical) coordinates. |
| 267 LayoutRect paginationClip; | 267 LayoutRect paginationClip; |
| 268 }; | 268 }; |
| 269 | 269 |
| 270 typedef Vector<LayerFragment, 1> LayerFragments; | 270 typedef Vector<LayerFragment, 1> LayerFragments; |
| 271 | 271 |
| 272 } // namespace WebCore | 272 } // namespace WebCore |
| 273 | 273 |
| 274 #endif // ClipRect_h | 274 #endif // ClipRect_h |
| OLD | NEW |