DescriptionDon't repaint button when its click() method is called
When click() method is called, previously we change the active status
of the element to true and then back to false. This doesn't change
anything for a button (or other elements that status doesn't change
after click()) but causes a repaint.
Don't change active status when click() method is called. (Elements
that status changes after click() call (e.g. checkboxes) will still
repaint.)
This doesn't change how we handle real mouse down/up/click events.
BUG=369358
TEST=fast/repaint/button-checkbox-click-method-repaint.html
TEST=fast/events/button-mouse-active.html # ensures :active is correct on real mouse down events.
Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=174988
Patch Set 1 #Patch Set 2 : Rebase #
Total comments: 2
Patch Set 3 : Rebase #Patch Set 4 : Fix test #Patch Set 5 : Call setActive if we dispatch mouseup and mousedown events #Patch Set 6 : NeedsRebaseline on mac #
Messages
Total messages: 23 (0 generated)
|