Index: Source/core/rendering/RenderFlexibleBox.cpp |
diff --git a/Source/core/rendering/RenderFlexibleBox.cpp b/Source/core/rendering/RenderFlexibleBox.cpp |
index 3f8b11f277a7e2958ce106052f8679f2fd632936..ce694f8df7ad0e4e8eeeda9957e2ee2eeb00bd43 100644 |
--- a/Source/core/rendering/RenderFlexibleBox.cpp |
+++ b/Source/core/rendering/RenderFlexibleBox.cpp |
@@ -31,6 +31,7 @@ |
#include "config.h" |
#include "core/rendering/RenderFlexibleBox.h" |
+#include "core/frame/UseCounter.h" |
#include "core/rendering/FastTextAutosizer.h" |
#include "core/rendering/RenderLayer.h" |
#include "core/rendering/RenderView.h" |
@@ -612,6 +613,9 @@ LayoutUnit RenderFlexibleBox::preferredMainAxisContentExtentForChild(RenderBox* |
{ |
child->clearOverrideSize(); |
+ if (child->style()->hasAspectRatio() || child->isImage() || child->isVideo() || child->isCanvas()) |
+ UseCounter::count(document(), UseCounter::AspectRatioFlexItem); |
+ |
Length flexBasis = flexBasisForChild(child); |
if (preferredMainAxisExtentDependsOnLayout(flexBasis, hasInfiniteLineLength)) { |
LayoutUnit mainAxisExtent; |