Lines Matching defs:that
103 * return true if this gradient is "equivalent" to that gradient.
105 * @param that - A gradient to compare this to
107 bool SPGradient::isEquivalent(SPGradient *that)
114 if (this->getStopCount() != that->getStopCount()) { break; }
115 if (this->hasStops() != that->hasStops()) { break; }
116 if (!this->getVector() || !that->getVector()) { break; }
117 if (this->isSwatch() != that->isSwatch()) { break; }
122 (SP_IS_LINEARGRADIENT(this) && SP_IS_LINEARGRADIENT(that)) ||
123 (SP_IS_RADIALGRADIENT(this) && SP_IS_RADIALGRADIENT(that)) ||
124 (SP_IS_MESH(this) && SP_IS_MESH(that))) {
125 if(!this->isAligned(that))break;
130 SPStop *bs = that->getVector()->getFirstStop();
153 * return true if this gradient is "aligned" to that gradient.
154 * Aligned means that they have exactly the same coordinates and transform.
155 * @param that - A gradient to compare this to
157 bool SPGradient::isAligned(SPGradient *that)
166 It is NOT safe to just compare the computed values because if that field has
174 if(this->gradientTransform_set != that->gradientTransform_set) { break; }
176 (this->gradientTransform != that->gradientTransform)) { break; }
177 if (SP_IS_LINEARGRADIENT(this) && SP_IS_LINEARGRADIENT(that)) {
179 SPLinearGradient *tg=SP_LINEARGRADIENT(that);
192 } else if (SP_IS_RADIALGRADIENT(this) && SP_IS_LINEARGRADIENT(that)) {
194 SPRadialGradient *tg=SP_RADIALGRADIENT(that);
209 } else if (SP_IS_MESH(this) && SP_IS_MESH(that)) {
211 SPMesh *tg=SP_MESH(that);
629 /* FIXME: Ensure that this->spread is the inherited value
712 * The raison d'ĂȘtre of this routine is that it correctly handles cycles in the href chain (e.g., if
742 /* We've been here before, so return NULL to indicate that no matching gradient found
989 * for that gradient stop."