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

Unified Diff: Source/core/rendering/svg/RenderSVGPath.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
« no previous file with comments | « Source/core/rendering/svg/RenderSVGImage.cpp ('k') | Source/core/rendering/svg/RenderSVGResourceClipper.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/rendering/svg/RenderSVGPath.cpp
diff --git a/Source/core/rendering/svg/RenderSVGPath.cpp b/Source/core/rendering/svg/RenderSVGPath.cpp
index 8bc4b2b8565cad7fb53ed5440090e8a58573b9e1..9e9de5762d2707cc6ca8b5569f2bb4c5e43acdba 100644
--- a/Source/core/rendering/svg/RenderSVGPath.cpp
+++ b/Source/core/rendering/svg/RenderSVGPath.cpp
@@ -29,10 +29,10 @@
#include "core/rendering/svg/RenderSVGPath.h"
+#include "core/layout/svg/LayoutSVGResourceMarker.h"
#include "core/layout/svg/SVGResources.h"
#include "core/layout/svg/SVGResourcesCache.h"
#include "core/layout/svg/SVGSubpathData.h"
-#include "core/rendering/svg/RenderSVGResourceMarker.h"
#include "core/svg/SVGGraphicsElement.h"
namespace blink {
@@ -124,15 +124,15 @@ FloatRect RenderSVGPath::markerRect(float strokeWidth) const
SVGResources* resources = SVGResourcesCache::cachedResourcesForLayoutObject(this);
ASSERT(resources);
- RenderSVGResourceMarker* markerStart = resources->markerStart();
- RenderSVGResourceMarker* markerMid = resources->markerMid();
- RenderSVGResourceMarker* markerEnd = resources->markerEnd();
+ LayoutSVGResourceMarker* markerStart = resources->markerStart();
+ LayoutSVGResourceMarker* markerMid = resources->markerMid();
+ LayoutSVGResourceMarker* markerEnd = resources->markerEnd();
ASSERT(markerStart || markerMid || markerEnd);
FloatRect boundaries;
unsigned size = m_markerPositions.size();
for (unsigned i = 0; i < size; ++i) {
- if (RenderSVGResourceMarker* marker = SVGMarkerData::markerForType(m_markerPositions[i].type, markerStart, markerMid, markerEnd))
+ if (LayoutSVGResourceMarker* marker = SVGMarkerData::markerForType(m_markerPositions[i].type, markerStart, markerMid, markerEnd))
boundaries.unite(marker->markerBoundaries(marker->markerTransformation(m_markerPositions[i].origin, m_markerPositions[i].angle, strokeWidth)));
}
return boundaries;
@@ -163,7 +163,7 @@ void RenderSVGPath::processMarkerPositions()
SVGResources* resources = SVGResourcesCache::cachedResourcesForLayoutObject(this);
ASSERT(resources);
- RenderSVGResourceMarker* markerStart = resources->markerStart();
+ LayoutSVGResourceMarker* markerStart = resources->markerStart();
SVGMarkerData markerData(m_markerPositions, markerStart ? markerStart->orientType() == SVGMarkerOrientAutoStartReverse : false);
path().apply(&markerData, SVGMarkerData::updateFromPathElement);
« no previous file with comments | « Source/core/rendering/svg/RenderSVGImage.cpp ('k') | Source/core/rendering/svg/RenderSVGResourceClipper.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698