| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2011 Nokia Corporation and/or its subsidiary(-ies) | 2 * Copyright (C) 2011 Nokia Corporation and/or its subsidiary(-ies) |
| 3 * | 3 * |
| 4 * This library is free software; you can redistribute it and/or | 4 * This library is free software; you can redistribute it and/or |
| 5 * modify it under the terms of the GNU Library General Public | 5 * modify it under the terms of the GNU Library General Public |
| 6 * License as published by the Free Software Foundation; either | 6 * License as published by the Free Software Foundation; either |
| 7 * version 2 of the License, or (at your option) any later version. | 7 * version 2 of the License, or (at your option) any later version. |
| 8 * | 8 * |
| 9 * This library is distributed in the hope that it will be useful, | 9 * This library is distributed in the hope that it will be useful, |
| 10 * but WITHOUT ANY WARRANTY; without even the implied warranty of | 10 * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| (...skipping 29 matching lines...) Expand all Loading... |
| 40 summary->ensureUserAgentShadowRoot(); | 40 summary->ensureUserAgentShadowRoot(); |
| 41 return summary; | 41 return summary; |
| 42 } | 42 } |
| 43 | 43 |
| 44 HTMLSummaryElement::HTMLSummaryElement(Document& document) | 44 HTMLSummaryElement::HTMLSummaryElement(Document& document) |
| 45 : HTMLElement(summaryTag, document) {} | 45 : HTMLElement(summaryTag, document) {} |
| 46 | 46 |
| 47 LayoutObject* HTMLSummaryElement::createLayoutObject( | 47 LayoutObject* HTMLSummaryElement::createLayoutObject( |
| 48 const ComputedStyle& style) { | 48 const ComputedStyle& style) { |
| 49 EDisplay display = style.display(); | 49 EDisplay display = style.display(); |
| 50 if (display == EDisplay::Flex || display == EDisplay::InlineFlex || | 50 if (display == EDisplay::kFlex || display == EDisplay::kInlineFlex || |
| 51 display == EDisplay::Grid || display == EDisplay::InlineGrid) | 51 display == EDisplay::kGrid || display == EDisplay::kInlineGrid) |
| 52 return LayoutObject::createObject(this, style); | 52 return LayoutObject::createObject(this, style); |
| 53 return new LayoutBlockFlow(this); | 53 return new LayoutBlockFlow(this); |
| 54 } | 54 } |
| 55 | 55 |
| 56 void HTMLSummaryElement::didAddUserAgentShadowRoot(ShadowRoot& root) { | 56 void HTMLSummaryElement::didAddUserAgentShadowRoot(ShadowRoot& root) { |
| 57 DetailsMarkerControl* markerControl = | 57 DetailsMarkerControl* markerControl = |
| 58 DetailsMarkerControl::create(document()); | 58 DetailsMarkerControl::create(document()); |
| 59 markerControl->setIdAttribute(ShadowElementNames::detailsMarker()); | 59 markerControl->setIdAttribute(ShadowElementNames::detailsMarker()); |
| 60 root.appendChild(markerControl); | 60 root.appendChild(markerControl); |
| 61 root.appendChild(HTMLContentElement::create(document())); | 61 root.appendChild(HTMLContentElement::create(document())); |
| (...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 137 } | 137 } |
| 138 | 138 |
| 139 HTMLElement::defaultEventHandler(event); | 139 HTMLElement::defaultEventHandler(event); |
| 140 } | 140 } |
| 141 | 141 |
| 142 bool HTMLSummaryElement::willRespondToMouseClickEvents() { | 142 bool HTMLSummaryElement::willRespondToMouseClickEvents() { |
| 143 return isMainSummary() || HTMLElement::willRespondToMouseClickEvents(); | 143 return isMainSummary() || HTMLElement::willRespondToMouseClickEvents(); |
| 144 } | 144 } |
| 145 | 145 |
| 146 } // namespace blink | 146 } // namespace blink |
| OLD | NEW |