| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2008 Apple Inc. All rights reserved. | 2 * Copyright (C) 2008 Apple Inc. All rights reserved. |
| 3 * Copyright (C) 2015 Google Inc. All rights reserved. | 3 * Copyright (C) 2015 Google Inc. All rights reserved. |
| 4 * | 4 * |
| 5 * Redistribution and use in source and binary forms, with or without | 5 * Redistribution and use in source and binary forms, with or without |
| 6 * modification, are permitted provided that the following conditions | 6 * modification, are permitted provided that the following conditions |
| 7 * are met: | 7 * are met: |
| 8 * 1. Redistributions of source code must retain the above copyright | 8 * 1. Redistributions of source code must retain the above copyright |
| 9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
| 10 * 2. Redistributions in binary form must reproduce the above copyright | 10 * 2. Redistributions in binary form must reproduce the above copyright |
| (...skipping 553 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 564 ASSERT(object); | 564 ASSERT(object); |
| 565 for (auto& stop : m_stops) { | 565 for (auto& stop : m_stops) { |
| 566 if (!stop.isHint() && resolveStopColor(stop.m_color.get(), *object).hasA
lpha()) | 566 if (!stop.isHint() && resolveStopColor(stop.m_color.get(), *object).hasA
lpha()) |
| 567 return false; | 567 return false; |
| 568 } | 568 } |
| 569 return true; | 569 return true; |
| 570 } | 570 } |
| 571 | 571 |
| 572 DEFINE_TRACE_AFTER_DISPATCH(CSSGradientValue) | 572 DEFINE_TRACE_AFTER_DISPATCH(CSSGradientValue) |
| 573 { | 573 { |
| 574 #if ENABLE(OILPAN) |
| 574 visitor->trace(m_firstX); | 575 visitor->trace(m_firstX); |
| 575 visitor->trace(m_firstY); | 576 visitor->trace(m_firstY); |
| 576 visitor->trace(m_secondX); | 577 visitor->trace(m_secondX); |
| 577 visitor->trace(m_secondY); | 578 visitor->trace(m_secondY); |
| 578 visitor->trace(m_stops); | 579 visitor->trace(m_stops); |
| 580 #endif |
| 579 CSSImageGeneratorValue::traceAfterDispatch(visitor); | 581 CSSImageGeneratorValue::traceAfterDispatch(visitor); |
| 580 } | 582 } |
| 581 | 583 |
| 582 String CSSLinearGradientValue::customCSSText() const | 584 String CSSLinearGradientValue::customCSSText() const |
| 583 { | 585 { |
| 584 StringBuilder result; | 586 StringBuilder result; |
| 585 if (m_gradientType == CSSDeprecatedLinearGradient) { | 587 if (m_gradientType == CSSDeprecatedLinearGradient) { |
| 586 result.appendLiteral("-webkit-gradient(linear, "); | 588 result.appendLiteral("-webkit-gradient(linear, "); |
| 587 result.append(m_firstX->cssText()); | 589 result.append(m_firstX->cssText()); |
| 588 result.append(' '); | 590 result.append(' '); |
| (...skipping 613 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1202 visitor->trace(m_firstRadius); | 1204 visitor->trace(m_firstRadius); |
| 1203 visitor->trace(m_secondRadius); | 1205 visitor->trace(m_secondRadius); |
| 1204 visitor->trace(m_shape); | 1206 visitor->trace(m_shape); |
| 1205 visitor->trace(m_sizingBehavior); | 1207 visitor->trace(m_sizingBehavior); |
| 1206 visitor->trace(m_endHorizontalSize); | 1208 visitor->trace(m_endHorizontalSize); |
| 1207 visitor->trace(m_endVerticalSize); | 1209 visitor->trace(m_endVerticalSize); |
| 1208 CSSGradientValue::traceAfterDispatch(visitor); | 1210 CSSGradientValue::traceAfterDispatch(visitor); |
| 1209 } | 1211 } |
| 1210 | 1212 |
| 1211 } // namespace blink | 1213 } // namespace blink |
| OLD | NEW |