summaryrefslogtreecommitdiff
path: root/Source/WebCore/html/LinkRelAttribute.h
diff options
context:
space:
mode:
authorLorry Tar Creator <lorry-tar-importer@lorry>2017-06-27 06:07:23 +0000
committerLorry Tar Creator <lorry-tar-importer@lorry>2017-06-27 06:07:23 +0000
commit1bf1084f2b10c3b47fd1a588d85d21ed0eb41d0c (patch)
tree46dcd36c86e7fbc6e5df36deb463b33e9967a6f7 /Source/WebCore/html/LinkRelAttribute.h
parent32761a6cee1d0dee366b885b7b9c777e67885688 (diff)
downloadWebKitGtk-tarball-master.tar.gz
Diffstat (limited to 'Source/WebCore/html/LinkRelAttribute.h')
-rw-r--r--Source/WebCore/html/LinkRelAttribute.h30
1 files changed, 16 insertions, 14 deletions
diff --git a/Source/WebCore/html/LinkRelAttribute.h b/Source/WebCore/html/LinkRelAttribute.h
index fd6fabf31..8e266927e 100644
--- a/Source/WebCore/html/LinkRelAttribute.h
+++ b/Source/WebCore/html/LinkRelAttribute.h
@@ -1,5 +1,6 @@
/*
* Copyright (C) 2011 Google Inc. All rights reserved.
+ * Copyright (C) 2016 Apple Inc. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
@@ -29,29 +30,30 @@
*
*/
-#ifndef LinkRelAttribute_h
-#define LinkRelAttribute_h
+#pragma once
-#include "IconURL.h"
+#include <wtf/Forward.h>
+#include <wtf/Optional.h>
namespace WebCore {
+enum class LinkIconType;
+
struct LinkRelAttribute {
-public:
- bool m_isStyleSheet;
- IconType m_iconType;
- bool m_isAlternate;
- bool m_isDNSPrefetch;
+ bool isStyleSheet { false };
+ std::optional<LinkIconType> iconType;
+ bool isAlternate { false };
+ bool isDNSPrefetch { false };
+ bool isLinkPreload { false };
#if ENABLE(LINK_PREFETCH)
- bool m_isLinkPrefetch;
- bool m_isLinkSubresource;
+ bool isLinkPrefetch { false };
+ bool isLinkSubresource { false };
#endif
LinkRelAttribute();
explicit LinkRelAttribute(const String&);
-};
-
-}
-#endif
+ static bool isSupported(StringView);
+};
+}