Changeset 99391 in webkit
- Timestamp:
- Nov 6, 2011, 6:34:40 PM (15 years ago)
- Location:
- trunk/Source/WebCore
- Files:
-
- 3 edited
-
ChangeLog (modified) (1 diff)
-
html/ColorInputType.cpp (modified) (1 diff)
-
html/ColorInputType.h (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebCore/ChangeLog
r99390 r99391 1 2011-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 1 15 2011-11-06 Keishi Hattori <keishi@webkit.org> 2 16 -
trunk/Source/WebCore/html/ColorInputType.cpp
r99390 r99391 133 133 } 134 134 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 150 135 void ColorInputType::handleDOMActivateEvent(Event* event) 151 136 { -
trunk/Source/WebCore/html/ColorInputType.h
r97351 r99391 54 54 virtual void createShadowSubtree(); 55 55 virtual void setValue(const String&, bool valueChanged, bool sendChangeEvent); 56 virtual void handleClickEvent(MouseEvent*);57 56 virtual void handleDOMActivateEvent(Event*); 58 57 virtual void detach();
Note:
See TracChangeset
for help on using the changeset viewer.