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

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

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_physical_box_fragment.h
diff --git a/third_party/WebKit/Source/core/layout/ng/ng_physical_box_fragment.h b/third_party/WebKit/Source/core/layout/ng/ng_physical_box_fragment.h
index c6c1542cbc25c315ba3eff0646a9a9d75d44346b..0afd0c66282674cecac9077950b740616431c028 100644
--- a/third_party/WebKit/Source/core/layout/ng/ng_physical_box_fragment.h
+++ b/third_party/WebKit/Source/core/layout/ng/ng_physical_box_fragment.h
@@ -28,6 +28,10 @@ class CORE_EXPORT NGPhysicalBoxFragment final : public NGPhysicalFragment {
const NGMarginStrut& end_margin_strut,
RefPtr<NGBreakToken> break_token = nullptr);
+ // Returns the total size, including the contents outside of the border-box.
+ LayoutUnit WidthOverflow() const { return overflow_.width; }
+ LayoutUnit HeightOverflow() const { return overflow_.height; }
+
const Vector<RefPtr<NGPhysicalFragment>>& Children() const {
return children_;
}
@@ -46,6 +50,7 @@ class CORE_EXPORT NGPhysicalBoxFragment final : public NGPhysicalFragment {
const NGMarginStrut& EndMarginStrut() const { return end_margin_strut_; }
private:
+ NGPhysicalSize overflow_;
Vector<RefPtr<NGPhysicalFragment>> children_;
Vector<RefPtr<NGFloatingObject>> positioned_floats_;
const WTF::Optional<NGLogicalOffset> bfc_offset_;

Powered by Google App Engine
This is Rietveld 408576698