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

Side by Side Diff: third_party/WebKit/Source/platform/scroll/ScrollableArea.cpp

Issue 1686483002: Oilpan: Remove most WillBe types from the code base (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 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 unified diff | Download patch
OLDNEW
1 /* 1 /*
2 * Copyright (c) 2010, Google Inc. All rights reserved. 2 * Copyright (c) 2010, Google Inc. All rights reserved.
3 * Copyright (C) 2008, 2011 Apple Inc. All Rights Reserved. 3 * Copyright (C) 2008, 2011 Apple Inc. All Rights Reserved.
4 * 4 *
5 * Redistribution and use in source and binary forms, with or without 5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions are 6 * modification, are permitted provided that the following conditions are
7 * met: 7 * met:
8 * 8 *
9 * * Redistributions of source code must retain the above copyright 9 * * Redistributions of source code must retain the above copyright
10 * notice, this list of conditions and the following disclaimer. 10 * notice, this list of conditions and the following disclaimer.
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
46 static const int kPixelsPerLineStep = 40; 46 static const int kPixelsPerLineStep = 40;
47 static const float kMinFractionToStepWhenPaging = 0.875f; 47 static const float kMinFractionToStepWhenPaging = 0.875f;
48 48
49 namespace blink { 49 namespace blink {
50 50
51 struct SameSizeAsScrollableArea { 51 struct SameSizeAsScrollableArea {
52 virtual ~SameSizeAsScrollableArea(); 52 virtual ~SameSizeAsScrollableArea();
53 #if ENABLE(ASSERT) && ENABLE(OILPAN) 53 #if ENABLE(ASSERT) && ENABLE(OILPAN)
54 VerifyEagerFinalization verifyEager; 54 VerifyEagerFinalization verifyEager;
55 #endif 55 #endif
56 OwnPtrWillBeMember<void*> pointer[2]; 56 Member<void*> pointer[2];
57 unsigned bitfields : 16; 57 unsigned bitfields : 16;
58 IntPoint origin; 58 IntPoint origin;
59 }; 59 };
60 60
61 static_assert(sizeof(ScrollableArea) == sizeof(SameSizeAsScrollableArea), "Scrol lableArea should stay small"); 61 static_assert(sizeof(ScrollableArea) == sizeof(SameSizeAsScrollableArea), "Scrol lableArea should stay small");
62 62
63 int ScrollableArea::pixelsPerLineStep() 63 int ScrollableArea::pixelsPerLineStep()
64 { 64 {
65 return kPixelsPerLineStep; 65 return kPixelsPerLineStep;
66 } 66 }
(...skipping 536 matching lines...) Expand 10 before | Expand all | Expand 10 after
603 std::max(0, size.height() - horizontalScrollbarHeight)); 603 std::max(0, size.height() - horizontalScrollbarHeight));
604 } 604 }
605 605
606 DEFINE_TRACE(ScrollableArea) 606 DEFINE_TRACE(ScrollableArea)
607 { 607 {
608 visitor->trace(m_scrollAnimator); 608 visitor->trace(m_scrollAnimator);
609 visitor->trace(m_programmaticScrollAnimator); 609 visitor->trace(m_programmaticScrollAnimator);
610 } 610 }
611 611
612 } // namespace blink 612 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698