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

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

Issue 2458823002: Don't establish LayoutState for LayoutTableRow objects. (Closed)
Patch Set: 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/LayoutState.cpp
diff --git a/third_party/WebKit/Source/core/layout/LayoutState.cpp b/third_party/WebKit/Source/core/layout/LayoutState.cpp
index 247523a81a2ab29ead727e91ddc1366f93aeb3f1..d9db8bc34f39908ab253dc8cb2251b3ca56f75c1 100644
--- a/third_party/WebKit/Source/core/layout/LayoutState.cpp
+++ b/third_party/WebKit/Source/core/layout/LayoutState.cpp
@@ -47,7 +47,6 @@ LayoutState::LayoutState(LayoutUnit pageLogicalHeight,
}
LayoutState::LayoutState(LayoutBox& layoutObject,
- const LayoutSize& offset,
LayoutUnit pageLogicalHeight,
bool pageLogicalHeightChanged,
bool containingBlockLogicalWidthChanged)
@@ -100,7 +99,8 @@ LayoutState::LayoutState(LayoutBox& layoutObject,
layoutObject.style()->position() == FixedPosition;
if (fixed)
return;
- m_paginationOffset = m_next->m_paginationOffset + offset;
+ m_paginationOffset =
+ m_next->m_paginationOffset + layoutObject.locationOffset();
if (!layoutObject.isOutOfFlowPositioned())
return;
if (LayoutObject* container = layoutObject.container()) {
« no previous file with comments | « third_party/WebKit/Source/core/layout/LayoutState.h ('k') | third_party/WebKit/Source/core/layout/LayoutTable.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698