Index: third_party/WebKit/Source/core/layout/ng/ng_physical_fragment.h |
diff --git a/third_party/WebKit/Source/core/layout/ng/ng_physical_fragment.h b/third_party/WebKit/Source/core/layout/ng/ng_physical_fragment.h |
index 5c157e3030736ec256a9a8e199e541e9bf609da6..2ccd3e5eb70743247be4501e0d623c5b77675332 100644 |
--- a/third_party/WebKit/Source/core/layout/ng/ng_physical_fragment.h |
+++ b/third_party/WebKit/Source/core/layout/ng/ng_physical_fragment.h |
@@ -66,6 +66,11 @@ class CORE_EXPORT NGPhysicalFragment : public RefCounted<NGPhysicalFragment> { |
return offset_.top; |
} |
+ NGPhysicalOffset Offset() const { |
+ DCHECK(is_placed_); |
+ return offset_; |
+ } |
+ |
// Should only be used by the parent fragement's layout. |
void SetOffset(NGPhysicalOffset offset) { |
DCHECK(!is_placed_); |