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

Unified Diff: Source/core/layout/svg/LayoutSVGResourceFilter.cpp

Issue 908243002: Move rendering/svg/RenderSVGResource* to layout/svg. (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
Index: Source/core/layout/svg/LayoutSVGResourceFilter.cpp
diff --git a/Source/core/rendering/svg/RenderSVGResourceFilter.cpp b/Source/core/layout/svg/LayoutSVGResourceFilter.cpp
similarity index 93%
rename from Source/core/rendering/svg/RenderSVGResourceFilter.cpp
rename to Source/core/layout/svg/LayoutSVGResourceFilter.cpp
index 6289ca4b5e5b2382a4146538cc9f84b5d9833758..5869b2cee567f9f947cd55817f2058685b58ff8a 100644
--- a/Source/core/rendering/svg/RenderSVGResourceFilter.cpp
+++ b/Source/core/layout/svg/LayoutSVGResourceFilter.cpp
@@ -22,7 +22,7 @@
*/
#include "config.h"
-#include "core/rendering/svg/RenderSVGResourceFilter.h"
+#include "core/layout/svg/LayoutSVGResourceFilter.h"
#include "core/dom/ElementTraversal.h"
#include "core/svg/SVGFilterPrimitiveStandardAttributes.h"
@@ -42,33 +42,33 @@ void FilterData::trace(Visitor* visitor)
#endif
}
-RenderSVGResourceFilter::RenderSVGResourceFilter(SVGFilterElement* node)
- : RenderSVGResourceContainer(node)
+LayoutSVGResourceFilter::LayoutSVGResourceFilter(SVGFilterElement* node)
+ : LayoutSVGResourceContainer(node)
{
}
-RenderSVGResourceFilter::~RenderSVGResourceFilter()
+LayoutSVGResourceFilter::~LayoutSVGResourceFilter()
{
}
-void RenderSVGResourceFilter::destroy()
+void LayoutSVGResourceFilter::destroy()
{
m_filter.clear();
- RenderSVGResourceContainer::destroy();
+ LayoutSVGResourceContainer::destroy();
}
-bool RenderSVGResourceFilter::isChildAllowed(LayoutObject* child, const LayoutStyle&) const
+bool LayoutSVGResourceFilter::isChildAllowed(LayoutObject* child, const LayoutStyle&) const
{
return child->isSVGResourceFilterPrimitive();
}
-void RenderSVGResourceFilter::removeAllClientsFromCache(bool markForInvalidation)
+void LayoutSVGResourceFilter::removeAllClientsFromCache(bool markForInvalidation)
{
m_filter.clear();
markAllClientsForInvalidation(markForInvalidation ? LayoutAndBoundariesInvalidation : ParentOnlyInvalidation);
}
-void RenderSVGResourceFilter::removeClientFromCache(LayoutObject* client, bool markForInvalidation)
+void LayoutSVGResourceFilter::removeClientFromCache(LayoutObject* client, bool markForInvalidation)
{
ASSERT(client);
@@ -77,7 +77,7 @@ void RenderSVGResourceFilter::removeClientFromCache(LayoutObject* client, bool m
markClientForInvalidation(client, markForInvalidation ? BoundariesInvalidation : ParentOnlyInvalidation);
}
-PassRefPtrWillBeRawPtr<SVGFilterBuilder> RenderSVGResourceFilter::buildPrimitives(SVGFilter* filter)
+PassRefPtrWillBeRawPtr<SVGFilterBuilder> LayoutSVGResourceFilter::buildPrimitives(SVGFilter* filter)
{
SVGFilterElement* filterElement = toSVGFilterElement(element());
FloatRect targetBoundingBox = filter->targetBoundingBox();
@@ -205,7 +205,7 @@ static void paintFilteredContent(GraphicsContext* context, FilterData* filterDat
filterData->m_state = FilterData::ReadyToPaint;
}
-GraphicsContext* RenderSVGResourceFilter::prepareEffect(LayoutObject* object, GraphicsContext* context)
+GraphicsContext* LayoutSVGResourceFilter::prepareEffect(LayoutObject* object, GraphicsContext* context)
{
ASSERT(object);
ASSERT(context);
@@ -251,7 +251,7 @@ GraphicsContext* RenderSVGResourceFilter::prepareEffect(LayoutObject* object, Gr
return beginRecordingContent(context, data);
}
-void RenderSVGResourceFilter::finishEffect(LayoutObject* object, GraphicsContext* context)
+void LayoutSVGResourceFilter::finishEffect(LayoutObject* object, GraphicsContext* context)
{
ASSERT(object);
ASSERT(context);
@@ -277,7 +277,7 @@ void RenderSVGResourceFilter::finishEffect(LayoutObject* object, GraphicsContext
paintFilteredContent(context, filterData, toSVGFilterElement(element()));
}
-FloatRect RenderSVGResourceFilter::resourceBoundingBox(const LayoutObject* object)
+FloatRect LayoutSVGResourceFilter::resourceBoundingBox(const LayoutObject* object)
{
if (SVGFilterElement* element = toSVGFilterElement(this->element()))
return SVGLengthContext::resolveRectangle<SVGFilterElement>(element, element->filterUnits()->currentValue()->enumValue(), object->objectBoundingBox());
@@ -285,7 +285,7 @@ FloatRect RenderSVGResourceFilter::resourceBoundingBox(const LayoutObject* objec
return FloatRect();
}
-void RenderSVGResourceFilter::primitiveAttributeChanged(LayoutObject* object, const QualifiedName& attribute)
+void LayoutSVGResourceFilter::primitiveAttributeChanged(LayoutObject* object, const QualifiedName& attribute)
{
FilterMap::iterator it = m_filter.begin();
FilterMap::iterator end = m_filter.end();
« no previous file with comments | « Source/core/layout/svg/LayoutSVGResourceFilter.h ('k') | Source/core/layout/svg/LayoutSVGResourceFilterPrimitive.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698