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

Unified Diff: cc/test/fake_web_scrollbar.cc

Issue 15294018: Limit size of scaled layer rects in ScrollbarLayer to content_bounds(). (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebased to fix merge conflict. Created 7 years, 7 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 | « cc/test/fake_web_scrollbar.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/test/fake_web_scrollbar.cc
diff --git a/cc/test/fake_web_scrollbar.cc b/cc/test/fake_web_scrollbar.cc
index e536ff4b07e484cfb8c312f7595f18de85115613..1bd1d44467f66996dde9c15ea1745470a58a3a6c 100644
--- a/cc/test/fake_web_scrollbar.cc
+++ b/cc/test/fake_web_scrollbar.cc
@@ -15,7 +15,7 @@ int FakeWebScrollbar::value() const {
}
WebKit::WebPoint FakeWebScrollbar::location() const {
- return WebKit::WebPoint();
+ return location_;
}
WebKit::WebSize FakeWebScrollbar::size() const {
@@ -68,6 +68,11 @@ WebKit::WebScrollbar::Orientation FakeWebScrollbar::orientation() const {
return WebScrollbar::Horizontal;
}
-FakeWebScrollbar::FakeWebScrollbar() : is_overlay_(false) {}
+void FakeWebScrollbar::SetLocation(const WebKit::WebPoint& location) {
+ location_ = location;
+}
+
+FakeWebScrollbar::FakeWebScrollbar()
+ : is_overlay_(false), location_(WebKit::WebPoint()) {}
} // namespace cc
« no previous file with comments | « cc/test/fake_web_scrollbar.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698