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

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

Issue 20670002: REGRESSION: Click on focused link should not remove focus on it. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 5 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/SVGStyledElement.h ('k') | Source/core/svg/SVGSwitchElement.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/svg/SVGStyledElement.cpp
diff --git a/Source/core/svg/SVGStyledElement.cpp b/Source/core/svg/SVGStyledElement.cpp
index 5f57599a31e00f40010119333558e346e2234a9b..01a2dd7de77ea6b256314aa002c01c830daf99d3 100644
--- a/Source/core/svg/SVGStyledElement.cpp
+++ b/Source/core/svg/SVGStyledElement.cpp
@@ -469,17 +469,20 @@ void SVGStyledElement::updateRelativeLengthsInformation(bool hasRelativeLengths,
}
}
-bool SVGStyledElement::isMouseFocusable() const
+bool SVGStyledElement::hasFocusEventListeners() const
{
- if (!isFocusable())
- return false;
Element* eventTarget = const_cast<SVGStyledElement *>(this);
Stephen Chennney 2013/07/26 14:31:14 This should be toSVGStyledElement, but is it even
tkent 2013/07/28 23:42:18 The purpose of this case is to get non-const |this
return eventTarget->hasEventListeners(eventNames().focusinEvent) || eventTarget->hasEventListeners(eventNames().focusoutEvent);
}
+bool SVGStyledElement::isMouseFocusable() const
+{
+ return isFocusable();
+}
+
bool SVGStyledElement::isKeyboardFocusable(KeyboardEvent*) const
{
- return isMouseFocusable();
+ return isFocusable();
}
}
« no previous file with comments | « Source/core/svg/SVGStyledElement.h ('k') | Source/core/svg/SVGSwitchElement.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698