[Webkit-unassigned] [Bug 54820] REGRESSION: Knob of a disabled range control is draggable

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Wed Feb 23 12:19:13 PST 2011


https://bugs.webkit.org/show_bug.cgi?id=54820





--- Comment #2 from chris reiss <christopher.reiss at nokia.com>  2011-02-23 12:19:13 PST ---
looks like this fixes it.  how does one write a layout test for such a thing ?


Index: Source/WebCore/html/shadow/SliderThumbElement.cpp
===================================================================
--- Source/WebCore/html/shadow/SliderThumbElement.cpp    (revision 78999)
+++ Source/WebCore/html/shadow/SliderThumbElement.cpp    (working copy)
@@ -158,6 +158,12 @@
         return;
     }

+    HTMLInputElement* input = static_cast<HTMLInputElement*>(shadowHost());
+    if (input->isReadOnlyFormControl() || !input->isEnabledFormControl() ) {
+        HTMLDivElement::defaultEventHandler(event);
+        return;
+    }
+ 
     MouseEvent* mouseEvent = static_cast<MouseEvent*>(event);
     bool isLeftButton = mouseEvent->button() == LeftButton;
     const AtomicString& eventType = event->type();

-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the webkit-unassigned mailing list