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

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

Issue 2882043002: Update our treatment of repeating headers in tables (Closed)
Patch Set: bug 720620 Created 3 years, 6 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
145 private: 143 private:
146 void AddOverflowFromCell(const LayoutTableCell*); 144 void AddOverflowFromCell(const LayoutTableCell*);
147 145
148 bool IsOfType(LayoutObjectType type) const override { 146 bool IsOfType(LayoutObjectType type) const override {
149 return type == kLayoutObjectTableRow || 147 return type == kLayoutObjectTableRow ||
150 LayoutTableBoxComponent::IsOfType(type); 148 LayoutTableBoxComponent::IsOfType(type);
151 } 149 }
152 150
153 void WillBeRemovedFromTree() override; 151 void WillBeRemovedFromTree() override;
154 152
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
195 return ToLayoutTableRow(FirstChild()); 193 return ToLayoutTableRow(FirstChild());
196 } 194 }
197 195
198 inline LayoutTableRow* LayoutTableSection::LastRow() const { 196 inline LayoutTableRow* LayoutTableSection::LastRow() const {
199 return ToLayoutTableRow(LastChild()); 197 return ToLayoutTableRow(LastChild());
200 } 198 }
201 199
202 } // namespace blink 200 } // namespace blink
203 201
204 #endif // LayoutTableRow_h 202 #endif // LayoutTableRow_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/layout/LayoutTable.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