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

Side by Side Diff: third_party/WebKit/Source/core/style/StyleFetchedImage.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) 2000 Lars Knoll (knoll@kde.org) 2 * Copyright (C) 2000 Lars Knoll (knoll@kde.org)
3 * (C) 2000 Antti Koivisto (koivisto@kde.org) 3 * (C) 2000 Antti Koivisto (koivisto@kde.org)
4 * (C) 2000 Dirk Mueller (mueller@kde.org) 4 * (C) 2000 Dirk Mueller (mueller@kde.org)
5 * Copyright (C) 2003, 2005, 2006, 2007, 2008 Apple Inc. All rights reserved. 5 * Copyright (C) 2003, 2005, 2006, 2007, 2008 Apple Inc. All rights reserved.
6 * 6 *
7 * This library is free software; you can redistribute it and/or 7 * This library is free software; you can redistribute it and/or
8 * modify it under the terms of the GNU Library General Public 8 * modify it under the terms of the GNU Library General Public
9 * License as published by the Free Software Foundation; either 9 * License as published by the Free Software Foundation; either
10 * version 2 of the License, or (at your option) any later version. 10 * version 2 of the License, or (at your option) any later version.
(...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after
100 // not decorative images such as StyleImage (backgrounds, 100 // not decorative images such as StyleImage (backgrounds,
101 // border-image, etc.) 101 // border-image, etc.)
102 return m_image->imageSize(DoNotRespectImageOrientation, multiplier); 102 return m_image->imageSize(DoNotRespectImageOrientation, multiplier);
103 } 103 }
104 104
105 bool StyleFetchedImage::imageHasRelativeSize() const 105 bool StyleFetchedImage::imageHasRelativeSize() const
106 { 106 {
107 return m_image->imageHasRelativeSize(); 107 return m_image->imageHasRelativeSize();
108 } 108 }
109 109
110 void StyleFetchedImage::computeIntrinsicDimensions(const LayoutObject*, FloatSiz e& intrinsicSize, FloatSize& intrinsicRatio)
111 {
112 m_image->computeIntrinsicDimensions(intrinsicSize, intrinsicRatio);
113 }
114
115 bool StyleFetchedImage::usesImageContainerSize() const 110 bool StyleFetchedImage::usesImageContainerSize() const
116 { 111 {
117 return m_image->usesImageContainerSize(); 112 return m_image->usesImageContainerSize();
118 } 113 }
119 114
120 void StyleFetchedImage::addClient(LayoutObject* layoutObject) 115 void StyleFetchedImage::addClient(LayoutObject* layoutObject)
121 { 116 {
122 m_image->addClient(layoutObject); 117 m_image->addClient(layoutObject);
123 } 118 }
124 119
(...skipping 25 matching lines...) Expand all
150 } 145 }
151 146
152 DEFINE_TRACE(StyleFetchedImage) 147 DEFINE_TRACE(StyleFetchedImage)
153 { 148 {
154 visitor->trace(m_image); 149 visitor->trace(m_image);
155 visitor->trace(m_document); 150 visitor->trace(m_document);
156 StyleImage::trace(visitor); 151 StyleImage::trace(visitor);
157 } 152 }
158 153
159 } // namespace blink 154 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698