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

Side by Side Diff: Source/core/layout/LayoutGeometryMapStep.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, 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 unified diff | Download patch
« no previous file with comments | « Source/core/layout/LayoutGeometryMap.h ('k') | Source/core/layout/LayoutObject.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2012 Apple Inc. All rights reserved. 2 * Copyright (C) 2012 Apple Inc. All rights reserved.
3 * Copyright (C) 2014 Google Inc. All rights reserved. 3 * Copyright (C) 2014 Google 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 6 * modification, are permitted provided that the following conditions
7 * are met: 7 * are met:
8 * 1. Redistributions of source code must retain the above copyright 8 * 1. Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * 2. Redistributions in binary form must reproduce the above copyright 10 * 2. Redistributions in binary form must reproduce the above copyright
(...skipping 11 matching lines...) Expand all
22 * OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 22 * OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
23 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 23 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
24 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 24 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
25 */ 25 */
26 26
27 #ifndef LayoutGeometryMapStep_h 27 #ifndef LayoutGeometryMapStep_h
28 #define LayoutGeometryMapStep_h 28 #define LayoutGeometryMapStep_h
29 29
30 #include "platform/geometry/LayoutSize.h" 30 #include "platform/geometry/LayoutSize.h"
31 #include "platform/transforms/TransformationMatrix.h" 31 #include "platform/transforms/TransformationMatrix.h"
32 #include "wtf/Allocator.h"
32 #include "wtf/OwnPtr.h" 33 #include "wtf/OwnPtr.h"
33 34
34 namespace blink { 35 namespace blink {
35 36
36 class LayoutObject; 37 class LayoutObject;
37 38
38 // Stores data about how to map from one layoutObject to its container. 39 // Stores data about how to map from one layoutObject to its container.
39 struct LayoutGeometryMapStep { 40 struct LayoutGeometryMapStep {
41 ALLOW_ONLY_INLINE_ALLOCATION();
40 LayoutGeometryMapStep(const LayoutGeometryMapStep& o) 42 LayoutGeometryMapStep(const LayoutGeometryMapStep& o)
41 : m_layoutObject(o.m_layoutObject) 43 : m_layoutObject(o.m_layoutObject)
42 , m_offset(o.m_offset) 44 , m_offset(o.m_offset)
43 , m_offsetForFixedPosition(o.m_offsetForFixedPosition) 45 , m_offsetForFixedPosition(o.m_offsetForFixedPosition)
44 , m_accumulatingTransform(o.m_accumulatingTransform) 46 , m_accumulatingTransform(o.m_accumulatingTransform)
45 , m_isNonUniform(o.m_isNonUniform) 47 , m_isNonUniform(o.m_isNonUniform)
46 , m_isFixedPosition(o.m_isFixedPosition) 48 , m_isFixedPosition(o.m_isFixedPosition)
47 , m_hasTransform(o.m_hasTransform) 49 , m_hasTransform(o.m_hasTransform)
48 { 50 {
49 ASSERT(!o.m_transform); 51 ASSERT(!o.m_transform);
(...skipping 14 matching lines...) Expand all
64 bool m_isNonUniform; // Mapping depends on the input point, e.g. because of CSS columns. 66 bool m_isNonUniform; // Mapping depends on the input point, e.g. because of CSS columns.
65 bool m_isFixedPosition; 67 bool m_isFixedPosition;
66 bool m_hasTransform; 68 bool m_hasTransform;
67 }; 69 };
68 70
69 } // namespace blink 71 } // namespace blink
70 72
71 WTF_ALLOW_MOVE_INIT_AND_COMPARE_WITH_MEM_FUNCTIONS(blink::LayoutGeometryMapStep) ; 73 WTF_ALLOW_MOVE_INIT_AND_COMPARE_WITH_MEM_FUNCTIONS(blink::LayoutGeometryMapStep) ;
72 74
73 #endif // LayoutGeometryMapStep_h 75 #endif // LayoutGeometryMapStep_h
OLDNEW
« no previous file with comments | « Source/core/layout/LayoutGeometryMap.h ('k') | Source/core/layout/LayoutObject.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698