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

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

Issue 2880573003: Remove PaintImage trace from KnownToBeOpaque in StyleFetchedImage (Closed)
Patch Set: Created 3 years, 7 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
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/style/StyleFetchedImageSet.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 112 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/style/StyleFetchedImageSet.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698