Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(276)

Side by Side Diff: Source/core/html/shadow/SpinButtonElement.cpp

Issue 16599003: :hover style not applied on hover if its display property is different from original style's (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Patch Created 7 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2006, 2008, 2010 Apple Inc. All rights reserved. 2 * Copyright (C) 2006, 2008, 2010 Apple Inc. All rights reserved.
3 * Copyright (C) 2010 Google Inc. All rights reserved. 3 * Copyright (C) 2010 Google Inc. All rights reserved.
4 * 4 *
5 * Redistribution and use in source and binary forms, with or without 5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions 6 * modification, are permitted provided that the following conditions
7 * are met: 7 * are met:
8 * 1. Redistributions of source code must retain the above copyright 8 * 1. Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * 2. Redistributions in binary form must reproduce the above copyright 10 * 2. Redistributions in binary form must reproduce the above copyright
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
58 { 58 {
59 return adoptRef(new SpinButtonElement(document, spinButtonOwner)); 59 return adoptRef(new SpinButtonElement(document, spinButtonOwner));
60 } 60 }
61 61
62 const AtomicString& SpinButtonElement::shadowPseudoId() const 62 const AtomicString& SpinButtonElement::shadowPseudoId() const
63 { 63 {
64 DEFINE_STATIC_LOCAL(AtomicString, innerPseudoId, ("-webkit-inner-spin-button ", AtomicString::ConstructFromLiteral)); 64 DEFINE_STATIC_LOCAL(AtomicString, innerPseudoId, ("-webkit-inner-spin-button ", AtomicString::ConstructFromLiteral));
65 return innerPseudoId; 65 return innerPseudoId;
66 } 66 }
67 67
68 void SpinButtonElement::detach() 68 void SpinButtonElement::detach(const AttachContext& context)
69 { 69 {
70 releaseCapture(); 70 releaseCapture();
71 HTMLDivElement::detach(); 71 HTMLDivElement::detach(context);
72 } 72 }
73 73
74 void SpinButtonElement::defaultEventHandler(Event* event) 74 void SpinButtonElement::defaultEventHandler(Event* event)
75 { 75 {
76 if (!event->isMouseEvent()) { 76 if (!event->isMouseEvent()) {
77 if (!event->defaultHandled()) 77 if (!event->defaultHandled())
78 HTMLDivElement::defaultEventHandler(event); 78 HTMLDivElement::defaultEventHandler(event);
79 return; 79 return;
80 } 80 }
81 81
(...skipping 171 matching lines...) Expand 10 before | Expand all | Expand 10 after
253 m_upDownState = Indeterminate; 253 m_upDownState = Indeterminate;
254 HTMLDivElement::setHovered(flag); 254 HTMLDivElement::setHovered(flag);
255 } 255 }
256 256
257 bool SpinButtonElement::shouldRespondToMouseEvents() 257 bool SpinButtonElement::shouldRespondToMouseEvents()
258 { 258 {
259 return !m_spinButtonOwner || m_spinButtonOwner->shouldSpinButtonRespondToMou seEvents(); 259 return !m_spinButtonOwner || m_spinButtonOwner->shouldSpinButtonRespondToMou seEvents();
260 } 260 }
261 261
262 } 262 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698