Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(13)

Side by Side Diff: third_party/WebKit/Source/core/style/StyleFetchedImageSet.cpp

Issue 1720853002: Remove Image::computeIntrinsicDimensions() (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@add-and-use-updateconcretesize-upload
Patch Set: Use SVGImage::concreteObjectSize Created 4 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698