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

Unified Diff: third_party/WebKit/Source/core/layout/ng/ng_box_fragment.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_box_fragment.h
diff --git a/third_party/WebKit/Source/core/layout/ng/ng_box_fragment.h b/third_party/WebKit/Source/core/layout/ng/ng_box_fragment.h
index 60c14c811261e9444068ed94127284e53c2da57c..b14c1af6fada839032beb26abae3f31c6ac2a6fa 100644
--- a/third_party/WebKit/Source/core/layout/ng/ng_box_fragment.h
+++ b/third_party/WebKit/Source/core/layout/ng/ng_box_fragment.h
@@ -12,6 +12,7 @@
namespace blink {
+struct NGLineHeightMetrics;
struct NGLogicalSize;
class CORE_EXPORT NGBoxFragment final : public NGFragment {
@@ -22,6 +23,12 @@ class CORE_EXPORT NGBoxFragment final : public NGFragment {
// Returns the total size, including the contents outside of the border-box.
NGLogicalSize OverflowSize() const;
+
+ // Compute baseline metrics (ascent/descent) for this box.
+ //
+ // Baseline requests must be added to constraint space when this fragment was
+ // laid out.
+ NGLineHeightMetrics BaselineMetrics(const NGBaselineRequest&) const;
};
DEFINE_TYPE_CASTS(NGBoxFragment,

Powered by Google App Engine
This is Rietveld 408576698