| 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 HTMLSummaryElement* summary = new HTMLSummaryElement(document); | 40 HTMLSummaryElement* summary = new HTMLSummaryElement(document); |
| 41 summary->ensureUserAgentShadowRoot(); | 41 summary->ensureUserAgentShadowRoot(); |
| 42 return summary; | 42 return summary; |
| 43 } | 43 } |
| 44 | 44 |
| 45 HTMLSummaryElement::HTMLSummaryElement(Document& document) | 45 HTMLSummaryElement::HTMLSummaryElement(Document& document) |
| 46 : HTMLElement(summaryTag, document) | 46 : HTMLElement(summaryTag, document) |
| 47 { | 47 { |
| 48 } | 48 } |
| 49 | 49 |
| 50 LayoutObject* HTMLSummaryElement::createLayoutObject(const ComputedStyle&) | 50 LayoutObject* HTMLSummaryElement::createLayoutObject(const ComputedStyle& style) |
| 51 { | 51 { |
| 52 return new LayoutBlockFlow(this); | 52 return new LayoutObject::createObject(this, style); |
| 53 } | 53 } |
| 54 | 54 |
| 55 void HTMLSummaryElement::didAddUserAgentShadowRoot(ShadowRoot& root) | 55 void HTMLSummaryElement::didAddUserAgentShadowRoot(ShadowRoot& root) |
| 56 { | 56 { |
| 57 DetailsMarkerControl* markerControl = DetailsMarkerControl::create(document(
)); | 57 DetailsMarkerControl* markerControl = DetailsMarkerControl::create(document(
)); |
| 58 markerControl->setIdAttribute(ShadowElementNames::detailsMarker()); | 58 markerControl->setIdAttribute(ShadowElementNames::detailsMarker()); |
| 59 root.appendChild(markerControl); | 59 root.appendChild(markerControl); |
| 60 root.appendChild(HTMLContentElement::create(document())); | 60 root.appendChild(HTMLContentElement::create(document())); |
| 61 } | 61 } |
| 62 | 62 |
| (...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 142 | 142 |
| 143 bool HTMLSummaryElement::willRespondToMouseClickEvents() | 143 bool HTMLSummaryElement::willRespondToMouseClickEvents() |
| 144 { | 144 { |
| 145 if (isMainSummary() && layoutObject()) | 145 if (isMainSummary() && layoutObject()) |
| 146 return true; | 146 return true; |
| 147 | 147 |
| 148 return HTMLElement::willRespondToMouseClickEvents(); | 148 return HTMLElement::willRespondToMouseClickEvents(); |
| 149 } | 149 } |
| 150 | 150 |
| 151 } // namespace blink | 151 } // namespace blink |
| OLD | NEW |