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

Side by Side Diff: third_party/WebKit/Source/core/html/HTMLSummaryElement.cpp

Issue 1961293002: [WIP] Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 7 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 unified diff | Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698