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

Side by Side Diff: third_party/WebKit/Source/core/layout/LayoutFlowThread.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) 2011 Adobe Systems Incorporated. All rights reserved. 2 * Copyright (C) 2011 Adobe Systems Incorporated. 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 * 7 *
8 * 1. Redistributions of source code must retain the above 8 * 1. Redistributions of source code must retain the above
9 * copyright notice, this list of conditions and the following 9 * copyright notice, this list of conditions and the following
10 * disclaimer. 10 * disclaimer.
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after
64 // LayoutMultiColumnSet will actually be a viewPort of the LayoutFlowThread. 64 // LayoutMultiColumnSet will actually be a viewPort of the LayoutFlowThread.
65 class CORE_EXPORT LayoutFlowThread : public LayoutBlockFlow { 65 class CORE_EXPORT LayoutFlowThread : public LayoutBlockFlow {
66 public: 66 public:
67 LayoutFlowThread(); 67 LayoutFlowThread();
68 ~LayoutFlowThread() override {} 68 ~LayoutFlowThread() override {}
69 69
70 bool isLayoutFlowThread() const final { return true; } 70 bool isLayoutFlowThread() const final { return true; }
71 virtual bool isLayoutMultiColumnFlowThread() const { return false; } 71 virtual bool isLayoutMultiColumnFlowThread() const { return false; }
72 virtual bool isLayoutPagedFlowThread() const { return false; } 72 virtual bool isLayoutPagedFlowThread() const { return false; }
73 73
74 char objectSize() const override { return sizeof(this); }
75
74 // Search mode when looking for an enclosing fragmentation context. 76 // Search mode when looking for an enclosing fragmentation context.
75 enum AncestorSearchConstraint { 77 enum AncestorSearchConstraint {
76 // No constraints. When we're not laying out (but rather e.g. painting or 78 // No constraints. When we're not laying out (but rather e.g. painting or
77 // hit-testing), we just want to find all enclosing fragmentation contexts, 79 // hit-testing), we just want to find all enclosing fragmentation contexts,
78 // e.g. to calculate the accumulated visual translation. 80 // e.g. to calculate the accumulated visual translation.
79 AnyAncestor, 81 AnyAncestor,
80 82
81 // Consider fragmentation contexts that are strictly unbreakable (seen from 83 // Consider fragmentation contexts that are strictly unbreakable (seen from
82 // the outside) to be isolated from the rest, so that such fragmentation 84 // the outside) to be isolated from the rest, so that such fragmentation
83 // contexts don't participate in fragmentation of enclosing fragmentation 85 // contexts don't participate in fragmentation of enclosing fragmentation
(...skipping 136 matching lines...) Expand 10 before | Expand all | Expand 10 after
220 struct ValueToString<LayoutMultiColumnSet*> { 222 struct ValueToString<LayoutMultiColumnSet*> {
221 static String toString(const LayoutMultiColumnSet* value) { 223 static String toString(const LayoutMultiColumnSet* value) {
222 return String::format("%p", value); 224 return String::format("%p", value);
223 } 225 }
224 }; 226 };
225 #endif 227 #endif
226 228
227 } // namespace blink 229 } // namespace blink
228 230
229 #endif // LayoutFlowThread_h 231 #endif // LayoutFlowThread_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/layout/LayoutFlexibleBox.h ('k') | third_party/WebKit/Source/core/layout/LayoutFrame.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698