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

Unified Diff: Source/core/svg/SVGAElement.cpp

Issue 562653002: Do not reset mouse focus flag on keydown at anchor elements (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Add regression test (click-focus-keydown-no-ring) Created 6 years, 3 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 | « Source/core/svg/SVGAElement.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/svg/SVGAElement.cpp
diff --git a/Source/core/svg/SVGAElement.cpp b/Source/core/svg/SVGAElement.cpp
index 06d7f840dcd31988757052a735079bc9f1017f38..d41e18e959a28b67df5f6f74bf99c56c452b761f 100644
--- a/Source/core/svg/SVGAElement.cpp
+++ b/Source/core/svg/SVGAElement.cpp
@@ -165,14 +165,11 @@ bool SVGAElement::shouldHaveFocusAppearance() const
return !m_wasFocusedByMouse || SVGGraphicsElement::supportsFocus();
}
-bool SVGAElement::wasFocusedByMouse() const
+void SVGAElement::dispatchFocusEvent(Element* oldFocusedElement, FocusType type)
{
- return m_wasFocusedByMouse;
-}
-
-void SVGAElement::setWasFocusedByMouse(bool wasFocusedByMouse)
-{
- m_wasFocusedByMouse = wasFocusedByMouse;
+ if (type != FocusTypePage)
+ m_wasFocusedByMouse = type == FocusTypeMouse;
+ SVGGraphicsElement::dispatchFocusEvent(oldFocusedElement, type);
}
bool SVGAElement::isURLAttribute(const Attribute& attribute) const
« no previous file with comments | « Source/core/svg/SVGAElement.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698