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

Unified Diff: Source/platform/scroll/ScrollableArea.cpp

Issue 1317143005: [WIP] do something :-) (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 years, 3 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 | « Source/platform/heap/HeapTest.cpp ('k') | Source/platform/text/BidiContext.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/platform/scroll/ScrollableArea.cpp
diff --git a/Source/platform/scroll/ScrollableArea.cpp b/Source/platform/scroll/ScrollableArea.cpp
index 324499011a62f40bca0b7400a0d4eebbb8c02e67..512c940a98e734fef9c03e4860b370c72b220522 100644
--- a/Source/platform/scroll/ScrollableArea.cpp
+++ b/Source/platform/scroll/ScrollableArea.cpp
@@ -41,6 +41,7 @@
#include "platform/scroll/ProgrammaticScrollAnimator.h"
#include "platform/scroll/ScrollbarTheme.h"
#include "wtf/PassOwnPtr.h"
+#include "wtf/SizeAssertions.h"
#include "platform/TraceEvent.h"
@@ -49,18 +50,7 @@ static const float kMinFractionToStepWhenPaging = 0.875f;
namespace blink {
-struct SameSizeAsScrollableArea {
- virtual ~SameSizeAsScrollableArea();
- IntRect scrollbarDamage[2];
-#if ENABLE(ASSERT) && ENABLE(OILPAN)
- VerifyEagerFinalization verifyEager;
-#endif
- void* pointer;
- unsigned bitfields : 16;
- IntPoint origin;
-};
-
-static_assert(sizeof(ScrollableArea) == sizeof(SameSizeAsScrollableArea), "ScrollableArea should stay small");
+ASSERT_SIZE(ScrollableArea, 52, 64);
int ScrollableArea::pixelsPerLineStep()
{
« no previous file with comments | « Source/platform/heap/HeapTest.cpp ('k') | Source/platform/text/BidiContext.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698