Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(133)

Side by Side Diff: pdf/paint_aggregator.cc

Issue 1533413002: Switch to standard integer types in pdf/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix Created 5 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « pdf/out_of_process_instance.cc ('k') | pdf/paint_manager.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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 }
OLDNEW
« no previous file with comments | « pdf/out_of_process_instance.cc ('k') | pdf/paint_manager.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698