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

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

Issue 2514343004: Remove redundant 'derived constraint space' setters from NGConstraintSpace (Closed)
Patch Set: Created 4 years, 1 month 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 | third_party/WebKit/Source/core/layout/ng/ng_block_layout_algorithm.cc » ('j') | 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_absolute_utils.cc
diff --git a/third_party/WebKit/Source/core/layout/ng/ng_absolute_utils.cc b/third_party/WebKit/Source/core/layout/ng/ng_absolute_utils.cc
index 7c720ec037b2cef4b8c733896e38f4218af70f8f..91664cbbc7928347fb35d61e32dc69a7c9dc0a28 100644
--- a/third_party/WebKit/Source/core/layout/ng/ng_absolute_utils.cc
+++ b/third_party/WebKit/Source/core/layout/ng/ng_absolute_utils.cc
@@ -71,7 +71,7 @@ void ComputeAbsoluteHorizontal(const NGConstraintSpace& space,
LayoutUnit static_start; // TODO(atotic) needs to be passed in.
NGPhysicalSize container_size =
ikilpatrick 2016/11/21 17:45:49 can you also s/container/available in this file?
- space.Size().ConvertToPhysical(space.WritingMode());
+ space.AvailableSize().ConvertToPhysical(space.WritingMode());
DCHECK(container_size.width != NGSizeIndefinite);
// Solving the equation:
@@ -204,7 +204,7 @@ void ComputeAbsoluteVertical(const NGConstraintSpace& space,
LayoutUnit static_start; // TODO(atotic) needs to be passed in.
NGPhysicalSize container_size =
- space.Size().ConvertToPhysical(space.WritingMode());
+ space.AvailableSize().ConvertToPhysical(space.WritingMode());
DCHECK(container_size.height != NGSizeIndefinite);
// Solving the equation:
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/layout/ng/ng_block_layout_algorithm.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698