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

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

Issue 2384273007: reflow comments in core/html/*.{cpp,h},core/html/imports (Closed)
Patch Set: comments 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 unified diff | Download patch
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2010, 2011 Nokia Corporation and/or its subsidiary(-ies) 2 * Copyright (C) 2010, 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 128 matching lines...) Expand 10 before | Expand all | Expand 10 after
139 detailsToggleEventSender().dispatchEventSoon(this); 139 detailsToggleEventSender().dispatchEventSoon(this);
140 140
141 Element* content = ensureUserAgentShadowRoot().getElementById( 141 Element* content = ensureUserAgentShadowRoot().getElementById(
142 ShadowElementNames::detailsContent()); 142 ShadowElementNames::detailsContent());
143 DCHECK(content); 143 DCHECK(content);
144 if (m_isOpen) 144 if (m_isOpen)
145 content->removeInlineStyleProperty(CSSPropertyDisplay); 145 content->removeInlineStyleProperty(CSSPropertyDisplay);
146 else 146 else
147 content->setInlineStyleProperty(CSSPropertyDisplay, CSSValueNone); 147 content->setInlineStyleProperty(CSSPropertyDisplay, CSSValueNone);
148 148
149 // Invalidate the LayoutDetailsMarker in order to turn the arrow signifying if the 149 // Invalidate the LayoutDetailsMarker in order to turn the arrow signifying
150 // details element is open or closed. 150 // if the details element is open or closed.
151 Element* summary = findMainSummary(); 151 Element* summary = findMainSummary();
152 DCHECK(summary); 152 DCHECK(summary);
153 153
154 Element* control = toHTMLSummaryElement(summary)->markerControl(); 154 Element* control = toHTMLSummaryElement(summary)->markerControl();
155 if (control && control->layoutObject()) 155 if (control && control->layoutObject())
156 control->layoutObject()->setShouldDoFullPaintInvalidation(); 156 control->layoutObject()->setShouldDoFullPaintInvalidation();
157 157
158 return; 158 return;
159 } 159 }
160 HTMLElement::parseAttribute(name, oldValue, value); 160 HTMLElement::parseAttribute(name, oldValue, value);
161 } 161 }
162 162
163 void HTMLDetailsElement::toggleOpen() { 163 void HTMLDetailsElement::toggleOpen() {
164 setAttribute(openAttr, m_isOpen ? nullAtom : emptyAtom); 164 setAttribute(openAttr, m_isOpen ? nullAtom : emptyAtom);
165 } 165 }
166 166
167 bool HTMLDetailsElement::isInteractiveContent() const { 167 bool HTMLDetailsElement::isInteractiveContent() const {
168 return true; 168 return true;
169 } 169 }
170 170
171 } // namespace blink 171 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/html/HTMLCollection.cpp ('k') | third_party/WebKit/Source/core/html/HTMLDialogElement.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698