Index: Source/core/svg/SVGElement.cpp |
diff --git a/Source/core/svg/SVGElement.cpp b/Source/core/svg/SVGElement.cpp |
index 085e5f637ef6c6d1cbf22c232a34f8ee7c72a3ab..70cb07169cb099e0eb4c731836af9e19ad070e85 100644 |
--- a/Source/core/svg/SVGElement.cpp |
+++ b/Source/core/svg/SVGElement.cpp |
@@ -640,6 +640,18 @@ RenderStyle* SVGElement::computedStyle(PseudoId pseudoElementSpecifier) |
return svgRareData()->overrideComputedStyle(this, parentStyle); |
} |
+bool SVGElement::hasFocusEventListeners() const |
+{ |
+ // FIXME: EventTarget::hasEventListeners should be const. |
+ SVGElement* mutableThis = const_cast<SVGElement*>(this); |
+ return mutableThis->hasEventListeners(eventNames().focusinEvent) || mutableThis->hasEventListeners(eventNames().focusoutEvent); |
+} |
+ |
+bool SVGElement::isKeyboardFocusable(KeyboardEvent*) const |
+{ |
+ return isFocusable(); |
+} |
+ |
#ifndef NDEBUG |
bool SVGElement::isAnimatableAttribute(const QualifiedName& name) const |
{ |