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

Unified Diff: Source/core/rendering/RenderTableSection.cpp

Issue 786283002: Use the normal LayoutState constructor in RenderTableSection. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years 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
« no previous file with comments | « Source/core/rendering/LayoutState.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/rendering/RenderTableSection.cpp
diff --git a/Source/core/rendering/RenderTableSection.cpp b/Source/core/rendering/RenderTableSection.cpp
index f1983f60442b97de4e318913bdadcee70a486cf4..a41c97a5de7950ca19ec976c8127dd7d73bced19 100644
--- a/Source/core/rendering/RenderTableSection.cpp
+++ b/Source/core/rendering/RenderTableSection.cpp
@@ -704,8 +704,10 @@ int RenderTableSection::calcRowLogicalHeight()
RenderTableCell* cell;
- // FIXME: This shouldn't use the same constructor as RenderView.
- LayoutState state(*this);
+ // We may have to forcefully lay out cells here, in which case we need a layout
+ // state. Technically, we should also push state for the row, but since rows don't push a
+ // coordinate transform, that's not necessary.
+ LayoutState state(*this, locationOffset());
m_rowPos.resize(m_grid.size() + 1);
« no previous file with comments | « Source/core/rendering/LayoutState.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698