Index: Source/core/svg/SVGElement.cpp |
diff --git a/Source/core/svg/SVGElement.cpp b/Source/core/svg/SVGElement.cpp |
index d5178e594a5bfebca2dd2587f9c84010c630d2d2..ad543482185f62aa454ce2229b37069d663777fa 100644 |
--- a/Source/core/svg/SVGElement.cpp |
+++ b/Source/core/svg/SVGElement.cpp |
@@ -39,8 +39,8 @@ |
#include "core/svg/SVGDocumentExtensions.h" |
#include "core/svg/SVGElementInstance.h" |
#include "core/svg/SVGElementRareData.h" |
+#include "core/svg/SVGGraphicsElement.h" |
#include "core/svg/SVGSVGElement.h" |
-#include "core/svg/SVGStyledLocatableElement.h" |
#include "core/svg/SVGTextElement.h" |
namespace WebCore { |
@@ -255,8 +255,8 @@ const HashSet<SVGElementInstance*>& SVGElement::instancesForElement() const |
bool SVGElement::getBoundingBox(FloatRect& rect, SVGLocatable::StyleUpdateStrategy styleUpdateStrategy) |
{ |
- if (isStyledLocatable()) { |
- rect = toSVGStyledLocatableElement(this)->getBBox(styleUpdateStrategy); |
+ if (isSVGGraphicsElement()) { |
+ rect = toSVGGraphicsElement(this)->getBBox(styleUpdateStrategy); |
return true; |
} |
if (hasTagName(SVGNames::textTag)) { |