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

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

Issue 2451123003: Make NGLayoutOpportunityIterator to support origin_point. (Closed)
Patch Set: 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_units.h
diff --git a/third_party/WebKit/Source/core/layout/ng/ng_units.h b/third_party/WebKit/Source/core/layout/ng/ng_units.h
index 3f1b9b44a618cfd19719288c37b192bdf0269f5c..d52f17d858c99989caea7fcec888dcfde5443383 100644
--- a/third_party/WebKit/Source/core/layout/ng/ng_units.h
+++ b/third_party/WebKit/Source/core/layout/ng/ng_units.h
@@ -49,18 +49,10 @@ struct NGLogicalOffset {
NGPhysicalSize container_size,
NGPhysicalSize inner_size) const;
bool operator==(const NGLogicalOffset& other) const;
-};
-// Origin (in logical coordinates) for a fragment or inline content.
-struct NGLogicalOrigin {
- LayoutUnit inline_offset;
- LayoutUnit block_offset;
-};
+ NGLogicalOffset operator+(const NGLogicalOffset& other) const;
-// Leader point (in logical coordinates) for a text fragment.
-struct NGLogicalLeader {
- LayoutUnit inline_offset;
- LayoutUnit block_offset;
+ NGLogicalOffset& operator+=(const NGLogicalOffset& other);
};
// NGPhysicalOffset is the position of a rect (typically a fragment) relative to

Powered by Google App Engine
This is Rietveld 408576698