Chromium Code Reviews

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

Issue 1952613002: Move LayoutDeprecatedFlexibleBox-specific line handling. (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.
Jump to:
View side-by-side diff with in-line comments
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 67fba0f464dde856be31a7d486300fe5e2a1719b..5feb35079356bbdd8e3f2eeeb90bbf09ab756877 100644
--- a/third_party/WebKit/Source/core/layout/LayoutBlockFlow.h
+++ b/third_party/WebKit/Source/core/layout/LayoutBlockFlow.h
@@ -136,6 +136,11 @@ public:
RootInlineBox* createAndAppendRootInlineBox();
+ // Return the number of lines in *this* block flow. Does not recurse into block flow children.
+ // Will start counting from the first line, and stop counting right after |stopRootInlineBox|,
+ // if specified.
+ int lineCount(const RootInlineBox* stopRootInlineBox = nullptr) const;
+
void removeFloatingObjectsFromDescendants();
void markAllDescendantsWithFloatsForLayout(LayoutBox* floatToRemove = nullptr, bool inLayout = true);
void markSiblingsWithFloatsForLayout(LayoutBox* floatToRemove = nullptr);

Powered by Google App Engine