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

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

Issue 2764753007: [LayoutNG] Add NGLineBoxFragment (Closed)
Patch Set: Rebase again as other CLs landed faster 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/ng_box_fragment.cc
diff --git a/third_party/WebKit/Source/core/layout/ng/ng_box_fragment.cc b/third_party/WebKit/Source/core/layout/ng/ng_box_fragment.cc
index 09855a1a1e66133213b687e55aee5dedb73fb338..405a4cde39bfcee590c3895a7bb73bdb17e22276 100644
--- a/third_party/WebKit/Source/core/layout/ng/ng_box_fragment.cc
+++ b/third_party/WebKit/Source/core/layout/ng/ng_box_fragment.cc
@@ -9,6 +9,18 @@
namespace blink {
+LayoutUnit NGBoxFragment::InlineOverflow() const {
+ return writing_mode_ == kHorizontalTopBottom
+ ? toNGPhysicalBoxFragment(physical_fragment_)->WidthOverflow()
+ : toNGPhysicalBoxFragment(physical_fragment_)->HeightOverflow();
+}
+
+LayoutUnit NGBoxFragment::BlockOverflow() const {
+ return writing_mode_ == kHorizontalTopBottom
+ ? toNGPhysicalBoxFragment(physical_fragment_)->HeightOverflow()
+ : toNGPhysicalBoxFragment(physical_fragment_)->WidthOverflow();
+}
+
const WTF::Optional<NGLogicalOffset>& NGBoxFragment::BfcOffset() const {
WRITING_MODE_IGNORED(
"Accessing BFC offset is allowed here because writing"
« no previous file with comments | « third_party/WebKit/Source/core/layout/ng/ng_box_fragment.h ('k') | third_party/WebKit/Source/core/layout/ng/ng_fragment.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698