| 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 91 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 102 // not decorative ones such as StyleImage (backgrounds, | 102 // not decorative ones such as StyleImage (backgrounds, |
| 103 // border-image, etc.) | 103 // border-image, etc.) |
| 104 return m_bestFitImage->imageSize(DoNotRespectImageOrientation, multiplier); | 104 return m_bestFitImage->imageSize(DoNotRespectImageOrientation, multiplier); |
| 105 } | 105 } |
| 106 | 106 |
| 107 bool StyleFetchedImageSet::imageHasRelativeSize() const | 107 bool StyleFetchedImageSet::imageHasRelativeSize() const |
| 108 { | 108 { |
| 109 return m_bestFitImage->imageHasRelativeSize(); | 109 return m_bestFitImage->imageHasRelativeSize(); |
| 110 } | 110 } |
| 111 | 111 |
| 112 void StyleFetchedImageSet::computeIntrinsicDimensions(const LayoutObject*, Float
Size& intrinsicSize, FloatSize& intrinsicRatio) | |
| 113 { | |
| 114 m_bestFitImage->computeIntrinsicDimensions(intrinsicSize, intrinsicRatio); | |
| 115 } | |
| 116 | |
| 117 bool StyleFetchedImageSet::usesImageContainerSize() const | 112 bool StyleFetchedImageSet::usesImageContainerSize() const |
| 118 { | 113 { |
| 119 return m_bestFitImage->usesImageContainerSize(); | 114 return m_bestFitImage->usesImageContainerSize(); |
| 120 } | 115 } |
| 121 | 116 |
| 122 void StyleFetchedImageSet::addClient(LayoutObject* layoutObject) | 117 void StyleFetchedImageSet::addClient(LayoutObject* layoutObject) |
| 123 { | 118 { |
| 124 m_bestFitImage->addClient(layoutObject); | 119 m_bestFitImage->addClient(layoutObject); |
| 125 } | 120 } |
| 126 | 121 |
| (...skipping 17 matching lines...) Expand all Loading... |
| 144 } | 139 } |
| 145 | 140 |
| 146 DEFINE_TRACE(StyleFetchedImageSet) | 141 DEFINE_TRACE(StyleFetchedImageSet) |
| 147 { | 142 { |
| 148 visitor->trace(m_bestFitImage); | 143 visitor->trace(m_bestFitImage); |
| 149 visitor->trace(m_imageSetValue); | 144 visitor->trace(m_imageSetValue); |
| 150 StyleImage::trace(visitor); | 145 StyleImage::trace(visitor); |
| 151 } | 146 } |
| 152 | 147 |
| 153 } // namespace blink | 148 } // namespace blink |
| OLD | NEW |