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

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

Issue 18334002: Remove SVGStyledLocatableElement class (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Remove SVGElement::isStyledLocatable() Created 7 years, 6 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/SVGElement.h ('k') | Source/core/svg/SVGGraphicsElement.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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)) {
« no previous file with comments | « Source/core/svg/SVGElement.h ('k') | Source/core/svg/SVGGraphicsElement.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698