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

Unified Diff: third_party/WebKit/Source/core/layout/ng/ng_layout_input_node.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_layout_input_node.h
diff --git a/third_party/WebKit/Source/core/layout/ng/ng_layout_input_node.h b/third_party/WebKit/Source/core/layout/ng/ng_layout_input_node.h
index be10d87903bcb93a818bbd1364026693371c8a22..25b30c705c57aabd1a84595cda7872a8ac777d9b 100644
--- a/third_party/WebKit/Source/core/layout/ng/ng_layout_input_node.h
+++ b/third_party/WebKit/Source/core/layout/ng/ng_layout_input_node.h
@@ -6,11 +6,11 @@
#define NGLayoutInputNode_h
#include "core/CoreExport.h"
+#include "core/style/ComputedStyle.h"
#include "platform/heap/Handle.h"
namespace blink {
-class ComputedStyle;
class LayoutObject;
class NGBreakToken;
class NGConstraintSpace;
@@ -29,6 +29,8 @@ class CORE_EXPORT NGLayoutInputNode
bool IsBlock() const { return type_ == kLegacyBlock; }
+ bool IsFloating() const { return IsBlock() && Style().IsFloating(); }
+
virtual ~NGLayoutInputNode(){};
// Performs layout on this input node, will return the layout result.

Powered by Google App Engine
This is Rietveld 408576698