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

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

Issue 2886453005: Account for border/padding in NG Inline layout algorithm. (Closed)
Patch Set: Skip some tests becase of crbug.com/713891 Created 3 years, 7 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_rect.h
diff --git a/third_party/WebKit/Source/core/layout/ng/geometry/ng_logical_rect.h b/third_party/WebKit/Source/core/layout/ng/geometry/ng_logical_rect.h
index c81451e7da889547e463864340b1bcc5fb107241..862957a6852a33e3cd9907e71ee7e07bca49bbcf 100644
--- a/third_party/WebKit/Source/core/layout/ng/geometry/ng_logical_rect.h
+++ b/third_party/WebKit/Source/core/layout/ng/geometry/ng_logical_rect.h
@@ -38,6 +38,10 @@ struct CORE_EXPORT NGLogicalRect {
return offset.block_offset + size.block_size;
}
+ NGLogicalOffset InlineStartBlockStartOffset() const {
+ return {InlineStartOffset(), BlockStartOffset()};
+ }
+
NGLogicalOffset InlineEndBlockStartOffset() const {
return {InlineEndOffset(), BlockStartOffset()};
}

Powered by Google App Engine
This is Rietveld 408576698