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 c28234db2533348344725a408ec6f857ea4073c5..b39024b3a4d3124d007657b39a04f090b32df61a 100644 |
--- a/third_party/WebKit/Source/core/layout/LayoutGrid.cpp |
+++ b/third_party/WebKit/Source/core/layout/LayoutGrid.cpp |
@@ -309,6 +309,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); |