+2016-10-31 Joseph Pecoraro <pecoraro@apple.com>
+
+ Use #pragma once in WebCore
+ https://bugs.webkit.org/show_bug.cgi?id=164194
+
+ Rubber-stamped by Sam Weinig.
+
+ * accessibility/*.h:
+ * bindings/*.h:
+ * contentextensions/*.h:
+ * dom/*.h:
+ * html/*.h:
+ * page/*.h:
+ Use #pragma once in headers.
+
+ * html/parser/ParsingUtilities.h:
+ Add missing namespace.
+
+ * html/track/VTTScanner.h:
+ (WebCore::VTTScanner::skipWhile):
+ (WebCore::VTTScanner::skipUntil):
+ (WebCore::VTTScanner::collectWhile):
+ (WebCore::VTTScanner::collectUntil):
+ Include namespace.
+
2016-10-31 Antoine Quint <graouts@apple.com>
[Modern Media Controls] Media Controller: Airplay support
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
-#ifndef AXObjectCache_h
-#define AXObjectCache_h
+#pragma once
#include "AXTextStateChangeIntent.h"
#include "AccessibilityObject.h"
#endif
-}
-
-#endif
+} // namespace WebCore
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
-#ifndef AXTextStateChangeIntent_h
-#define AXTextStateChangeIntent_h
+#pragma once
namespace WebCore {
{ }
};
-}
-
-#endif // AXTextStateChangeIntent_h
+} // namespace WebCore
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
-#ifndef AccessibilityARIAGrid_h
-#define AccessibilityARIAGrid_h
+#pragma once
#include "AccessibilityTable.h"
#include <wtf/Forward.h>
};
} // namespace WebCore
-
-#endif // AccessibilityARIAGrid_h
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
-#ifndef AccessibilityARIAGridCell_h
-#define AccessibilityARIAGridCell_h
+#pragma once
#include "AccessibilityTableCell.h"
};
} // namespace WebCore
-
-#endif // AccessibilityARIAGridCell_h
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
-#ifndef AccessibilityARIAGridRow_h
-#define AccessibilityARIAGridRow_h
+#pragma once
#include "AccessibilityTableRow.h"
} // namespace WebCore
SPECIALIZE_TYPE_TRAITS_ACCESSIBILITY(AccessibilityARIAGridRow, isARIATreeGridRow())
-
-#endif // AccessibilityARIAGridRow_h
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
-#ifndef AccessibilityAttachment_h
-#define AccessibilityAttachment_h
+#pragma once
#if ENABLE(ATTACHMENT_ELEMENT)
SPECIALIZE_TYPE_TRAITS_ACCESSIBILITY(AccessibilityAttachment, isAttachmentElement())
#endif // ENABLE(ATTACHMENT_ELEMENT)
-
-#endif // AccessibilityAttachment_h
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
-#ifndef AccessibilityImageMapLink_h
-#define AccessibilityImageMapLink_h
+#pragma once
#include "AccessibilityMockObject.h"
#include "HTMLAreaElement.h"
} // namespace WebCore
SPECIALIZE_TYPE_TRAITS_ACCESSIBILITY(AccessibilityImageMapLink, isImageMapLink())
-
-#endif // AccessibilityImageMapLink_h
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
-#ifndef AccessibilityLabel_h
-#define AccessibilityLabel_h
+#pragma once
#include "AccessibilityRenderObject.h"
} // namespace WebCore
SPECIALIZE_TYPE_TRAITS_ACCESSIBILITY(AccessibilityLabel, isLabel())
-
-#endif // AccessibilityLabel_h
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
-#ifndef AccessibilityList_h
-#define AccessibilityList_h
+#pragma once
#include "AccessibilityRenderObject.h"
} // namespace WebCore
SPECIALIZE_TYPE_TRAITS_ACCESSIBILITY(AccessibilityList, isList())
-
-#endif // AccessibilityList_h
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
-#ifndef AccessibilityListBox_h
-#define AccessibilityListBox_h
+#pragma once
#include "AccessibilityRenderObject.h"
} // namespace WebCore
SPECIALIZE_TYPE_TRAITS_ACCESSIBILITY(AccessibilityListBox, isListBox())
-
-#endif // AccessibilityListBox_h
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
-#ifndef AccessibilityListBoxOption_h
-#define AccessibilityListBoxOption_h
+#pragma once
#include "AccessibilityObject.h"
#include "HTMLElement.h"
class AccessibilityListBox;
class Element;
-class HTMLElement;
class HTMLSelectElement;
class AccessibilityListBoxOption final : public AccessibilityObject {
} // namespace WebCore
SPECIALIZE_TYPE_TRAITS_ACCESSIBILITY(AccessibilityListBoxOption, isListBoxOption())
-
-#endif // AccessibilityListBoxOption_h
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
-#ifndef AccessibilityMathMLElement_h
-#define AccessibilityMathMLElement_h
+#pragma once
#if ENABLE(MATHML)
#include "AccessibilityRenderObject.h"
-
#include "RenderMathMLBlock.h"
#include "RenderMathMLFraction.h"
#include "RenderMathMLMath.h"
bool m_isAnonymousOperator;
};
-
} // namespace WebCore
SPECIALIZE_TYPE_TRAITS_ACCESSIBILITY(AccessibilityMathMLElement, isMathElement())
#endif // ENABLE(MATHML)
-#endif // AccessibilityMathMLElement_h
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
-
-#ifndef AccessibilityMediaControls_h
-#define AccessibilityMediaControls_h
+#pragma once
#if ENABLE(VIDEO)
namespace WebCore {
class AccessibilityMediaControl : public AccessibilityRenderObject {
-
public:
static Ref<AccessibilityObject> create(RenderObject*);
virtual ~AccessibilityMediaControl() { }
class AccessibilityMediaTimeline final : public AccessibilitySlider {
-
public:
static Ref<AccessibilityObject> create(RenderObject*);
virtual ~AccessibilityMediaTimeline() { }
class AccessibilityMediaControlsContainer final : public AccessibilityMediaControl {
-
public:
static Ref<AccessibilityObject> create(RenderObject*);
virtual ~AccessibilityMediaControlsContainer() { }
class AccessibilityMediaTimeDisplay final : public AccessibilityMediaControl {
-
public:
static Ref<AccessibilityObject> create(RenderObject*);
virtual ~AccessibilityMediaTimeDisplay() { }
bool computeAccessibilityIsIgnored() const override;
};
-
} // namespace WebCore
#endif // ENABLE(VIDEO)
-
-#endif // AccessibilityMediaControls_h
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
-#ifndef AccessibilityMenuList_h
-#define AccessibilityMenuList_h
+#pragma once
#include "AccessibilityRenderObject.h"
} // namespace WebCore
SPECIALIZE_TYPE_TRAITS_ACCESSIBILITY(AccessibilityMenuList, isMenuList())
-
-#endif // AccessibilityMenuList_h
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
-#ifndef AccessibilityMenuListOption_h
-#define AccessibilityMenuListOption_h
+#pragma once
#include "AccessibilityMockObject.h"
} // namespace WebCore
SPECIALIZE_TYPE_TRAITS_ACCESSIBILITY(AccessibilityMenuListOption, isMenuListOption())
-
-#endif // AccessibilityMenuListOption_h
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
-#ifndef AccessibilityMenuListPopup_h
-#define AccessibilityMenuListPopup_h
+#pragma once
#include "AccessibilityMockObject.h"
} // namespace WebCore
SPECIALIZE_TYPE_TRAITS_ACCESSIBILITY(AccessibilityMenuListPopup, isMenuListPopup())
-
-#endif // AccessibilityMenuListPopup_h
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
-#ifndef AccessibilityMockObject_h
-#define AccessibilityMockObject_h
+#pragma once
#include "AccessibilityObject.h"
} // namespace WebCore
SPECIALIZE_TYPE_TRAITS_ACCESSIBILITY(AccessibilityMockObject, isMockObject())
-
-#endif // AccessibilityMockObject_h
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
-#ifndef AccessibilityNodeObject_h
-#define AccessibilityNodeObject_h
+#pragma once
#include "AccessibilityObject.h"
#include "LayoutRect.h"
} // namespace WebCore
SPECIALIZE_TYPE_TRAITS_ACCESSIBILITY(AccessibilityNodeObject, isAccessibilityNodeObject())
-
-#endif // AccessibilityNodeObject_h
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
-#ifndef AccessibilityObject_h
-#define AccessibilityObject_h
+#pragma once
#include "FloatQuad.h"
#include "HTMLTextFormControlElement.h"
SPECIALIZE_TYPE_TRAITS_BEGIN(WebCore::ToValueTypeName) \
static bool isType(const WebCore::AccessibilityObject& object) { return object.predicate; } \
SPECIALIZE_TYPE_TRAITS_END()
-
-#endif // AccessibilityObject_h
*
*/
-#ifndef AccessibilityProgressIndicator_h
-#define AccessibilityProgressIndicator_h
+#pragma once
#include "AccessibilityRenderObject.h"
bool computeAccessibilityIsIgnored() const override;
};
-
} // namespace WebCore
SPECIALIZE_TYPE_TRAITS_ACCESSIBILITY(AccessibilityProgressIndicator, isProgressIndicator())
-
-#endif // AccessibilityProgressIndicator_h
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
-#ifndef AccessibilityRenderObject_h
-#define AccessibilityRenderObject_h
+#pragma once
#include "AccessibilityNodeObject.h"
#include "LayoutRect.h"
} // namespace WebCore
SPECIALIZE_TYPE_TRAITS_ACCESSIBILITY(AccessibilityRenderObject, isAccessibilityRenderObject())
-
-#endif // AccessibilityRenderObject_h
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
-#ifndef AccessibilitySVGElement_h
-#define AccessibilitySVGElement_h
+#pragma once
#include "AccessibilityRenderObject.h"
Element* childElementWithMatchingLanguage(ChildrenType&) const;
};
-
} // namespace WebCore
SPECIALIZE_TYPE_TRAITS_ACCESSIBILITY(AccessibilitySVGElement, isAccessibilitySVGElement())
-
-#endif // AccessibilitySVGElement_h
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
-#ifndef AccessibilitySVGRoot_h
-#define AccessibilitySVGRoot_h
+#pragma once
#include "AccessibilitySVGElement.h"
} // namespace WebCore
SPECIALIZE_TYPE_TRAITS_ACCESSIBILITY(AccessibilitySVGRoot, isAccessibilitySVGRoot())
-
-#endif // AccessibilitySVGRoot_h
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
-#ifndef AccessibilityScrollView_h
-#define AccessibilityScrollView_h
+#pragma once
#include "AccessibilityObject.h"
} // namespace WebCore
SPECIALIZE_TYPE_TRAITS_ACCESSIBILITY(AccessibilityScrollView, isAccessibilityScrollView())
-
-#endif // AccessibilityScrollView_h
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
-#ifndef AccessibilityScrollbar_h
-#define AccessibilityScrollbar_h
+#pragma once
#include "AccessibilityMockObject.h"
} // namespace WebCore
SPECIALIZE_TYPE_TRAITS_ACCESSIBILITY(AccessibilityScrollbar, isAccessibilityScrollbar())
-
-#endif // AccessibilityScrollbar_h
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
-#ifndef AccessibilitySlider_h
-#define AccessibilitySlider_h
+#pragma once
#include "AccessibilityMockObject.h"
#include "AccessibilityRenderObject.h"
} // namespace WebCore
SPECIALIZE_TYPE_TRAITS_ACCESSIBILITY(AccessibilitySliderThumb, isSliderThumb())
-
-#endif // AccessibilitySlider_h
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
-#ifndef AccessibilitySpinButton_h
-#define AccessibilitySpinButton_h
+#pragma once
#include "AccessibilityMockObject.h"
-
#include "SpinButtonElement.h"
namespace WebCore {
SPECIALIZE_TYPE_TRAITS_ACCESSIBILITY(AccessibilitySpinButton, isNativeSpinButton())
SPECIALIZE_TYPE_TRAITS_ACCESSIBILITY(AccessibilitySpinButtonPart, isSpinButtonPart())
-
-#endif // AccessibilitySpinButton_h
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
-#ifndef AccessibilityTable_h
-#define AccessibilityTable_h
+#pragma once
#include "AccessibilityRenderObject.h"
#include <wtf/Forward.h>
} // namespace WebCore
SPECIALIZE_TYPE_TRAITS_ACCESSIBILITY(AccessibilityTable, isTable())
-
-#endif // AccessibilityTable_h
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
-#ifndef AccessibilityTableCell_h
-#define AccessibilityTableCell_h
+#pragma once
#include "AccessibilityRenderObject.h"
} // namespace WebCore
SPECIALIZE_TYPE_TRAITS_ACCESSIBILITY(AccessibilityTableCell, isTableCell())
-
-#endif // AccessibilityTableCell_h
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
-#ifndef AccessibilityTableColumn_h
-#define AccessibilityTableColumn_h
+#pragma once
#include "AccessibilityMockObject.h"
#include "AccessibilityTable.h"
} // namespace WebCore
SPECIALIZE_TYPE_TRAITS_ACCESSIBILITY(AccessibilityTableColumn, isTableColumn())
-
-#endif // AccessibilityTableColumn_h
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
-#ifndef AccessibilityTableHeaderContainer_h
-#define AccessibilityTableHeaderContainer_h
+#pragma once
#include "AccessibilityMockObject.h"
#include "AccessibilityTable.h"
};
} // namespace WebCore
-
-#endif // AccessibilityTableHeaderContainer_h
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
-#ifndef AccessibilityTableRow_h
-#define AccessibilityTableRow_h
+#pragma once
#include "AccessibilityRenderObject.h"
} // namespace WebCore
SPECIALIZE_TYPE_TRAITS_ACCESSIBILITY(AccessibilityTableRow, isTableRow())
-
-#endif // AccessibilityTableRow_h
*/
-#ifndef AccessibilityTree_h
-#define AccessibilityTree_h
+#pragma once
#include "AccessibilityRenderObject.h"
} // namespace WebCore
SPECIALIZE_TYPE_TRAITS_ACCESSIBILITY(AccessibilityTree, isTree())
-
-#endif // AccessibilityTree_h
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
-#ifndef AccessibilityTreeItem_h
-#define AccessibilityTreeItem_h
+#pragma once
#include "AccessibilityRenderObject.h"
} // namespace WebCore
SPECIALIZE_TYPE_TRAITS_ACCESSIBILITY(AccessibilityTreeItem, isTreeItem())
-
-#endif // AccessibilityTreeItem_h
* Boston, MA 02110-1301, USA.
*/
-#ifndef WebKitAccessibleHyperlink_h
-#define WebKitAccessibleHyperlink_h
+#pragma once
#if HAVE(ACCESSIBILITY)
G_END_DECLS
-#endif // WebKitAccessibleHyperlink_h
-
-#endif
+#endif // HAVE(ACCESSIBILITY)
* Boston, MA 02110-1301, USA.
*/
-#ifndef WebKitAccessibleInterfaceAction_h
-#define WebKitAccessibleInterfaceAction_h
+#pragma once
#if HAVE(ACCESSIBILITY)
void webkitAccessibleActionInterfaceInit(AtkActionIface*);
-#endif
-
-#endif // WebKitAccessibleInterfaceAction_h
+#endif // HAVE(ACCESSIBILITY)
* Boston, MA 02110-1301, USA.
*/
-#ifndef WebKitAccessibleInterfaceComponent_h
-#define WebKitAccessibleInterfaceComponent_h
+#pragma once
#if HAVE(ACCESSIBILITY)
void webkitAccessibleComponentInterfaceInit(AtkComponentIface*);
-#endif
-
-#endif // WebKitAccessibleInterfaceComponent_h
+#endif // HAVE(ACCESSIBILITY)
* Boston, MA 02110-1301, USA.
*/
-#ifndef WebKitAccessibleInterfaceDocument_h
-#define WebKitAccessibleInterfaceDocument_h
+#pragma once
#if HAVE(ACCESSIBILITY)
void webkitAccessibleDocumentInterfaceInit(AtkDocumentIface*);
-#endif
-#endif // WebKitAccessibleInterfaceDocument_h
+#endif // HAVE(ACCESSIBILITY)
* Boston, MA 02110-1301, USA.
*/
-#ifndef WebKitAccessibleInterfaceEditableText_h
-#define WebKitAccessibleInterfaceEditableText_h
+#pragma once
#if HAVE(ACCESSIBILITY)
void webkitAccessibleEditableTextInterfaceInit(AtkEditableTextIface*);
-#endif
-#endif // WebKitAccessibleInterfaceEditableText_h
+#endif // HAVE(ACCESSIBILITY)
* Boston, MA 02110-1301, USA.
*/
-#ifndef WebKitAccessibleInterfaceHyperlinkImpl_h
-#define WebKitAccessibleInterfaceHyperlinkImpl_h
+#pragma once
#if HAVE(ACCESSIBILITY)
void webkitAccessibleHyperlinkImplInterfaceInit(AtkHyperlinkImplIface*);
-#endif
-#endif // WebKitAccessibleInterfaceHyperlinkImpl_h
+#endif // HAVE(ACCESSIBILITY)
* Boston, MA 02110-1301, USA.
*/
-#ifndef WebKitAccessibleInterfaceHypertext_h
-#define WebKitAccessibleInterfaceHypertext_h
+#pragma once
#if HAVE(ACCESSIBILITY)
void webkitAccessibleHypertextInterfaceInit(AtkHypertextIface*);
-#endif
-
-#endif // WebKitAccessibleInterfaceHypertext_h
+#endif // HAVE(ACCESSIBILITY)
* Boston, MA 02110-1301, USA.
*/
-#ifndef WebKitAccessibleInterfaceImage_h
-#define WebKitAccessibleInterfaceImage_h
+#pragma once
#if HAVE(ACCESSIBILITY)
void webkitAccessibleImageInterfaceInit(AtkImageIface*);
-#endif
-#endif // WebKitAccessibleInterfaceImage_h
+#endif // HAVE(ACCESSIBILITY)
* Boston, MA 02110-1301, USA.
*/
-#ifndef WebKitAccessibleInterfaceSelection_h
-#define WebKitAccessibleInterfaceSelection_h
+#pragma once
#if HAVE(ACCESSIBILITY)
void webkitAccessibleSelectionInterfaceInit(AtkSelectionIface*);
-#endif
-#endif // WebKitAccessibleInterfaceSelection_h
+#endif // HAVE(ACCESSIBILITY)
* Boston, MA 02110-1301, USA.
*/
-#ifndef WebKitAccessibleInterfaceTable_h
-#define WebKitAccessibleInterfaceTable_h
+#pragma once
#if HAVE(ACCESSIBILITY)
void webkitAccessibleTableInterfaceInit(AtkTableIface*);
-#endif
-#endif // WebKitAccessibleInterfaceTable_h
+#endif // HAVE(ACCESSIBILITY)
-#ifndef WebKitAccessibleInterfaceTableCell_h
-#define WebKitAccessibleInterfaceTableCell_h
+/*
+ * Copyright (C) 2008 Nuanti Ltd.
+ * Copyright (C) 2009 Jan Alonzo
+ * Copyright (C) 2009, 2010, 2011, 2012 Igalia S.L.
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Library General Public
+ * License as published by the Free Software Foundation; either
+ * version 2 of the License, or (at your option) any later version.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Library General Public License for more details.
+ *
+ * You should have received a copy of the GNU Library General Public License
+ * along with this library; see the file COPYING.LIB. If not, write to
+ * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
+ * Boston, MA 02110-1301, USA.
+ */
+
+#pragma once
#if HAVE(ACCESSIBILITY)
#endif
#endif // HAVE(ACCESSIBILITY)
-#endif // WebKitAccessibleInterfaceTableCell_h
* Boston, MA 02110-1301, USA.
*/
-#ifndef WebKitAccessibleInterfaceText_h
-#define WebKitAccessibleInterfaceText_h
+#pragma once
#if HAVE(ACCESSIBILITY)
void webkitAccessibleTextInterfaceInit(AtkTextIface*);
-#endif
-#endif // WebKitAccessibleInterfaceText_h
+#endif // HAVE(ACCESSIBILITY)
* Boston, MA 02110-1301, USA.
*/
-#ifndef WebKitAccessibleInterfaceValue_h
-#define WebKitAccessibleInterfaceValue_h
+#pragma once
#if HAVE(ACCESSIBILITY)
void webkitAccessibleValueInterfaceInit(AtkValueIface*);
-#endif
-#endif // WebKitAccessibleInterfaceValue_h
+#endif // HAVE(ACCESSIBILITY)
* Boston, MA 02110-1301, USA.
*/
-#ifndef WebKitAccessibleUtil_h
-#define WebKitAccessibleUtil_h
+#pragma once
#if HAVE(ACCESSIBILITY)
bool selectionBelongsToObject(WebCore::AccessibilityObject*, WebCore::VisibleSelection&);
-#endif
-#endif // WebKitAccessibleUtil_h
+#endif // HAVE(ACCESSIBILITY)
* Boston, MA 02110-1301, USA.
*/
-#ifndef WebKitAccessibleWrapperAtk_h
-#define WebKitAccessibleWrapperAtk_h
+#pragma once
#if HAVE(ACCESSIBILITY)
G_END_DECLS
-#endif
-#endif // WebKitAccessibleWrapperAtk_h
+#endif // HAVE(ACCESSIBILITY)
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
-#ifndef AccessibilityObjectWrapperIOS_h
-#define AccessibilityObjectWrapperIOS_h
+#pragma once
#if HAVE(ACCESSIBILITY) && PLATFORM(IOS)
@end
#endif // HAVE(ACCESSIBILITY) && PLATFORM(IOS)
-
-#endif // AccessibilityObjectWrapperIOS_h
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
-#ifndef WebAccessibilityObjectWrapper_h
-#define WebAccessibilityObjectWrapper_h
+#pragma once
#import "WebAccessibilityObjectWrapperBase.h"
- (id)textMarkerForVisiblePosition:(const WebCore::VisiblePosition&)visiblePos;
@end
-
-#endif // WebAccessibilityObjectWrapper_h
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
-
-#ifndef AccessibilityObjectWrapperWin_h
-#define AccessibilityObjectWrapperWin_h
+#pragma once
#include <unknwn.h>
#include <wtf/text/AtomicString.h>
};
} // namespace WebCore
-
-#endif // AccessibilityObjectWrapperWin_h
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
-#ifndef ActiveDOMCallback_h
-#define ActiveDOMCallback_h
+#pragma once
#include "ContextDestructionObserver.h"
};
} // namespace WebCore
-
-#endif // ActiveDOMCallback_h
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
-#ifndef ArrayValue_h
-#define ArrayValue_h
+#pragma once
#include <interpreter/CallFrame.h>
JSC::JSValue m_value;
};
-}
-
-#endif // ArrayValue_h
+} // namespace WebCore
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
-#ifndef CachedScriptSourceProvider_h
-#define CachedScriptSourceProvider_h
+#pragma once
#include "CachedResourceClient.h"
#include "CachedResourceHandle.h"
}
} // namespace WebCore
-
-#endif // CachedScriptSourceProvider_h
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
-#ifndef CallbackFunction_h
-#define CallbackFunction_h
+#pragma once
#include <runtime/JSObject.h>
}
} // namespace WebCore
-
-#endif // CallbackFunction_h
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
-
-#ifndef DOMConstructorWithDocument_h
-#define DOMConstructorWithDocument_h
+#pragma once
#include "Document.h"
#include "JSDOMBinding.h"
};
} // namespace WebCore
-
-#endif // DOMConstructorWithDocument_h
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
-#ifndef DOMWrapperWorld_h
-#define DOMWrapperWorld_h
+#pragma once
#include "JSDOMGlobalObject.h"
#include <wtf/Forward.h>
}
} // namespace WebCore
-
-#endif // DOMWrapperWorld_h
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
-#ifndef GCController_h
-#define GCController_h
+#pragma once
#include <wtf/Forward.h>
#include <wtf/Noncopyable.h>
};
} // namespace WebCore
-
-#endif // GCController_h
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
-#ifndef JSCSSRuleCustom_h
-#define JSCSSRuleCustom_h
+#pragma once
#include "CSSRule.h"
#include "CSSStyleSheet.h"
}
} // namespace WebCore
-
-#endif // JSCSSRuleCustom_h
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
-#ifndef JSCSSStyleDeclarationCustom_h
-#define JSCSSStyleDeclarationCustom_h
+#pragma once
namespace WebCore {
void* root(CSSStyleDeclaration*);
-}
-
-#endif // JSCSSStyleDeclarationCustom_h
+} // namespace WebCore
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
-#ifndef JSCallbackData_h
-#define JSCallbackData_h
+#pragma once
#include "JSDOMBinding.h"
#include "JSDOMGlobalObject.h"
};
} // namespace WebCore
-
-#endif // JSCallbackData_h
* THE POSSIBILITY OF SUCH DAMAGE.
*/
-#ifndef JSCryptoAlgorithmBuilder_h
-#define JSCryptoAlgorithmBuilder_h
+#pragma once
+
+#if ENABLE(SUBTLE_CRYPTO)
#include <wtf/Forward.h>
#include <wtf/Noncopyable.h>
#include <wtf/Vector.h>
#include <wtf/text/WTFString.h>
-#if ENABLE(SUBTLE_CRYPTO)
-
namespace JSC {
class ExecState;
class JSObject;
} // namespace WebCore
#endif // ENABLE(SUBTLE_CRYPTO)
-#endif // JSCryptoAlgorithmBuilder_h
* THE POSSIBILITY OF SUCH DAMAGE.
*/
-#ifndef JSCryptoAlgorithmDictionary_h
-#define JSCryptoAlgorithmDictionary_h
+#pragma once
+
+#if ENABLE(SUBTLE_CRYPTO)
#include "CryptoAlgorithmIdentifier.h"
#include <wtf/RefPtr.h>
-#if ENABLE(SUBTLE_CRYPTO)
-
namespace JSC {
class ExecState;
class JSValue;
static RefPtr<CryptoAlgorithmParametersDeprecated> createParametersForExportKey(JSC::ExecState*, CryptoAlgorithmIdentifier, JSC::JSValue);
};
-}
+} // namespace WebCore
#endif // ENABLE(SUBTLE_CRYPTO)
-#endif // JSCryptoAlgorithmDictionary_h
* THE POSSIBILITY OF SUCH DAMAGE.
*/
-#ifndef JSCryptoKeySerializationJWK_h
-#define JSCryptoKeySerializationJWK_h
+#pragma once
+
+#if ENABLE(SUBTLE_CRYPTO)
#include "CryptoKeySerialization.h"
#include <heap/Strong.h>
#include <wtf/text/WTFString.h>
-#if ENABLE(SUBTLE_CRYPTO)
-
namespace JSC {
class ExecState;
class JSObject;
mutable String m_jwkAlgorithmName; // Stored when reconcileAlgorithm is called, and used later.
};
-}
+} // namespace WebCore
#endif // ENABLE(SUBTLE_CRYPTO)
-#endif // JSCryptoKeySerializationJWK_h
* THE POSSIBILITY OF SUCH DAMAGE.
*/
-#ifndef JSCryptoOperationData_h
-#define JSCryptoOperationData_h
+#pragma once
#if ENABLE(SUBTLE_CRYPTO)
} // namespace WebCore
#endif // ENABLE(SUBTLE_CRYPTO)
-#endif // JSCryptoOperationData_h
* THE POSSIBILITY OF SUCH DAMAGE.
*/
-#ifndef JSCustomElementInterface_h
-#define JSCustomElementInterface_h
+#pragma once
#if ENABLE(CUSTOM_ELEMENTS)
#include <wtf/text/AtomicStringHash.h>
namespace JSC {
-
class JSObject;
class PrivateName;
-
}
namespace WebCore {
} // namespace WebCore
-#endif
-
-#endif
+#endif // ENABLE(CUSTOM_ELEMENTS)
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
-#ifndef JSCustomXPathNSResolver_h
-#define JSCustomXPathNSResolver_h
+#pragma once
#include "XPathNSResolver.h"
#include <heap/Strong.h>
};
} // namespace WebCore
-
-#endif // JSCustomXPathNSResolver_h
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
-#ifndef JSDOMConstructor_h
-#define JSDOMConstructor_h
+#pragma once
#include "DOMConstructorWithDocument.h"
#include "JSDOMBinding.h"
}
} // namespace WebCore
-
-#endif // JSDOMConstructor_h
*
*/
-#ifndef JSDOMGlobalObject_h
-#define JSDOMGlobalObject_h
+#pragma once
#include "PlatformExportMacros.h"
#include "WebCoreJSBuiltinInternals.h"
JSDOMGlobalObject* toJSDOMGlobalObject(ScriptExecutionContext*, DOMWrapperWorld&);
} // namespace WebCore
-
-#endif // JSDOMGlobalObject_h
* THE POSSIBILITY OF SUCH DAMAGE.
*/
-#ifndef JSDOMGlobalObjectTask_h
-#define JSDOMGlobalObjectTask_h
+#pragma once
#include "JSDOMGlobalObject.h"
#include "ScriptExecutionContext.h"
};
} // namespace WebCore
-
-#endif // JSDOMGlobalObjectTask_h
* THE POSSIBILITY OF SUCH DAMAGE.
*/
-#ifndef JSDOMPromise_h
-#define JSDOMPromise_h
+#pragma once
#include "ActiveDOMCallback.h"
#include "JSDOMBinding.h"
reject(*exec, jsString(exec, result));
}
-}
-
-#endif // JSDOMPromise_h
+} // namespace WebCore
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
-#ifndef JSDOMWindowBase_h
-#define JSDOMWindowBase_h
+#pragma once
#include "JSDOMBinding.h"
#include "JSDOMGlobalObject.h"
WEBCORE_EXPORT JSDOMWindow* toJSDOMWindow(JSC::JSValue);
} // namespace WebCore
-
-#endif // JSDOMWindowBase_h
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
-#ifndef JSDOMWindowCustom_h
-#define JSDOMWindowCustom_h
+#pragma once
#include "JSDOMWindow.h"
#include "JSDOMWindowShell.h"
return static_cast<const JSDOMWindow*>(globalObject);
}
-}
-
-#endif // JSDOMWindowCustom_h
+} // namespace WebCore
* THE POSSIBILITY OF SUCH DAMAGE.
*/
-#ifndef JSDictionary_h
-#define JSDictionary_h
+#pragma once
#include "MessagePort.h"
#include <heap/Strong.h>
}
} // namespace WebCore
-
-#endif // JSDictionary_h
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
-#ifndef JSDocumentCustom_h
-#define JSDocumentCustom_h
+#pragma once
#include "JSDOMBinding.h"
#include "JSDocument.h"
void reportMemoryForDocumentIfFrameless(JSC::ExecState&, Document&);
} // namespace WebCore
-
-#endif // JSDocumentCustom_h
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
-#ifndef JSElementCustom_h
-#define JSElementCustom_h
+#pragma once
#include "JSDOMBinding.h"
#include "JSElement.h"
}
} // namespace WebCore
-
-#endif // JSElementCustom_h
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
-#ifndef JSErrorHandler_h
-#define JSErrorHandler_h
+#pragma once
#include "JSEventListener.h"
}
} // namespace WebCore
-
-#endif // JSErrorHandler_h
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
-#ifndef JSEventListener_h
-#define JSEventListener_h
+#pragma once
#include "DOMWrapperWorld.h"
#include "EventListener.h"
}
} // namespace WebCore
-
-#endif // JSEventListener_h
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
-#ifndef JSExceptionBase_h
-#define JSExceptionBase_h
+#pragma once
namespace JSC {
-
class JSValue;
-
-} // namespace JSC
+}
namespace WebCore {
ExceptionBase* toExceptionBase(JSC::JSValue);
} // namespace WebCore
-
-#endif // JSExceptionBase_h
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
-#ifndef JSImageConstructor_h
-#define JSImageConstructor_h
+#pragma once
namespace JSC {
class JSValue;
JSC::JSValue createImageConstructor(JSC::VM&, const JSDOMGlobalObject&);
} // namespace WebCore
-
-#endif // JSImageConstructor_h
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
-#ifndef JSLazyEventListener_h
-#define JSLazyEventListener_h
+#pragma once
#include "JSEventListener.h"
};
} // namespace WebCore
-
-#endif // JSLazyEventListener_h
* THE POSSIBILITY OF SUCH DAMAGE.
*/
-#ifndef JSMainThreadExecStateInstrumentation_h
-#define JSMainThreadExecStateInstrumentation_h
+#pragma once
#include "InspectorInstrumentation.h"
#include "JSMainThreadExecState.h"
}
} // namespace WebCore
-
-#endif // JSMainThreadExecStateInstrumentation_h
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
-#ifndef JSMediaListCustom_h
-#define JSMediaListCustom_h
+#pragma once
#include "CSSRule.h"
#include "CSSStyleSheet.h"
}
} // namespace WebCore
-
-#endif // JSMediaListCustom_h
* THE POSSIBILITY OF SUCH DAMAGE.
*/
-#ifndef JSMutationCallback_h
-#define JSMutationCallback_h
+#pragma once
#include "ActiveDOMCallback.h"
#include "DOMWrapperWorld.h"
};
} // namespace WebCore
-
-#endif
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
-#ifndef JSNodeListCustom_h
-#define JSNodeListCustom_h
+#pragma once
#include "JSDOMBinding.h"
#include "JSNodeList.h"
}
} // namespace WebCore
-
-#endif // JSNodeListCustom_h
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
-#ifndef JSPluginElementFunctions_h
-#define JSPluginElementFunctions_h
+#pragma once
#include "JSDOMBinding.h"
}
} // namespace WebCore
-
-#endif // JSPluginElementFunctions_h
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
-#ifndef JSReadableStreamPrivateConstructors_h
-#define JSReadableStreamPrivateConstructors_h
+#pragma once
#if ENABLE(READABLE_STREAM_API)
namespace JSC {
-
-struct ClassInfo;
class JSObject;
class VM;
-
}
namespace WebCore {
} // namespace WebCore
-#endif
-
-#endif // ReadableStreamConstructors_h
+#endif // ENABLE(READABLE_STREAM_API)
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
-#ifndef JSStyleSheetCustom_h
-#define JSStyleSheetCustom_h
+#pragma once
#include "CSSImportRule.h"
#include "CSSStyleSheet.h"
}
} // namespace WebCore
-
-#endif // JSStyleSheetCustom_h
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
-#ifndef JSTrackCustom_h
-#define JSTrackCustom_h
+#pragma once
#if ENABLE(VIDEO_TRACK)
return track;
}
-}
+} // namespace WebCore
-#endif
-#endif
+#endif // ENABLE(VIDEO_TRACK)
*
*/
-#ifndef JSWorkerGlobalScopeBase_h
-#define JSWorkerGlobalScopeBase_h
+#pragma once
#include "JSDOMGlobalObject.h"
#include "JSDOMWrapper.h"
JSWorkerGlobalScope* toJSWorkerGlobalScope(JSC::JSValue);
} // namespace WebCore
-
-#endif // JSWorkerGlobalScopeBase_h
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
-#ifndef ReadableStreamDefaultController_h
-#define ReadableStreamDefaultController_h
+#pragma once
#if ENABLE(READABLE_STREAM_API)
} // namespace WebCore
#endif // ENABLE(READABLE_STREAM_API)
-
-#endif // ReadableStreamDefaultController_h
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
-#ifndef ScheduledAction_h
-#define ScheduledAction_h
+#pragma once
#include "JSDOMBinding.h"
#include <heap/Strong.h>
};
} // namespace WebCore
-
-#endif // ScheduledAction_h
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
-#ifndef ScriptCachedFrameData_h
-#define ScriptCachedFrameData_h
+#pragma once
#include <heap/Strong.h>
#include <wtf/HashMap.h>
};
} // namespace WebCore
-
-#endif // ScriptCachedFrameData_h
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
-#ifndef ScriptController_h
-#define ScriptController_h
+#pragma once
#include "FrameLoaderTypes.h"
#include "JSDOMWindowShell.h"
};
} // namespace WebCore
-
-#endif // ScriptController_h
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
-#ifndef ScriptGlobalObject_h
-#define ScriptGlobalObject_h
+#pragma once
namespace JSC {
class ExecState;
};
} // namespace WebCore
-
-#endif // ScriptGlobalObject_h
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
-#ifndef ScriptSourceCode_h
-#define ScriptSourceCode_h
+#pragma once
#include "CachedResourceHandle.h"
#include "CachedScript.h"
private:
RefPtr<JSC::SourceProvider> m_provider;
-
JSC::SourceCode m_code;
-
CachedResourceHandle<CachedScript> m_cachedScript;
-
URL m_url;
-
};
} // namespace WebCore
-
-#endif // ScriptSourceCode_h
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
-#ifndef ScriptWrappable_h
-#define ScriptWrappable_h
+#pragma once
#include <heap/Weak.h>
};
} // namespace WebCore
-
-#endif // ScriptWrappable_h
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
-#ifndef ScriptWrappableInlines_h
-#define ScriptWrappableInlines_h
+#pragma once
#include "JSDOMWrapper.h"
#include <heap/Weak.h>
}
} // namespace WebCore
-
-#endif // ScriptWrappableInlines_h
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
-#ifndef WebCoreBuiltinNames_h
-#define WebCoreBuiltinNames_h
+#pragma once
#include <builtins/BuiltinUtils.h>
};
} // namespace WebCore
-
-#endif // WebCoreBuiltinNames_h
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
-#ifndef WebCoreJSClientData_h
-#define WebCoreJSClientData_h
+#pragma once
#include "DOMWrapperWorld.h"
#include "WebCoreBuiltinNames.h"
}
} // namespace WebCore
-
-#endif // WebCoreJSClientData_h
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
-#ifndef WebCoreTypedArrayController_h
-#define WebCoreTypedArrayController_h
+#pragma once
#include <runtime/JSGlobalObject.h>
#include <runtime/TypedArrayController.h>
};
} // namespace WebCore
-
-#endif // WebCoreTypedArrayController_h
-
* THE POSSIBILITY OF SUCH DAMAGE.
*/
-#ifndef CombinedFiltersAlphabet_h
-#define CombinedFiltersAlphabet_h
+#pragma once
#if ENABLE(CONTENT_EXTENSIONS)
} // namespace WebCore
#endif // ENABLE(CONTENT_EXTENSIONS)
-
-#endif // CombinedFiltersAlphabet_h
* THE POSSIBILITY OF SUCH DAMAGE.
*/
-#ifndef CombinedURLFilters_h
-#define CombinedURLFilters_h
+#pragma once
#if ENABLE(CONTENT_EXTENSIONS)
} // namespace WebCore
#endif // ENABLE(CONTENT_EXTENSIONS)
-
-#endif // CombinedURLFilters_h
* THE POSSIBILITY OF SUCH DAMAGE.
*/
-#ifndef CompiledContentExtension_h
-#define CompiledContentExtension_h
+#pragma once
#if ENABLE(CONTENT_EXTENSIONS)
} // namespace WebCore
#endif // ENABLE(CONTENT_EXTENSIONS)
-#endif // CompiledContentExtension_h
* THE POSSIBILITY OF SUCH DAMAGE.
*/
-#ifndef ContentExtension_h
-#define ContentExtension_h
-
-#include <wtf/Ref.h>
-#include <wtf/RefCounted.h>
-#include <wtf/RefPtr.h>
+#pragma once
#if ENABLE(CONTENT_EXTENSIONS)
#include "DFABytecodeInterpreter.h"
#include "StyleSheetContents.h"
+#include <wtf/Ref.h>
+#include <wtf/RefCounted.h>
+#include <wtf/RefPtr.h>
namespace WebCore {
} // namespace WebCore
#endif // ENABLE(CONTENT_EXTENSIONS)
-#endif // ContentExtension_h
* THE POSSIBILITY OF SUCH DAMAGE.
*/
-#ifndef ContentExtensionCompiler_h
-#define ContentExtensionCompiler_h
+#pragma once
#if ENABLE(CONTENT_EXTENSIONS)
} // namespace WebCore
#endif // ENABLE(CONTENT_EXTENSIONS)
-#endif // ContentExtensionCompiler_h
* THE POSSIBILITY OF SUCH DAMAGE.
*/
-#ifndef ContentExtensionError_h
-#define ContentExtensionError_h
+#pragma once
#if ENABLE(CONTENT_EXTENSIONS)
}
#endif // ENABLE(CONTENT_EXTENSIONS)
-#endif // ContentExtensionError_h
* THE POSSIBILITY OF SUCH DAMAGE.
*/
-#ifndef ContentExtensionParser_h
-#define ContentExtensionParser_h
+#pragma once
#if ENABLE(CONTENT_EXTENSIONS)
} // namespace WebCore
#endif // ENABLE(CONTENT_EXTENSIONS)
-
-#endif // ContentExtensionParser_h
* THE POSSIBILITY OF SUCH DAMAGE.
*/
-#ifndef ContentExtensionRule_h
-#define ContentExtensionRule_h
+#pragma once
#if ENABLE(CONTENT_EXTENSIONS)
};
} // namespace ContentExtensions
-
} // namespace WebCore
#endif // ENABLE(CONTENT_EXTENSIONS)
-
-#endif // ContentExtensionRule_h
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
* THE POSSIBILITY OF SUCH DAMAGE.
*/
-#ifndef ContentExtensionStyleSheet_h
-#define ContentExtensionStyleSheet_h
+
+#pragma once
#if ENABLE(CONTENT_EXTENSIONS)
} // namespace WebCore
#endif // ENABLE(CONTENT_EXTENSIONS)
-#endif // ContentExtensionStyleSheet_h
* THE POSSIBILITY OF SUCH DAMAGE.
*/
-#ifndef ContentExtensionsBackend_h
-#define ContentExtensionsBackend_h
+#pragma once
#if ENABLE(CONTENT_EXTENSIONS)
};
} // namespace ContentExtensions
-
} // namespace WebCore
#endif // ENABLE(CONTENT_EXTENSIONS)
-
-#endif // ContentExtensionsBackend_h
* THE POSSIBILITY OF SUCH DAMAGE.
*/
-#ifndef ContentExtensionsDebugging_h
-#define ContentExtensionsDebugging_h
-
-#include <wtf/Vector.h>
+#pragma once
#if ENABLE(CONTENT_EXTENSIONS)
+#include <wtf/Vector.h>
+
#define CONTENT_EXTENSIONS_STATE_MACHINE_DEBUGGING 0
#define CONTENT_EXTENSIONS_PERFORMANCE_REPORTING 0
#endif
#endif // ENABLE(CONTENT_EXTENSIONS)
-
-#endif // ContentExtensionsDebugging_h
* THE POSSIBILITY OF SUCH DAMAGE.
*/
-#ifndef DFA_h
-#define DFA_h
+#pragma once
#if ENABLE(CONTENT_EXTENSIONS)
dfa.transitionDestinations[position] = newTarget;
}
-}
-
+} // namespace ContentExtensions
} // namespace WebCore
#endif // ENABLE(CONTENT_EXTENSIONS)
-
-#endif // DFA_h
* THE POSSIBILITY OF SUCH DAMAGE.
*/
-#ifndef DFABytecode_h
-#define DFABytecode_h
+#pragma once
#if ENABLE(CONTENT_EXTENSIONS)
}
}
-} // namespace ContentExtensions
-
+} // namespace ContentExtensions
} // namespace WebCore
#endif // ENABLE(CONTENT_EXTENSIONS)
-
-#endif // DFABytecode_h
* THE POSSIBILITY OF SUCH DAMAGE.
*/
-#ifndef DFABytecodeCompiler_h
-#define DFABytecodeCompiler_h
+#pragma once
#if ENABLE(CONTENT_EXTENSIONS)
};
} // namespace ContentExtensions
-
} // namespace WebCore
#endif // ENABLE(CONTENT_EXTENSIONS)
-
-#endif // DFABytecodeCompiler_h
* THE POSSIBILITY OF SUCH DAMAGE.
*/
-#ifndef DFABytecodeInterpreter_h
-#define DFABytecodeInterpreter_h
+#pragma once
#if ENABLE(CONTENT_EXTENSIONS)
const DFABytecodeInterpreter::Actions* m_domainActions { nullptr };
};
-} // namespace ContentExtensions
-
+} // namespace ContentExtensions
} // namespace WebCore
#endif // ENABLE(CONTENT_EXTENSIONS)
-
-#endif // DFABytecodeInterpreter_h
* THE POSSIBILITY OF SUCH DAMAGE.
*/
-#ifndef DFACombiner_h
-#define DFACombiner_h
+#pragma once
#if ENABLE(CONTENT_EXTENSIONS)
m_dfas.append(WTFMove(dfa));
}
-}
-
+} // namespace ContentExtensions
} // namespace WebCore
-#endif
-
-#endif
+#endif // ENABLE(CONTENT_EXTENSIONS)
* THE POSSIBILITY OF SUCH DAMAGE.
*/
-#ifndef DFAMinimizer_h
-#define DFAMinimizer_h
+#pragma once
#if ENABLE(CONTENT_EXTENSIONS)
} // namespace WebCore
#endif // ENABLE(CONTENT_EXTENSIONS)
-
-#endif // DFAMinimizer_h
* THE POSSIBILITY OF SUCH DAMAGE.
*/
-#ifndef DFANode_h
-#define DFANode_h
+#pragma once
#if ENABLE(CONTENT_EXTENSIONS)
COMPILE_ASSERT(sizeof(DFANode) <= 16, Keep the DFANodes small);
-}
-
+} // namespace ContentExtensions
} // namespace WebCore
#endif // ENABLE(CONTENT_EXTENSIONS)
-
-#endif // DFANode_h
* THE POSSIBILITY OF SUCH DAMAGE.
*/
-#ifndef HashableActionList_h
-#define HashableActionList_h
+#pragma once
#include <wtf/Hasher.h>
#include <wtf/Vector.h>
};
} // namespace ContentExtensions
-
} // namespace WebCore
-
-#endif
* THE POSSIBILITY OF SUCH DAMAGE.
*/
-#ifndef ImmutableNFA_h
-#define ImmutableNFA_h
-
-#include <wtf/Vector.h>
+#pragma once
#if ENABLE(CONTENT_EXTENSIONS)
+#include <wtf/Vector.h>
+
namespace WebCore {
namespace ContentExtensions {
}
};
-}
-
+} // namespace ContentExtensions
} // namespace WebCore
#endif // ENABLE(CONTENT_EXTENSIONS)
-
-#endif // ImmutableNFA_h
* THE POSSIBILITY OF SUCH DAMAGE.
*/
-#ifndef ImmutableNFANodeBuilder_h
-#define ImmutableNFANodeBuilder_h
+#pragma once
#include "ImmutableNFA.h"
#include "MutableRangeList.h"
bool m_finalized { true };
};
-}
-
+} // namespace ContentExtensions
} // namespace WebCore
#endif // ENABLE(CONTENT_EXTENSIONS)
-
-#endif // ImmutableNFANodeBuilder_h
* THE POSSIBILITY OF SUCH DAMAGE.
*/
-#ifndef MutableRange_h
-#define MutableRange_h
+#pragma once
#if ENABLE(CONTENT_EXTENSIONS)
CharacterType last;
};
-}
-
+} // namespace ContentExtensions
} // namespace WebCore
#endif // ENABLE(CONTENT_EXTENSIONS)
-
-#endif // MutableRange_h
* THE POSSIBILITY OF SUCH DAMAGE.
*/
-#ifndef MutableRangeList_h
-#define MutableRangeList_h
+#pragma once
#include "MutableRange.h"
}
};
-}
-
+} // namespace ContentExtensions
} // namespace WebCore
#endif // ENABLE(CONTENT_EXTENSIONS)
-
-#endif // MutableRangeList_h
* THE POSSIBILITY OF SUCH DAMAGE.
*/
-#ifndef NFA_h
-#define NFA_h
+#pragma once
#if ENABLE(CONTENT_EXTENSIONS)
#endif
};
-}
-
+} // namespace ContentExtensions
} // namespace WebCore
#endif // ENABLE(CONTENT_EXTENSIONS)
-
-#endif // NFA_h
* THE POSSIBILITY OF SUCH DAMAGE.
*/
-#ifndef NFANode_h
-#define NFANode_h
+#pragma once
#if ENABLE(CONTENT_EXTENSIONS)
ActionList finalRuleIds;
};
-}
-
+} // namespace ContentExtensions
} // namespace WebCore
#endif // ENABLE(CONTENT_EXTENSIONS)
-
-#endif // NFANode_h
* THE POSSIBILITY OF SUCH DAMAGE.
*/
-#ifndef NFAToDFA_h
-#define NFAToDFA_h
+#pragma once
#if ENABLE(CONTENT_EXTENSIONS)
WEBCORE_EXPORT static DFA convert(NFA&);
};
-}
-
+} // namespace ContentExtensions
} // namespace WebCore
#endif // ENABLE(CONTENT_EXTENSIONS)
-
-#endif // NFAToDFA_h
* THE POSSIBILITY OF SUCH DAMAGE.
*/
-#ifndef Term_h
-#define Term_h
+#pragma once
#if ENABLE(CONTENT_EXTENSIONS)
} // namespace WebCore
#endif // ENABLE(CONTENT_EXTENSIONS)
-
-#endif // Term_h
* THE POSSIBILITY OF SUCH DAMAGE.
*/
-#ifndef URLFilterParser_h
-#define URLFilterParser_h
+#pragma once
#if ENABLE(CONTENT_EXTENSIONS)
};
} // namespace ContentExtensions
-
} // namespace WebCore
#endif // ENABLE(CONTENT_EXTENSIONS)
-
-#endif // URLFilterParser_h
*
*/
-#ifndef ActiveDOMObject_h
-#define ActiveDOMObject_h
+#pragma once
#include "ContextDestructionObserver.h"
#include <wtf/Assertions.h>
#endif
} // namespace WebCore
-
-#endif // ActiveDOMObject_h
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
-#ifndef AnimationEvent_h
-#define AnimationEvent_h
+#pragma once
#include "Event.h"
};
} // namespace WebCore
-
-#endif // AnimationEvent_h
*
*/
-#ifndef Attribute_h
-#define Attribute_h
+#pragma once
#include "QualifiedName.h"
}
} // namespace WebCore
-
-#endif // Attribute_h
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
-#ifndef AutocompleteErrorEvent_h
-#define AutocompleteErrorEvent_h
+#pragma once
#if ENABLE(REQUEST_AUTOCOMPLETE)
} // namespace WebCore
#endif // ENABLE(REQUEST_AUTOCOMPLETE)
-
-#endif // AutocompleteErrorEvent_h
*
*/
-#ifndef BeforeLoadEvent_h
-#define BeforeLoadEvent_h
+#pragma once
#include "Event.h"
#include "EventNames.h"
};
} // namespace WebCore
-
-#endif // BeforeLoadEvent_h
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
-#ifndef BeforeTextInsertedEvent_h
-#define BeforeTextInsertedEvent_h
+#pragma once
#include "Event.h"
} // namespace WebCore
SPECIALIZE_TYPE_TRAITS_EVENT(BeforeTextInsertedEvent)
-
-#endif
*
*/
-#ifndef BeforeUnloadEvent_h
-#define BeforeUnloadEvent_h
+#pragma once
#include "Event.h"
} // namespace WebCore
SPECIALIZE_TYPE_TRAITS_EVENT(BeforeUnloadEvent)
-
-#endif // BeforeUnloadEvent_h
*
*/
-#ifndef CDATASection_h
-#define CDATASection_h
+#pragma once
#include "Text.h"
SPECIALIZE_TYPE_TRAITS_BEGIN(WebCore::CDATASection)
static bool isType(const WebCore::Node& node) { return node.nodeType() == WebCore::Node::CDATA_SECTION_NODE; }
SPECIALIZE_TYPE_TRAITS_END()
-
-#endif // CDATASection_h
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
-#ifndef ChildListMutationScope_h
-#define ChildListMutationScope_h
+#pragma once
#include "Document.h"
#include "MutationObserver.h"
};
} // namespace WebCore
-
-#endif // ChildListMutationScope_h
*
*/
-#ifndef ChildNodeList_h
-#define ChildNodeList_h
+#pragma once
#include "CollectionIndexCache.h"
#include "NodeList.h"
};
} // namespace WebCore
-
-#endif // ChildNodeList_h
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
-#ifndef ClassCollection_h
-#define ClassCollection_h
+#pragma once
#include "CachedHTMLCollection.h"
#include "Element.h"
} // namespace WebCore
SPECIALIZE_TYPE_TRAITS_HTMLCOLLECTION(ClassCollection, ByClass)
-
-#endif // ClassCollection_h
*
*/
-#ifndef ClientRect_h
-#define ClientRect_h
+#pragma once
#include "FloatRect.h"
#include "ScriptWrappable.h"
};
} // namespace WebCore
-
-#endif // ClientRect_h
*
*/
-#ifndef ClientRectList_h
-#define ClientRectList_h
+#pragma once
#include "FloatQuad.h"
#include <wtf/Ref.h>
};
} // namespace WebCore
-
-#endif // ClientRectList_h
*
*/
-#ifndef ClipboardEvent_h
-#define ClipboardEvent_h
+#pragma once
#include "Event.h"
};
} // namespace WebCore
-
-#endif // ClipboardEvent_h
*
*/
-#ifndef Comment_h
-#define Comment_h
+#pragma once
#include "CharacterData.h"
SPECIALIZE_TYPE_TRAITS_BEGIN(WebCore::Comment)
static bool isType(const WebCore::Node& node) { return node.nodeType() == WebCore::Node::COMMENT_NODE; }
SPECIALIZE_TYPE_TRAITS_END()
-
-#endif // Comment_h
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
-#ifndef ComposedTreeAncestorIterator_h
-#define ComposedTreeAncestorIterator_h
+#pragma once
#include "HTMLSlotElement.h"
#include "PseudoElement.h"
return ComposedTreeAncestorAdapter(node);
}
-}
-
-#endif
+} // namespace WebCore
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
+#pragma once
+
#include "ElementAndTextDescendantIterator.h"
#include "ShadowRoot.h"
-#ifndef ComposedTreeIterator_h
-#define ComposedTreeIterator_h
-
namespace WebCore {
class HTMLSlotElement;
enum class ComposedTreeAsTextMode { Normal, WithPointers };
WEBCORE_EXPORT String composedTreeAsText(ContainerNode& root, ComposedTreeAsTextMode = ComposedTreeAsTextMode::Normal);
-}
-
-#endif
+} // namespace WebCore
*
*/
-#ifndef CompositionEvent_h
-#define CompositionEvent_h
+#pragma once
#include "UIEvent.h"
};
} // namespace WebCore
-
-#endif // CompositionEvent_h
*
*/
-#ifndef ContainerNode_h
-#define ContainerNode_h
+#pragma once
#include "CollectionType.h"
#include "ExceptionCodePlaceholder.h"
SPECIALIZE_TYPE_TRAITS_BEGIN(WebCore::ContainerNode)
static bool isType(const WebCore::Node& node) { return node.isContainerNode(); }
SPECIALIZE_TYPE_TRAITS_END()
-
-#endif // ContainerNode_h
*
*/
-#ifndef ContainerNodeAlgorithms_h
-#define ContainerNodeAlgorithms_h
+#pragma once
#include "Document.h"
#include "ElementIterator.h"
}
} // namespace WebCore
-
-#endif // ContainerNodeAlgorithms_h
*
*/
-#ifndef ContextDestructionObserver_h
-#define ContextDestructionObserver_h
+#pragma once
#include "PlatformExportMacros.h"
};
} // namespace WebCore
-
-#endif // ContextDestructionObserver_h
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
-#ifndef CurrentScriptIncrementer_h
-#define CurrentScriptIncrementer_h
+#pragma once
#include "Document.h"
#include "HTMLScriptElement.h"
bool m_isHTMLScriptElementOutsideShadowTree;
};
-}
-
-#endif
+} // namespace WebCore
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
-#ifndef CustomEvent_h
-#define CustomEvent_h
+#pragma once
#include "Event.h"
#include "SerializedScriptValue.h"
};
} // namespace WebCore
-
-#endif // CustomEvent_h
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
-#ifndef DOMCoreException_h
-#define DOMCoreException_h
+#pragma once
#include "ExceptionBase.h"
};
} // namespace WebCore
-
-#endif // DOMCoreException_h
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
-#ifndef DOMError_h
-#define DOMError_h
+#pragma once
#include <wtf/RefCounted.h>
#include <wtf/text/WTFString.h>
};
} // namespace WebCore
-
-#endif // DOMError_h
* THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*/
-#ifndef DOMNamedFlowCollection_h
-#define DOMNamedFlowCollection_h
+
+#pragma once
#include "NamedFlowCollection.h"
#include <wtf/ListHashSet.h>
};
} // namespace WebCore
-#endif
-
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
-#ifndef DOMStringList_h
-#define DOMStringList_h
+#pragma once
#include <wtf/RefCounted.h>
#include <wtf/Vector.h>
};
} // namespace WebCore
-
-#endif // DOMStringList_h
-
* THE POSSIBILITY OF SUCH DAMAGE.
*/
-#ifndef DOMStringMap_h
-#define DOMStringMap_h
+#pragma once
#include "DatasetDOMStringMap.h"
typedef DatasetDOMStringMap DOMStringMap;
} // namespace WebCore
-
-#endif // DOMStringMap_h
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
-#ifndef DOMTimeStamp_h
-#define DOMTimeStamp_h
+#pragma once
namespace WebCore {
}
} // namespace WebCore
-
-#endif // DOMTimeStamp_h
*
*/
-#ifndef DataTransfer_h
-#define DataTransfer_h
+#pragma once
#include "CachedResourceHandle.h"
#include "DataTransferAccessPolicy.h"
};
} // namespace WebCore
-
-#endif // DataTransfer_h
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
-#ifndef DataTransferAccessPolicy_h
-#define DataTransferAccessPolicy_h
+#pragma once
namespace WebCore {
Numb, ImageWritable, Writable, TypesReadable, Readable
};
-} // namespace
-
-#endif
+} // namespace WebCore
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
-#ifndef DataTransferItem_h
-#define DataTransferItem_h
+#pragma once
#if ENABLE(DATA_TRANSFER_ITEMS)
namespace WebCore {
class Blob;
-class File;
class StringCallback;
-class ScriptExecutionContext;
class DataTransferItem : public RefCounted<DataTransferItem> {
public:
} // namespace WebCore
#endif // ENABLE(DATA_TRANSFER_ITEMS)
-
-#endif // DataTransferItem_h
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
-#ifndef DecodedDataDocumentParser_h
-#define DecodedDataDocumentParser_h
+#pragma once
#include "DocumentParser.h"
void flush(DocumentWriter&) override;
};
-}
-
-#endif // DecodedDataDocumentParser_h
+} // namespace WebCore
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
-#ifndef DeviceMotionClient_h
-#define DeviceMotionClient_h
+#pragma once
#include "DeviceClient.h"
#include <wtf/Noncopyable.h>
void provideDeviceMotionTo(Page*, DeviceMotionClient*);
} // namespace WebCore
-
-#endif // DeviceMotionClient_h
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
-#ifndef DeviceMotionController_h
-#define DeviceMotionController_h
+#pragma once
#include "DeviceController.h"
#include <wtf/Noncopyable.h>
};
} // namespace WebCore
-
-#endif // DeviceMotionController_h
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
-#ifndef DeviceMotionData_h
-#define DeviceMotionData_h
+#pragma once
#include <wtf/RefCounted.h>
#include <wtf/RefPtr.h>
};
} // namespace WebCore
-
-#endif // DeviceMotionData_h
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
-#ifndef DeviceMotionEvent_h
-#define DeviceMotionEvent_h
+#pragma once
#include "Event.h"
};
} // namespace WebCore
-
-#endif // DeviceMotionEvent_h
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
-#ifndef DeviceOrientationClient_h
-#define DeviceOrientationClient_h
+#pragma once
#include "DeviceClient.h"
#include "PlatformExportMacros.h"
WEBCORE_EXPORT void provideDeviceOrientationTo(Page*, DeviceOrientationClient*);
} // namespace WebCore
-
-#endif // DeviceOrientationClient_h
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
-#ifndef DeviceOrientationController_h
-#define DeviceOrientationController_h
+#pragma once
#include "DeviceController.h"
#include <wtf/Noncopyable.h>
};
} // namespace WebCore
-
-#endif // DeviceOrientationController_h
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
-#ifndef DeviceOrientationData_h
-#define DeviceOrientationData_h
+#pragma once
#include "PlatformExportMacros.h"
#include <wtf/Ref.h>
};
} // namespace WebCore
-
-#endif // DeviceOrientationData_h
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
-#ifndef DeviceOrientationEvent_h
-#define DeviceOrientationEvent_h
+#pragma once
#include "Event.h"
};
} // namespace WebCore
-
-#endif // DeviceOrientationEvent_h
*
*/
-#ifndef DocumentEventQueue_h
-#define DocumentEventQueue_h
+#pragma once
#include "EventQueue.h"
#include <memory>
bool m_isClosed;
};
-}
-
-#endif // DocumentEventQueue_h
+} // namespace WebCore
*
*/
-#ifndef DocumentMarker_h
-#define DocumentMarker_h
+#pragma once
#include <wtf/Forward.h>
#include <wtf/RefCounted.h>
}
#endif
-class DocumentMarkerDetails : public RefCounted<DocumentMarkerDetails>
-{
+class DocumentMarkerDetails : public RefCounted<DocumentMarkerDetails> {
public:
DocumentMarkerDetails() { }
virtual ~DocumentMarkerDetails();
};
} // namespace WebCore
-
-#endif // DocumentMarker_h
*
*/
-#ifndef DocumentMarkerController_h
-#define DocumentMarkerController_h
+#pragma once
#include "DocumentMarker.h"
#include "IntRect.h"
#if ENABLE(TREE_DEBUGGING)
void showDocumentMarkers(const WebCore::DocumentMarkerController*);
#endif
-
-#endif // DocumentMarkerController_h
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
-#ifndef DocumentOrderedMap_h
-#define DocumentOrderedMap_h
+#pragma once
#include <wtf/HashMap.h>
#include <wtf/HashSet.h>
}
} // namespace WebCore
-
-#endif // DocumentOrderedMap_h
*
*/
-#ifndef DocumentParser_h
-#define DocumentParser_h
+#pragma once
#include <wtf/Forward.h>
#include <wtf/RefCounted.h>
};
} // namespace WebCore
-
-#endif // DocumentParser_h
*
*/
-#ifndef DocumentSharedObjectPool_h
-#define DocumentSharedObjectPool_h
+#pragma once
#include <memory>
#include <wtf/HashMap.h>
ShareableElementDataCache m_shareableElementDataCache;
};
-}
-
-#endif
+} // namespace WebCore
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
-#ifndef DocumentTiming_h
-#define DocumentTiming_h
+#pragma once
#if ENABLE(WEB_TIMING)
double domComplete;
};
-}
+} // namespace WebCore
-#endif
-
-#endif
+#endif // ENABLE(WEB_TIMING)
*
*/
-#ifndef DocumentType_h
-#define DocumentType_h
+#pragma once
#include "Node.h"
SPECIALIZE_TYPE_TRAITS_BEGIN(WebCore::DocumentType)
static bool isType(const WebCore::Node& node) { return node.nodeType() == WebCore::Node::DOCUMENT_TYPE_NODE; }
SPECIALIZE_TYPE_TRAITS_END()
-
-#endif
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
-#ifndef ElementAncestorIterator_h
-#define ElementAncestorIterator_h
+#pragma once
#include "ElementIterator.h"
return ElementAncestorConstIteratorAdapter<ElementType>(first);
}
-}
-
-#endif
+} // namespace WebCore
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
-#ifndef ElementAndTextDescendantIterator_h
-#define ElementAndTextDescendantIterator_h
+#pragma once
#include "Element.h"
#include "ElementIteratorAssertions.h"
return ElementAndTextDescendantIteratorAdapter(root);
}
-}
-#endif
+} // namespace WebCore
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
-#ifndef ElementChildIterator_h
-#define ElementChildIterator_h
+#pragma once
#include "ElementIterator.h"
return ElementChildConstIteratorAdapter<ElementType>(parent);
}
-}
-
-#endif
+} // namespace WebCore
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
-#ifndef ElementData_h
-#define ElementData_h
+#pragma once
#include "Attribute.h"
#include "SpaceSplitString.h"
SPECIALIZE_TYPE_TRAITS_BEGIN(WebCore::UniqueElementData)
static bool isType(const WebCore::ElementData& elementData) { return elementData.isUnique(); }
SPECIALIZE_TYPE_TRAITS_END()
-
-#endif // ElementData_h
-
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
-#ifndef ElementDescendantIterator_h
-#define ElementDescendantIterator_h
+#pragma once
#include "Element.h"
#include "ElementIteratorAssertions.h"
return ElementDescendantConstIteratorAdapter(root);
}
-}
+} // namespace WebCore
namespace std {
template <> struct iterator_traits<WebCore::ElementDescendantIterator> {
typedef const WebCore::Element value_type;
};
}
-#endif