Index: Source/core/layout/ScrollAlignment.h |
diff --git a/Source/core/layout/ScrollAlignment.h b/Source/core/layout/ScrollAlignment.h |
index 2f953ce6b8978364033f2adbb8f48f9258ef6bf5..b7a2a4a92158f123443e6840ee1fcfd71fe76fdd 100644 |
--- a/Source/core/layout/ScrollAlignment.h |
+++ b/Source/core/layout/ScrollAlignment.h |
@@ -45,6 +45,7 @@ |
#define ScrollAlignment_h |
#include "core/CoreExport.h" |
+#include "wtf/Allocator.h" |
namespace blink { |
@@ -61,6 +62,7 @@ enum ScrollAlignmentBehavior { |
class LayoutRect; |
struct CORE_EXPORT ScrollAlignment { |
+ STACK_ALLOCATED(); |
static ScrollAlignmentBehavior getVisibleBehavior(const ScrollAlignment& s) { return s.m_rectVisible; } |
static ScrollAlignmentBehavior getPartialBehavior(const ScrollAlignment& s) { return s.m_rectPartial; } |
static ScrollAlignmentBehavior getHiddenBehavior(const ScrollAlignment& s) { return s.m_rectHidden; } |