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

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

Issue 2613863004: [layoutng] For consistency, always use Style() to access the style (Closed)
Patch Set: fix typo 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/core/layout/ng/ng_block_layout_algorithm.cc
diff --git a/third_party/WebKit/Source/core/layout/ng/ng_block_layout_algorithm.cc b/third_party/WebKit/Source/core/layout/ng/ng_block_layout_algorithm.cc
index 8a359b3bce1ee40eea0e2e118d2aee04b5c709e0..9f88d9474a016c56b2d541cfbb3b670301db21e6 100644
--- a/third_party/WebKit/Source/core/layout/ng/ng_block_layout_algorithm.cc
+++ b/third_party/WebKit/Source/core/layout/ng/ng_block_layout_algorithm.cc
@@ -201,7 +201,7 @@ NGBlockLayoutAlgorithm::ComputeMinAndMaxContentSizes(
LayoutUnit();
// Size-contained elements don't consider their contents for intrinsic
// sizing.
- if (style_->containsSize())
+ if (Style().containsSize())
return kSuccess;
current_minmax_child_ = first_child_;
compute_minmax_state_ = kStateChildLayout;
@@ -316,7 +316,8 @@ NGLayoutStatus NGBlockLayoutAlgorithm::Layout(
builder_->SetBlockSize(block_size);
// Out of flow setup.
- out_of_flow_layout_ = new NGOutOfFlowLayoutPart(style_, builder_->Size());
+ out_of_flow_layout_ =
+ new NGOutOfFlowLayoutPart(&Style(), builder_->Size());
builder_->GetAndClearOutOfFlowDescendantCandidates(
&out_of_flow_candidates_, &out_of_flow_candidate_positions_);
out_of_flow_candidate_positions_index_ = 0;
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698