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

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

Issue 927583002: Moving RenderSVG* files from rendering/ to layout/ (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 10 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/SVGGraphicsElement.cpp ('k') | Source/core/svg/SVGLineElement.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/svg/SVGImageElement.cpp
diff --git a/Source/core/svg/SVGImageElement.cpp b/Source/core/svg/SVGImageElement.cpp
index 845d89d2f84cb33f5582acdfeac4e83d66ca57a3..3503927898d3dcd5ab85494ea87ddee6328edc63 100644
--- a/Source/core/svg/SVGImageElement.cpp
+++ b/Source/core/svg/SVGImageElement.cpp
@@ -26,7 +26,7 @@
#include "core/CSSPropertyNames.h"
#include "core/XLinkNames.h"
#include "core/layout/LayoutImageResource.h"
-#include "core/rendering/svg/RenderSVGImage.h"
+#include "core/layout/svg/LayoutSVGImage.h"
namespace blink {
@@ -65,7 +65,7 @@ void SVGImageElement::trace(Visitor* visitor)
bool SVGImageElement::currentFrameHasSingleSecurityOrigin() const
{
- if (RenderSVGImage* renderSVGImage = toRenderSVGImage(renderer())) {
+ if (LayoutSVGImage* renderSVGImage = toLayoutSVGImage(renderer())) {
if (renderSVGImage->imageResource()->hasImage()) {
if (Image* image = renderSVGImage->imageResource()->cachedImage()->image())
return image->currentFrameHasSingleSecurityOrigin();
@@ -141,7 +141,7 @@ void SVGImageElement::svgAttributeChanged(const QualifiedName& attrName)
return;
if (isLengthAttribute) {
- if (toRenderSVGImage(renderer)->updateImageViewport())
+ if (toLayoutSVGImage(renderer)->updateImageViewport())
markForLayoutAndParentResourceInvalidation(renderer);
return;
}
@@ -164,7 +164,7 @@ bool SVGImageElement::selfHasRelativeLengths() const
LayoutObject* SVGImageElement::createRenderer(const LayoutStyle&)
{
- return new RenderSVGImage(this);
+ return new LayoutSVGImage(this);
}
bool SVGImageElement::haveLoadedRequiredResources()
@@ -176,7 +176,7 @@ void SVGImageElement::attach(const AttachContext& context)
{
SVGGraphicsElement::attach(context);
- if (RenderSVGImage* imageObj = toRenderSVGImage(renderer())) {
+ if (LayoutSVGImage* imageObj = toLayoutSVGImage(renderer())) {
if (imageObj->imageResource()->hasImage())
return;
« no previous file with comments | « Source/core/svg/SVGGraphicsElement.cpp ('k') | Source/core/svg/SVGLineElement.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698