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

Unified Diff: Source/core/css/CSSGradientValue.cpp

Issue 148523016: Move most of the [Pass]RefPtr's of CSSPrimitiveValue to our transition types. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Sync to latest change Created 6 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/css/CSSGradientValue.h ('k') | Source/core/css/CSSImageValue.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/css/CSSGradientValue.cpp
diff --git a/Source/core/css/CSSGradientValue.cpp b/Source/core/css/CSSGradientValue.cpp
index 708e7c99b526e4798836de49cc741ded42a827dc..a5bbb783054c295e465c4f5203b4ddac091cc2b2 100644
--- a/Source/core/css/CSSGradientValue.cpp
+++ b/Source/core/css/CSSGradientValue.cpp
@@ -43,6 +43,12 @@ using namespace std;
namespace WebCore {
+void CSSGradientColorStop::trace(Visitor* visitor)
+{
+ visitor->trace(m_position);
+ visitor->trace(m_color);
+}
+
PassRefPtr<Image> CSSGradientValue::image(RenderObject* renderer, const IntSize& size)
{
if (size.isEmpty())
@@ -461,6 +467,11 @@ bool CSSGradientValue::knownToBeOpaque(const RenderObject*) const
void CSSGradientValue::traceAfterDispatch(Visitor* visitor)
{
+ visitor->trace(m_firstX);
+ visitor->trace(m_firstY);
+ visitor->trace(m_secondX);
+ visitor->trace(m_secondY);
+ visitor->trace(m_stops);
CSSImageGeneratorValue::traceAfterDispatch(visitor);
}
@@ -739,6 +750,7 @@ bool CSSLinearGradientValue::equals(const CSSLinearGradientValue& other) const
void CSSLinearGradientValue::traceAfterDispatch(Visitor* visitor)
{
+ visitor->trace(m_angle);
CSSGradientValue::traceAfterDispatch(visitor);
}
@@ -1172,6 +1184,12 @@ bool CSSRadialGradientValue::equals(const CSSRadialGradientValue& other) const
void CSSRadialGradientValue::traceAfterDispatch(Visitor* visitor)
{
+ visitor->trace(m_firstRadius);
+ visitor->trace(m_secondRadius);
+ visitor->trace(m_shape);
+ visitor->trace(m_sizingBehavior);
+ visitor->trace(m_endHorizontalSize);
+ visitor->trace(m_endVerticalSize);
CSSGradientValue::traceAfterDispatch(visitor);
}
« no previous file with comments | « Source/core/css/CSSGradientValue.h ('k') | Source/core/css/CSSImageValue.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698