OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 #include "pdf/paint_aggregator.h" | 5 #include "pdf/paint_aggregator.h" |
6 | 6 |
| 7 #include <stddef.h> |
| 8 #include <stdint.h> |
| 9 |
7 #include <algorithm> | 10 #include <algorithm> |
8 | 11 |
9 #include "base/logging.h" | 12 #include "base/logging.h" |
10 | 13 |
11 namespace { | 14 namespace { |
12 | 15 |
13 bool IsNegative(int32_t num) { | 16 bool IsNegative(int32_t num) { |
14 return num < 0; | 17 return num < 0; |
15 } | 18 } |
16 | 19 |
(...skipping 264 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
281 } | 284 } |
282 | 285 |
283 // If the new paint overlaps with a scroll, then also invalidate the rect in | 286 // If the new paint overlaps with a scroll, then also invalidate the rect in |
284 // its new position. | 287 // its new position. |
285 if (check_scroll && | 288 if (check_scroll && |
286 !update_.scroll_rect.IsEmpty() && | 289 !update_.scroll_rect.IsEmpty() && |
287 update_.scroll_rect.Intersects(rect)) { | 290 update_.scroll_rect.Intersects(rect)) { |
288 InvalidateRectInternal(ScrollPaintRect(rect, update_.scroll_delta), false); | 291 InvalidateRectInternal(ScrollPaintRect(rect, update_.scroll_delta), false); |
289 } | 292 } |
290 } | 293 } |
OLD | NEW |