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

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

Issue 1909233002: Spec-compliant parsing and initial values for 'orphans' and 'widows'. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Some unit tests had non-conformant widphans assumptions too. Created 4 years, 8 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/LayoutBlockFlow.cpp
diff --git a/third_party/WebKit/Source/core/layout/LayoutBlockFlow.cpp b/third_party/WebKit/Source/core/layout/LayoutBlockFlow.cpp
index 41e68517f1d4ebfa8931d9935df53db3b1a21006..dc4c50aec0ba4ed76016a1de6db29e0543d8adac 100644
--- a/third_party/WebKit/Source/core/layout/LayoutBlockFlow.cpp
+++ b/third_party/WebKit/Source/core/layout/LayoutBlockFlow.cpp
@@ -818,7 +818,7 @@ static bool shouldSetStrutOnBlock(const LayoutBlockFlow& block, const RootInline
if (totalLogicalHeight > pageLogicalHeight)
return false;
} else {
- if (block.style()->hasAutoOrphans() || lineIndex > block.style()->orphans())
+ if (lineIndex > block.style()->orphans())
return false;
// Not enough orphans here. Push the entire block to the next column / page as an attempt to

Powered by Google App Engine
This is Rietveld 408576698