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

Unified Diff: third_party/WebKit/Source/core/layout/LayoutTable.cpp

Issue 2455733003: Provide a dedicated getter for the offset to a repeatable THEAD. (Closed)
Patch Set: code review Created 4 years, 2 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 side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/core/layout/LayoutTable.cpp
diff --git a/third_party/WebKit/Source/core/layout/LayoutTable.cpp b/third_party/WebKit/Source/core/layout/LayoutTable.cpp
index 1c0e9b30d159e409592063f926fc55f0ba9b5c31..37729ab97bed6b291c24f1b51c0dd7f924039bc0 100644
--- a/third_party/WebKit/Source/core/layout/LayoutTable.cpp
+++ b/third_party/WebKit/Source/core/layout/LayoutTable.cpp
@@ -732,16 +732,17 @@ void LayoutTable::layout() {
computeOverflow(clientLogicalBottom());
updateAfterLayout();
+
+ if (state.pageLogicalHeight()) {
+ m_blockOffsetToFirstRepeatableHeader =
+ state.pageLogicalOffset(*this, LayoutUnit());
+ }
}
// FIXME: This value isn't the intrinsic content logical height, but we need
// to update the value as its used by flexbox layout. crbug.com/367324
setIntrinsicContentLogicalHeight(contentLogicalHeight());
- if (view()->layoutState()->pageLogicalHeight())
- setPageLogicalOffset(
- view()->layoutState()->pageLogicalOffset(*this, logicalTop()));
-
m_columnLogicalWidthChanged = false;
clearNeedsLayout();
}
« no previous file with comments | « third_party/WebKit/Source/core/layout/LayoutTable.h ('k') | third_party/WebKit/Source/core/paint/TableSectionPainter.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698