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

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

Issue 1966153002: Turn mergeContiguousAnonymousBlocks() into a proper method. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/layout/LayoutBlock.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 4a1b6329af80b2fafd83dd766ce1df9c5aa1d32a..b62b164a179437fd0aeacdf922c5d0d3eeab455d 100644
--- a/third_party/WebKit/Source/core/layout/LayoutBlock.h
+++ b/third_party/WebKit/Source/core/layout/LayoutBlock.h
@@ -277,6 +277,14 @@ public:
LayoutBlockFlow* nearestInnerBlockWithFirstLine();
protected:
+ // 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.
+ // TODO(mstensho): This belongs in LayoutBlockFlow, but needs to live here until we have been
+ // able to move all callers down to LayoutBlockFlow.
+ bool mergeSiblingContiguousAnonymousBlock(LayoutBlockFlow* siblingThatMayBeDeleted);
+
// Reparent subsequent or preceding adjacent floating or out-of-flow siblings into this object.
// TODO(mstensho): This belongs in LayoutBlockFlow, but needs to live here until we have been
// able to move all callers down to LayoutBlockFlow first.
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/layout/LayoutBlock.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698