summaryrefslogtreecommitdiff
path: root/chromium/third_party/blink/renderer/core/layout/layout_video.h
diff options
context:
space:
mode:
Diffstat (limited to 'chromium/third_party/blink/renderer/core/layout/layout_video.h')
-rw-r--r--chromium/third_party/blink/renderer/core/layout/layout_video.h9
1 files changed, 6 insertions, 3 deletions
diff --git a/chromium/third_party/blink/renderer/core/layout/layout_video.h b/chromium/third_party/blink/renderer/core/layout/layout_video.h
index 66d2550ef51..ed6ce6aa006 100644
--- a/chromium/third_party/blink/renderer/core/layout/layout_video.h
+++ b/chromium/third_party/blink/renderer/core/layout/layout_video.h
@@ -27,6 +27,7 @@
#define THIRD_PARTY_BLINK_RENDERER_CORE_LAYOUT_LAYOUT_VIDEO_H_
#include "third_party/blink/renderer/core/layout/layout_media.h"
+#include "third_party/blink/renderer/platform/wtf/casting.h"
namespace blink {
@@ -50,8 +51,6 @@ class LayoutVideo final : public LayoutMedia {
void IntrinsicSizeChanged() override;
- void UpdateAfterLayout() override;
-
bool ComputeShouldClipOverflow() const final { return true; }
private:
@@ -77,6 +76,7 @@ class LayoutVideo final : public LayoutMedia {
LayoutUnit estimated_used_width = LayoutUnit()) const override;
LayoutUnit MinimumReplacedHeight() const override;
+ bool CanHaveAdditionalCompositingReasons() const override { return true; }
CompositingReasons AdditionalCompositingReasons() const override;
void UpdatePlayer(bool is_in_layout);
@@ -84,7 +84,10 @@ class LayoutVideo final : public LayoutMedia {
LayoutSize cached_image_size_;
};
-DEFINE_LAYOUT_OBJECT_TYPE_CASTS(LayoutVideo, IsVideo());
+template <>
+struct DowncastTraits<LayoutVideo> {
+ static bool AllowFrom(const LayoutObject& object) { return object.IsVideo(); }
+};
} // namespace blink