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

Unified Diff: third_party/WebKit/Source/core/html/HTMLSummaryElement.cpp

Issue 2373963002: Support display:flex for 'summary' (Closed)
Patch Set: Created 4 years, 3 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/html/HTMLSummaryElement.cpp
diff --git a/third_party/WebKit/Source/core/html/HTMLSummaryElement.cpp b/third_party/WebKit/Source/core/html/HTMLSummaryElement.cpp
index 96289cd611da91634271cf2aaec004bc3f9c3ebf..8a268f3c99721b9fd9736cac8b383fb70d5bc6bd 100644
--- a/third_party/WebKit/Source/core/html/HTMLSummaryElement.cpp
+++ b/third_party/WebKit/Source/core/html/HTMLSummaryElement.cpp
@@ -30,6 +30,7 @@
#include "core/html/shadow/DetailsMarkerControl.h"
#include "core/html/shadow/ShadowElementNames.h"
#include "core/layout/LayoutBlockFlow.h"
+#include "core/layout/LayoutFlexibleBox.h"
namespace blink {
@@ -47,8 +48,10 @@ HTMLSummaryElement::HTMLSummaryElement(Document& document)
{
}
-LayoutObject* HTMLSummaryElement::createLayoutObject(const ComputedStyle&)
+LayoutObject* HTMLSummaryElement::createLayoutObject(const ComputedStyle& style)
{
+ if (style.display() == FLEX)
cbiesinger 2016/09/28 11:16:09 Could you also add GRID and the inline variants he
+ return LayoutObject::createObject(this, style);
return new LayoutBlockFlow(this);
}

Powered by Google App Engine
This is Rietveld 408576698