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

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

Issue 2664383003: [LayoutNG] Make NGBlockNode return a const style reference. (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
« no previous file with comments | « third_party/WebKit/Source/core/layout/ng/ng_layout_input_node.cc ('k') | 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_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 cdbda4f8f9b31aa7af56a8caea097b953d76ea57..06d90c473d87020c5aef42f0d8c3707752c46b22 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
@@ -75,7 +75,7 @@ void NGOutOfFlowLayoutPart::Run() {
out_of_flow_candidate_positions[position_index++];
if (IsContainingBlockForAbsoluteDescendant(container_style_,
- *descendant->Style())) {
+ descendant->Style())) {
NGLogicalOffset offset;
NGFragment* fragment =
LayoutDescendant(*descendant, static_position, &offset);
@@ -100,21 +100,21 @@ NGFragment* NGOutOfFlowLayoutPart::LayoutDescendant(
Optional<MinAndMaxContentSizes> inline_estimate;
Optional<LayoutUnit> block_estimate;
- if (AbsoluteNeedsChildInlineSize(*descendant.Style())) {
+ if (AbsoluteNeedsChildInlineSize(descendant.Style())) {
inline_estimate = descendant.ComputeMinAndMaxContentSizes();
}
NGAbsolutePhysicalPosition node_position =
ComputePartialAbsoluteWithChildInlineSize(
- *container_space_, *descendant.Style(), static_position,
+ *container_space_, descendant.Style(), static_position,
inline_estimate);
- if (AbsoluteNeedsChildBlockSize(*descendant.Style())) {
+ if (AbsoluteNeedsChildBlockSize(descendant.Style())) {
fragment = GenerateFragment(descendant, block_estimate, node_position);
block_estimate = fragment->BlockSize();
}
- ComputeFullAbsoluteWithChildBlockSize(*container_space_, *descendant.Style(),
+ ComputeFullAbsoluteWithChildBlockSize(*container_space_, descendant.Style(),
static_position, block_estimate,
&node_position);
« no previous file with comments | « third_party/WebKit/Source/core/layout/ng/ng_layout_input_node.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698