summaryrefslogtreecommitdiff
path: root/chromium/third_party/blink/renderer/core/style/style_ray.h
diff options
context:
space:
mode:
authorAllan Sandfeld Jensen <allan.jensen@qt.io>2019-05-24 11:40:17 +0200
committerAllan Sandfeld Jensen <allan.jensen@qt.io>2019-05-24 12:42:11 +0000
commit5d87695f37678f96492b258bbab36486c59866b4 (patch)
treebe9783bbaf04fb930c4d74ca9c00b5e7954c8bc6 /chromium/third_party/blink/renderer/core/style/style_ray.h
parent6c11fb357ec39bf087b8b632e2b1e375aef1b38b (diff)
downloadqtwebengine-chromium-5d87695f37678f96492b258bbab36486c59866b4.tar.gz
BASELINE: Update Chromium to 75.0.3770.56
Change-Id: I86d2007fd27a45d5797eee06f4c9369b8b50ac4f Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
Diffstat (limited to 'chromium/third_party/blink/renderer/core/style/style_ray.h')
-rw-r--r--chromium/third_party/blink/renderer/core/style/style_ray.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/chromium/third_party/blink/renderer/core/style/style_ray.h b/chromium/third_party/blink/renderer/core/style/style_ray.h
index 44ac2745d6f..636b4d6976a 100644
--- a/chromium/third_party/blink/renderer/core/style/style_ray.h
+++ b/chromium/third_party/blink/renderer/core/style/style_ray.h
@@ -6,6 +6,7 @@
#define THIRD_PARTY_BLINK_RENDERER_CORE_STYLE_STYLE_RAY_H_
#include "third_party/blink/renderer/core/style/basic_shapes.h"
+#include "third_party/blink/renderer/platform/wtf/casting.h"
namespace blink {
@@ -39,7 +40,12 @@ class StyleRay : public BasicShape {
bool contain_;
};
-DEFINE_BASICSHAPE_TYPE_CASTS(StyleRay);
+template <>
+struct DowncastTraits<StyleRay> {
+ static bool AllowFrom(const BasicShape& value) {
+ return value.GetType() == BasicShape::kStyleRayType;
+ }
+};
} // namespace blink