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

Side by Side Diff: Source/core/html/forms/RadioButtonGroupScope.cpp

Issue 540533004: Use style invalidation for more pseudo classes. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Rebased Created 6 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
« no previous file with comments | « Source/core/html/HTMLProgressElement.cpp ('k') | 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) 2007, 2008, 2009 Apple Inc. All rights reserved. 2 * Copyright (C) 2007, 2008, 2009 Apple Inc. All rights reserved.
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 98 matching lines...) Expand 10 before | Expand all | Expand 10 after
109 setCheckedButton(button); 109 setCheckedButton(button);
110 } else { 110 } else {
111 if (m_checkedButton == button) 111 if (m_checkedButton == button)
112 m_checkedButton = nullptr; 112 m_checkedButton = nullptr;
113 } 113 }
114 if (wasValid != isValid()) 114 if (wasValid != isValid())
115 setNeedsValidityCheckForAllButtons(); 115 setNeedsValidityCheckForAllButtons();
116 typedef WillBeHeapHashSet<RawPtrWillBeMember<HTMLInputElement> >::const_iter ator Iterator; 116 typedef WillBeHeapHashSet<RawPtrWillBeMember<HTMLInputElement> >::const_iter ator Iterator;
117 Iterator end = m_members.end(); 117 Iterator end = m_members.end();
118 for (Iterator it = m_members.begin(); it != end; ++it) { 118 for (Iterator it = m_members.begin(); it != end; ++it) {
119 (*it)->didAffectSelector(AffectedSelectorIndeterminate); 119 (*it)->pseudoStateChanged(CSSSelector::PseudoIndeterminate);
120 } 120 }
121 } 121 }
122 122
123 void RadioButtonGroup::requiredAttributeChanged(HTMLInputElement* button) 123 void RadioButtonGroup::requiredAttributeChanged(HTMLInputElement* button)
124 { 124 {
125 ASSERT(button->type() == InputTypeNames::radio); 125 ASSERT(button->type() == InputTypeNames::radio);
126 ASSERT(m_members.contains(button)); 126 ASSERT(m_members.contains(button));
127 bool wasValid = isValid(); 127 bool wasValid = isValid();
128 if (button->isRequired()) { 128 if (button->isRequired()) {
129 ++m_requiredCount; 129 ++m_requiredCount;
(...skipping 151 matching lines...) Expand 10 before | Expand all | Expand 10 after
281 } 281 }
282 282
283 void RadioButtonGroupScope::trace(Visitor* visitor) 283 void RadioButtonGroupScope::trace(Visitor* visitor)
284 { 284 {
285 #if ENABLE(OILPAN) 285 #if ENABLE(OILPAN)
286 visitor->trace(m_nameToGroupMap); 286 visitor->trace(m_nameToGroupMap);
287 #endif 287 #endif
288 } 288 }
289 289
290 } // namespace 290 } // namespace
OLDNEW
« no previous file with comments | « Source/core/html/HTMLProgressElement.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698