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

Side by Side Diff: third_party/WebKit/Source/core/layout/api/LineLayoutItem.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 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef LineLayoutItem_h 5 #ifndef LineLayoutItem_h
6 #define LineLayoutItem_h 6 #define LineLayoutItem_h
7 7
8 #include "core/layout/LayoutObject.h" 8 #include "core/layout/LayoutObject.h"
9 #include "core/layout/LayoutObjectInlines.h" 9 #include "core/layout/LayoutObjectInlines.h"
10 10
11 #include "platform/LayoutUnit.h" 11 #include "platform/LayoutUnit.h"
12 #include "wtf/Allocator.h" 12 #include "wtf/Allocator.h"
13 13
14 namespace blink { 14 namespace blink {
15 15
16 class ComputedStyle; 16 class ComputedStyle;
17 class Document; 17 class Document;
18 class HitTestRequest; 18 class HitTestRequest;
19 class HitTestLocation; 19 class HitTestLocation;
20 class LayoutObject; 20 class LayoutObject;
21 class LineLayoutBox; 21 class LineLayoutBox;
22 class LineLayoutBoxModel; 22 class LineLayoutBoxModel;
23 class LineLayoutPaintShim; 23 class LineLayoutPaintShim;
24 24
25 enum HitTestFilter; 25 enum HitTestFilter;
26 26
27 class LineLayoutItem { 27 class LineLayoutItem {
28 ALLOW_ONLY_INLINE_ALLOCATION(); 28 DISALLOW_NEW_EXCEPT_PLACEMENT_NEW();
29 public: 29 public:
30 explicit LineLayoutItem(LayoutObject* layoutObject) 30 explicit LineLayoutItem(LayoutObject* layoutObject)
31 : m_layoutObject(layoutObject) 31 : m_layoutObject(layoutObject)
32 { 32 {
33 } 33 }
34 34
35 LineLayoutItem(std::nullptr_t) 35 LineLayoutItem(std::nullptr_t)
36 : m_layoutObject(0) 36 : m_layoutObject(0)
37 { 37 {
38 } 38 }
(...skipping 302 matching lines...) Expand 10 before | Expand all | Expand 10 after
341 341
342 private: 342 private:
343 LayoutObject* m_layoutObject; 343 LayoutObject* m_layoutObject;
344 344
345 friend class LineLayoutPaintShim; 345 friend class LineLayoutPaintShim;
346 }; 346 };
347 347
348 } // namespace blink 348 } // namespace blink
349 349
350 #endif // LineLayoutItem_h 350 #endif // LineLayoutItem_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698