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

Unified Diff: third_party/WebKit/Source/core/layout/ng/ng_physical_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_physical_box_fragment.h
diff --git a/third_party/WebKit/Source/core/layout/ng/ng_physical_box_fragment.h b/third_party/WebKit/Source/core/layout/ng/ng_physical_box_fragment.h
index 7e1ec6abc51fc8b52eb55b96309d2f72aacbb524..e62095f2eba2a5824b4c02e32f2595fe9af29fc6 100644
--- a/third_party/WebKit/Source/core/layout/ng/ng_physical_box_fragment.h
+++ b/third_party/WebKit/Source/core/layout/ng/ng_physical_box_fragment.h
@@ -8,6 +8,7 @@
#include "core/CoreExport.h"
#include "core/layout/ng/geometry/ng_logical_offset.h"
#include "core/layout/ng/geometry/ng_margin_strut.h"
+#include "core/layout/ng/inline/ng_baseline.h"
#include "core/layout/ng/ng_physical_fragment.h"
#include "core/layout/ng/ng_positioned_float.h"
#include "platform/wtf/Optional.h"
@@ -22,6 +23,7 @@ class CORE_EXPORT NGPhysicalBoxFragment final : public NGPhysicalFragment {
NGPhysicalSize overflow,
Vector<RefPtr<NGPhysicalFragment>>& children,
Vector<NGPositionedFloat>& positioned_floats,
+ Vector<NGBaseline>& baselines,
unsigned, // NGBorderEdges::Physical
RefPtr<NGBreakToken> break_token = nullptr);
@@ -39,10 +41,13 @@ class CORE_EXPORT NGPhysicalBoxFragment final : public NGPhysicalFragment {
return positioned_floats_;
}
+ const NGBaseline* Baseline(const NGBaselineRequest&) const;
+
private:
NGPhysicalSize overflow_;
Vector<RefPtr<NGPhysicalFragment>> children_;
Vector<NGPositionedFloat> positioned_floats_;
+ Vector<NGBaseline> baselines_;
};
DEFINE_TYPE_CASTS(NGPhysicalBoxFragment,

Powered by Google App Engine
This is Rietveld 408576698