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

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

Issue 2816933003: Use Layout Opportunity Iterator to position new FC blocks. (Closed)
Patch Set: fix block-formatting-contexts-{005|007} Created 3 years, 8 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_floating_object.h
diff --git a/third_party/WebKit/Source/core/layout/ng/ng_floating_object.h b/third_party/WebKit/Source/core/layout/ng/ng_floating_object.h
index 29d71d83cc0ec9b06f157d32f202176b73d6d765..29f9fd69fecbed97b686f72a7f8d2e865476364d 100644
--- a/third_party/WebKit/Source/core/layout/ng/ng_floating_object.h
+++ b/third_party/WebKit/Source/core/layout/ng/ng_floating_object.h
@@ -13,6 +13,7 @@
#include "core/layout/ng/ng_physical_fragment.h"
#include "core/style/ComputedStyle.h"
#include "core/style/ComputedStyleConstants.h"
+#include "platform/wtf/Optional.h"
#include "platform/wtf/RefPtr.h"
namespace blink {
@@ -50,6 +51,10 @@ struct CORE_EXPORT NGFloatingObject : public RefCounted<NGFloatingObject> {
NGLogicalOffset origin_offset;
NGLogicalOffset from_offset;
+ // Calculated logical offset. It's never {@code nullopt} for a positioned
+ // float.
+ WTF::Optional<NGLogicalOffset> logical_offset;
+
// Writing mode of the float's constraint space.
NGWritingMode writing_mode;

Powered by Google App Engine
This is Rietveld 408576698