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

Unified Diff: Source/WebCore/html/HTMLFieldSetElement.cpp

Issue 10451107: Merge 118721 - Form controls in <fieldset disabled> should not be validated. (Closed) Base URL: http://svn.webkit.org/repository/webkit/branches/chromium/1132/
Patch Set: Created 8 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 side-by-side diff with in-line comments
Download patch
Index: Source/WebCore/html/HTMLFieldSetElement.cpp
===================================================================
--- Source/WebCore/html/HTMLFieldSetElement.cpp (revision 119198)
+++ Source/WebCore/html/HTMLFieldSetElement.cpp (working copy)
@@ -50,9 +50,9 @@
// This element must be updated before the style of nodes in its subtree gets recalculated.
HTMLFormControlElement::disabledAttributeChanged();
- for (Node* currentNode = this; currentNode; currentNode = currentNode->traverseNextNode(this)) {
+ for (Node* currentNode = this->traverseNextNode(this); currentNode; currentNode = currentNode->traverseNextNode(this)) {
if (currentNode && currentNode->isElementNode() && toElement(currentNode)->isFormControlElement())
- static_cast<HTMLFormControlElement*>(currentNode)->setNeedsStyleRecalc();
+ static_cast<HTMLFormControlElement*>(currentNode)->ancestorDisabledStateWasChanged();
}
}
« no previous file with comments | « LayoutTests/fast/forms/fieldset/validation-in-fieldset-expected.txt ('k') | Source/WebCore/html/HTMLFormControlElement.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698