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

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: revert a11y test expectations & explicitely set a11y fieldset role to GroupRole 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 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);

Powered by Google App Engine
This is Rietveld 408576698