Use #pragma once in inspector headers
https://bugs.webkit.org/show_bug.cgi?id=160861
Patch by Joseph Pecoraro <pecoraro@apple.com> on 2016-08-15
Reviewed by Mark Lam.
* inspector/*.h:
git-svn-id: http://svn.webkit.org/repository/webkit/trunk@204479 268f45cc-cd09-0410-ab3c-d52691b4dbfc
diff --git a/Source/JavaScriptCore/ChangeLog b/Source/JavaScriptCore/ChangeLog
index 0f778f4..0f10413 100644
--- a/Source/JavaScriptCore/ChangeLog
+++ b/Source/JavaScriptCore/ChangeLog
@@ -1,3 +1,12 @@
+2016-08-15 Joseph Pecoraro <pecoraro@apple.com>
+
+ Use #pragma once in inspector headers
+ https://bugs.webkit.org/show_bug.cgi?id=160861
+
+ Reviewed by Mark Lam.
+
+ * inspector/*.h:
+
2016-08-15 Daniel Bates <dabates@apple.com>
Cannot build WebKit for iOS device using Xcode 7.3/iOS 9.3 public SDK due to missing
diff --git a/Source/JavaScriptCore/inspector/ConsoleMessage.h b/Source/JavaScriptCore/inspector/ConsoleMessage.h
index 50abe77..4f06081 100644
--- a/Source/JavaScriptCore/inspector/ConsoleMessage.h
+++ b/Source/JavaScriptCore/inspector/ConsoleMessage.h
@@ -28,8 +28,7 @@
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
-#ifndef ConsoleMessage_h
-#define ConsoleMessage_h
+#pragma once
#include "ConsoleTypes.h"
#include "InspectorFrontendDispatchers.h"
@@ -93,5 +92,3 @@
};
} // namespace Inspector
-
-#endif // ConsoleMessage_h
diff --git a/Source/JavaScriptCore/inspector/ContentSearchUtilities.h b/Source/JavaScriptCore/inspector/ContentSearchUtilities.h
index 0a56833..7c01b90 100644
--- a/Source/JavaScriptCore/inspector/ContentSearchUtilities.h
+++ b/Source/JavaScriptCore/inspector/ContentSearchUtilities.h
@@ -26,8 +26,7 @@
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
-#ifndef ContentSearchUtilities_h
-#define ContentSearchUtilities_h
+#pragma once
#include "InspectorProtocolObjects.h"
#include <wtf/Vector.h>
@@ -53,5 +52,3 @@
} // namespace ContentSearchUtilities
} // namespace Inspector
-
-#endif // !defined(ContentSearchUtilities_h)
diff --git a/Source/JavaScriptCore/inspector/EventLoop.h b/Source/JavaScriptCore/inspector/EventLoop.h
index c06e72b..1625a6b 100644
--- a/Source/JavaScriptCore/inspector/EventLoop.h
+++ b/Source/JavaScriptCore/inspector/EventLoop.h
@@ -23,8 +23,7 @@
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
-#ifndef EventLoop_h
-#define EventLoop_h
+#pragma once
#include <wtf/Noncopyable.h>
@@ -54,5 +53,3 @@
};
} // namespace Inspector
-
-#endif // EventLoop_h
diff --git a/Source/JavaScriptCore/inspector/IdentifiersFactory.h b/Source/JavaScriptCore/inspector/IdentifiersFactory.h
index d81c79a..3a3b75a 100644
--- a/Source/JavaScriptCore/inspector/IdentifiersFactory.h
+++ b/Source/JavaScriptCore/inspector/IdentifiersFactory.h
@@ -23,8 +23,7 @@
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
-#ifndef IdentifiersFactory_h
-#define IdentifiersFactory_h
+#pragma once
#include <wtf/text/WTFString.h>
@@ -43,5 +42,3 @@
};
} // namespace Inspector
-
-#endif // !defined(IdentifiersFactory_h)
diff --git a/Source/JavaScriptCore/inspector/InjectedScript.h b/Source/JavaScriptCore/inspector/InjectedScript.h
index 966859e..4d22711 100644
--- a/Source/JavaScriptCore/inspector/InjectedScript.h
+++ b/Source/JavaScriptCore/inspector/InjectedScript.h
@@ -29,8 +29,7 @@
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
-#ifndef InjectedScript_h
-#define InjectedScript_h
+#pragma once
#include "InjectedScriptBase.h"
#include <wtf/Forward.h>
@@ -81,5 +80,3 @@
};
} // namespace Inspector
-
-#endif // InjectedScript_h
diff --git a/Source/JavaScriptCore/inspector/InjectedScriptBase.h b/Source/JavaScriptCore/inspector/InjectedScriptBase.h
index 5cd0db8..55dd0e5 100644
--- a/Source/JavaScriptCore/inspector/InjectedScriptBase.h
+++ b/Source/JavaScriptCore/inspector/InjectedScriptBase.h
@@ -29,8 +29,7 @@
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
-#ifndef InjectedScriptBase_h
-#define InjectedScriptBase_h
+#pragma once
#include "InspectorEnvironment.h"
#include "InspectorProtocolObjects.h"
@@ -74,5 +73,3 @@
};
} // namespace Inspector
-
-#endif // InjectedScriptBase_h
diff --git a/Source/JavaScriptCore/inspector/InjectedScriptHost.h b/Source/JavaScriptCore/inspector/InjectedScriptHost.h
index 27de142..d7713ed 100644
--- a/Source/JavaScriptCore/inspector/InjectedScriptHost.h
+++ b/Source/JavaScriptCore/inspector/InjectedScriptHost.h
@@ -23,8 +23,7 @@
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
-#ifndef InjectedScriptHost_h
-#define InjectedScriptHost_h
+#pragma once
#include "JSCJSValueInlines.h"
#include "inspector/PerGlobalObjectWrapperWorld.h"
@@ -49,5 +48,3 @@
};
} // namespace Inspector
-
-#endif // !defined(InjectedScriptHost_h)
diff --git a/Source/JavaScriptCore/inspector/InjectedScriptManager.h b/Source/JavaScriptCore/inspector/InjectedScriptManager.h
index 606d9f7..f1b7808 100644
--- a/Source/JavaScriptCore/inspector/InjectedScriptManager.h
+++ b/Source/JavaScriptCore/inspector/InjectedScriptManager.h
@@ -27,8 +27,7 @@
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
-#ifndef InjectedScriptManager_h
-#define InjectedScriptManager_h
+#pragma once
#include "InjectedScript.h"
#include "InjectedScriptHost.h"
@@ -82,5 +81,3 @@
};
} // namespace Inspector
-
-#endif // !defined(InjectedScriptManager_h)
diff --git a/Source/JavaScriptCore/inspector/InjectedScriptModule.h b/Source/JavaScriptCore/inspector/InjectedScriptModule.h
index a96e618..1efc0ac 100644
--- a/Source/JavaScriptCore/inspector/InjectedScriptModule.h
+++ b/Source/JavaScriptCore/inspector/InjectedScriptModule.h
@@ -29,8 +29,7 @@
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
-#ifndef InjectedScriptModule_h
-#define InjectedScriptModule_h
+#pragma once
#include "InjectedScriptBase.h"
#include <wtf/text/WTFString.h>
@@ -60,5 +59,3 @@
};
} // namespace Inspector
-
-#endif // InjectedScriptModule_h
diff --git a/Source/JavaScriptCore/inspector/InspectorAgentBase.h b/Source/JavaScriptCore/inspector/InspectorAgentBase.h
index d013bac..3a612ba 100644
--- a/Source/JavaScriptCore/inspector/InspectorAgentBase.h
+++ b/Source/JavaScriptCore/inspector/InspectorAgentBase.h
@@ -24,8 +24,7 @@
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
-#ifndef InspectorAgentBase_h
-#define InspectorAgentBase_h
+#pragma once
#include <wtf/text/WTFString.h>
@@ -83,5 +82,3 @@
};
} // namespace Inspector
-
-#endif // !defined(InspectorAgentBase_h)
diff --git a/Source/JavaScriptCore/inspector/InspectorAgentRegistry.h b/Source/JavaScriptCore/inspector/InspectorAgentRegistry.h
index 61ae9a0..1e847590 100644
--- a/Source/JavaScriptCore/inspector/InspectorAgentRegistry.h
+++ b/Source/JavaScriptCore/inspector/InspectorAgentRegistry.h
@@ -24,8 +24,7 @@
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
-#ifndef InspectorAgentRegistry_h
-#define InspectorAgentRegistry_h
+#pragma once
#include <wtf/Vector.h>
#include <wtf/text/WTFString.h>
@@ -66,5 +65,3 @@
};
} // namespace Inspector
-
-#endif // !defined(InspectorAgentRegistry_h)
diff --git a/Source/JavaScriptCore/inspector/InspectorBackendDispatcher.h b/Source/JavaScriptCore/inspector/InspectorBackendDispatcher.h
index a704d61..3176b2d 100644
--- a/Source/JavaScriptCore/inspector/InspectorBackendDispatcher.h
+++ b/Source/JavaScriptCore/inspector/InspectorBackendDispatcher.h
@@ -24,8 +24,7 @@
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
-#ifndef InspectorBackendDispatcher_h
-#define InspectorBackendDispatcher_h
+#pragma once
#include "InspectorFrontendRouter.h"
#include "InspectorProtocolTypes.h"
@@ -119,5 +118,3 @@
};
} // namespace Inspector
-
-#endif // !defined(InspectorBackendDispatcher_h)
diff --git a/Source/JavaScriptCore/inspector/InspectorEnvironment.h b/Source/JavaScriptCore/inspector/InspectorEnvironment.h
index 6fd470a..3b60c1b 100644
--- a/Source/JavaScriptCore/inspector/InspectorEnvironment.h
+++ b/Source/JavaScriptCore/inspector/InspectorEnvironment.h
@@ -23,8 +23,7 @@
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
-#ifndef InspectorEnvironment_h
-#define InspectorEnvironment_h
+#pragma once
#include "CallData.h"
@@ -58,5 +57,3 @@
};
} // namespace Inspector
-
-#endif // !defined(InspectorEnvironment_h)
diff --git a/Source/JavaScriptCore/inspector/InspectorFrontendChannel.h b/Source/JavaScriptCore/inspector/InspectorFrontendChannel.h
index 3ddad22..efdf4a0 100644
--- a/Source/JavaScriptCore/inspector/InspectorFrontendChannel.h
+++ b/Source/JavaScriptCore/inspector/InspectorFrontendChannel.h
@@ -23,8 +23,7 @@
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
-#ifndef InspectorFrontendChannel_h
-#define InspectorFrontendChannel_h
+#pragma once
#include <wtf/text/WTFString.h>
@@ -47,5 +46,3 @@
};
} // namespace Inspector
-
-#endif // !defined(InspectorFrontendChannel_h)
diff --git a/Source/JavaScriptCore/inspector/InspectorFrontendRouter.h b/Source/JavaScriptCore/inspector/InspectorFrontendRouter.h
index 9b24330..5872b6d 100644
--- a/Source/JavaScriptCore/inspector/InspectorFrontendRouter.h
+++ b/Source/JavaScriptCore/inspector/InspectorFrontendRouter.h
@@ -23,8 +23,7 @@
* THE POSSIBILITY OF SUCH DAMAGE.
*/
-#ifndef InspectorFrontendRouter_h
-#define InspectorFrontendRouter_h
+#pragma once
#include <wtf/Vector.h>
#include <wtf/text/WTFString.h>
@@ -55,5 +54,3 @@
};
} // namespace Inspector
-
-#endif // !defined(InspectorFrontendRouter_h)
diff --git a/Source/JavaScriptCore/inspector/InspectorProtocolTypes.h b/Source/JavaScriptCore/inspector/InspectorProtocolTypes.h
index 6e2f010..248e58a 100644
--- a/Source/JavaScriptCore/inspector/InspectorProtocolTypes.h
+++ b/Source/JavaScriptCore/inspector/InspectorProtocolTypes.h
@@ -24,8 +24,7 @@
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
-#ifndef InspectorProtocolTypes_h
-#define InspectorProtocolTypes_h
+#pragma once
#include "InspectorValues.h"
#include <wtf/Assertions.h>
@@ -179,5 +178,3 @@
using Protocol::BindingTraits;
} // namespace Inspector
-
-#endif // !defined(InspectorProtocolTypes_h)
diff --git a/Source/JavaScriptCore/inspector/InspectorValues.h b/Source/JavaScriptCore/inspector/InspectorValues.h
index d96d139..6687bba 100644
--- a/Source/JavaScriptCore/inspector/InspectorValues.h
+++ b/Source/JavaScriptCore/inspector/InspectorValues.h
@@ -29,8 +29,7 @@
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
-#ifndef InspectorValues_h
-#define InspectorValues_h
+#pragma once
#include "JSExportMacros.h"
#include <wtf/Assertions.h>
@@ -409,5 +408,3 @@
}
} // namespace Inspector
-
-#endif // !defined(InspectorValues_h)
diff --git a/Source/JavaScriptCore/inspector/JSGlobalObjectInspectorController.h b/Source/JavaScriptCore/inspector/JSGlobalObjectInspectorController.h
index 8d5c3f7..5a5843c 100644
--- a/Source/JavaScriptCore/inspector/JSGlobalObjectInspectorController.h
+++ b/Source/JavaScriptCore/inspector/JSGlobalObjectInspectorController.h
@@ -23,8 +23,7 @@
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
-#ifndef JSGlobalObjectInspectorController_h
-#define JSGlobalObjectInspectorController_h
+#pragma once
#include "InspectorAgentRegistry.h"
#include "InspectorEnvironment.h"
@@ -131,5 +130,3 @@
};
} // namespace Inspector
-
-#endif // !defined(JSGlobalObjectInspectorController_h)
diff --git a/Source/JavaScriptCore/inspector/JSGlobalObjectScriptDebugServer.h b/Source/JavaScriptCore/inspector/JSGlobalObjectScriptDebugServer.h
index 76b5d78..6c63be0 100644
--- a/Source/JavaScriptCore/inspector/JSGlobalObjectScriptDebugServer.h
+++ b/Source/JavaScriptCore/inspector/JSGlobalObjectScriptDebugServer.h
@@ -23,8 +23,7 @@
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
-#ifndef JSGlobalObjectScriptDebugServer_h
-#define JSGlobalObjectScriptDebugServer_h
+#pragma once
#include "ScriptDebugServer.h"
@@ -56,5 +55,3 @@
};
} // namespace Inspector
-
-#endif // JSGlobalObjectScriptDebugServer_h
diff --git a/Source/JavaScriptCore/inspector/JSInjectedScriptHost.h b/Source/JavaScriptCore/inspector/JSInjectedScriptHost.h
index d1cb37f..99efbf8 100644
--- a/Source/JavaScriptCore/inspector/JSInjectedScriptHost.h
+++ b/Source/JavaScriptCore/inspector/JSInjectedScriptHost.h
@@ -23,8 +23,7 @@
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
-#ifndef JSInjectedScriptHost_h
-#define JSInjectedScriptHost_h
+#pragma once
#include "JSDestructibleObject.h"
@@ -82,5 +81,3 @@
};
} // namespace Inspector
-
-#endif // !defined(JSInjectedScriptHost_h)
diff --git a/Source/JavaScriptCore/inspector/JSInjectedScriptHostPrototype.h b/Source/JavaScriptCore/inspector/JSInjectedScriptHostPrototype.h
index aa4963e..58e9e55 100644
--- a/Source/JavaScriptCore/inspector/JSInjectedScriptHostPrototype.h
+++ b/Source/JavaScriptCore/inspector/JSInjectedScriptHostPrototype.h
@@ -23,8 +23,7 @@
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
-#ifndef JSInjectedScriptHostPrototype_h
-#define JSInjectedScriptHostPrototype_h
+#pragma once
#include "JSObject.h"
@@ -58,5 +57,3 @@
};
} // namespace Inspector
-
-#endif // !defined(JSInjectedScriptHostPrototype_h)
diff --git a/Source/JavaScriptCore/inspector/JSJavaScriptCallFrame.h b/Source/JavaScriptCore/inspector/JSJavaScriptCallFrame.h
index 0f7335c..ad16137 100644
--- a/Source/JavaScriptCore/inspector/JSJavaScriptCallFrame.h
+++ b/Source/JavaScriptCore/inspector/JSJavaScriptCallFrame.h
@@ -23,8 +23,7 @@
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
-#ifndef JSJavaScriptCallFrame_h
-#define JSJavaScriptCallFrame_h
+#pragma once
#include "JSDestructibleObject.h"
#include "JavaScriptCallFrame.h"
@@ -94,5 +93,3 @@
JSJavaScriptCallFrame* toJSJavaScriptCallFrame(JSC::JSValue);
} // namespace Inspector
-
-#endif // !defined(JSJavaScriptCallFrame_h)
diff --git a/Source/JavaScriptCore/inspector/JSJavaScriptCallFramePrototype.h b/Source/JavaScriptCore/inspector/JSJavaScriptCallFramePrototype.h
index 0811c24..c69e94a 100644
--- a/Source/JavaScriptCore/inspector/JSJavaScriptCallFramePrototype.h
+++ b/Source/JavaScriptCore/inspector/JSJavaScriptCallFramePrototype.h
@@ -23,8 +23,7 @@
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
-#ifndef JSJavaScriptCallFramePrototype_h
-#define JSJavaScriptCallFramePrototype_h
+#pragma once
#include "JSObject.h"
@@ -58,5 +57,3 @@
};
} // namespace Inspector
-
-#endif // !defined(JSJavaScriptCallFramePrototype_h)
diff --git a/Source/JavaScriptCore/inspector/JavaScriptCallFrame.h b/Source/JavaScriptCore/inspector/JavaScriptCallFrame.h
index 8e6eae4..f9adbec 100644
--- a/Source/JavaScriptCore/inspector/JavaScriptCallFrame.h
+++ b/Source/JavaScriptCore/inspector/JavaScriptCallFrame.h
@@ -23,8 +23,7 @@
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
-#ifndef JavaScriptCallFrame_h
-#define JavaScriptCallFrame_h
+#pragma once
#include "JSCJSValueInlines.h"
#include "debugger/DebuggerCallFrame.h"
@@ -66,5 +65,3 @@
};
} // namespace Inspector
-
-#endif // JavaScriptCallFrame_h
diff --git a/Source/JavaScriptCore/inspector/PerGlobalObjectWrapperWorld.h b/Source/JavaScriptCore/inspector/PerGlobalObjectWrapperWorld.h
index bdd7db0..51adaed 100644
--- a/Source/JavaScriptCore/inspector/PerGlobalObjectWrapperWorld.h
+++ b/Source/JavaScriptCore/inspector/PerGlobalObjectWrapperWorld.h
@@ -23,8 +23,7 @@
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
-#ifndef PerGlobalObjectWrapperWorld_h
-#define PerGlobalObjectWrapperWorld_h
+#pragma once
#include "JSCJSValueInlines.h"
#include "Strong.h"
@@ -44,5 +43,3 @@
};
} // namespace Inspector
-
-#endif // !defined(PerGlobalObjectWrapperWorld_h)
diff --git a/Source/JavaScriptCore/inspector/ScriptArguments.h b/Source/JavaScriptCore/inspector/ScriptArguments.h
index 5a33f6d..50abd1b 100644
--- a/Source/JavaScriptCore/inspector/ScriptArguments.h
+++ b/Source/JavaScriptCore/inspector/ScriptArguments.h
@@ -29,8 +29,7 @@
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
-#ifndef ScriptArguments_h
-#define ScriptArguments_h
+#pragma once
#include <heap/Strong.h>
#include <wtf/Forward.h>
@@ -72,5 +71,3 @@
};
} // namespace Inspector
-
-#endif // ScriptArguments_h
diff --git a/Source/JavaScriptCore/inspector/ScriptBreakpoint.h b/Source/JavaScriptCore/inspector/ScriptBreakpoint.h
index 88a0380..5860417 100644
--- a/Source/JavaScriptCore/inspector/ScriptBreakpoint.h
+++ b/Source/JavaScriptCore/inspector/ScriptBreakpoint.h
@@ -27,8 +27,7 @@
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
-#ifndef ScriptBreakpoint_h
-#define ScriptBreakpoint_h
+#pragma once
#include <wtf/Vector.h>
#include <wtf/text/WTFString.h>
@@ -90,5 +89,3 @@
};
} // namespace Inspector
-
-#endif // !defined(ScriptBreakpoint_h)
diff --git a/Source/JavaScriptCore/inspector/ScriptCallFrame.h b/Source/JavaScriptCore/inspector/ScriptCallFrame.h
index 9776183..616fe43e 100644
--- a/Source/JavaScriptCore/inspector/ScriptCallFrame.h
+++ b/Source/JavaScriptCore/inspector/ScriptCallFrame.h
@@ -29,8 +29,7 @@
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
-#ifndef ScriptCallFrame_h
-#define ScriptCallFrame_h
+#pragma once
#include "DebuggerPrimitives.h"
#include "InspectorProtocolObjects.h"
@@ -63,5 +62,3 @@
};
} // namespace Inspector
-
-#endif // ScriptCallFrame_h
diff --git a/Source/JavaScriptCore/inspector/ScriptCallStack.h b/Source/JavaScriptCore/inspector/ScriptCallStack.h
index d2cbb65..ac6ac80 100644
--- a/Source/JavaScriptCore/inspector/ScriptCallStack.h
+++ b/Source/JavaScriptCore/inspector/ScriptCallStack.h
@@ -29,8 +29,7 @@
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
-#ifndef ScriptCallStack_h
-#define ScriptCallStack_h
+#pragma once
#include "InspectorProtocolObjects.h"
#include "ScriptCallFrame.h"
@@ -68,5 +67,3 @@
};
} // namespace Inspector
-
-#endif // ScriptCallStack_h
diff --git a/Source/JavaScriptCore/inspector/ScriptCallStackFactory.h b/Source/JavaScriptCore/inspector/ScriptCallStackFactory.h
index b0c0dc0..d87edbe 100644
--- a/Source/JavaScriptCore/inspector/ScriptCallStackFactory.h
+++ b/Source/JavaScriptCore/inspector/ScriptCallStackFactory.h
@@ -29,8 +29,7 @@
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
-#ifndef ScriptCallStackFactory_h
-#define ScriptCallStackFactory_h
+#pragma once
#include <wtf/Forward.h>
@@ -52,5 +51,3 @@
JS_EXPORT_PRIVATE Ref<ScriptArguments> createScriptArguments(JSC::ExecState*, unsigned skipArgumentCount);
} // namespace Inspector
-
-#endif // ScriptCallStackFactory_h
diff --git a/Source/JavaScriptCore/inspector/ScriptDebugListener.h b/Source/JavaScriptCore/inspector/ScriptDebugListener.h
index b75cddc..e71b32b 100644
--- a/Source/JavaScriptCore/inspector/ScriptDebugListener.h
+++ b/Source/JavaScriptCore/inspector/ScriptDebugListener.h
@@ -27,8 +27,7 @@
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
-#ifndef ScriptDebugListener_h
-#define ScriptDebugListener_h
+#pragma once
#include "debugger/Debugger.h"
#include <wtf/text/WTFString.h>
@@ -64,5 +63,3 @@
};
} // namespace Inspector
-
-#endif // ScriptDebugListener_h
diff --git a/Source/JavaScriptCore/inspector/ScriptDebugServer.h b/Source/JavaScriptCore/inspector/ScriptDebugServer.h
index dfd326b..8806fc5 100644
--- a/Source/JavaScriptCore/inspector/ScriptDebugServer.h
+++ b/Source/JavaScriptCore/inspector/ScriptDebugServer.h
@@ -27,8 +27,7 @@
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
-#ifndef ScriptDebugServer_h
-#define ScriptDebugServer_h
+#pragma once
#include "ScriptBreakpoint.h"
#include "ScriptDebugListener.h"
@@ -110,5 +109,3 @@
};
} // namespace Inspector
-
-#endif // ScriptDebugServer_h
diff --git a/Source/JavaScriptCore/inspector/agents/InspectorAgent.h b/Source/JavaScriptCore/inspector/agents/InspectorAgent.h
index b5efede..a9b0392 100644
--- a/Source/JavaScriptCore/inspector/agents/InspectorAgent.h
+++ b/Source/JavaScriptCore/inspector/agents/InspectorAgent.h
@@ -27,8 +27,7 @@
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
-#ifndef InspectorAgent_h
-#define InspectorAgent_h
+#pragma once
#include "InspectorBackendDispatchers.h"
#include "InspectorFrontendDispatchers.h"
@@ -80,5 +79,3 @@
};
} // namespace Inspector
-
-#endif // !defined(InspectorAgent_h)
diff --git a/Source/JavaScriptCore/inspector/agents/InspectorConsoleAgent.h b/Source/JavaScriptCore/inspector/agents/InspectorConsoleAgent.h
index 9451ec4..6edaf7c 100644
--- a/Source/JavaScriptCore/inspector/agents/InspectorConsoleAgent.h
+++ b/Source/JavaScriptCore/inspector/agents/InspectorConsoleAgent.h
@@ -23,8 +23,7 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
-#ifndef InspectorConsoleAgent_h
-#define InspectorConsoleAgent_h
+#pragma once
#include "InspectorBackendDispatchers.h"
#include "InspectorFrontendDispatchers.h"
@@ -92,5 +91,3 @@
};
} // namespace Inspector
-
-#endif // !defined(InspectorConsoleAgent_h)
diff --git a/Source/JavaScriptCore/inspector/agents/InspectorDebuggerAgent.h b/Source/JavaScriptCore/inspector/agents/InspectorDebuggerAgent.h
index 65415c9..6899583 100644
--- a/Source/JavaScriptCore/inspector/agents/InspectorDebuggerAgent.h
+++ b/Source/JavaScriptCore/inspector/agents/InspectorDebuggerAgent.h
@@ -27,8 +27,7 @@
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
-#ifndef InspectorDebuggerAgent_h
-#define InspectorDebuggerAgent_h
+#pragma once
#include "InspectorBackendDispatchers.h"
#include "InspectorFrontendDispatchers.h"
@@ -171,5 +170,3 @@
};
} // namespace Inspector
-
-#endif // !defined(InspectorDebuggerAgent_h)
diff --git a/Source/JavaScriptCore/inspector/agents/InspectorHeapAgent.h b/Source/JavaScriptCore/inspector/agents/InspectorHeapAgent.h
index f7eaf9a..18e8dc3 100644
--- a/Source/JavaScriptCore/inspector/agents/InspectorHeapAgent.h
+++ b/Source/JavaScriptCore/inspector/agents/InspectorHeapAgent.h
@@ -23,8 +23,7 @@
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
-#ifndef InspectorHeapAgent_h
-#define InspectorHeapAgent_h
+#pragma once
#include "HeapSnapshot.h"
#include "InspectorBackendDispatchers.h"
@@ -82,5 +81,3 @@
};
} // namespace Inspector
-
-#endif // InspectorHeapAgent_h
diff --git a/Source/JavaScriptCore/inspector/agents/InspectorRuntimeAgent.h b/Source/JavaScriptCore/inspector/agents/InspectorRuntimeAgent.h
index 4dac39f..4b87cad 100644
--- a/Source/JavaScriptCore/inspector/agents/InspectorRuntimeAgent.h
+++ b/Source/JavaScriptCore/inspector/agents/InspectorRuntimeAgent.h
@@ -29,8 +29,7 @@
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
-#ifndef InspectorRuntimeAgent_h
-#define InspectorRuntimeAgent_h
+#pragma once
#include "InspectorBackendDispatchers.h"
#include "InspectorFrontendDispatchers.h"
@@ -96,5 +95,3 @@
};
} // namespace Inspector
-
-#endif // InspectorRuntimeAgent_h
diff --git a/Source/JavaScriptCore/inspector/agents/InspectorScriptProfilerAgent.h b/Source/JavaScriptCore/inspector/agents/InspectorScriptProfilerAgent.h
index 62860be..598a966 100644
--- a/Source/JavaScriptCore/inspector/agents/InspectorScriptProfilerAgent.h
+++ b/Source/JavaScriptCore/inspector/agents/InspectorScriptProfilerAgent.h
@@ -23,8 +23,7 @@
* THE POSSIBILITY OF SUCH DAMAGE.
*/
-#ifndef InspectorScriptProfilerAgent_h
-#define InspectorScriptProfilerAgent_h
+#pragma once
#include "InspectorBackendDispatchers.h"
#include "InspectorFrontendDispatchers.h"
@@ -82,5 +81,3 @@
};
} // namespace Inspector
-
-#endif // InspectorScriptProfilerAgent_h
diff --git a/Source/JavaScriptCore/inspector/agents/JSGlobalObjectConsoleAgent.h b/Source/JavaScriptCore/inspector/agents/JSGlobalObjectConsoleAgent.h
index c069c82..91dade3 100644
--- a/Source/JavaScriptCore/inspector/agents/JSGlobalObjectConsoleAgent.h
+++ b/Source/JavaScriptCore/inspector/agents/JSGlobalObjectConsoleAgent.h
@@ -23,8 +23,7 @@
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
-#ifndef JSGlobalObjectConsoleAgent_h
-#define JSGlobalObjectConsoleAgent_h
+#pragma once
#include "InspectorConsoleAgent.h"
#include "JSGlobalObjectScriptDebugServer.h"
@@ -44,5 +43,3 @@
};
} // namespace Inspector
-
-#endif // !defined(JSGlobalObjectConsoleAgent_h)
diff --git a/Source/JavaScriptCore/inspector/agents/JSGlobalObjectDebuggerAgent.h b/Source/JavaScriptCore/inspector/agents/JSGlobalObjectDebuggerAgent.h
index 0c67925..5476f55 100644
--- a/Source/JavaScriptCore/inspector/agents/JSGlobalObjectDebuggerAgent.h
+++ b/Source/JavaScriptCore/inspector/agents/JSGlobalObjectDebuggerAgent.h
@@ -23,8 +23,7 @@
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
-#ifndef JSGlobalObjectDebuggerAgent_h
-#define JSGlobalObjectDebuggerAgent_h
+#pragma once
#include "InspectorDebuggerAgent.h"
#include "JSGlobalObjectScriptDebugServer.h"
@@ -54,5 +53,3 @@
};
} // namespace Inspector
-
-#endif // !defined(JSGlobalObjectDebuggerAgent_h)
diff --git a/Source/JavaScriptCore/inspector/agents/JSGlobalObjectRuntimeAgent.h b/Source/JavaScriptCore/inspector/agents/JSGlobalObjectRuntimeAgent.h
index 3880e9f..06809ad 100644
--- a/Source/JavaScriptCore/inspector/agents/JSGlobalObjectRuntimeAgent.h
+++ b/Source/JavaScriptCore/inspector/agents/JSGlobalObjectRuntimeAgent.h
@@ -23,8 +23,7 @@
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
-#ifndef JSGlobalObjectRuntimeAgent_h
-#define JSGlobalObjectRuntimeAgent_h
+#pragma once
#include "InspectorRuntimeAgent.h"
@@ -54,5 +53,3 @@
};
} // namespace Inspector
-
-#endif // !defined(JSGlobalObjectRuntimeAgent_h)
diff --git a/Source/JavaScriptCore/inspector/augmentable/AlternateDispatchableAgent.h b/Source/JavaScriptCore/inspector/augmentable/AlternateDispatchableAgent.h
index e03dbad..cd3f3c3 100644
--- a/Source/JavaScriptCore/inspector/augmentable/AlternateDispatchableAgent.h
+++ b/Source/JavaScriptCore/inspector/augmentable/AlternateDispatchableAgent.h
@@ -23,8 +23,7 @@
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
-#ifndef AlternateDispatchableAgent_h
-#define AlternateDispatchableAgent_h
+#pragma once
#if ENABLE(INSPECTOR_ALTERNATE_DISPATCHERS)
@@ -69,5 +68,3 @@
} // namespace Inspector
#endif // ENABLE(INSPECTOR_ALTERNATE_DISPATCHERS)
-
-#endif // AlternateDispatchableAgent_h
diff --git a/Source/JavaScriptCore/inspector/augmentable/AugmentableInspectorController.h b/Source/JavaScriptCore/inspector/augmentable/AugmentableInspectorController.h
index 348c754..7025f23 100644
--- a/Source/JavaScriptCore/inspector/augmentable/AugmentableInspectorController.h
+++ b/Source/JavaScriptCore/inspector/augmentable/AugmentableInspectorController.h
@@ -23,8 +23,7 @@
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
-#ifndef AugmentableInspectorController_h
-#define AugmentableInspectorController_h
+#pragma once
#if ENABLE(INSPECTOR_ALTERNATE_DISPATCHERS)
@@ -53,5 +52,3 @@
} // namespace Inspector
#endif // ENABLE(INSPECTOR_ALTERNATE_DISPATCHERS)
-
-#endif // !defined(AugmentableInspectorController_h)
diff --git a/Source/JavaScriptCore/inspector/augmentable/AugmentableInspectorControllerClient.h b/Source/JavaScriptCore/inspector/augmentable/AugmentableInspectorControllerClient.h
index 8245a6f..7124fca 100644
--- a/Source/JavaScriptCore/inspector/augmentable/AugmentableInspectorControllerClient.h
+++ b/Source/JavaScriptCore/inspector/augmentable/AugmentableInspectorControllerClient.h
@@ -23,8 +23,7 @@
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
-#ifndef AugmentableInspectorControllerClient_h
-#define AugmentableInspectorControllerClient_h
+#pragma once
#if ENABLE(INSPECTOR_ALTERNATE_DISPATCHERS)
@@ -41,5 +40,3 @@
} // namespace Inspector
#endif // ENABLE(INSPECTOR_ALTERNATE_DISPATCHERS)
-
-#endif // !defined(AugmentableInspectorControllerClient_h)
diff --git a/Source/JavaScriptCore/inspector/remote/RemoteAutomationTarget.h b/Source/JavaScriptCore/inspector/remote/RemoteAutomationTarget.h
index ce46f02..0b174fd 100644
--- a/Source/JavaScriptCore/inspector/remote/RemoteAutomationTarget.h
+++ b/Source/JavaScriptCore/inspector/remote/RemoteAutomationTarget.h
@@ -23,10 +23,9 @@
* THE POSSIBILITY OF SUCH DAMAGE.
*/
-#if ENABLE(REMOTE_INSPECTOR)
+#pragma once
-#ifndef RemoteAutomationTarget_h
-#define RemoteAutomationTarget_h
+#if ENABLE(REMOTE_INSPECTOR)
#include "RemoteControllableTarget.h"
#include <wtf/text/WTFString.h>
@@ -54,6 +53,4 @@
SPECIALIZE_TYPE_TRAITS_CONTROLLABLE_TARGET(Inspector::RemoteAutomationTarget, Automation)
-#endif // RemoteAutomationTarget_h
-
#endif // ENABLE(REMOTE_INSPECTOR)
diff --git a/Source/JavaScriptCore/inspector/remote/RemoteConnectionToTarget.h b/Source/JavaScriptCore/inspector/remote/RemoteConnectionToTarget.h
index 192ca0e..d08e079 100644
--- a/Source/JavaScriptCore/inspector/remote/RemoteConnectionToTarget.h
+++ b/Source/JavaScriptCore/inspector/remote/RemoteConnectionToTarget.h
@@ -23,10 +23,9 @@
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
-#if ENABLE(REMOTE_INSPECTOR)
+#pragma once
-#ifndef RemoteConnectionToTarget_h
-#define RemoteConnectionToTarget_h
+#if ENABLE(REMOTE_INSPECTOR)
#import "InspectorFrontendChannel.h"
#import "RemoteConnectionToTarget.h"
@@ -93,6 +92,4 @@
} // namespace Inspector
-#endif // RemoteConnectionToTarget_h
-
#endif // ENABLE(REMOTE_INSPECTOR)
diff --git a/Source/JavaScriptCore/inspector/remote/RemoteControllableTarget.h b/Source/JavaScriptCore/inspector/remote/RemoteControllableTarget.h
index 349ad9e..d65faea 100644
--- a/Source/JavaScriptCore/inspector/remote/RemoteControllableTarget.h
+++ b/Source/JavaScriptCore/inspector/remote/RemoteControllableTarget.h
@@ -23,10 +23,9 @@
* THE POSSIBILITY OF SUCH DAMAGE.
*/
-#if ENABLE(REMOTE_INSPECTOR)
+#pragma once
-#ifndef RemoteControllableTarget_h
-#define RemoteControllableTarget_h
+#if ENABLE(REMOTE_INSPECTOR)
#include <CoreFoundation/CFRunLoop.h>
#include <wtf/TypeCasts.h>
@@ -67,6 +66,4 @@
static bool isType(const Inspector::RemoteControllableTarget& target) { return target.type() == Inspector::RemoteControllableTarget::Type::ToClassType; } \
SPECIALIZE_TYPE_TRAITS_END()
-#endif // RemoteControllableTarget_h
-
#endif // ENABLE(REMOTE_INSPECTOR)
diff --git a/Source/JavaScriptCore/inspector/remote/RemoteInspectionTarget.h b/Source/JavaScriptCore/inspector/remote/RemoteInspectionTarget.h
index f644e78..3852fcc 100644
--- a/Source/JavaScriptCore/inspector/remote/RemoteInspectionTarget.h
+++ b/Source/JavaScriptCore/inspector/remote/RemoteInspectionTarget.h
@@ -23,10 +23,9 @@
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
-#if ENABLE(REMOTE_INSPECTOR)
+#pragma once
-#ifndef RemoteInspectionTarget_h
-#define RemoteInspectionTarget_h
+#if ENABLE(REMOTE_INSPECTOR)
#include "RemoteControllableTarget.h"
#include <wtf/RetainPtr.h>
@@ -73,6 +72,4 @@
}
SPECIALIZE_TYPE_TRAITS_END()
-#endif // RemoteInspectionTarget_h
-
#endif // ENABLE(REMOTE_INSPECTOR)
diff --git a/Source/JavaScriptCore/inspector/remote/RemoteInspector.h b/Source/JavaScriptCore/inspector/remote/RemoteInspector.h
index c1eeb41..73c8aa3 100644
--- a/Source/JavaScriptCore/inspector/remote/RemoteInspector.h
+++ b/Source/JavaScriptCore/inspector/remote/RemoteInspector.h
@@ -23,10 +23,9 @@
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
-#if ENABLE(REMOTE_INSPECTOR)
+#pragma once
-#ifndef RemoteInspector_h
-#define RemoteInspector_h
+#if ENABLE(REMOTE_INSPECTOR)
#import "RemoteInspectorXPCConnection.h"
#import <wtf/Forward.h>
@@ -151,6 +150,4 @@
} // namespace Inspector
-#endif // RemoteInspector_h
-
#endif // ENABLE(REMOTE_INSPECTOR)
diff --git a/Source/JavaScriptCore/inspector/remote/RemoteInspectorConstants.h b/Source/JavaScriptCore/inspector/remote/RemoteInspectorConstants.h
index db1806c..700657b 100644
--- a/Source/JavaScriptCore/inspector/remote/RemoteInspectorConstants.h
+++ b/Source/JavaScriptCore/inspector/remote/RemoteInspectorConstants.h
@@ -23,8 +23,7 @@
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
-#ifndef RemoteInspectorConstants_h
-#define RemoteInspectorConstants_h
+#pragma once
// WIRConstants are "Web Inspector Relay" constants shared between
// the WebInspector framework on the OS X side, webinspectord, and
@@ -101,5 +100,3 @@
#define WIRProxyApplicationParentAuditDataKey @"WIRProxyApplicationParentAuditData"
#define WIRProxyApplicationSetupMessage @"WIRProxyApplicationSetupMessage"
#define WIRProxyApplicationSetupResponseMessage @"WIRProxyApplicationSetupResponseMessage"
-
-#endif
diff --git a/Source/JavaScriptCore/inspector/remote/RemoteInspectorXPCConnection.h b/Source/JavaScriptCore/inspector/remote/RemoteInspectorXPCConnection.h
index 366cce0..10eac17 100644
--- a/Source/JavaScriptCore/inspector/remote/RemoteInspectorXPCConnection.h
+++ b/Source/JavaScriptCore/inspector/remote/RemoteInspectorXPCConnection.h
@@ -23,10 +23,9 @@
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
-#if ENABLE(REMOTE_INSPECTOR)
+#pragma once
-#ifndef RemoteInspectorXPCConnection_h
-#define RemoteInspectorXPCConnection_h
+#if ENABLE(REMOTE_INSPECTOR)
#import <dispatch/dispatch.h>
#import <wtf/Lock.h>
@@ -75,6 +74,4 @@
} // namespace Inspector
-#endif // RemoteInspectorXPCConnection_h
-
#endif // ENABLE(REMOTE_INSPECTOR)
diff --git a/Source/WebCore/ChangeLog b/Source/WebCore/ChangeLog
index df44b14..af02b99 100644
--- a/Source/WebCore/ChangeLog
+++ b/Source/WebCore/ChangeLog
@@ -1,3 +1,12 @@
+2016-08-15 Joseph Pecoraro <pecoraro@apple.com>
+
+ Use #pragma once in inspector headers
+ https://bugs.webkit.org/show_bug.cgi?id=160861
+
+ Reviewed by Mark Lam.
+
+ * inspector/*.h:
+
2016-08-15 Keith Rollin <krollin@apple.com>
Rename LOG_ALWAYS
diff --git a/Source/WebCore/inspector/CommandLineAPIHost.h b/Source/WebCore/inspector/CommandLineAPIHost.h
index bea9e5d..3bcc07e 100644
--- a/Source/WebCore/inspector/CommandLineAPIHost.h
+++ b/Source/WebCore/inspector/CommandLineAPIHost.h
@@ -27,8 +27,7 @@
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
-#ifndef CommandLineAPIHost_h
-#define CommandLineAPIHost_h
+#pragma once
#include <inspector/PerGlobalObjectWrapperWorld.h>
#include <wtf/RefCounted.h>
@@ -114,5 +113,3 @@
};
} // namespace WebCore
-
-#endif // !defined(CommandLineAPIHost_h)
diff --git a/Source/WebCore/inspector/CommandLineAPIModule.h b/Source/WebCore/inspector/CommandLineAPIModule.h
index 281cb93..fab3927 100644
--- a/Source/WebCore/inspector/CommandLineAPIModule.h
+++ b/Source/WebCore/inspector/CommandLineAPIModule.h
@@ -23,8 +23,7 @@
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
-#ifndef CommandLineAPIModule_h
-#define CommandLineAPIModule_h
+#pragma once
#include <inspector/InjectedScriptModule.h>
@@ -41,5 +40,3 @@
};
} // namespace WebCore
-
-#endif // !defined(CommandLineAPIModule_h)
diff --git a/Source/WebCore/inspector/DOMEditor.h b/Source/WebCore/inspector/DOMEditor.h
index 99d9ffd..4c99eba 100644
--- a/Source/WebCore/inspector/DOMEditor.h
+++ b/Source/WebCore/inspector/DOMEditor.h
@@ -28,8 +28,7 @@
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
-#ifndef DOMEditor_h
-#define DOMEditor_h
+#pragma once
#include "ExceptionCode.h"
@@ -81,5 +80,3 @@
};
} // namespace WebCore
-
-#endif // !defined(DOMEditor_h)
diff --git a/Source/WebCore/inspector/DOMPatchSupport.h b/Source/WebCore/inspector/DOMPatchSupport.h
index dd9532a..6e0147f 100644
--- a/Source/WebCore/inspector/DOMPatchSupport.h
+++ b/Source/WebCore/inspector/DOMPatchSupport.h
@@ -28,11 +28,9 @@
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
-#ifndef DOMPatchSupport_h
-#define DOMPatchSupport_h
+#pragma once
#include "ExceptionCode.h"
-
#include <wtf/HashMap.h>
#include <wtf/Vector.h>
#include <wtf/text/WTFString.h>
@@ -78,5 +76,3 @@
};
} // namespace WebCore
-
-#endif // !defined(DOMPatchSupport_h)
diff --git a/Source/WebCore/inspector/InspectorApplicationCacheAgent.h b/Source/WebCore/inspector/InspectorApplicationCacheAgent.h
index f5bedf9..e8ba873 100644
--- a/Source/WebCore/inspector/InspectorApplicationCacheAgent.h
+++ b/Source/WebCore/inspector/InspectorApplicationCacheAgent.h
@@ -22,8 +22,7 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
-#ifndef InspectorApplicationCacheAgent_h
-#define InspectorApplicationCacheAgent_h
+#pragma once
#include "ApplicationCacheHost.h"
#include "InspectorWebAgentBase.h"
@@ -77,4 +76,3 @@
} // namespace WebCore
-#endif // InspectorApplicationCacheAgent_h
diff --git a/Source/WebCore/inspector/InspectorCSSAgent.h b/Source/WebCore/inspector/InspectorCSSAgent.h
index 80b43e1..4428019 100644
--- a/Source/WebCore/inspector/InspectorCSSAgent.h
+++ b/Source/WebCore/inspector/InspectorCSSAgent.h
@@ -23,8 +23,7 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
-#ifndef InspectorCSSAgent_h
-#define InspectorCSSAgent_h
+#pragma once
#include "CSSSelector.h"
#include "ContentSecurityPolicy.h"
@@ -185,5 +184,3 @@
};
} // namespace WebCore
-
-#endif // !defined(InspectorCSSAgent_h)
diff --git a/Source/WebCore/inspector/InspectorClient.h b/Source/WebCore/inspector/InspectorClient.h
index adda136..f1fa9b8 100644
--- a/Source/WebCore/inspector/InspectorClient.h
+++ b/Source/WebCore/inspector/InspectorClient.h
@@ -24,8 +24,7 @@
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
-#ifndef InspectorClient_h
-#define InspectorClient_h
+#pragma once
#include <wtf/Forward.h>
@@ -68,5 +67,3 @@
};
} // namespace WebCore
-
-#endif // !defined(InspectorClient_h)
diff --git a/Source/WebCore/inspector/InspectorConsoleInstrumentation.h b/Source/WebCore/inspector/InspectorConsoleInstrumentation.h
index a0170e8..964c9af 100644
--- a/Source/WebCore/inspector/InspectorConsoleInstrumentation.h
+++ b/Source/WebCore/inspector/InspectorConsoleInstrumentation.h
@@ -29,8 +29,7 @@
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
-#ifndef InspectorConsoleInstrumentation_h
-#define InspectorConsoleInstrumentation_h
+#pragma once
#include "InspectorInstrumentation.h"
#include <inspector/ScriptArguments.h>
@@ -91,4 +90,3 @@
} // namespace WebCore
-#endif // !defined(InspectorConsoleInstrumentation_h)
diff --git a/Source/WebCore/inspector/InspectorController.h b/Source/WebCore/inspector/InspectorController.h
index f15d6e7..8363738 100644
--- a/Source/WebCore/inspector/InspectorController.h
+++ b/Source/WebCore/inspector/InspectorController.h
@@ -29,8 +29,7 @@
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
-#ifndef InspectorController_h
-#define InspectorController_h
+#pragma once
#include "InspectorOverlay.h"
#include "PageScriptDebugServer.h"
@@ -150,5 +149,3 @@
};
} // namespace WebCore
-
-#endif // !defined(InspectorController_h)
diff --git a/Source/WebCore/inspector/InspectorDOMAgent.h b/Source/WebCore/inspector/InspectorDOMAgent.h
index cc9715c..e68c4499 100644
--- a/Source/WebCore/inspector/InspectorDOMAgent.h
+++ b/Source/WebCore/inspector/InspectorDOMAgent.h
@@ -27,8 +27,7 @@
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
-#ifndef InspectorDOMAgent_h
-#define InspectorDOMAgent_h
+#pragma once
#include "EventTarget.h"
#include "InspectorWebAgentBase.h"
@@ -280,5 +279,3 @@
};
} // namespace WebCore
-
-#endif // !defined(InspectorDOMAgent_h)
diff --git a/Source/WebCore/inspector/InspectorDOMDebuggerAgent.h b/Source/WebCore/inspector/InspectorDOMDebuggerAgent.h
index 071ff1d..2e1dda8 100644
--- a/Source/WebCore/inspector/InspectorDOMDebuggerAgent.h
+++ b/Source/WebCore/inspector/InspectorDOMDebuggerAgent.h
@@ -29,8 +29,7 @@
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
-#ifndef InspectorDOMDebuggerAgent_h
-#define InspectorDOMDebuggerAgent_h
+#pragma once
#include "InspectorWebAgentBase.h"
#include <inspector/InspectorBackendDispatchers.h>
@@ -110,5 +109,3 @@
};
} // namespace WebCore
-
-#endif // !defined(InspectorDOMDebuggerAgent_h)
diff --git a/Source/WebCore/inspector/InspectorDOMStorageAgent.h b/Source/WebCore/inspector/InspectorDOMStorageAgent.h
index aefe7a3..f2e78d2 100644
--- a/Source/WebCore/inspector/InspectorDOMStorageAgent.h
+++ b/Source/WebCore/inspector/InspectorDOMStorageAgent.h
@@ -27,8 +27,7 @@
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
-#ifndef InspectorDOMStorageAgent_h
-#define InspectorDOMStorageAgent_h
+#pragma once
#include "InspectorWebAgentBase.h"
#include "StorageArea.h"
@@ -84,5 +83,3 @@
};
} // namespace WebCore
-
-#endif // !defined(InspectorDOMStorageAgent_h)
diff --git a/Source/WebCore/inspector/InspectorDatabaseAgent.h b/Source/WebCore/inspector/InspectorDatabaseAgent.h
index d223f52..c9ae414 100644
--- a/Source/WebCore/inspector/InspectorDatabaseAgent.h
+++ b/Source/WebCore/inspector/InspectorDatabaseAgent.h
@@ -27,8 +27,7 @@
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
-#ifndef InspectorDatabaseAgent_h
-#define InspectorDatabaseAgent_h
+#pragma once
#include "InspectorWebAgentBase.h"
#include <inspector/InspectorBackendDispatchers.h>
@@ -81,5 +80,3 @@
};
} // namespace WebCore
-
-#endif // !defined(InspectorDatabaseAgent_h)
diff --git a/Source/WebCore/inspector/InspectorDatabaseResource.h b/Source/WebCore/inspector/InspectorDatabaseResource.h
index e421198..e19241f 100644
--- a/Source/WebCore/inspector/InspectorDatabaseResource.h
+++ b/Source/WebCore/inspector/InspectorDatabaseResource.h
@@ -28,8 +28,7 @@
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
-#ifndef InspectorDatabaseResource_h
-#define InspectorDatabaseResource_h
+#pragma once
#include <inspector/InspectorFrontendDispatchers.h>
#include <wtf/RefCounted.h>
@@ -60,5 +59,3 @@
};
} // namespace WebCore
-
-#endif // InspectorDatabaseResource_h
diff --git a/Source/WebCore/inspector/InspectorFrontendClient.h b/Source/WebCore/inspector/InspectorFrontendClient.h
index a3ac1bc..456d3ca 100644
--- a/Source/WebCore/inspector/InspectorFrontendClient.h
+++ b/Source/WebCore/inspector/InspectorFrontendClient.h
@@ -28,16 +28,12 @@
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
-#ifndef InspectorFrontendClient_h
-#define InspectorFrontendClient_h
+#pragma once
#include <wtf/Forward.h>
namespace WebCore {
-class ContextMenuItem;
-class Event;
-
class InspectorFrontendClient {
public:
enum class DockSide {
@@ -81,5 +77,3 @@
};
} // namespace WebCore
-
-#endif
diff --git a/Source/WebCore/inspector/InspectorFrontendClientLocal.h b/Source/WebCore/inspector/InspectorFrontendClientLocal.h
index ee01eaf..9eed209 100644
--- a/Source/WebCore/inspector/InspectorFrontendClientLocal.h
+++ b/Source/WebCore/inspector/InspectorFrontendClientLocal.h
@@ -29,8 +29,7 @@
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
-#ifndef InspectorFrontendClientLocal_h
-#define InspectorFrontendClientLocal_h
+#pragma once
#include "InspectorFrontendClient.h"
#include <wtf/Forward.h>
@@ -130,5 +129,3 @@
};
} // namespace WebCore
-
-#endif
diff --git a/Source/WebCore/inspector/InspectorFrontendHost.h b/Source/WebCore/inspector/InspectorFrontendHost.h
index b3318c1..f6e4606 100644
--- a/Source/WebCore/inspector/InspectorFrontendHost.h
+++ b/Source/WebCore/inspector/InspectorFrontendHost.h
@@ -26,8 +26,7 @@
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
-#ifndef InspectorFrontendHost_h
-#define InspectorFrontendHost_h
+#pragma once
#include "ContextMenu.h"
#include "ContextMenuProvider.h"
@@ -109,5 +108,3 @@
};
} // namespace WebCore
-
-#endif // !defined(InspectorFrontendHost_h)
diff --git a/Source/WebCore/inspector/InspectorHistory.h b/Source/WebCore/inspector/InspectorHistory.h
index 5fb9c8a..bb1ecf4 100644
--- a/Source/WebCore/inspector/InspectorHistory.h
+++ b/Source/WebCore/inspector/InspectorHistory.h
@@ -28,20 +28,14 @@
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
-#ifndef InspectorHistory_h
-#define InspectorHistory_h
+#pragma once
#include "ExceptionCode.h"
-
#include <wtf/Vector.h>
#include <wtf/text/WTFString.h>
namespace WebCore {
-class ContainerNode;
-class Element;
-class Node;
-
class InspectorHistory final {
WTF_MAKE_NONCOPYABLE(InspectorHistory); WTF_MAKE_FAST_ALLOCATED;
public:
@@ -81,5 +75,3 @@
};
} // namespace WebCore
-
-#endif // !defined(InspectorHistory_h)
diff --git a/Source/WebCore/inspector/InspectorIndexedDBAgent.cpp b/Source/WebCore/inspector/InspectorIndexedDBAgent.cpp
index 0796b3c..047616a 100644
--- a/Source/WebCore/inspector/InspectorIndexedDBAgent.cpp
+++ b/Source/WebCore/inspector/InspectorIndexedDBAgent.cpp
@@ -750,5 +750,4 @@
}
} // namespace WebCore
-
#endif // ENABLE(INDEXED_DATABASE)
diff --git a/Source/WebCore/inspector/InspectorIndexedDBAgent.h b/Source/WebCore/inspector/InspectorIndexedDBAgent.h
index 9535101..8ec4c01 100644
--- a/Source/WebCore/inspector/InspectorIndexedDBAgent.h
+++ b/Source/WebCore/inspector/InspectorIndexedDBAgent.h
@@ -29,8 +29,7 @@
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
-#ifndef InspectorIndexedDBAgent_h
-#define InspectorIndexedDBAgent_h
+#pragma once
#if ENABLE(INDEXED_DATABASE)
@@ -74,4 +73,3 @@
} // namespace WebCore
#endif // ENABLE(INDEXED_DATABASE)
-#endif // !defined(InspectorIndexedDBAgent_h)
diff --git a/Source/WebCore/inspector/InspectorInstrumentationCookie.h b/Source/WebCore/inspector/InspectorInstrumentationCookie.h
index 41dfe30..904cd94 100644
--- a/Source/WebCore/inspector/InspectorInstrumentationCookie.h
+++ b/Source/WebCore/inspector/InspectorInstrumentationCookie.h
@@ -28,14 +28,12 @@
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
-#ifndef InspectorInstrumentationCookie_h
-#define InspectorInstrumentationCookie_h
+#pragma once
#include <wtf/RefPtr.h>
namespace WebCore {
-class InspectorInstrumentation;
class InstrumentingAgents;
class InspectorInstrumentationCookie {
@@ -56,5 +54,3 @@
};
} // namespace WebCore
-
-#endif // InspectorInstrumentationCookie_h
diff --git a/Source/WebCore/inspector/InspectorLayerTreeAgent.h b/Source/WebCore/inspector/InspectorLayerTreeAgent.h
index 1b54d46..838091b 100644
--- a/Source/WebCore/inspector/InspectorLayerTreeAgent.h
+++ b/Source/WebCore/inspector/InspectorLayerTreeAgent.h
@@ -26,8 +26,7 @@
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
-#ifndef InspectorLayerTreeAgent_h
-#define InspectorLayerTreeAgent_h
+#pragma once
#include "InspectorWebAgentBase.h"
#include <inspector/InspectorBackendDispatchers.h>
@@ -93,5 +92,3 @@
};
} // namespace WebCore
-
-#endif // !defined(InspectorLayerTreeAgent_h)
diff --git a/Source/WebCore/inspector/InspectorMemoryAgent.h b/Source/WebCore/inspector/InspectorMemoryAgent.h
index a55b3f8..039222c 100644
--- a/Source/WebCore/inspector/InspectorMemoryAgent.h
+++ b/Source/WebCore/inspector/InspectorMemoryAgent.h
@@ -23,8 +23,7 @@
* THE POSSIBILITY OF SUCH DAMAGE.
*/
-#ifndef InspectorMemoryAgent_h
-#define InspectorMemoryAgent_h
+#pragma once
#if ENABLE(RESOURCE_USAGE)
@@ -69,5 +68,3 @@
} // namespace WebCore
#endif // ENABLE(RESOURCE_USAGE)
-
-#endif // !defined(InspectorMemoryAgent_h)
diff --git a/Source/WebCore/inspector/InspectorNetworkAgent.h b/Source/WebCore/inspector/InspectorNetworkAgent.h
index 5173157..d3dd48d 100644
--- a/Source/WebCore/inspector/InspectorNetworkAgent.h
+++ b/Source/WebCore/inspector/InspectorNetworkAgent.h
@@ -29,8 +29,7 @@
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
-#ifndef InspectorNetworkAgent_h
-#define InspectorNetworkAgent_h
+#pragma once
#include "InspectorWebAgentBase.h"
#include <inspector/InspectorBackendDispatchers.h>
@@ -136,5 +135,3 @@
};
} // namespace WebCore
-
-#endif // !defined(InspectorNetworkAgent_h)
diff --git a/Source/WebCore/inspector/InspectorNodeFinder.h b/Source/WebCore/inspector/InspectorNodeFinder.h
index 6a42762..c6761c6 100644
--- a/Source/WebCore/inspector/InspectorNodeFinder.h
+++ b/Source/WebCore/inspector/InspectorNodeFinder.h
@@ -28,8 +28,7 @@
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
-#ifndef InspectorNodeFinder_h
-#define InspectorNodeFinder_h
+#pragma once
#include <wtf/ListHashSet.h>
#include <wtf/text/WTFString.h>
@@ -66,5 +65,3 @@
};
} // namespace WebCore
-
-#endif // InspectorNodeFinder_h
diff --git a/Source/WebCore/inspector/InspectorOverlay.h b/Source/WebCore/inspector/InspectorOverlay.h
index b5c4432..a8af0d2 100644
--- a/Source/WebCore/inspector/InspectorOverlay.h
+++ b/Source/WebCore/inspector/InspectorOverlay.h
@@ -26,8 +26,7 @@
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
-#ifndef InspectorOverlay_h
-#define InspectorOverlay_h
+#pragma once
#include "Color.h"
#include "FloatQuad.h"
@@ -172,6 +171,3 @@
};
} // namespace WebCore
-
-
-#endif // InspectorOverlay_h
diff --git a/Source/WebCore/inspector/InspectorPageAgent.h b/Source/WebCore/inspector/InspectorPageAgent.h
index aa26ae5..5b0d96a 100644
--- a/Source/WebCore/inspector/InspectorPageAgent.h
+++ b/Source/WebCore/inspector/InspectorPageAgent.h
@@ -29,8 +29,7 @@
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
-#ifndef InspectorPageAgent_h
-#define InspectorPageAgent_h
+#pragma once
#include "InspectorWebAgentBase.h"
#include "IntSize.h"
@@ -188,7 +187,4 @@
RefPtr<Inspector::InspectorObject> m_scriptsToEvaluateOnLoad;
};
-
} // namespace WebCore
-
-#endif // !defined(InspectorPagerAgent_h)
diff --git a/Source/WebCore/inspector/InspectorReplayAgent.cpp b/Source/WebCore/inspector/InspectorReplayAgent.cpp
index 4f59369..4d5aa92 100644
--- a/Source/WebCore/inspector/InspectorReplayAgent.cpp
+++ b/Source/WebCore/inspector/InspectorReplayAgent.cpp
@@ -510,5 +510,4 @@
}
} // namespace WebCore
-
#endif // ENABLE(WEB_REPLAY)
diff --git a/Source/WebCore/inspector/InspectorReplayAgent.h b/Source/WebCore/inspector/InspectorReplayAgent.h
index 6f6d275..dddce4f 100644
--- a/Source/WebCore/inspector/InspectorReplayAgent.h
+++ b/Source/WebCore/inspector/InspectorReplayAgent.h
@@ -25,8 +25,7 @@
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
-#ifndef InspectorReplayAgent_h
-#define InspectorReplayAgent_h
+#pragma once
#if ENABLE(WEB_REPLAY)
@@ -125,5 +124,3 @@
} // namespace WebCore
#endif // ENABLE(WEB_REPLAY)
-
-#endif // InspectorReplayAgent_h
diff --git a/Source/WebCore/inspector/InspectorStyleSheet.h b/Source/WebCore/inspector/InspectorStyleSheet.h
index 13a88d1..18282fd 100644
--- a/Source/WebCore/inspector/InspectorStyleSheet.h
+++ b/Source/WebCore/inspector/InspectorStyleSheet.h
@@ -22,8 +22,7 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
-#ifndef InspectorStyleSheet_h
-#define InspectorStyleSheet_h
+#pragma once
#include "CSSPropertySourceData.h"
#include "CSSStyleDeclaration.h"
@@ -268,5 +267,3 @@
};
} // namespace WebCore
-
-#endif // !defined(InspectorStyleSheet_h)
diff --git a/Source/WebCore/inspector/InspectorTimelineAgent.h b/Source/WebCore/inspector/InspectorTimelineAgent.h
index e5d21c9..295a82f 100644
--- a/Source/WebCore/inspector/InspectorTimelineAgent.h
+++ b/Source/WebCore/inspector/InspectorTimelineAgent.h
@@ -30,8 +30,7 @@
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
-#ifndef InspectorTimelineAgent_h
-#define InspectorTimelineAgent_h
+#pragma once
#include "InspectorWebAgentBase.h"
#include "LayoutRect.h"
@@ -236,5 +235,3 @@
};
} // namespace WebCore
-
-#endif // !defined(InspectorTimelineAgent_h)
diff --git a/Source/WebCore/inspector/InspectorWebAgentBase.h b/Source/WebCore/inspector/InspectorWebAgentBase.h
index f682339..9a76b9b 100644
--- a/Source/WebCore/inspector/InspectorWebAgentBase.h
+++ b/Source/WebCore/inspector/InspectorWebAgentBase.h
@@ -24,8 +24,7 @@
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
-#ifndef InspectorWebAgentBase_h
-#define InspectorWebAgentBase_h
+#pragma once
#include <inspector/InspectorAgentBase.h>
#include <wtf/text/WTFString.h>
@@ -70,5 +69,3 @@
};
} // namespace WebCore
-
-#endif // !defined(InspectorWebAgentBase_h)
diff --git a/Source/WebCore/inspector/InstrumentingAgents.h b/Source/WebCore/inspector/InstrumentingAgents.h
index d98f040..6bd3430 100644
--- a/Source/WebCore/inspector/InstrumentingAgents.h
+++ b/Source/WebCore/inspector/InstrumentingAgents.h
@@ -29,8 +29,7 @@
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
-#ifndef InstrumentingAgents_h
-#define InstrumentingAgents_h
+#pragma once
#include <inspector/InspectorEnvironment.h>
#include <wtf/FastMalloc.h>
@@ -169,5 +168,3 @@
};
} // namespace WebCore
-
-#endif // !defined(InstrumentingAgents_h)
diff --git a/Source/WebCore/inspector/NetworkResourcesData.h b/Source/WebCore/inspector/NetworkResourcesData.h
index 29b2d23..52dce68 100644
--- a/Source/WebCore/inspector/NetworkResourcesData.h
+++ b/Source/WebCore/inspector/NetworkResourcesData.h
@@ -26,8 +26,7 @@
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
-#ifndef NetworkResourcesData_h
-#define NetworkResourcesData_h
+#pragma once
#include "InspectorPageAgent.h"
#include "TextResourceDecoder.h"
@@ -144,5 +143,3 @@
};
} // namespace WebCore
-
-#endif // !defined(NetworkResourcesData_h)
diff --git a/Source/WebCore/inspector/PageConsoleAgent.h b/Source/WebCore/inspector/PageConsoleAgent.h
index 5edd49d..3177dc0 100644
--- a/Source/WebCore/inspector/PageConsoleAgent.h
+++ b/Source/WebCore/inspector/PageConsoleAgent.h
@@ -29,8 +29,7 @@
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
-#ifndef PageConsoleAgent_h
-#define PageConsoleAgent_h
+#pragma once
#include "InspectorWebAgentBase.h"
#include "WebConsoleAgent.h"
@@ -54,5 +53,3 @@
};
} // namespace WebCore
-
-#endif // !defined(PageConsoleAgent_h)
diff --git a/Source/WebCore/inspector/PageDebuggerAgent.h b/Source/WebCore/inspector/PageDebuggerAgent.h
index a4ff7a4..f1972497 100644
--- a/Source/WebCore/inspector/PageDebuggerAgent.h
+++ b/Source/WebCore/inspector/PageDebuggerAgent.h
@@ -29,8 +29,7 @@
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
-#ifndef PageDebuggerAgent_h
-#define PageDebuggerAgent_h
+#pragma once
#include "WebDebuggerAgent.h"
@@ -75,5 +74,3 @@
};
} // namespace WebCore
-
-#endif // !defined(PageDebuggerAgent_h)
diff --git a/Source/WebCore/inspector/PageRuntimeAgent.h b/Source/WebCore/inspector/PageRuntimeAgent.h
index 9137288..ce474e3 100644
--- a/Source/WebCore/inspector/PageRuntimeAgent.h
+++ b/Source/WebCore/inspector/PageRuntimeAgent.h
@@ -29,8 +29,7 @@
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
-#ifndef PageRuntimeAgent_h
-#define PageRuntimeAgent_h
+#pragma once
#include "InspectorWebAgentBase.h"
#include <inspector/InspectorFrontendDispatchers.h>
@@ -83,5 +82,3 @@
};
} // namespace WebCore
-
-#endif // !defined(InspectorPagerAgent_h)
diff --git a/Source/WebCore/inspector/PageScriptDebugServer.h b/Source/WebCore/inspector/PageScriptDebugServer.h
index 73be9e6..3b49791 100644
--- a/Source/WebCore/inspector/PageScriptDebugServer.h
+++ b/Source/WebCore/inspector/PageScriptDebugServer.h
@@ -24,8 +24,7 @@
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
-#ifndef PageScriptDebugServer_h
-#define PageScriptDebugServer_h
+#pragma once
#include <inspector/ScriptDebugServer.h>
@@ -65,5 +64,3 @@
};
} // namespace WebCore
-
-#endif // PageScriptDebugServer_h
diff --git a/Source/WebCore/inspector/TimelineRecordFactory.h b/Source/WebCore/inspector/TimelineRecordFactory.h
index 4c02246..fb705d1 100644
--- a/Source/WebCore/inspector/TimelineRecordFactory.h
+++ b/Source/WebCore/inspector/TimelineRecordFactory.h
@@ -29,8 +29,7 @@
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
-#ifndef TimelineRecordFactory_h
-#define TimelineRecordFactory_h
+#pragma once
#include <inspector/InspectorValues.h>
#include <wtf/Forward.h>
@@ -67,5 +66,3 @@
};
} // namespace WebCore
-
-#endif // !defined(TimelineRecordFactory_h)
diff --git a/Source/WebCore/inspector/WebConsoleAgent.h b/Source/WebCore/inspector/WebConsoleAgent.h
index b0a6cf6..a4ffc9e 100644
--- a/Source/WebCore/inspector/WebConsoleAgent.h
+++ b/Source/WebCore/inspector/WebConsoleAgent.h
@@ -23,8 +23,7 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
-#ifndef WebConsoleAgent_h
-#define WebConsoleAgent_h
+#pragma once
#include <inspector/agents/InspectorConsoleAgent.h>
@@ -55,5 +54,3 @@
};
} // namespace WebCore
-
-#endif // !defined(WebConsoleAgent_h)
diff --git a/Source/WebCore/inspector/WebDebuggerAgent.h b/Source/WebCore/inspector/WebDebuggerAgent.h
index 3001b70..7724bbe 100644
--- a/Source/WebCore/inspector/WebDebuggerAgent.h
+++ b/Source/WebCore/inspector/WebDebuggerAgent.h
@@ -23,8 +23,7 @@
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
-#ifndef WebDebuggerAgent_h
-#define WebDebuggerAgent_h
+#pragma once
#include "InspectorWebAgentBase.h"
#include <inspector/agents/InspectorDebuggerAgent.h>
@@ -49,5 +48,3 @@
};
} // namespace WebCore
-
-#endif // !defined(WebDebuggerAgent_h)
diff --git a/Source/WebCore/inspector/WebInjectedScriptHost.h b/Source/WebCore/inspector/WebInjectedScriptHost.h
index 60439a4..fd9a252 100644
--- a/Source/WebCore/inspector/WebInjectedScriptHost.h
+++ b/Source/WebCore/inspector/WebInjectedScriptHost.h
@@ -23,8 +23,7 @@
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
-#ifndef WebInjectedScriptHost_h
-#define WebInjectedScriptHost_h
+#pragma once
#include <inspector/InjectedScriptHost.h>
@@ -39,5 +38,3 @@
};
} // namespace WebCore
-
-#endif // !defined(WebInjectedScriptHost_h)
diff --git a/Source/WebCore/inspector/WebInjectedScriptManager.h b/Source/WebCore/inspector/WebInjectedScriptManager.h
index 7d635d5..bc1637c 100644
--- a/Source/WebCore/inspector/WebInjectedScriptManager.h
+++ b/Source/WebCore/inspector/WebInjectedScriptManager.h
@@ -23,8 +23,7 @@
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
-#ifndef WebInjectedScriptManager_h
-#define WebInjectedScriptManager_h
+#pragma once
#include "CommandLineAPIHost.h"
#include <inspector/InjectedScriptManager.h>
@@ -54,5 +53,3 @@
};
} // namespace WebCore
-
-#endif // !defined(WebInjectedScriptManager_h)