OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2003, 2006, 2009 Apple Inc. All rights reserved. | 2 * Copyright (C) 2003, 2006, 2009 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 155 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
166 | 166 |
167 size_t count = rects.size(); | 167 size_t count = rects.size(); |
168 for (size_t i = 0; i < count; ++i) | 168 for (size_t i = 0; i < count; ++i) |
169 result.unite(rects[i]); | 169 result.unite(rects[i]); |
170 | 170 |
171 return result; | 171 return result; |
172 } | 172 } |
173 | 173 |
174 #ifndef NDEBUG | 174 #ifndef NDEBUG |
175 // Prints the rect to the screen. | 175 // Prints the rect to the screen. |
176 void IntRect::show() | 176 void IntRect::show() const |
177 { | 177 { |
178 LayoutRect(*this).show(); | 178 LayoutRect(*this).show(); |
179 } | 179 } |
180 #endif | 180 #endif |
181 | 181 |
182 } // namespace WebCore | 182 } // namespace WebCore |
OLD | NEW |