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

Unified Diff: cc/test/fake_painted_scrollbar_layer.cc

Issue 150603004: Fixed rounding issue on scrollbar rasterization. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 10 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
Index: cc/test/fake_painted_scrollbar_layer.cc
diff --git a/cc/test/fake_painted_scrollbar_layer.cc b/cc/test/fake_painted_scrollbar_layer.cc
index 72ef420a89c26f4320a2cbdcef564e3fe57ffb98..81d85bb750f66db2380626745dc3f2b85f6b7a08 100644
--- a/cc/test/fake_painted_scrollbar_layer.cc
+++ b/cc/test/fake_painted_scrollbar_layer.cc
@@ -13,9 +13,10 @@ namespace cc {
scoped_refptr<FakePaintedScrollbarLayer> FakePaintedScrollbarLayer::Create(
bool paint_during_update,
bool has_thumb,
- int scrolling_layer_id) {
- FakeScrollbar* fake_scrollbar = new FakeScrollbar(
- paint_during_update, has_thumb, false);
+ int scrolling_layer_id,
+ FakeScrollbar* fake_scrollbar) {
+ if (!fake_scrollbar)
+ fake_scrollbar = new FakeScrollbar(paint_during_update, has_thumb, false);
return make_scoped_refptr(new FakePaintedScrollbarLayer(
fake_scrollbar, scrolling_layer_id));
}
« cc/layers/painted_scrollbar_layer.cc ('K') | « cc/test/fake_painted_scrollbar_layer.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698