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

Unified Diff: third_party/WebKit/Source/core/layout/ng/ng_out_of_flow_layout_part.cc

Issue 2714803002: [LayoutNG] Allow block-flow layout to be fragmented using new approach. (Closed)
Patch Set: rebase. 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_out_of_flow_layout_part.cc
diff --git a/third_party/WebKit/Source/core/layout/ng/ng_out_of_flow_layout_part.cc b/third_party/WebKit/Source/core/layout/ng/ng_out_of_flow_layout_part.cc
index da091be5bdce72abe151f69abc8c162070fcd91c..4e5ec779cb6b045f835252e2807cf136c78e819c 100644
--- a/third_party/WebKit/Source/core/layout/ng/ng_out_of_flow_layout_part.cc
+++ b/third_party/WebKit/Source/core/layout/ng/ng_out_of_flow_layout_part.cc
@@ -34,13 +34,14 @@ bool IsContainingBlockForAbsoluteDescendant(
} // namespace
NGOutOfFlowLayoutPart::NGOutOfFlowLayoutPart(
+ const NGConstraintSpace& container_space,
const ComputedStyle& container_style,
NGFragmentBuilder* container_builder)
: container_style_(container_style), container_builder_(container_builder) {
NGWritingMode writing_mode(
FromPlatformWritingMode(container_style_.getWritingMode()));
- NGBoxStrut borders = ComputeBorders(container_style_);
+ NGBoxStrut borders = ComputeBorders(container_space, container_style_);
container_border_offset_ =
NGLogicalOffset{borders.inline_start, borders.block_start};
container_border_physical_offset_ =

Powered by Google App Engine
This is Rietveld 408576698