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 87 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
98 LayoutSize scaledImageSize = m_bestFitImage->imageSize(LayoutObject::shouldR
espectImageOrientation(layoutObject), multiplier); | 98 LayoutSize scaledImageSize = m_bestFitImage->imageSize(LayoutObject::shouldR
espectImageOrientation(layoutObject), multiplier); |
99 scaledImageSize.scale(1 / m_imageScaleFactor); | 99 scaledImageSize.scale(1 / m_imageScaleFactor); |
100 return scaledImageSize; | 100 return scaledImageSize; |
101 } | 101 } |
102 | 102 |
103 bool StyleFetchedImageSet::imageHasRelativeSize() const | 103 bool StyleFetchedImageSet::imageHasRelativeSize() const |
104 { | 104 { |
105 return m_bestFitImage->imageHasRelativeSize(); | 105 return m_bestFitImage->imageHasRelativeSize(); |
106 } | 106 } |
107 | 107 |
108 void StyleFetchedImageSet::computeIntrinsicDimensions(const LayoutObject*, Lengt
h& intrinsicWidth, Length& intrinsicHeight, FloatSize& intrinsicRatio) | 108 void StyleFetchedImageSet::computeIntrinsicDimensions(const LayoutObject*, Float
Size& intrinsicSize, FloatSize& intrinsicRatio) |
109 { | 109 { |
110 m_bestFitImage->computeIntrinsicDimensions(intrinsicWidth, intrinsicHeight,
intrinsicRatio); | 110 m_bestFitImage->computeIntrinsicDimensions(intrinsicSize, intrinsicRatio); |
111 } | 111 } |
112 | 112 |
113 bool StyleFetchedImageSet::usesImageContainerSize() const | 113 bool StyleFetchedImageSet::usesImageContainerSize() const |
114 { | 114 { |
115 return m_bestFitImage->usesImageContainerSize(); | 115 return m_bestFitImage->usesImageContainerSize(); |
116 } | 116 } |
117 | 117 |
118 void StyleFetchedImageSet::addClient(LayoutObject* layoutObject) | 118 void StyleFetchedImageSet::addClient(LayoutObject* layoutObject) |
119 { | 119 { |
120 m_bestFitImage->addClient(layoutObject); | 120 m_bestFitImage->addClient(layoutObject); |
(...skipping 19 matching lines...) Expand all Loading... |
140 } | 140 } |
141 | 141 |
142 DEFINE_TRACE(StyleFetchedImageSet) | 142 DEFINE_TRACE(StyleFetchedImageSet) |
143 { | 143 { |
144 visitor->trace(m_bestFitImage); | 144 visitor->trace(m_bestFitImage); |
145 visitor->trace(m_imageSetValue); | 145 visitor->trace(m_imageSetValue); |
146 StyleImage::trace(visitor); | 146 StyleImage::trace(visitor); |
147 } | 147 } |
148 | 148 |
149 } // namespace blink | 149 } // namespace blink |
OLD | NEW |