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

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

Issue 2954953002: [LayoutNG] Abort a layout once the BFC offset is resolved. (Closed)
Patch Set: rebase. Created 3 years, 5 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_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;

Powered by Google App Engine
This is Rietveld 408576698