summaryrefslogtreecommitdiff
path: root/chromium/third_party/blink/renderer/core/layout/layout_video.cc
diff options
context:
space:
mode:
authorAllan Sandfeld Jensen <allan.jensen@qt.io>2020-03-11 11:32:04 +0100
committerAllan Sandfeld Jensen <allan.jensen@qt.io>2020-03-18 13:40:17 +0000
commit31ccca0778db85c159634478b4ec7997f6704860 (patch)
tree3d33fc3afd9d5ec95541e1bbe074a9cf8da12a0e /chromium/third_party/blink/renderer/core/layout/layout_video.cc
parent248b70b82a40964d5594eb04feca0fa36716185d (diff)
downloadqtwebengine-chromium-31ccca0778db85c159634478b4ec7997f6704860.tar.gz
BASELINE: Update Chromium to 80.0.3987.136
Change-Id: I98e1649aafae85ba3a83e67af00bb27ef301db7b Reviewed-by: Jüri Valdmann <juri.valdmann@qt.io>
Diffstat (limited to 'chromium/third_party/blink/renderer/core/layout/layout_video.cc')
-rw-r--r--chromium/third_party/blink/renderer/core/layout/layout_video.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/chromium/third_party/blink/renderer/core/layout/layout_video.cc b/chromium/third_party/blink/renderer/core/layout/layout_video.cc
index b45e3da976c..5b910056fbe 100644
--- a/chromium/third_party/blink/renderer/core/layout/layout_video.cc
+++ b/chromium/third_party/blink/renderer/core/layout/layout_video.cc
@@ -135,7 +135,7 @@ void LayoutVideo::UpdateLayout() {
}
HTMLVideoElement* LayoutVideo::VideoElement() const {
- return ToHTMLVideoElement(GetNode());
+ return To<HTMLVideoElement>(GetNode());
}
void LayoutVideo::UpdateFromElement() {
@@ -202,7 +202,7 @@ CompositingReasons LayoutVideo::AdditionalCompositingReasons() const {
void LayoutVideo::UpdateAfterLayout() {
LayoutBox::UpdateAfterLayout();
// Report violation of unsized-media policy.
- if (auto* video_element = ToHTMLVideoElementOrNull(GetNode())) {
+ if (auto* video_element = DynamicTo<HTMLVideoElement>(GetNode())) {
media_element_parser_helpers::ReportUnsizedMediaViolation(
this, video_element->IsDefaultIntrinsicSize());
}