Index: third_party/WebKit/Source/core/layout/ng/ng_fragment.h |
diff --git a/third_party/WebKit/Source/core/layout/ng/ng_fragment.h b/third_party/WebKit/Source/core/layout/ng/ng_fragment.h |
index fd44298f0369ba1fd390c781d1377c13c652957a..eb11d5050ad590715fe09831f43a367117f4b58c 100644 |
--- a/third_party/WebKit/Source/core/layout/ng/ng_fragment.h |
+++ b/third_party/WebKit/Source/core/layout/ng/ng_fragment.h |
@@ -28,6 +28,9 @@ class CORE_EXPORT NGFragment { |
return static_cast<NGWritingMode>(writing_mode_); |
} |
+ // TODO(ikilpatrick): Remove once block layout algorithm refactoring complete. |
+ explicit operator bool() { return physical_fragment_ != nullptr; } |
+ |
// Returns the border-box size. |
LayoutUnit InlineSize() const; |
LayoutUnit BlockSize() const; |