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

Unified Diff: third_party/WebKit/Source/core/layout/line/LineLayoutState.h

Issue 2460673002: Need to remove line pagination struts when no longer fragmented. (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
« no previous file with comments | « third_party/WebKit/Source/core/layout/LayoutBlockFlowLine.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/core/layout/line/LineLayoutState.h
diff --git a/third_party/WebKit/Source/core/layout/line/LineLayoutState.h b/third_party/WebKit/Source/core/layout/line/LineLayoutState.h
index 8fab748b6fe5551d44a9d74e49ddd61b4be6e9de..efede63e3bb503c73155ef2f1efc300feefb9432 100644
--- a/third_party/WebKit/Source/core/layout/line/LineLayoutState.h
+++ b/third_party/WebKit/Source/core/layout/line/LineLayoutState.h
@@ -44,11 +44,19 @@ class LineLayoutState {
m_floatIndex(0),
m_endLineMatched(false),
m_hasInlineChild(false),
- m_isFullLayout(fullLayout) {}
+ m_isFullLayout(fullLayout),
+ m_needsPaginationStrutRecalculation(false) {}
void markForFullLayout() { m_isFullLayout = true; }
bool isFullLayout() const { return m_isFullLayout; }
+ bool needsPaginationStrutRecalculation() const {
+ return m_needsPaginationStrutRecalculation || isFullLayout();
+ }
+ void setNeedsPaginationStrutRecalculation() {
+ m_needsPaginationStrutRecalculation = true;
+ }
+
bool endLineMatched() const { return m_endLineMatched; }
void setEndLineMatched(bool endLineMatched) {
m_endLineMatched = endLineMatched;
@@ -97,6 +105,8 @@ class LineLayoutState {
bool m_isFullLayout;
+ bool m_needsPaginationStrutRecalculation;
+
LayoutUnit m_adjustedLogicalLineTop;
};
« no previous file with comments | « third_party/WebKit/Source/core/layout/LayoutBlockFlowLine.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698