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

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

Issue 2803433002: [LayoutNG] Initial support for the 'vertical-align' property (Closed)
Patch Set: Move NGInlineBoxState to its own file Created 3 years, 8 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_inline_layout_algorithm.h
diff --git a/third_party/WebKit/Source/core/layout/ng/inline/ng_inline_layout_algorithm.h b/third_party/WebKit/Source/core/layout/ng/inline/ng_inline_layout_algorithm.h
index e369232db48568532166fa7e8a1f55ee63a380f1..042dcbc49d63376e8cf94b3239a8d07c0177b276 100644
--- a/third_party/WebKit/Source/core/layout/ng/inline/ng_inline_layout_algorithm.h
+++ b/third_party/WebKit/Source/core/layout/ng/inline/ng_inline_layout_algorithm.h
@@ -7,6 +7,7 @@
#include "core/CoreExport.h"
#include "core/layout/ng/geometry/ng_logical_offset.h"
+#include "core/layout/ng/inline/ng_inline_box_state.h"
#include "core/layout/ng/inline/ng_inline_break_token.h"
#include "core/layout/ng/inline/ng_line_height_metrics.h"
#include "core/layout/ng/ng_constraint_space_builder.h"
@@ -137,10 +138,22 @@ class CORE_EXPORT NGInlineLayoutAlgorithm final
NGLineBoxFragmentBuilder*,
NGTextFragmentBuilder*);
+ NGInlineBoxState* OnBeginPlaceItems();
ikilpatrick 2017/04/18 01:04:37 Oh, sorry, does it make sense to move, OnBeginPlac
+ NGInlineBoxState* OnOpenTag(const NGLayoutInlineItem&,
+ NGLineBoxFragmentBuilder*,
+ NGTextFragmentBuilder*);
+ NGInlineBoxState* OnCloseTag(const NGLayoutInlineItem&,
+ NGLineBoxFragmentBuilder*,
+ NGInlineBoxState*);
+ void OnEndPlaceItems(NGLineBoxFragmentBuilder*);
+ void EndBoxState(NGInlineBoxState*, NGLineBoxFragmentBuilder*);
+ void ApplyBaselineShift(NGInlineBoxState*, NGLineBoxFragmentBuilder*);
+
// Finds the next layout opportunity for the next text fragment.
void FindNextLayoutOpportunity();
Vector<RefPtr<NGLayoutResult>, 32> layout_results_;
+ NGInlineLayoutStateStack box_states_;
unsigned start_index_ = 0;
unsigned start_offset_ = 0;
unsigned last_index_ = 0;

Powered by Google App Engine
This is Rietveld 408576698