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 112 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
123 if (!image_->GetImage()->IsSVGImage()) | 123 if (!image_->GetImage()->IsSVGImage()) |
124 return image_->GetImage(); | 124 return image_->GetImage(); |
125 | 125 |
126 return SVGImageForContainer::Create(ToSVGImage(image_->GetImage()), | 126 return SVGImageForContainer::Create(ToSVGImage(image_->GetImage()), |
127 container_size, | 127 container_size, |
128 obj.StyleRef().EffectiveZoom(), url_); | 128 obj.StyleRef().EffectiveZoom(), url_); |
129 } | 129 } |
130 | 130 |
131 bool StyleFetchedImage::KnownToBeOpaque( | 131 bool StyleFetchedImage::KnownToBeOpaque( |
132 const LayoutObject& layout_object) const { | 132 const LayoutObject& layout_object) const { |
133 TRACE_EVENT1(TRACE_DISABLED_BY_DEFAULT("devtools.timeline"), "PaintImage", | |
134 "data", | |
135 InspectorPaintImageEvent::Data(&layout_object, *image_.Get())); | |
136 return image_->GetImage()->CurrentFrameKnownToBeOpaque( | 133 return image_->GetImage()->CurrentFrameKnownToBeOpaque( |
137 Image::kPreCacheMetadata); | 134 Image::kPreCacheMetadata); |
138 } | 135 } |
139 | 136 |
140 DEFINE_TRACE(StyleFetchedImage) { | 137 DEFINE_TRACE(StyleFetchedImage) { |
141 visitor->Trace(image_); | 138 visitor->Trace(image_); |
142 visitor->Trace(document_); | 139 visitor->Trace(document_); |
143 StyleImage::Trace(visitor); | 140 StyleImage::Trace(visitor); |
144 } | 141 } |
145 | 142 |
146 } // namespace blink | 143 } // namespace blink |
OLD | NEW |