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

Side by Side Diff: third_party/WebKit/Source/core/layout/LayoutState.h

Issue 1406923009: Rename DISALLOW_ALLOCATION and ALLOW_ONLY_INLINE_ALLOCATION (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 1 month 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) 2007 Apple Inc. All rights reserved. 2 * Copyright (C) 2007 Apple Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions 5 * modification, are permitted provided that the following conditions
6 * are met: 6 * are met:
7 * 1. Redistributions of source code must retain the above copyright 7 * 1. Redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer. 8 * notice, this list of conditions and the following disclaimer.
9 * 2. Redistributions in binary form must reproduce the above copyright 9 * 2. Redistributions in binary form must reproduce the above copyright
10 * notice, this list of conditions and the following disclaimer in the 10 * notice, this list of conditions and the following disclaimer in the
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
56 // practice like a stack that we push / pop. LayoutView holds the top-most 56 // practice like a stack that we push / pop. LayoutView holds the top-most
57 // pointer to this stack. 57 // pointer to this stack.
58 // 58 //
59 // See the layout() functions on how to set it up during layout. 59 // See the layout() functions on how to set it up during layout.
60 // See e.g LayoutBox::offsetFromLogicalTopOfFirstPage on how to use LayoutState 60 // See e.g LayoutBox::offsetFromLogicalTopOfFirstPage on how to use LayoutState
61 // for computations. 61 // for computations.
62 class LayoutState { 62 class LayoutState {
63 // LayoutState is always allocated on the stack. 63 // LayoutState is always allocated on the stack.
64 // The reason is that it is scoped to layout, thus we can avoid expensive 64 // The reason is that it is scoped to layout, thus we can avoid expensive
65 // mallocs. 65 // mallocs.
66 DISALLOW_ALLOCATION(); 66 DISALLOW_NEW();
67 WTF_MAKE_NONCOPYABLE(LayoutState); 67 WTF_MAKE_NONCOPYABLE(LayoutState);
68 public: 68 public:
69 // Constructor for root LayoutState created by LayoutView 69 // Constructor for root LayoutState created by LayoutView
70 LayoutState(LayoutUnit pageLogicalHeight, bool pageLogicalHeightChanged, Lay outView&); 70 LayoutState(LayoutUnit pageLogicalHeight, bool pageLogicalHeightChanged, Lay outView&);
71 // Constructor for sub-tree layout 71 // Constructor for sub-tree layout
72 explicit LayoutState(LayoutObject& root); 72 explicit LayoutState(LayoutObject& root);
73 73
74 LayoutState(LayoutBox&, const LayoutSize& offset, LayoutUnit pageLogicalHeig ht = 0, bool pageHeightLogicalChanged = false, bool containingBlockLogicalWidthC hanged = false); 74 LayoutState(LayoutBox&, const LayoutSize& offset, LayoutUnit pageLogicalHeig ht = 0, bool pageHeightLogicalChanged = false, bool containingBlockLogicalWidthC hanged = false);
75 75
76 ~LayoutState(); 76 ~LayoutState();
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
113 LayoutUnit m_pageLogicalHeight; 113 LayoutUnit m_pageLogicalHeight;
114 // The offset of the start of the first page in the nearest enclosing pagina tion model. 114 // The offset of the start of the first page in the nearest enclosing pagina tion model.
115 LayoutSize m_pageOffset; 115 LayoutSize m_pageOffset;
116 116
117 LayoutObject& m_layoutObject; 117 LayoutObject& m_layoutObject;
118 }; 118 };
119 119
120 } // namespace blink 120 } // namespace blink
121 121
122 #endif // LayoutState_h 122 #endif // LayoutState_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/layout/LayoutObjectChildList.h ('k') | third_party/WebKit/Source/core/layout/LayoutTable.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698