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

Side by Side Diff: third_party/WebKit/Source/core/layout/LayoutTableRow.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) 1997 Martin Jones (mjones@kde.org) 2 * Copyright (C) 1997 Martin Jones (mjones@kde.org)
3 * (C) 1997 Torben Weis (weis@kde.org) 3 * (C) 1997 Torben Weis (weis@kde.org)
4 * (C) 1998 Waldo Bastian (bastian@kde.org) 4 * (C) 1998 Waldo Bastian (bastian@kde.org)
5 * (C) 1999 Lars Knoll (knoll@kde.org) 5 * (C) 1999 Lars Knoll (knoll@kde.org)
6 * (C) 1999 Antti Koivisto (koivisto@kde.org) 6 * (C) 1999 Antti Koivisto (koivisto@kde.org)
7 * Copyright (C) 2003, 2004, 2005, 2006, 2009, 2013 Apple Inc. 7 * Copyright (C) 2003, 2004, 2005, 2006, 2009, 2013 Apple Inc.
8 * All rights reserved. 8 * All rights reserved.
9 * 9 *
10 * This library is free software; you can redistribute it and/or 10 * This library is free software; you can redistribute it and/or
(...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after
121 bool nodeAtPoint(HitTestResult&, 121 bool nodeAtPoint(HitTestResult&,
122 const HitTestLocation& locationInContainer, 122 const HitTestLocation& locationInContainer,
123 const LayoutPoint& accumulatedOffset, 123 const LayoutPoint& accumulatedOffset,
124 HitTestAction) override; 124 HitTestAction) override;
125 125
126 PaginationBreakability getPaginationBreakability() const final; 126 PaginationBreakability getPaginationBreakability() const final;
127 127
128 void computeOverflow(); 128 void computeOverflow();
129 129
130 const char* name() const override { return "LayoutTableRow"; } 130 const char* name() const override { return "LayoutTableRow"; }
131 char objectSize() const override { return sizeof(this); }
131 132
132 // Whether a row has opaque background depends on many factors, e.g. border 133 // Whether a row has opaque background depends on many factors, e.g. border
133 // spacing, border collapsing, missing cells, etc. 134 // spacing, border collapsing, missing cells, etc.
134 // For simplicity, just conservatively assume all table rows are not opaque. 135 // For simplicity, just conservatively assume all table rows are not opaque.
135 bool foregroundIsKnownToBeOpaqueInRect(const LayoutRect&, 136 bool foregroundIsKnownToBeOpaqueInRect(const LayoutRect&,
136 unsigned) const override { 137 unsigned) const override {
137 return false; 138 return false;
138 } 139 }
139 bool backgroundIsKnownToBeOpaqueInRect(const LayoutRect&) const override { 140 bool backgroundIsKnownToBeOpaqueInRect(const LayoutRect&) const override {
140 return false; 141 return false;
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after
195 return toLayoutTableRow(firstChild()); 196 return toLayoutTableRow(firstChild());
196 } 197 }
197 198
198 inline LayoutTableRow* LayoutTableSection::lastRow() const { 199 inline LayoutTableRow* LayoutTableSection::lastRow() const {
199 return toLayoutTableRow(lastChild()); 200 return toLayoutTableRow(lastChild());
200 } 201 }
201 202
202 } // namespace blink 203 } // namespace blink
203 204
204 #endif // LayoutTableRow_h 205 #endif // LayoutTableRow_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/layout/LayoutTableCol.h ('k') | third_party/WebKit/Source/core/layout/LayoutTableSection.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698