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

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

Issue 2587673003: Content of cell should avoid repeating headers when it straddles multiple pages (Closed)
Patch Set: bug 675453 Created 3 years, 12 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 122 matching lines...) Expand 10 before | Expand all | Expand 10 after
133 // spacing, border collapsing, missing cells, etc. 133 // spacing, border collapsing, missing cells, etc.
134 // For simplicity, just conservatively assume all table rows are not opaque. 134 // For simplicity, just conservatively assume all table rows are not opaque.
135 bool foregroundIsKnownToBeOpaqueInRect(const LayoutRect&, 135 bool foregroundIsKnownToBeOpaqueInRect(const LayoutRect&,
136 unsigned) const override { 136 unsigned) const override {
137 return false; 137 return false;
138 } 138 }
139 bool backgroundIsKnownToBeOpaqueInRect(const LayoutRect&) const override { 139 bool backgroundIsKnownToBeOpaqueInRect(const LayoutRect&) const override {
140 return false; 140 return false;
141 } 141 }
142 142
143 bool isFirstRowInSectionAfterHeader() const;
144
143 private: 145 private:
144 void addOverflowFromCell(const LayoutTableCell*); 146 void addOverflowFromCell(const LayoutTableCell*);
145 147
146 bool isOfType(LayoutObjectType type) const override { 148 bool isOfType(LayoutObjectType type) const override {
147 return type == LayoutObjectTableRow || 149 return type == LayoutObjectTableRow ||
148 LayoutTableBoxComponent::isOfType(type); 150 LayoutTableBoxComponent::isOfType(type);
149 } 151 }
150 152
151 void willBeRemovedFromTree() override; 153 void willBeRemovedFromTree() override;
152 154
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
193 return toLayoutTableRow(firstChild()); 195 return toLayoutTableRow(firstChild());
194 } 196 }
195 197
196 inline LayoutTableRow* LayoutTableSection::lastRow() const { 198 inline LayoutTableRow* LayoutTableSection::lastRow() const {
197 return toLayoutTableRow(lastChild()); 199 return toLayoutTableRow(lastChild());
198 } 200 }
199 201
200 } // namespace blink 202 } // namespace blink
201 203
202 #endif // LayoutTableRow_h 204 #endif // LayoutTableRow_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/layout/LayoutBox.cpp ('k') | third_party/WebKit/Source/core/layout/LayoutTableRow.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698