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

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

Issue 2438313003: [LayoutNG] Remove derived constraint spaces from opportunity iterator. (Closed)
Patch Set: address comments. Created 4 years, 2 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_physical_constraint_space.h
diff --git a/third_party/WebKit/Source/core/layout/ng/ng_physical_constraint_space.h b/third_party/WebKit/Source/core/layout/ng/ng_physical_constraint_space.h
index b47d5d40230d9fb3708626717fa9781adce7d5a4..5d6a335db42c1c9924b8c0d067bcbf1bf45cbf18 100644
--- a/third_party/WebKit/Source/core/layout/ng/ng_physical_constraint_space.h
+++ b/third_party/WebKit/Source/core/layout/ng/ng_physical_constraint_space.h
@@ -32,20 +32,20 @@ struct NGExclusion : public GarbageCollected<NGExclusion> {
LayoutUnit right,
LayoutUnit bottom,
LayoutUnit left) {
- rect.location.left = left;
- rect.location.top = top;
+ rect.offset.left = left;
+ rect.offset.top = top;
rect.size.width = right - left;
rect.size.height = bottom - top;
}
- LayoutUnit Top() const { return rect.location.top; }
- LayoutUnit Right() const { return rect.size.width + rect.location.left; }
- LayoutUnit Bottom() const { return rect.size.height + rect.location.top; }
- LayoutUnit Left() const { return rect.location.left; }
+ LayoutUnit Top() const { return rect.offset.top; }
+ LayoutUnit Right() const { return rect.size.width + rect.offset.left; }
+ LayoutUnit Bottom() const { return rect.size.height + rect.offset.top; }
+ LayoutUnit Left() const { return rect.offset.left; }
String ToString() const {
return String::format("%s,%s %sx%s",
- rect.location.left.toString().ascii().data(),
- rect.location.top.toString().ascii().data(),
+ rect.offset.left.toString().ascii().data(),
+ rect.offset.top.toString().ascii().data(),
rect.size.width.toString().ascii().data(),
rect.size.height.toString().ascii().data());
}

Powered by Google App Engine
This is Rietveld 408576698