| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2012 Apple Inc. All rights reserved. | 2 * Copyright (C) 2012 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 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 61 WrappedImagePtr StyleFetchedImageSet::data() const | 61 WrappedImagePtr StyleFetchedImageSet::data() const |
| 62 { | 62 { |
| 63 return m_bestFitImage.get(); | 63 return m_bestFitImage.get(); |
| 64 } | 64 } |
| 65 | 65 |
| 66 ImageResource* StyleFetchedImageSet::cachedImage() const | 66 ImageResource* StyleFetchedImageSet::cachedImage() const |
| 67 { | 67 { |
| 68 return m_bestFitImage.get(); | 68 return m_bestFitImage.get(); |
| 69 } | 69 } |
| 70 | 70 |
| 71 PassRefPtrWillBeRawPtr<CSSValue> StyleFetchedImageSet::cssValue() const | 71 RawPtr<CSSValue> StyleFetchedImageSet::cssValue() const |
| 72 { | 72 { |
| 73 return m_imageSetValue; | 73 return m_imageSetValue; |
| 74 } | 74 } |
| 75 | 75 |
| 76 PassRefPtrWillBeRawPtr<CSSValue> StyleFetchedImageSet::computedCSSValue() const | 76 RawPtr<CSSValue> StyleFetchedImageSet::computedCSSValue() const |
| 77 { | 77 { |
| 78 return m_imageSetValue->valueWithURLsMadeAbsolute(); | 78 return m_imageSetValue->valueWithURLsMadeAbsolute(); |
| 79 } | 79 } |
| 80 | 80 |
| 81 bool StyleFetchedImageSet::canRender() const | 81 bool StyleFetchedImageSet::canRender() const |
| 82 { | 82 { |
| 83 return !m_bestFitImage->errorOccurred() && !m_bestFitImage->getImage()->isNu
ll(); | 83 return !m_bestFitImage->errorOccurred() && !m_bestFitImage->getImage()->isNu
ll(); |
| 84 } | 84 } |
| 85 | 85 |
| 86 bool StyleFetchedImageSet::isLoaded() const | 86 bool StyleFetchedImageSet::isLoaded() const |
| (...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 143 } | 143 } |
| 144 | 144 |
| 145 DEFINE_TRACE(StyleFetchedImageSet) | 145 DEFINE_TRACE(StyleFetchedImageSet) |
| 146 { | 146 { |
| 147 visitor->trace(m_bestFitImage); | 147 visitor->trace(m_bestFitImage); |
| 148 visitor->trace(m_imageSetValue); | 148 visitor->trace(m_imageSetValue); |
| 149 StyleImage::trace(visitor); | 149 StyleImage::trace(visitor); |
| 150 } | 150 } |
| 151 | 151 |
| 152 } // namespace blink | 152 } // namespace blink |
| OLD | NEW |