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

Side by Side Diff: Source/web/tests/ScrollAnimatorNoneTest.cpp

Issue 1093383003: Remove mainthread overhang painting code (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 8 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « Source/web/WebPluginContainerImpl.cpp ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2010 Google Inc. All rights reserved. 2 * Copyright (C) 2010 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions 5 * modification, are permitted provided that the following conditions
6 * are met: 6 * are met:
7 * 7 *
8 * 1. Redistributions of source code must retain the above copyright 8 * 1. Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * 2. Redistributions in binary form must reproduce the above copyright 10 * 2. Redistributions in binary form must reproduce the above copyright
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
55 MOCK_CONST_METHOD0(scrollCornerRect, IntRect()); 55 MOCK_CONST_METHOD0(scrollCornerRect, IntRect());
56 MOCK_METHOD1(setScrollOffset, void(const IntPoint&)); 56 MOCK_METHOD1(setScrollOffset, void(const IntPoint&));
57 MOCK_METHOD2(invalidateScrollbarRect, void(Scrollbar*, const IntRect&)); 57 MOCK_METHOD2(invalidateScrollbarRect, void(Scrollbar*, const IntRect&));
58 MOCK_METHOD1(invalidateScrollCornerRect, void(const IntRect&)); 58 MOCK_METHOD1(invalidateScrollCornerRect, void(const IntRect&));
59 MOCK_METHOD1(setScrollOffsetFromAnimation, void(const IntPoint&)); 59 MOCK_METHOD1(setScrollOffsetFromAnimation, void(const IntPoint&));
60 MOCK_CONST_METHOD0(enclosingScrollableArea, ScrollableArea*()); 60 MOCK_CONST_METHOD0(enclosingScrollableArea, ScrollableArea*());
61 MOCK_CONST_METHOD0(minimumScrollPosition, IntPoint()); 61 MOCK_CONST_METHOD0(minimumScrollPosition, IntPoint());
62 MOCK_CONST_METHOD0(maximumScrollPosition, IntPoint()); 62 MOCK_CONST_METHOD0(maximumScrollPosition, IntPoint());
63 MOCK_CONST_METHOD1(visibleContentRect, IntRect(IncludeScrollbarsInRect)); 63 MOCK_CONST_METHOD1(visibleContentRect, IntRect(IncludeScrollbarsInRect));
64 MOCK_CONST_METHOD0(contentsSize, IntSize()); 64 MOCK_CONST_METHOD0(contentsSize, IntSize());
65 MOCK_CONST_METHOD0(overhangAmount, IntSize());
66 MOCK_CONST_METHOD0(scrollbarsCanBeActive, bool()); 65 MOCK_CONST_METHOD0(scrollbarsCanBeActive, bool());
67 MOCK_CONST_METHOD0(scrollableAreaBoundingBox, IntRect()); 66 MOCK_CONST_METHOD0(scrollableAreaBoundingBox, IntRect());
68 67
69 virtual bool userInputScrollable(ScrollbarOrientation) const override { retu rn true; } 68 virtual bool userInputScrollable(ScrollbarOrientation) const override { retu rn true; }
70 virtual bool shouldPlaceVerticalScrollbarOnLeft() const override { return fa lse; } 69 virtual bool shouldPlaceVerticalScrollbarOnLeft() const override { return fa lse; }
71 virtual IntPoint scrollPosition() const override { return IntPoint(); } 70 virtual IntPoint scrollPosition() const override { return IntPoint(); }
72 virtual int visibleHeight() const override { return 768; } 71 virtual int visibleHeight() const override { return 768; }
73 virtual int visibleWidth() const override { return 1024; } 72 virtual int visibleWidth() const override { return 1024; }
74 virtual bool scrollAnimatorEnabled() const override { return m_scrollAnimato rEnabled; } 73 virtual bool scrollAnimatorEnabled() const override { return m_scrollAnimato rEnabled; }
75 virtual int pageStep(ScrollbarOrientation) const override { return 0; } 74 virtual int pageStep(ScrollbarOrientation) const override { return 0; }
(...skipping 973 matching lines...) Expand 10 before | Expand all | Expand 10 after
1049 EXPECT_TRUE(result); 1048 EXPECT_TRUE(result);
1050 result = result && animateScroll(t); 1049 result = result && animateScroll(t);
1051 double after = m_currentPosition; 1050 double after = m_currentPosition;
1052 EXPECT_GE(before, after); 1051 EXPECT_GE(before, after);
1053 1052
1054 t += kAnimationTime; 1053 t += kAnimationTime;
1055 for (; result && t < kEndTime; t += kAnimationTime) 1054 for (; result && t < kEndTime; t += kAnimationTime)
1056 result = result && animateScroll(t); 1055 result = result && animateScroll(t);
1057 EXPECT_GE(before, m_currentPosition); 1056 EXPECT_GE(before, m_currentPosition);
1058 } 1057 }
OLDNEW
« no previous file with comments | « Source/web/WebPluginContainerImpl.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698