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

Unified Diff: pdf/instance.cc

Issue 437873002: Fix scrollbar painting problems in pdf files in HiDPI mode with fractional scales. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Reverted debugging changes Created 6 years, 5 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pdf/instance.cc
diff --git a/pdf/instance.cc b/pdf/instance.cc
index 0ba1e6639b1702267ca7c924a77dbc2e4b3c2e79..50c2ba843a5e14d0231ce8ba4819d226c7bbba38 100644
--- a/pdf/instance.cc
+++ b/pdf/instance.cc
@@ -954,11 +954,6 @@ void Instance::PaintIfWidgetIntersects(
DCHECK(!image_data_.is_null());
widget->Paint(location_dip, &image_data_);
- // Re-scale the rectangle from DIPs to device pixels, so we ensure that we
- // don't miss any pixels due to rounding outwards in ScaleRect.
- location = location_dip;
- ScaleRect(device_scale_, &location);
-
ready->push_back(PaintManager::ReadyRect(location, image_data_, true));
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698