| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2008 Apple Inc. All rights reserved. | 2 * Copyright (C) 2008 Apple Inc. All rights reserved. |
| 3 * | 3 * |
| 4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
| 5 * modification, are permitted provided that the following conditions | 5 * modification, are permitted provided that the following conditions |
| 6 * are met: | 6 * are met: |
| 7 * 1. Redistributions of source code must retain the above copyright | 7 * 1. Redistributions of source code must retain the above copyright |
| 8 * notice, this list of conditions and the following disclaimer. | 8 * notice, this list of conditions and the following disclaimer. |
| 9 * 2. Redistributions in binary form must reproduce the above copyright | 9 * 2. Redistributions in binary form must reproduce the above copyright |
| 10 * notice, this list of conditions and the following disclaimer in the | 10 * notice, this list of conditions and the following disclaimer in the |
| (...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 115 PassRefPtrWillBeRawPtr<CSSGradientValue> CSSGradientValue::gradientWithStylesRes
olved(const TextLinkColors& textLinkColors, Color currentColor) | 115 PassRefPtrWillBeRawPtr<CSSGradientValue> CSSGradientValue::gradientWithStylesRes
olved(const TextLinkColors& textLinkColors, Color currentColor) |
| 116 { | 116 { |
| 117 bool derived = false; | 117 bool derived = false; |
| 118 for (unsigned i = 0; i < m_stops.size(); i++) | 118 for (unsigned i = 0; i < m_stops.size(); i++) |
| 119 if (m_stops[i].m_color->colorIsDerivedFromElement()) { | 119 if (m_stops[i].m_color->colorIsDerivedFromElement()) { |
| 120 m_stops[i].m_colorIsDerivedFromElement = true; | 120 m_stops[i].m_colorIsDerivedFromElement = true; |
| 121 derived = true; | 121 derived = true; |
| 122 break; | 122 break; |
| 123 } | 123 } |
| 124 | 124 |
| 125 RefPtrWillBeRawPtr<CSSGradientValue> result; | 125 RefPtrWillBeRawPtr<CSSGradientValue> result = nullptr; |
| 126 if (!derived) | 126 if (!derived) |
| 127 result = this; | 127 result = this; |
| 128 else if (isLinearGradientValue()) | 128 else if (isLinearGradientValue()) |
| 129 result = toCSSLinearGradientValue(this)->clone(); | 129 result = toCSSLinearGradientValue(this)->clone(); |
| 130 else if (isRadialGradientValue()) | 130 else if (isRadialGradientValue()) |
| 131 result = toCSSRadialGradientValue(this)->clone(); | 131 result = toCSSRadialGradientValue(this)->clone(); |
| 132 else { | 132 else { |
| 133 ASSERT_NOT_REACHED(); | 133 ASSERT_NOT_REACHED(); |
| 134 return nullptr; | 134 return nullptr; |
| 135 } | 135 } |
| (...skipping 1047 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1183 visitor->trace(m_firstRadius); | 1183 visitor->trace(m_firstRadius); |
| 1184 visitor->trace(m_secondRadius); | 1184 visitor->trace(m_secondRadius); |
| 1185 visitor->trace(m_shape); | 1185 visitor->trace(m_shape); |
| 1186 visitor->trace(m_sizingBehavior); | 1186 visitor->trace(m_sizingBehavior); |
| 1187 visitor->trace(m_endHorizontalSize); | 1187 visitor->trace(m_endHorizontalSize); |
| 1188 visitor->trace(m_endVerticalSize); | 1188 visitor->trace(m_endVerticalSize); |
| 1189 CSSGradientValue::traceAfterDispatch(visitor); | 1189 CSSGradientValue::traceAfterDispatch(visitor); |
| 1190 } | 1190 } |
| 1191 | 1191 |
| 1192 } // namespace WebCore | 1192 } // namespace WebCore |
| OLD | NEW |