Changeset 276002 in webkit for trunk/Source/WebCore/css/CSSGradientValue.cpp
- Timestamp:
- Apr 14, 2021, 11:15:53 PM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebCore/css/CSSGradientValue.cpp
r275055 r276002 290 290 291 291 // Clamp the positions to 1 and set the color. 292 for (size_t i = index + 1; i < = lastStopIndex; ++i) {292 for (size_t i = index + 1; i < numStops; ++i) { 293 293 stops[i].offset = 1; 294 294 stops[i].color = blendedColor; … … 720 720 result.append(m_angle->cssText()); 721 721 wroteSomething = true; 722 } else if ( (firstX() || firstY()) && !(!firstX() && firstY() && firstY()->valueID() == CSSValueBottom)) {722 } else if (firstX() || (firstY() && firstY()->valueID() != CSSValueBottom)) { 723 723 result.appendLiteral("to "); 724 724 appendSpaceSeparatedOptionalCSSPtrText(result, firstX(), firstY()); … … 946 946 } 947 947 948 if ( firstX() || firstY()) {948 if ((firstX() && !firstX()->isCenterPosition()) || (firstY() && !firstY()->isCenterPosition())) { 949 949 if (wroteSomething) 950 950 result.append(' '); … … 1226 1226 bool wroteSomething = false; 1227 1227 1228 if (m_angle ) {1228 if (m_angle && m_angle->computeDegrees() > 0) { 1229 1229 result.append("from ", m_angle->cssText()); 1230 1230 wroteSomething = true; 1231 1231 } 1232 1232 1233 if ( firstX() && firstY()) {1233 if ((firstX() && !firstX()->isCenterPosition()) || (firstY() && !firstY()->isCenterPosition())) { 1234 1234 if (wroteSomething) 1235 1235 result.append(' ');
Note:
See TracChangeset
for help on using the changeset viewer.