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

Unified Diff: third_party/WebKit/Source/core/layout/ng/ng_constraint_space_builder.h

Issue 2867293002: [LayoutNG] Compute baseline from fragment tree (Closed)
Patch Set: Cleanup Created 3 years, 5 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/ng/ng_constraint_space_builder.h
diff --git a/third_party/WebKit/Source/core/layout/ng/ng_constraint_space_builder.h b/third_party/WebKit/Source/core/layout/ng/ng_constraint_space_builder.h
index 60006fdf687f0fdd1ba9f7350c2840e85b9ebb43..6dd79da1720a4b83ee8c3e9b767b09b46dca5619 100644
--- a/third_party/WebKit/Source/core/layout/ng/ng_constraint_space_builder.h
+++ b/third_party/WebKit/Source/core/layout/ng/ng_constraint_space_builder.h
@@ -60,6 +60,10 @@ class CORE_EXPORT NGConstraintSpaceBuilder final {
NGConstraintSpaceBuilder& SetClearanceOffset(
const WTF::Optional<LayoutUnit>& clearance_offset);
+ void AddBaselineRequests(const Vector<NGBaselineRequest>&);
+ NGConstraintSpaceBuilder& AddBaselineRequest(NGBaselineAlgorithmType,
+ FontBaseline);
+
// Creates a new constraint space. This may be called multiple times, for
// example the constraint space will be different for a child which:
// - Establishes a new formatting context.
@@ -95,6 +99,7 @@ class CORE_EXPORT NGConstraintSpaceBuilder final {
std::shared_ptr<NGExclusions> exclusions_;
WTF::Optional<LayoutUnit> clearance_offset_;
Vector<RefPtr<NGUnpositionedFloat>> unpositioned_floats_;
+ Vector<NGBaselineRequest> baseline_requests_;
};
} // namespace blink

Powered by Google App Engine
This is Rietveld 408576698