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

Unified Diff: Source/core/layout/ScrollAlignment.h

Issue 1318713003: Make classes and structures in core/layout fast-allocated. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 years, 4 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/core/layout/PointerEventsHitRules.h ('k') | Source/core/layout/SubtreeLayoutScope.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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; }
« no previous file with comments | « Source/core/layout/PointerEventsHitRules.h ('k') | Source/core/layout/SubtreeLayoutScope.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698