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

Unified Diff: Source/core/svg/SVGStopElement.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/svg/SVGStopElement.h ('k') | Source/core/svg/SVGStyleElement.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/svg/SVGStopElement.cpp
diff --git a/Source/core/svg/SVGStopElement.cpp b/Source/core/svg/SVGStopElement.cpp
index e3e733506e93072ea9c1c9444da1aad69b0e1b27..4cfc5805148833cf47178918b6d74be84e7ee15b 100644
--- a/Source/core/svg/SVGStopElement.cpp
+++ b/Source/core/svg/SVGStopElement.cpp
@@ -53,26 +53,26 @@ void SVGStopElement::svgAttributeChanged(const QualifiedName& attrName)
SVGElement::svgAttributeChanged(attrName);
}
-LayoutObject* SVGStopElement::createLayoutObject(const LayoutStyle&)
+LayoutObject* SVGStopElement::createLayoutObject(const ComputedStyle&)
{
return new LayoutSVGGradientStop(this);
}
-bool SVGStopElement::layoutObjectIsNeeded(const LayoutStyle&)
+bool SVGStopElement::layoutObjectIsNeeded(const ComputedStyle&)
{
return true;
}
Color SVGStopElement::stopColorIncludingOpacity() const
{
- const LayoutStyle* style = layoutObject() ? layoutObject()->style() : nullptr;
+ const ComputedStyle* style = layoutObject() ? layoutObject()->style() : nullptr;
// FIXME: This check for null style exists to address Bug WK 90814, a rare crash condition in
// which the renderer or style is null. This entire class is scheduled for removal (Bug WK 86941)
// and we will tolerate this null check until then.
if (!style)
return Color(Color::transparent); // Transparent black.
- const SVGLayoutStyle& svgStyle = style->svgStyle();
+ const SVGComputedStyle& svgStyle = style->svgStyle();
return svgStyle.stopColor().combineWithAlpha(svgStyle.stopOpacity());
}
« no previous file with comments | « Source/core/svg/SVGStopElement.h ('k') | Source/core/svg/SVGStyleElement.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698