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

Unified Diff: third_party/WebKit/Source/core/layout/ng/inline/ng_physical_line_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/inline/ng_physical_line_box_fragment.h
diff --git a/third_party/WebKit/Source/core/layout/ng/inline/ng_physical_line_box_fragment.h b/third_party/WebKit/Source/core/layout/ng/inline/ng_physical_line_box_fragment.h
index 94aabeb011bb9c3ea66690219aa9ac7551610eff..386e44973b931d16a717cd4b10224893ade26d1c 100644
--- a/third_party/WebKit/Source/core/layout/ng/inline/ng_physical_line_box_fragment.h
+++ b/third_party/WebKit/Source/core/layout/ng/inline/ng_physical_line_box_fragment.h
@@ -9,6 +9,7 @@
#include "core/layout/ng/geometry/ng_logical_offset.h"
#include "core/layout/ng/inline/ng_line_height_metrics.h"
#include "core/layout/ng/ng_physical_fragment.h"
+#include "platform/fonts/FontBaseline.h"
namespace blink {
@@ -26,6 +27,9 @@ class CORE_EXPORT NGPhysicalLineBoxFragment final : public NGPhysicalFragment {
const NGLineHeightMetrics& Metrics() const { return metrics_; }
+ // Compute baseline for the specified baseline type.
+ LayoutUnit BaselinePosition(FontBaseline) const;
+
private:
Vector<RefPtr<NGPhysicalFragment>> children_;

Powered by Google App Engine
This is Rietveld 408576698