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

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

Issue 2739683006: Use Opportunity Iterator to position text fragments in NGLineBuilder (Closed)
Patch Set: add font-family Created 3 years, 9 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/geometry/ng_logical_offset.cc
diff --git a/third_party/WebKit/Source/core/layout/ng/geometry/ng_logical_offset.cc b/third_party/WebKit/Source/core/layout/ng/geometry/ng_logical_offset.cc
index 5c7edf0b0ee5773766e7ec303d8da5aeeb9fe472..c00d7d7b09de4689b8ed4a0b41cad55b68698f04 100644
--- a/third_party/WebKit/Source/core/layout/ng/geometry/ng_logical_offset.cc
+++ b/third_party/WebKit/Source/core/layout/ng/geometry/ng_logical_offset.cc
@@ -56,6 +56,10 @@ bool NGLogicalOffset::operator==(const NGLogicalOffset& other) const {
std::tie(inline_offset, block_offset);
}
+bool NGLogicalOffset::operator!=(const NGLogicalOffset& other) const {
+ return !operator==(other);
+}
+
NGLogicalOffset NGLogicalOffset::operator+(const NGLogicalOffset& other) const {
NGLogicalOffset result;
result.inline_offset = this->inline_offset + other.inline_offset;

Powered by Google App Engine
This is Rietveld 408576698