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

Unified Diff: Source/core/layout/LayoutObject.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/LayoutGeometryMapStep.h ('k') | Source/core/layout/LayoutState.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/layout/LayoutObject.h
diff --git a/Source/core/layout/LayoutObject.h b/Source/core/layout/LayoutObject.h
index e32d547a951980bd788bb94d1379e1e5249fc7e1..dd7a289d3af014abf16622a0ac17e29123566526 100644
--- a/Source/core/layout/LayoutObject.h
+++ b/Source/core/layout/LayoutObject.h
@@ -100,6 +100,7 @@ typedef unsigned MapCoordinatesFlags;
const LayoutUnit& caretWidth();
struct AnnotatedRegionValue {
+ ALLOW_ONLY_INLINE_ALLOCATION();
bool operator==(const AnnotatedRegionValue& o) const
{
return draggable == o.draggable && bounds == o.bounds;
@@ -820,6 +821,7 @@ public:
virtual CursorDirective getCursor(const LayoutPoint&, Cursor&) const;
struct AppliedTextDecoration {
+ STACK_ALLOCATED();
Color color;
TextDecorationStyle style;
AppliedTextDecoration() : color(Color::transparent), style(TextDecorationStyleSolid) { }
@@ -1438,6 +1440,7 @@ private:
// FIXME: remove this once the layout object lifecycle ASSERTS are no longer hit.
class DeprecatedDisableModifyLayoutTreeStructureAsserts {
+ STACK_ALLOCATED();
WTF_MAKE_NONCOPYABLE(DeprecatedDisableModifyLayoutTreeStructureAsserts);
public:
DeprecatedDisableModifyLayoutTreeStructureAsserts();
@@ -1451,6 +1454,7 @@ private:
// FIXME: We should not allow paint invalidation out of paint invalidation state. crbug.com/457415
// Remove this once we fix the bug.
class DisablePaintInvalidationStateAsserts {
+ STACK_ALLOCATED();
WTF_MAKE_NONCOPYABLE(DisablePaintInvalidationStateAsserts);
public:
DisablePaintInvalidationStateAsserts();
« no previous file with comments | « Source/core/layout/LayoutGeometryMapStep.h ('k') | Source/core/layout/LayoutState.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698