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

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

Issue 2477843002: Revert of Add support of leader_point in NGLayoutOpportunityIterator. (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
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 0e77706516e6eb7759927c2f8006906ef8d32057..a8821b681b375806a0ef20feabbf198bb4e12e36 100644
--- a/third_party/WebKit/Source/core/layout/ng/ng_units.h
+++ b/third_party/WebKit/Source/core/layout/ng/ng_units.h
@@ -27,10 +27,6 @@
NGPhysicalSize ConvertToPhysical(NGWritingMode mode) const;
bool operator==(const NGLogicalSize& other) const;
-
- bool IsEmpty() const {
- return inline_size == LayoutUnit() || block_size == LayoutUnit();
- }
};
// NGLogicalOffset is the position of a rect (typically a fragment) relative to
@@ -57,20 +53,7 @@
NGLogicalOffset operator+(const NGLogicalOffset& other) const;
NGLogicalOffset& operator+=(const NGLogicalOffset& other);
-
- bool operator>(const NGLogicalOffset& other) const;
- bool operator>=(const NGLogicalOffset& other) const;
-
- bool operator<(const NGLogicalOffset& other) const;
- bool operator<=(const NGLogicalOffset& other) const;
-
- String ToString() const;
-};
-
-CORE_EXPORT inline std::ostream& operator<<(std::ostream& os,
- const NGLogicalOffset& value) {
- return os << value.ToString();
-}
+};
// NGPhysicalOffset is the position of a rect (typically a fragment) relative to
// its parent rect in the physical coordinate system.

Powered by Google App Engine
This is Rietveld 408576698