Chromium Code Reviews| 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); |
| } |