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

Unified Diff: content/renderer/paint_aggregator.cc

Issue 11028127: Implicit coversion operators from integer geometry types to floating point. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: rebase Created 8 years, 2 months 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/notifications/balloon_collection_impl.cc ('k') | ui/base/win/hwnd_util.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/renderer/paint_aggregator.cc
diff --git a/content/renderer/paint_aggregator.cc b/content/renderer/paint_aggregator.cc
index 927630bf83878f2cc3057b840c732713802121d4..d38cca83f3551c06445d025932728d020262dbaa 100644
--- a/content/renderer/paint_aggregator.cc
+++ b/content/renderer/paint_aggregator.cc
@@ -164,8 +164,7 @@ void PaintAggregator::ScrollRect(int dx, int dy, const gfx::Rect& clip_rect) {
}
// We can only scroll one rect at a time.
- if (!update_.scroll_rect.IsEmpty() &&
- !update_.scroll_rect.Equals(clip_rect)) {
+ if (!update_.scroll_rect.IsEmpty() && update_.scroll_rect != clip_rect) {
InvalidateRect(clip_rect);
return;
}
« no previous file with comments | « chrome/browser/notifications/balloon_collection_impl.cc ('k') | ui/base/win/hwnd_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698