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

Unified Diff: third_party/WebKit/Source/core/layout/LayoutBlock.h

Issue 1611413007: Remove unnecessary anonymous blocks when splitting anonymous boxes (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@568387-RemovePercentHeight
Patch Set: Updated Created 4 years, 11 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/LayoutBlock.h
diff --git a/third_party/WebKit/Source/core/layout/LayoutBlock.h b/third_party/WebKit/Source/core/layout/LayoutBlock.h
index 1692b5a8467baf9894211e1166dd21328b425ea7..a076d9a33c64d4ab31dfa0a8bdb190e1f5ee4eff 100644
--- a/third_party/WebKit/Source/core/layout/LayoutBlock.h
+++ b/third_party/WebKit/Source/core/layout/LayoutBlock.h
@@ -387,7 +387,6 @@ private:
virtual void removeLeftoverAnonymousBlock(LayoutBlock* child);
- static void collapseAnonymousBlockChild(LayoutBlock* parent, LayoutBlock* child);
void makeChildrenInlineIfPossible();
void dirtyLinesFromChangedChild(LayoutObject* child) final { m_lineBoxes.dirtyLinesFromChangedChild(LineLayoutItem(this), LineLayoutItem(child)); }
@@ -455,6 +454,7 @@ public:
// return the distance to the next fragmentainer that can fit this piece of content.
LayoutUnit calculatePaginationStrutToFitContent(LayoutUnit offset, LayoutUnit strutToNextPage, LayoutUnit contentLogicalHeight) const;
+ static void collapseAnonymousBlockChild(LayoutBlock* parent, LayoutBlock* child);
protected:
bool isPageLogicalHeightKnown(LayoutUnit logicalOffset) const { return pageLogicalHeightForOffset(logicalOffset); }

Powered by Google App Engine
This is Rietveld 408576698