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

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

Issue 2556423002: Missing style invalidation for :in-range and :out-of-range. (Closed)
Patch Set: Created 4 years 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 556 matching lines...) Expand 10 before | Expand all | Expand 10 after
567 return m_isValid; 567 return m_isValid;
568 } 568 }
569 569
570 void HTMLFormControlElement::setNeedsValidityCheck() { 570 void HTMLFormControlElement::setNeedsValidityCheck() {
571 if (!m_validityIsDirty) { 571 if (!m_validityIsDirty) {
572 m_validityIsDirty = true; 572 m_validityIsDirty = true;
573 formOwnerSetNeedsValidityCheck(); 573 formOwnerSetNeedsValidityCheck();
574 fieldSetAncestorsSetNeedsValidityCheck(parentNode()); 574 fieldSetAncestorsSetNeedsValidityCheck(parentNode());
575 pseudoStateChanged(CSSSelector::PseudoValid); 575 pseudoStateChanged(CSSSelector::PseudoValid);
576 pseudoStateChanged(CSSSelector::PseudoInvalid); 576 pseudoStateChanged(CSSSelector::PseudoInvalid);
577 pseudoStateChanged(CSSSelector::PseudoInRange);
578 pseudoStateChanged(CSSSelector::PseudoOutOfRange);
577 } 579 }
578 580
579 // Updates only if this control already has a validation message. 581 // Updates only if this control already has a validation message.
580 if (isValidationMessageVisible()) { 582 if (isValidationMessageVisible()) {
581 // Calls updateVisibleValidationMessage() even if m_isValid is not 583 // Calls updateVisibleValidationMessage() even if m_isValid is not
582 // changed because a validation message can be changed. 584 // changed because a validation message can be changed.
583 updateVisibleValidationMessage(); 585 updateVisibleValidationMessage();
584 } 586 }
585 } 587 }
586 588
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
624 const Element& source) { 626 const Element& source) {
625 HTMLElement::copyNonAttributePropertiesFromElement(source); 627 HTMLElement::copyNonAttributePropertiesFromElement(source);
626 setNeedsValidityCheck(); 628 setNeedsValidityCheck();
627 } 629 }
628 630
629 void HTMLFormControlElement::associateWith(HTMLFormElement* form) { 631 void HTMLFormControlElement::associateWith(HTMLFormElement* form) {
630 associateByParser(form); 632 associateByParser(form);
631 }; 633 };
632 634
633 } // namespace blink 635 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698