From 1bf1084f2b10c3b47fd1a588d85d21ed0eb41d0c Mon Sep 17 00:00:00 2001 From: Lorry Tar Creator Date: Tue, 27 Jun 2017 06:07:23 +0000 Subject: webkitgtk-2.16.5 --- Source/WebCore/html/LinkRelAttribute.h | 30 ++++++++++++++++-------------- 1 file changed, 16 insertions(+), 14 deletions(-) (limited to 'Source/WebCore/html/LinkRelAttribute.h') 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 +#include 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 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); +}; +} -- cgit v1.2.1