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

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

Issue 1968413002: Move some reparenting and anonymous block merge functionality down to LayoutBlockFlow. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Is this thing on? Created 4 years, 7 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.h
diff --git a/third_party/WebKit/Source/core/layout/LayoutBlockFlow.h b/third_party/WebKit/Source/core/layout/LayoutBlockFlow.h
index 05bf7165ef3e0911ace4abccc2dd02b0f1f0612e..a6b35aa0044d04ff24d200d750fe857df6965496 100644
--- a/third_party/WebKit/Source/core/layout/LayoutBlockFlow.h
+++ b/third_party/WebKit/Source/core/layout/LayoutBlockFlow.h
@@ -406,6 +406,16 @@ private:
LayoutMultiColumnFlowThread* createMultiColumnFlowThread(FlowThreadType);
void createOrDestroyMultiColumnFlowThreadIfNeeded(const ComputedStyle* oldStyle);
+ // Merge children of |siblingThatMayBeDeleted| into this object if possible, and delete
+ // |siblingThatMayBeDeleted|. Returns true if we were able to merge. In that case,
+ // |siblingThatMayBeDeleted| will be dead. We'll only be able to merge if both blocks are
+ // anonymous.
+ bool mergeSiblingContiguousAnonymousBlock(LayoutBlockFlow* siblingThatMayBeDeleted);
+
+ // Reparent subsequent or preceding adjacent floating or out-of-flow siblings into this object.
+ void reparentSubsequentFloatingOrOutOfFlowSiblings();
+ void reparentPrecedingFloatingOrOutOfFlowSiblings();
+
void updateLogicalWidthForAlignment(const ETextAlign&, const RootInlineBox*, BidiRun* trailingSpaceRun, LayoutUnit& logicalLeft, LayoutUnit& totalLogicalWidth, LayoutUnit& availableLogicalWidth, unsigned expansionOpportunityCount);
void checkForPaginationLogicalHeightChange(LayoutUnit& pageLogicalHeight, bool& pageLogicalHeightChanged, bool& hasSpecifiedPageLogicalHeight);
« no previous file with comments | « third_party/WebKit/Source/core/layout/LayoutBlock.cpp ('k') | third_party/WebKit/Source/core/layout/LayoutBlockFlow.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698