⚠ Archived content — this site is no longer maintained.   Current WebKit documentation is at docs.webkit.org.

Changeset 118664 in webkit


Ignore:
Timestamp:
May 28, 2012, 2:54:00 AM (14 years ago)
Author:
morrita@google.com
Message:

HTMLFormControlElement::m_validationMessage shouldn't be cleared on detach()
https://bugs.webkit.org/show_bug.cgi?id=87608

Reviewed by Kent Tamura.

Moved m_validationMessage clearance from detach() to removedFrom() and
remove detach().

No new tests. This change has no visible difference. Upcoming changes rely on this though.

  • html/HTMLFormControlElement.cpp:

(WebCore::HTMLFormControlElement::removedFrom):

Location:
trunk/Source/WebCore
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r118662 r118664  
     12012-05-28  MORITA Hajime  <morrita@google.com>
     2
     3        HTMLFormControlElement::m_validationMessage shouldn't be cleared on detach()
     4        https://bugs.webkit.org/show_bug.cgi?id=87608
     5
     6        Reviewed by Kent Tamura.
     7
     8        Moved m_validationMessage clearance from detach() to removedFrom() and
     9        remove detach().
     10
     11        No new tests. This change has no visible difference. Upcoming changes rely on this though.
     12
     13        * html/HTMLFormControlElement.cpp:
     14        (WebCore::HTMLFormControlElement::removedFrom):
     15
    1162012-05-28  Yury Semikhatsky  <yurys@chromium.org>
    217
  • trunk/Source/WebCore/html/HTMLFormControlElement.cpp

    r118501 r118664  
    7171}
    7272
    73 void HTMLFormControlElement::detach()
    74 {
    75     m_validationMessage = nullptr;
    76     HTMLElement::detach();
    77 }
    78 
    7973String HTMLFormControlElement::formEnctype() const
    8074{
     
    234228void HTMLFormControlElement::removedFrom(ContainerNode* insertionPoint)
    235229{
     230    m_validationMessage = nullptr;
    236231    m_fieldSetAncestorValid = false;
    237232    m_dataListAncestorState = Unknown;
  • trunk/Source/WebCore/html/HTMLFormControlElement.h

    r118192 r118664  
    131131
    132132    virtual void dispatchBlurEvent(PassRefPtr<Node> newFocusedNode);
    133     virtual void detach();
    134133
    135134    // This must be called any time the result of willValidate() has changed.
Note: See TracChangeset for help on using the changeset viewer.