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

Changeset 99391 in webkit


Ignore:
Timestamp:
Nov 6, 2011, 6:34:40 PM (15 years ago)
Author:
keishi@webkit.org
Message:

Remove ColorInputType::handleClickEvent
https://bugs.webkit.org/show_bug.cgi?id=71640

Reviewed by Kent Tamura.

When you click the input color element, both ColorInputType::handleClickEvent and
ColorInputType::handleDOMActivateEvent are called, causing Chrome::openColorChooser
to be called too many times.

  • html/ColorInputType.cpp: Removed ColorInputType::handleClickEvent
  • html/ColorInputType.h: Removed ColorInputType::handleClickEvent
Location:
trunk/Source/WebCore
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r99390 r99391  
     12011-11-06  Keishi Hattori  <keishi@webkit.org>
     2
     3        Remove ColorInputType::handleClickEvent
     4        https://bugs.webkit.org/show_bug.cgi?id=71640
     5
     6        Reviewed by Kent Tamura.
     7
     8        When you click the input color element, both ColorInputType::handleClickEvent and
     9        ColorInputType::handleDOMActivateEvent are called, causing Chrome::openColorChooser
     10        to be called too many times.
     11
     12        * html/ColorInputType.cpp: Removed ColorInputType::handleClickEvent
     13        * html/ColorInputType.h: Removed ColorInputType::handleClickEvent
     14
    1152011-11-06  Keishi Hattori  <keishi@webkit.org>
    216
  • trunk/Source/WebCore/html/ColorInputType.cpp

    r99390 r99391  
    133133}
    134134
    135 void ColorInputType::handleClickEvent(MouseEvent* event)
    136 {
    137     if (event->isSimulated())
    138         return;
    139 
    140     if (element()->disabled() || element()->readOnly())
    141         return;
    142 
    143     if (Chrome* chrome = this->chrome()) {
    144         ColorChooser::chooser()->connectClient(this);
    145         chrome->openColorChooser(ColorChooser::chooser(), valueAsColor());
    146     }
    147     event->setDefaultHandled();
    148 }
    149 
    150135void ColorInputType::handleDOMActivateEvent(Event* event)
    151136{
  • trunk/Source/WebCore/html/ColorInputType.h

    r97351 r99391  
    5454    virtual void createShadowSubtree();
    5555    virtual void setValue(const String&, bool valueChanged, bool sendChangeEvent);
    56     virtual void handleClickEvent(MouseEvent*);
    5756    virtual void handleDOMActivateEvent(Event*);
    5857    virtual void detach();
Note: See TracChangeset for help on using the changeset viewer.