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

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

Issue 669153002: Relocate markForLayoutAndParentResourceInvalidation (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Remove accidental FIXME. Created 6 years, 2 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
Index: Source/core/svg/SVGGraphicsElement.cpp
diff --git a/Source/core/svg/SVGGraphicsElement.cpp b/Source/core/svg/SVGGraphicsElement.cpp
index 42dcf67405c4587edff3a70c38320d8197b6ff3d..e68f8b220a5693ff0b4db32a1cd613bc4efcc2f9 100644
--- a/Source/core/svg/SVGGraphicsElement.cpp
+++ b/Source/core/svg/SVGGraphicsElement.cpp
@@ -26,7 +26,6 @@
#include "core/SVGNames.h"
#include "core/css/resolver/StyleResolver.h"
#include "core/rendering/svg/RenderSVGPath.h"
-#include "core/rendering/svg/RenderSVGResource.h"
#include "core/rendering/svg/SVGPathData.h"
#include "core/svg/SVGElementRareData.h"
#include "platform/transforms/AffineTransform.h"
@@ -203,13 +202,19 @@ void SVGGraphicsElement::svgAttributeChanged(const QualifiedName& attrName)
if (attrName == SVGNames::transformAttr) {
object->setNeedsTransformUpdate();
- RenderSVGResource::markForLayoutAndParentResourceInvalidation(object);
+ markForLayoutAndParentResourceInvalidation(object);
return;
}
ASSERT_NOT_REACHED();
}
+void SVGGraphicsElement::boundsChanged(RenderObject* renderer)
+{
+ ASSERT(renderer);
+ markForLayoutAndParentResourceInvalidation(renderer);
+}
+
SVGElement* SVGGraphicsElement::nearestViewportElement() const
{
for (Element* current = parentOrShadowHostElement(); current; current = current->parentOrShadowHostElement()) {

Powered by Google App Engine
This is Rietveld 408576698