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

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

Issue 1033943002: Rename LayoutStyle to papayawhip (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: ensureComputedStyle Created 5 years, 9 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/layout/svg/LayoutSVGResourcePaintServer.h ('k') | Source/core/layout/svg/LayoutSVGRoot.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/layout/svg/LayoutSVGResourcePaintServer.cpp
diff --git a/Source/core/layout/svg/LayoutSVGResourcePaintServer.cpp b/Source/core/layout/svg/LayoutSVGResourcePaintServer.cpp
index f9786b444c8b393187f6d92beb349c06d02f02c8..e29383c6b6fd5b3b6950d05245e60ef0312d3976 100644
--- a/Source/core/layout/svg/LayoutSVGResourcePaintServer.cpp
+++ b/Source/core/layout/svg/LayoutSVGResourcePaintServer.cpp
@@ -23,7 +23,7 @@
#include "config.h"
#include "core/layout/svg/LayoutSVGResourcePaintServer.h"
-#include "core/layout/style/LayoutStyle.h"
+#include "core/layout/style/ComputedStyle.h"
#include "core/layout/svg/SVGResources.h"
#include "core/layout/svg/SVGResourcesCache.h"
#include "platform/graphics/GraphicsContext.h"
@@ -81,10 +81,10 @@ void SVGPaintServer::prependTransform(const AffineTransform& transform)
m_gradient->setGradientSpaceTransform(transform * m_gradient->gradientSpaceTransform());
}
-static SVGPaintDescription requestPaint(const LayoutObject& object, const LayoutStyle& style, LayoutSVGResourceMode mode)
+static SVGPaintDescription requestPaint(const LayoutObject& object, const ComputedStyle& style, LayoutSVGResourceMode mode)
{
// If we have no style at all, ignore it.
- const SVGLayoutStyle& svgStyle = style.svgStyle();
+ const SVGComputedStyle& svgStyle = style.svgStyle();
// If we have no fill/stroke, return 0.
if (mode == ApplyToFillMode) {
@@ -153,7 +153,7 @@ static SVGPaintDescription requestPaint(const LayoutObject& object, const Layout
return SVGPaintDescription(uriResource);
}
-SVGPaintServer SVGPaintServer::requestForLayoutObject(const LayoutObject& layoutObject, const LayoutStyle& style, LayoutSVGResourceMode resourceMode)
+SVGPaintServer SVGPaintServer::requestForLayoutObject(const LayoutObject& layoutObject, const ComputedStyle& style, LayoutSVGResourceMode resourceMode)
{
ASSERT(resourceMode == ApplyToFillMode || resourceMode == ApplyToStrokeMode);
@@ -170,7 +170,7 @@ SVGPaintServer SVGPaintServer::requestForLayoutObject(const LayoutObject& layout
return invalid();
}
-bool SVGPaintServer::existsForLayoutObject(const LayoutObject& layoutObject, const LayoutStyle& style, LayoutSVGResourceMode resourceMode)
+bool SVGPaintServer::existsForLayoutObject(const LayoutObject& layoutObject, const ComputedStyle& style, LayoutSVGResourceMode resourceMode)
{
return requestPaint(layoutObject, style, resourceMode).isValid;
}
@@ -184,7 +184,7 @@ LayoutSVGResourcePaintServer::~LayoutSVGResourcePaintServer()
{
}
-SVGPaintDescription LayoutSVGResourcePaintServer::requestPaintDescription(const LayoutObject& layoutObject, const LayoutStyle& style, LayoutSVGResourceMode resourceMode)
+SVGPaintDescription LayoutSVGResourcePaintServer::requestPaintDescription(const LayoutObject& layoutObject, const ComputedStyle& style, LayoutSVGResourceMode resourceMode)
{
return requestPaint(layoutObject, style, resourceMode);
}
« no previous file with comments | « Source/core/layout/svg/LayoutSVGResourcePaintServer.h ('k') | Source/core/layout/svg/LayoutSVGRoot.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698