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

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

Issue 2373963002: Support display:flex for 'summary' (Closed)
Patch Set: Support display flex/inline-flex/grid/inline-grid for summary Created 4 years, 2 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
« no previous file with comments | « third_party/WebKit/LayoutTests/fast/html/summary-display-inline-grid-expected.html ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 a85f81f7cc6d559ba8d972b8f67e3ba2cc2c8b7f..97ef6d01089aea3803349f65975ea56dce5c43ec 100644
--- a/third_party/WebKit/Source/core/html/HTMLSummaryElement.cpp
+++ b/third_party/WebKit/Source/core/html/HTMLSummaryElement.cpp
@@ -44,7 +44,12 @@ HTMLSummaryElement* HTMLSummaryElement::create(Document& document) {
HTMLSummaryElement::HTMLSummaryElement(Document& document)
: HTMLElement(summaryTag, document) {}
-LayoutObject* HTMLSummaryElement::createLayoutObject(const ComputedStyle&) {
+LayoutObject* HTMLSummaryElement::createLayoutObject(
+ const ComputedStyle& style) {
+ EDisplay display = style.display();
+ if (display == EDisplay::Flex || display == EDisplay::InlineFlex ||
+ display == EDisplay::Grid || display == EDisplay::InlineGrid)
+ return LayoutObject::createObject(this, style);
return new LayoutBlockFlow(this);
}
« no previous file with comments | « third_party/WebKit/LayoutTests/fast/html/summary-display-inline-grid-expected.html ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698