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

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

Issue 2842983002: [LayoutNG] Paint inlines from the fragment tree
Patch Set: Rebase w/HEAD Created 3 years, 7 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/layout_ng_block_flow.h
diff --git a/third_party/WebKit/Source/core/layout/ng/layout_ng_block_flow.h b/third_party/WebKit/Source/core/layout/ng/layout_ng_block_flow.h
index 81260737f705be3a3033d3f8f3dd0ee42e550701..428c939906d5cee4a9c48e7ffd9501f7e54badf3 100644
--- a/third_party/WebKit/Source/core/layout/ng/layout_ng_block_flow.h
+++ b/third_party/WebKit/Source/core/layout/ng/layout_ng_block_flow.h
@@ -9,6 +9,7 @@
#include "core/layout/LayoutBlockFlow.h"
#include "core/layout/ng/inline/ng_inline_node_data.h"
#include "core/layout/ng/ng_block_node.h"
+#include "core/layout/ng/ng_physical_fragment.h"
namespace blink {
@@ -26,11 +27,18 @@ class CORE_EXPORT LayoutNGBlockFlow final : public LayoutBlockFlow {
NGInlineNodeData& GetNGInlineNodeData() const;
void ResetNGInlineNodeData();
+ void PaintObject(const PaintInfo&, const LayoutPoint&) const override;
+
+ NGPhysicalFragment* RootFragment() const { return root_fragment_.Get(); }
+
private:
bool IsOfType(LayoutObjectType) const override;
std::unique_ptr<NGInlineNodeData> ng_inline_node_data_;
Persistent<NGBlockNode> box_;
+
+ public: // TODO(eae):
+ RefPtr<NGPhysicalFragment> root_fragment_;
};
DEFINE_LAYOUT_OBJECT_TYPE_CASTS(LayoutNGBlockFlow, IsLayoutNGBlockFlow());

Powered by Google App Engine
This is Rietveld 408576698