Commit bf7b1012 authored by Christian Biesinger's avatar Christian Biesinger Committed by Chromium LUCI CQ

Make is_ad_related_ a bitfield and group it with the others

R=masonfreed@chromium.org

Change-Id: I885b95fb269e2f9f239233fedc825739b674b7e9
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2642858
Auto-Submit: Christian Biesinger <cbiesinger@chromium.org>
Commit-Queue: Mason Freed <masonfreed@chromium.org>
Reviewed-by: default avatarMason Freed <masonfreed@chromium.org>
Cr-Commit-Position: refs/heads/master@{#845783}
parent 19d3bcf5
......@@ -108,6 +108,7 @@ HTMLImageElement::HTMLImageElement(Document& document, bool created_by_parser)
!GetExecutionContext()->IsFeatureEnabled(
mojom::blink::DocumentPolicyFeature::kUnsizedMedia)),
is_legacy_format_or_unoptimized_image_(false),
is_ad_related_(false),
referrer_policy_(network::mojom::ReferrerPolicy::kDefault) {
SetHasCustomStyleCallbacks();
}
......
......@@ -260,13 +260,12 @@ class CORE_EXPORT HTMLImageElement final
// policies. When any policy is violated, the image should be rendered as a
// placeholder image.
bool is_legacy_format_or_unoptimized_image_ : 1;
bool is_ad_related_ : 1;
network::mojom::ReferrerPolicy referrer_policy_;
std::unique_ptr<LazyLoadImageObserver::VisibleLoadTimeMetrics>
visible_load_time_metrics_;
bool is_ad_related_ = false;
};
} // namespace blink
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment