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

Unified Diff: third_party/WebKit/Source/core/dom/Document.cpp

Issue 1827363003: :active state should stick while mouse button is pressed regardless of focus state (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix indentation (TAB) Created 4 years, 9 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « third_party/WebKit/LayoutTests/fast/css/active-pseudo-and-focus-move.html ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/core/dom/Document.cpp
diff --git a/third_party/WebKit/Source/core/dom/Document.cpp b/third_party/WebKit/Source/core/dom/Document.cpp
index 0af6e4b3499633a3918a04bd9c8e3989dd43e909..27963fdbfebfda45ea4d1b4d799a3a2df9fac173 100644
--- a/third_party/WebKit/Source/core/dom/Document.cpp
+++ b/third_party/WebKit/Source/core/dom/Document.cpp
@@ -3602,9 +3602,6 @@ bool Document::setFocusedElement(PassRefPtrWillBeRawPtr<Element> prpNewFocusedEl
// Remove focus from the existing focus node (if any)
if (oldFocusedElement) {
- if (oldFocusedElement->active())
- oldFocusedElement->setActive(false);
-
oldFocusedElement->setFocus(false);
// Dispatch the blur event and let the node do any other blur related activities (important for text fields)
« no previous file with comments | « third_party/WebKit/LayoutTests/fast/css/active-pseudo-and-focus-move.html ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698