OLD | NEW |
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 95 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
106 m_image->computeIntrinsicDimensions(intrinsicWidth, intrinsicHeight, intrins
icRatio); | 106 m_image->computeIntrinsicDimensions(intrinsicWidth, intrinsicHeight, intrins
icRatio); |
107 } | 107 } |
108 | 108 |
109 bool StyleFetchedImage::usesImageContainerSize() const | 109 bool StyleFetchedImage::usesImageContainerSize() const |
110 { | 110 { |
111 return m_image->usesImageContainerSize(); | 111 return m_image->usesImageContainerSize(); |
112 } | 112 } |
113 | 113 |
114 void StyleFetchedImage::addClient(LayoutObject* layoutObject) | 114 void StyleFetchedImage::addClient(LayoutObject* layoutObject) |
115 { | 115 { |
116 m_image->addClient(layoutObject); | 116 m_image->addObserver(layoutObject); |
117 } | 117 } |
118 | 118 |
119 void StyleFetchedImage::removeClient(LayoutObject* layoutObject) | 119 void StyleFetchedImage::removeClient(LayoutObject* layoutObject) |
120 { | 120 { |
121 m_image->removeClient(layoutObject); | 121 m_image->removeObserver(layoutObject); |
122 } | 122 } |
123 | 123 |
124 void StyleFetchedImage::notifyFinished(Resource* resource) | 124 void StyleFetchedImage::notifyFinished(Resource* resource) |
125 { | 125 { |
126 if (m_document && m_image && m_image->image() && m_image->image()->isSVGImag
e()) | 126 if (m_document && m_image && m_image->image() && m_image->image()->isSVGImag
e()) |
127 toSVGImage(m_image->image())->updateUseCounters(*m_document); | 127 toSVGImage(m_image->image())->updateUseCounters(*m_document); |
128 // Oilpan: do not prolong the Document's lifetime. | 128 // Oilpan: do not prolong the Document's lifetime. |
129 m_document.clear(); | 129 m_document.clear(); |
130 } | 130 } |
131 | 131 |
(...skipping 12 matching lines...) Expand all Loading... |
144 } | 144 } |
145 | 145 |
146 DEFINE_TRACE(StyleFetchedImage) | 146 DEFINE_TRACE(StyleFetchedImage) |
147 { | 147 { |
148 visitor->trace(m_image); | 148 visitor->trace(m_image); |
149 visitor->trace(m_document); | 149 visitor->trace(m_document); |
150 StyleImage::trace(visitor); | 150 StyleImage::trace(visitor); |
151 } | 151 } |
152 | 152 |
153 } // namespace blink | 153 } // namespace blink |
OLD | NEW |