| 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 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 73 if (size.isEmpty()) | 73 if (size.isEmpty()) |
| 74 return nullptr; | 74 return nullptr; |
| 75 | 75 |
| 76 bool cacheable = isCacheable(); | 76 bool cacheable = isCacheable(); |
| 77 if (cacheable) { | 77 if (cacheable) { |
| 78 if (!clients().contains(&layoutObject)) | 78 if (!clients().contains(&layoutObject)) |
| 79 return nullptr; | 79 return nullptr; |
| 80 | 80 |
| 81 // Need to look up our size. Create a string of width*height to use as a | 81 // Need to look up our size. Create a string of width*height to use as a |
| 82 // hash key. | 82 // hash key. |
| 83 Image* result = getImage(&layoutObject, size); | 83 Image* result = this->CSSImageGeneratorValue::GetImage(&layout_object, size)
; |
| 84 if (result) | 84 if (result) |
| 85 return result; | 85 return result; |
| 86 } | 86 } |
| 87 | 87 |
| 88 // We need to create an image. | 88 // We need to create an image. |
| 89 RefPtr<Gradient> gradient; | 89 RefPtr<Gradient> gradient; |
| 90 | 90 |
| 91 const ComputedStyle* rootStyle = | 91 const ComputedStyle* rootStyle = |
| 92 layoutObject.document().documentElement()->computedStyle(); | 92 layoutObject.document().documentElement()->computedStyle(); |
| 93 CSSToLengthConversionData conversionData( | 93 CSSToLengthConversionData conversionData( |
| (...skipping 1223 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1317 visitor->trace(m_firstRadius); | 1317 visitor->trace(m_firstRadius); |
| 1318 visitor->trace(m_secondRadius); | 1318 visitor->trace(m_secondRadius); |
| 1319 visitor->trace(m_shape); | 1319 visitor->trace(m_shape); |
| 1320 visitor->trace(m_sizingBehavior); | 1320 visitor->trace(m_sizingBehavior); |
| 1321 visitor->trace(m_endHorizontalSize); | 1321 visitor->trace(m_endHorizontalSize); |
| 1322 visitor->trace(m_endVerticalSize); | 1322 visitor->trace(m_endVerticalSize); |
| 1323 CSSGradientValue::traceAfterDispatch(visitor); | 1323 CSSGradientValue::traceAfterDispatch(visitor); |
| 1324 } | 1324 } |
| 1325 | 1325 |
| 1326 } // namespace blink | 1326 } // namespace blink |
| OLD | NEW |