Index: Source/core/svg/SVGGraphicsElement.cpp |
diff --git a/Source/core/svg/SVGGraphicsElement.cpp b/Source/core/svg/SVGGraphicsElement.cpp |
index 6772b8d1781509dd4335843b5d8aa1ef15d2ad30..f5388d6f84790008089b3344c6cde53fabe24f18 100644 |
--- a/Source/core/svg/SVGGraphicsElement.cpp |
+++ b/Source/core/svg/SVGGraphicsElement.cpp |
@@ -278,4 +278,10 @@ void SVGGraphicsElement::toClipPath(Path& path) |
path.transform(calculateAnimatedLocalTransform()); |
} |
+bool SVGGraphicsElement::hasFocusEventListeners() const |
+{ |
+ return hasEventListeners(EventTypeNames::focusin) || hasEventListeners(EventTypeNames::focusout) |
+ || hasEventListeners(EventTypeNames::focus) || hasEventListeners(EventTypeNames::blur); |
+} |
+ |
} |