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

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..b9d7e81d2b74786addfbb521eab21aff9e15ba74 100644
--- a/cc/test/fake_painted_scrollbar_layer.cc
+++ b/cc/test/fake_painted_scrollbar_layer.cc
@@ -14,8 +14,14 @@ 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);
+ return Create(paint_during_update, has_thumb, scrolling_layer_id,
+ new FakeScrollbar(paint_during_update, has_thumb, false));
+}
+scoped_refptr<FakePaintedScrollbarLayer> FakePaintedScrollbarLayer::Create(
+ bool paint_during_update,
+ bool has_thumb,
+ int scrolling_layer_id,
+ FakeScrollbar* fake_scrollbar) {
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