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

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

Issue 2960233002: [LayoutNG] Move bfc_offset_, end_margin_sturt_ to NGLayoutResult (Closed)
Patch Set: OOF -> OutOfFlow Created 3 years, 6 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_out_of_flow_positioned_descendant.h
diff --git a/third_party/WebKit/Source/core/layout/ng/ng_out_of_flow_positioned_descendant.h b/third_party/WebKit/Source/core/layout/ng/ng_out_of_flow_positioned_descendant.h
new file mode 100644
index 0000000000000000000000000000000000000000..ae1de47dc5fef3bcf17736d516f44e2d1e4b0356
--- /dev/null
+++ b/third_party/WebKit/Source/core/layout/ng/ng_out_of_flow_positioned_descendant.h
@@ -0,0 +1,32 @@
+// Copyright 2017 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef NGOutOfFlowPositionedDescendant_h
+#define NGOutOfFlowPositionedDescendant_h
+
+#include "core/CoreExport.h"
+
+#include "core/layout/ng/geometry/ng_static_position.h"
+#include "core/layout/ng/ng_block_node.h"
+
+namespace blink {
+
+// An out-of-flow positioned-descendant is an element with the style "postion:
+// absolute" or "position: fixed" which hasn't been bubbled up to its
+// containing block yet, e.g. an element with "position: relative". As soon as
+// a descendant reaches its containing block, it gets placed, and doesn't bubble
+// up the tree.
+//
+// This needs its static position [1] to be placed correcting in its containing
+// block.
+//
+// [1] https://www.w3.org/TR/CSS2/visudet.html#abs-non-replaced-width
+struct CORE_EXPORT NGOutOfFlowPositionedDescendant {
+ NGBlockNode node;
+ NGStaticPosition static_position;
+};
+
+} // namespace blink
+
+#endif // NGOutOfFlowPositionedDescendant_h

Powered by Google App Engine
This is Rietveld 408576698