| 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);
|
| }
|
|
|