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

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

Issue 2711803007: Add ClearanceOffset to LayoutNG Constraint space. (Closed)
Patch Set: Created 3 years, 10 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_layout_algorithm.h
diff --git a/third_party/WebKit/Source/core/layout/ng/ng_block_layout_algorithm.h b/third_party/WebKit/Source/core/layout/ng/ng_block_layout_algorithm.h
index 74365e488fe43b3c00cdcd0adb8695e4f5125797..0d7389af9b0b6bf563c31ab8be558794f5e6bb1a 100644
--- a/third_party/WebKit/Source/core/layout/ng/ng_block_layout_algorithm.h
+++ b/third_party/WebKit/Source/core/layout/ng/ng_block_layout_algorithm.h
@@ -40,6 +40,9 @@ class CORE_EXPORT NGBlockLayoutAlgorithm : public NGLayoutAlgorithm {
RefPtr<NGPhysicalFragment> Layout() override;
private:
+ // Updates the fragment's BFC offset if it's not already set.
ikilpatrick 2017/02/24 17:36:57 I might go through later and reorder everything so
Gleb Lanbin 2017/02/24 18:37:00 agree, I tried to organize things here (see "Read-
+ void UpdateFragmentBfcOffset(const NGLogicalOffset& offset);
+
NGBoxStrut CalculateMargins(const NGConstraintSpace& space,
const ComputedStyle& style);

Powered by Google App Engine
This is Rietveld 408576698