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

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

Issue 2766943002: Do-not-commit: Count layout tree memory usage
Patch Set: Rebase, add object paint property counter Created 3 years, 8 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
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2010 Apple Inc. All rights reserved. 2 * Copyright (C) 2010 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 25 matching lines...) Expand all
36 36
37 class CORE_EXPORT LayoutFullScreen final : public LayoutFlexibleBox { 37 class CORE_EXPORT LayoutFullScreen final : public LayoutFlexibleBox {
38 public: 38 public:
39 static LayoutFullScreen* createAnonymous(Document*); 39 static LayoutFullScreen* createAnonymous(Document*);
40 40
41 bool isOfType(LayoutObjectType type) const override { 41 bool isOfType(LayoutObjectType type) const override {
42 return type == LayoutObjectLayoutFullScreen || 42 return type == LayoutObjectLayoutFullScreen ||
43 LayoutFlexibleBox::isOfType(type); 43 LayoutFlexibleBox::isOfType(type);
44 } 44 }
45 const char* name() const override { return "LayoutFullScreen"; } 45 const char* name() const override { return "LayoutFullScreen"; }
46 char objectSize() const override { return sizeof(this); }
46 47
47 void resetPlaceholder() { m_placeholder = nullptr; } 48 void resetPlaceholder() { m_placeholder = nullptr; }
48 LayoutBlockFlow* placeholder() { return m_placeholder; } 49 LayoutBlockFlow* placeholder() { return m_placeholder; }
49 void createPlaceholder(PassRefPtr<ComputedStyle>, 50 void createPlaceholder(PassRefPtr<ComputedStyle>,
50 const LayoutRect& frameRect); 51 const LayoutRect& frameRect);
51 52
52 static LayoutObject* wrapLayoutObject(LayoutObject*, 53 static LayoutObject* wrapLayoutObject(LayoutObject*,
53 LayoutObject*, 54 LayoutObject*,
54 Document*); 55 Document*);
55 void unwrapLayoutObject(); 56 void unwrapLayoutObject();
(...skipping 16 matching lines...) Expand all
72 DCHECK(!child); 73 DCHECK(!child);
73 return ItemPositionCenter; 74 return ItemPositionCenter;
74 } 75 }
75 }; 76 };
76 77
77 DEFINE_LAYOUT_OBJECT_TYPE_CASTS(LayoutFullScreen, isLayoutFullScreen()); 78 DEFINE_LAYOUT_OBJECT_TYPE_CASTS(LayoutFullScreen, isLayoutFullScreen());
78 79
79 } // namespace blink 80 } // namespace blink
80 81
81 #endif 82 #endif
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/layout/LayoutFrameSet.h ('k') | third_party/WebKit/Source/core/layout/LayoutHTMLCanvas.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698