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

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

Issue 1885453002: Rename Node::treeScope() to Node::treeScopeOrDocument() Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebased Created 4 years, 8 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) 1999 Lars Knoll (knoll@kde.org) 2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org)
3 * (C) 1999 Antti Koivisto (koivisto@kde.org) 3 * (C) 1999 Antti Koivisto (koivisto@kde.org)
4 * (C) 2001 Dirk Mueller (mueller@kde.org) 4 * (C) 2001 Dirk Mueller (mueller@kde.org)
5 * Copyright (C) 2004, 2005, 2006, 2007 Apple Inc. All rights reserved. 5 * Copyright (C) 2004, 2005, 2006, 2007 Apple Inc. All rights reserved.
6 * (C) 2006 Alexey Proskuryakov (ap@nypop.com) 6 * (C) 2006 Alexey Proskuryakov (ap@nypop.com)
7 * 7 *
8 * This library is free software; you can redistribute it and/or 8 * This library is free software; you can redistribute it and/or
9 * modify it under the terms of the GNU Library General Public 9 * modify it under the terms of the GNU Library General Public
10 * License as published by the Free Software Foundation; either 10 * License as published by the Free Software Foundation; either
(...skipping 170 matching lines...) Expand 10 before | Expand all | Expand 10 after
181 } 181 }
182 } 182 }
183 183
184 void HTMLFormControlElement::disabledAttributeChanged() 184 void HTMLFormControlElement::disabledAttributeChanged()
185 { 185 {
186 setNeedsWillValidateCheck(); 186 setNeedsWillValidateCheck();
187 pseudoStateChanged(CSSSelector::PseudoDisabled); 187 pseudoStateChanged(CSSSelector::PseudoDisabled);
188 pseudoStateChanged(CSSSelector::PseudoEnabled); 188 pseudoStateChanged(CSSSelector::PseudoEnabled);
189 if (layoutObject()) 189 if (layoutObject())
190 LayoutTheme::theme().controlStateChanged(*layoutObject(), EnabledControl State); 190 LayoutTheme::theme().controlStateChanged(*layoutObject(), EnabledControl State);
191 if (isDisabledFormControl() && treeScope().adjustedFocusedElement() == this) { 191 if (isDisabledFormControl() && treeScopeOrDocument().adjustedFocusedElement( ) == this) {
192 // We might want to call blur(), but it's dangerous to dispatch events 192 // We might want to call blur(), but it's dangerous to dispatch events
193 // here. 193 // here.
194 document().setNeedsFocusedElementCheck(); 194 document().setNeedsFocusedElementCheck();
195 } 195 }
196 } 196 }
197 197
198 void HTMLFormControlElement::requiredAttributeChanged() 198 void HTMLFormControlElement::requiredAttributeChanged()
199 { 199 {
200 setNeedsValidityCheck(); 200 setNeedsValidityCheck();
201 pseudoStateChanged(CSSSelector::PseudoRequired); 201 pseudoStateChanged(CSSSelector::PseudoRequired);
(...skipping 456 matching lines...) Expand 10 before | Expand all | Expand 10 after
658 dispatchFormControlChangeEvent(); 658 dispatchFormControlChangeEvent();
659 } 659 }
660 660
661 void HTMLFormControlElement::copyNonAttributePropertiesFromElement(const Element & source) 661 void HTMLFormControlElement::copyNonAttributePropertiesFromElement(const Element & source)
662 { 662 {
663 HTMLElement::copyNonAttributePropertiesFromElement(source); 663 HTMLElement::copyNonAttributePropertiesFromElement(source);
664 setNeedsValidityCheck(); 664 setNeedsValidityCheck();
665 } 665 }
666 666
667 } // namespace blink 667 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/html/HTMLElement.cpp ('k') | third_party/WebKit/Source/core/html/HTMLFormElement.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698