Changeset 56463 in webkit


Ignore:
Timestamp:
Mar 24, 2010 3:45:03 PM (14 years ago)
Author:
eric@webkit.org
Message:

2010-03-24 MORITA Hajime <morrita@google.com>

Reviewed by Darin Adler.

Refactoring: HTMLFormControlElement should not have redundant null check
https://bugs.webkit.org/show_bug.cgi?id=36487

No new tests as there is no new functionality.

  • html/HTMLFormControlElement.cpp: (WebCore::HTMLFormControlElement::dispatchFocusEvent): (WebCore::HTMLFormControlElement::dispatchBlurEvent):
Location:
trunk/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/WebCore/ChangeLog

    r56462 r56463  
     12010-03-24  MORITA Hajime  <morrita@google.com>
     2
     3        Reviewed by Darin Adler.
     4
     5        Refactoring: HTMLFormControlElement should not have redundant null check
     6        https://bugs.webkit.org/show_bug.cgi?id=36487
     7       
     8        No new tests as there is no new functionality.       
     9
     10        * html/HTMLFormControlElement.cpp:
     11        (WebCore::HTMLFormControlElement::dispatchFocusEvent):
     12        (WebCore::HTMLFormControlElement::dispatchBlurEvent):
     13
    1142010-03-24  Eric Uhrhane  <ericu@chromium.org>
    215
  • trunk/WebCore/html/HTMLFormControlElement.cpp

    r56402 r56463  
    368368void HTMLFormControlElement::dispatchFocusEvent()
    369369{
    370     if (document()->frame() && document()->frame()->page())
    371         document()->frame()->page()->chrome()->client()->formDidFocus(this);
     370    if (document()->page())
     371        document()->page()->chrome()->client()->formDidFocus(this);
    372372
    373373    HTMLElement::dispatchFocusEvent();
     
    376376void HTMLFormControlElement::dispatchBlurEvent()
    377377{
    378     if (document()->frame() && document()->frame()->page())
    379         document()->frame()->page()->chrome()->client()->formDidBlur(this);
     378    if (document()->page())
     379        document()->page()->chrome()->client()->formDidBlur(this);
    380380
    381381    HTMLElement::dispatchBlurEvent();
Note: See TracChangeset for help on using the changeset viewer.