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

Unified Diff: third_party/WebKit/Source/core/layout/LayoutGrid.cpp

Issue 2150003005: Add grid/flex layout support for <fieldset> (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: updated TestExpectations and fixed legend-after-margin-vertical-writing-mode.html Created 4 years, 5 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/LayoutGrid.cpp
diff --git a/third_party/WebKit/Source/core/layout/LayoutGrid.cpp b/third_party/WebKit/Source/core/layout/LayoutGrid.cpp
index c310533d05364a05b7b3dded3c7ce4408e07dc38..3286bc1bfa5c8770b77303c5a08df741636bf7ce 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);

Powered by Google App Engine
This is Rietveld 408576698