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

Unified Diff: sky/engine/core/html/HTMLImageElement.cpp

Issue 867903002: Remove UseCounter (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 years, 11 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « sky/engine/core/html/HTMLContentElement.cpp ('k') | sky/engine/core/html/imports/HTMLImportsController.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sky/engine/core/html/HTMLImageElement.cpp
diff --git a/sky/engine/core/html/HTMLImageElement.cpp b/sky/engine/core/html/HTMLImageElement.cpp
index 3e3d706dc546944ac6f792dcc5be66caac1fd30f..4a5dfa56e071a38c06d253d5d13c1ab8a366a4ca 100644
--- a/sky/engine/core/html/HTMLImageElement.cpp
+++ b/sky/engine/core/html/HTMLImageElement.cpp
@@ -33,7 +33,6 @@
#include "sky/engine/core/dom/Attribute.h"
#include "sky/engine/core/dom/NodeTraversal.h"
#include "sky/engine/core/fetch/ImageResource.h"
-#include "sky/engine/core/frame/UseCounter.h"
#include "sky/engine/core/html/HTMLAnchorElement.h"
#include "sky/engine/core/html/HTMLCanvasElement.h"
#include "sky/engine/core/html/canvas/CanvasRenderingContext.h"
@@ -125,12 +124,8 @@ void HTMLImageElement::setBestFitURLAndDPRFromImageCandidate(const ImageCandidat
float candidateDensity = candidate.density();
if (candidateDensity >= 0)
m_imageDevicePixelRatio = 1.0 / candidateDensity;
- if (candidate.resourceWidth() > 0) {
+ if (candidate.resourceWidth() > 0)
m_intrinsicSizingViewportDependant = true;
- UseCounter::count(document(), UseCounter::SrcsetWDescriptor);
- } else if (!candidate.srcOrigin()) {
- UseCounter::count(document(), UseCounter::SrcsetXDescriptor);
- }
if (renderer() && renderer()->isImage())
toRenderImage(renderer())->setImageDevicePixelRatio(m_imageDevicePixelRatio);
}
« no previous file with comments | « sky/engine/core/html/HTMLContentElement.cpp ('k') | sky/engine/core/html/imports/HTMLImportsController.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698