Refactor ReportUnsizedMediaViolation
Renames media_element_parser_helpers::ReportUnsizedMediaViolation to media_element_parser_helpers::CheckUnsizedMediaViolation Combines logic of LayoutVideo::UpdateAfterLayout with LayoutImage::UpdateAfterLayout because LayoutVideo is a subclass of LayoutImage. Calls Document::IsFeatureEnabled with ReportOption::kReportOnFailure instead of Document::CountPotentialFeaturePolicyViolation and Document::ReportFeaturePolicyViolation which are lower level APIs. This CL is also the prework for migration of UnsizedMedia from feature policy to document policy. Bug: 993790 Change-Id: I77eb2be3b5fe9d79d276800e12f4a0218fdb6e51 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2082480Reviewed-by:Ian Clelland <iclelland@chromium.org> Reviewed-by:
Philip Jägenstedt <foolip@chromium.org> Commit-Queue: Charlie Hu <chenleihu@google.com> Cr-Commit-Position: refs/heads/master@{#747324}
Showing
Please register or sign in to comment