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

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

Issue 2656693007: [LayoutNG] Return MinAndMaxContentSizes by value, step 1 (Closed)
Patch Set: 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 088fdaf80aed05eec1d6d22ccd2a8faf9721fd28..28d3574fcdc9821bbe993f2b445f5ab6a63c4334 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
@@ -38,16 +38,10 @@ class CORE_EXPORT NGBlockNode final : public NGLayoutInputNode {
LayoutObject* GetLayoutObject() override;
// Computes the value of min-content and max-content for this box.
- // The return value has the same meaning as for Layout.
// If the underlying layout algorithm returns NotImplemented from
// ComputeMinAndMaxContentSizes, this function will synthesize these sizes
// using Layout with special constraint spaces.
- // It is not legal to interleave a pending Layout() with a pending
- // ComputeOrSynthesizeMinAndMaxContentSizes (i.e. you have to call Layout
- // often enough that it returns true before calling
- // ComputeOrSynthesizeMinAndMaxContentSizes)
- bool ComputeMinAndMaxContentSizes(MinAndMaxContentSizes*);
- MinAndMaxContentSizes ComputeMinAndMaxContentSizesSync();
+ MinAndMaxContentSizes ComputeMinAndMaxContentSizes();
const ComputedStyle* Style() const;
ComputedStyle* MutableStyle();

Powered by Google App Engine
This is Rietveld 408576698