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

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

Issue 2636353002: [LayoutNG] Remove the state machine from ng_out_of_flow_layout_part. (Closed)
Patch Set: rebase. Created 3 years, 11 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_block_node.h
diff --git a/third_party/WebKit/Source/core/layout/ng/ng_block_node.h b/third_party/WebKit/Source/core/layout/ng/ng_block_node.h
index 29ac63e34b3c6db1246ea0bf569a5fd6eea5d8c6..51fc60aa5c231c0444ef29abd8ef5606025cb027 100644
--- a/third_party/WebKit/Source/core/layout/ng/ng_block_node.h
+++ b/third_party/WebKit/Source/core/layout/ng/ng_block_node.h
@@ -35,6 +35,8 @@ class CORE_EXPORT NGBlockNode final : public NGLayoutInputNode {
~NGBlockNode() override;
bool Layout(NGConstraintSpace*, NGFragment**) override;
+ void LayoutSync(NGConstraintSpace*, NGFragment**);
+
NGBlockNode* NextSibling() override;
// Computes the value of min-content and max-content for this box.
@@ -47,6 +49,7 @@ class CORE_EXPORT NGBlockNode final : public NGLayoutInputNode {
// often enough that it returns true before calling
// ComputeOrSynthesizeMinAndMaxContentSizes)
bool ComputeMinAndMaxContentSizes(MinAndMaxContentSizes*);
+ MinAndMaxContentSizes ComputeMinAndMaxContentSizesSync();
const ComputedStyle* Style() const;
ComputedStyle* MutableStyle();

Powered by Google App Engine
This is Rietveld 408576698