Index: third_party/WebKit/Source/core/layout/LayoutGrid.cpp |
diff --git a/third_party/WebKit/Source/core/layout/LayoutGrid.cpp b/third_party/WebKit/Source/core/layout/LayoutGrid.cpp |
index e9d00961ae56359570e6530bdc8e647c2c108593..748c0f663f37497ae768121362ba19784f624bf9 100644 |
--- a/third_party/WebKit/Source/core/layout/LayoutGrid.cpp |
+++ b/third_party/WebKit/Source/core/layout/LayoutGrid.cpp |
@@ -313,6 +313,13 @@ LayoutGrid::~LayoutGrid() |
{ |
} |
+LayoutGrid* LayoutGrid::createAnonymous(Document* document) |
+{ |
+ LayoutGrid* layoutGrid = new LayoutGrid(nullptr); |
+ layoutGrid->setDocumentForAnonymous(document); |
+ return layoutGrid; |
+} |
+ |
void LayoutGrid::addChild(LayoutObject* newChild, LayoutObject* beforeChild) |
{ |
LayoutBlock::addChild(newChild, beforeChild); |