Diff
Modified: trunk/Source/WebCore/ChangeLog (275526 => 275527)
--- trunk/Source/WebCore/ChangeLog 2021-04-06 16:37:25 UTC (rev 275526)
+++ trunk/Source/WebCore/ChangeLog 2021-04-06 16:51:57 UTC (rev 275527)
@@ -1,3 +1,47 @@
+2021-04-06 Tyler Wilcock <[email protected]>
+
+ Non-unified build fixes, early April 2021
+ https://bugs.webkit.org/show_bug.cgi?id=224091
+
+ Reviewed by Simon Fraser.
+
+ The SelectionRestorationMode enum has been moved out of Document.h so
+ the entirety of Document.h doesn't need to be included just for that
+ enum.
+
+ * Headers.cmake:
+ Add SelectionRestorationMode.h.
+
+ * WebCore.xcodeproj/project.pbxproj:
+ Add SelectionRestorationMode.h.
+
+ * dom/Document.h:
+ Move SelectionRestorationMode enum to its own file.
+
+ * dom/Element.h:
+ Add forward declaration for enum class SelectionRestorationMode. Rearrange
+ existing enum class forward declarations alphabetically.
+
+ * dom/SelectionRestorationMode.h: Added.
+
+ * dom/FocusOptions.h:
+ * history/CachedPage.cpp:
+ * html/HTMLFormControlElement.cpp:
+ * html/HTMLInputElement.h:
+ * html/HTMLLabelElement.cpp:
+ * html/HTMLLegendElement.cpp:
+ * html/HTMLTextAreaElement.h:
+ * html/InputType.cpp:
+ * page/EventHandler.cpp:
+ * page/FocusController.cpp:
+ Add #include "SelectionRestorationMode.h".
+
+ * workers/service/context/ServiceWorkerThreadProxy.cpp:
+ Add #include "ServiceWorkerGlobalScope.h" to fix:
+ ServiceWorkerThreadProxy.cpp:287:53: error: invalid use of incomplete type
+ 'WTF::match_constness_t<WebCore::ScriptExecutionContext, WebCore::ServiceWorkerGlobalScope>'
+ {aka 'class WebCore::ServiceWorkerGlobalScope'}
+
2021-04-06 Aditya Keerthi <[email protected]>
[iOS][FCR] Use opaque system colors for control backgrounds
Modified: trunk/Source/WebCore/Headers.cmake (275526 => 275527)
--- trunk/Source/WebCore/Headers.cmake 2021-04-06 16:37:25 UTC (rev 275526)
+++ trunk/Source/WebCore/Headers.cmake 2021-04-06 16:51:57 UTC (rev 275527)
@@ -512,6 +512,7 @@
dom/ScriptExecutionContext.h
dom/SecurityContext.h
dom/SecurityPolicyViolationEvent.h
+ dom/SelectionRestorationMode.h
dom/ShadowRoot.h
dom/ShadowRootInit.h
dom/ShadowRootMode.h
Modified: trunk/Source/WebCore/WebCore.xcodeproj/project.pbxproj (275526 => 275527)
--- trunk/Source/WebCore/WebCore.xcodeproj/project.pbxproj 2021-04-06 16:37:25 UTC (rev 275526)
+++ trunk/Source/WebCore/WebCore.xcodeproj/project.pbxproj 2021-04-06 16:51:57 UTC (rev 275527)
@@ -3082,6 +3082,7 @@
9831AE4A154225C900FE2644 /* ReferrerPolicy.h in Headers */ = {isa = PBXBuildFile; fileRef = 9831AE49154225A200FE2644 /* ReferrerPolicy.h */; settings = {ATTRIBUTES = (Private, ); }; };
984264F112D5280A000D88A4 /* LinkLoaderClient.h in Headers */ = {isa = PBXBuildFile; fileRef = 984264EF12D5280A000D88A4 /* LinkLoaderClient.h */; settings = {ATTRIBUTES = (Private, ); }; };
985BB96E13A94058007A0B69 /* LinkRelAttribute.h in Headers */ = {isa = PBXBuildFile; fileRef = 985BB96C13A94058007A0B69 /* LinkRelAttribute.h */; settings = {ATTRIBUTES = (Private, ); }; };
+ 98CBC8052618F68C001593C8 /* SelectionRestorationMode.h in Headers */ = {isa = PBXBuildFile; fileRef = 98CBC8032618F68B001593C8 /* SelectionRestorationMode.h */; settings = {ATTRIBUTES = (Private, ); }; };
98CE432A129E00E5005821DC /* LinkLoader.h in Headers */ = {isa = PBXBuildFile; fileRef = 98CE4329129E00E5005821DC /* LinkLoader.h */; settings = {ATTRIBUTES = (Private, ); }; };
98EB1F951313FE0500D0E1EA /* NotImplemented.h in Headers */ = {isa = PBXBuildFile; fileRef = 98EB1F941313FE0500D0E1EA /* NotImplemented.h */; settings = {ATTRIBUTES = (Private, ); }; };
9920398318B95BC600B39AF9 /* UserInputBridge.h in Headers */ = {isa = PBXBuildFile; fileRef = 9920398118B95BC600B39AF9 /* UserInputBridge.h */; settings = {ATTRIBUTES = (Private, ); }; };
@@ -12106,6 +12107,7 @@
984264EF12D5280A000D88A4 /* LinkLoaderClient.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = LinkLoaderClient.h; sourceTree = "<group>"; };
985BB96B13A94058007A0B69 /* LinkRelAttribute.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = LinkRelAttribute.cpp; sourceTree = "<group>"; };
985BB96C13A94058007A0B69 /* LinkRelAttribute.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = LinkRelAttribute.h; sourceTree = "<group>"; };
+ 98CBC8032618F68B001593C8 /* SelectionRestorationMode.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SelectionRestorationMode.h; sourceTree = "<group>"; };
98CE4325129E00BD005821DC /* LinkLoader.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = LinkLoader.cpp; sourceTree = "<group>"; };
98CE4329129E00E5005821DC /* LinkLoader.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = LinkLoader.h; sourceTree = "<group>"; };
98EB1F941313FE0500D0E1EA /* NotImplemented.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = NotImplemented.h; sourceTree = "<group>"; };
@@ -30614,6 +30616,7 @@
E3BF19E722AF309F009C9926 /* SecurityPolicyViolationEvent.cpp */,
2D5BC42516F882BE007048D0 /* SecurityPolicyViolationEvent.h */,
2D5BC42616F882BE007048D0 /* SecurityPolicyViolationEvent.idl */,
+ 98CBC8032618F68B001593C8 /* SelectionRestorationMode.h */,
E45322A9140CE267005A0F92 /* SelectorQuery.cpp */,
E45322AA140CE267005A0F92 /* SelectorQuery.h */,
A6D169611346B49B000EB770 /* ShadowRoot.cpp */,
@@ -34895,6 +34898,7 @@
4465D7BD2536D05E0016666D /* SelectionRangeData.h in Headers */,
BEA807C90F714A0300524199 /* SelectionRect.h in Headers */,
51405C89190B014400754F94 /* SelectionRectGatherer.h in Headers */,
+ 98CBC8052618F68C001593C8 /* SelectionRestorationMode.h in Headers */,
E44B4BB4141650D7002B1D8B /* SelectorChecker.h in Headers */,
432D3FE818A8658400D7DC03 /* SelectorCheckerTestFunctions.h in Headers */,
26B999971804D54200D01121 /* SelectorCompiler.h in Headers */,
Modified: trunk/Source/WebCore/dom/Document.h (275526 => 275527)
--- trunk/Source/WebCore/dom/Document.h 2021-04-06 16:37:25 UTC (rev 275526)
+++ trunk/Source/WebCore/dom/Document.h 2021-04-06 16:51:57 UTC (rev 275527)
@@ -291,12 +291,6 @@
enum DimensionsCheck { WidthDimensionsCheck = 1 << 0, HeightDimensionsCheck = 1 << 1, AllDimensionsCheck = 1 << 2 };
-enum class SelectionRestorationMode : uint8_t {
- RestoreOrSelectAll,
- SelectAll,
- PlaceCaretAtStart,
-};
-
enum class HttpEquivPolicy {
Enabled,
DisabledBySettings,
Modified: trunk/Source/WebCore/dom/Element.h (275526 => 275527)
--- trunk/Source/WebCore/dom/Element.h 2021-04-06 16:37:25 UTC (rev 275526)
+++ trunk/Source/WebCore/dom/Element.h 2021-04-06 16:51:57 UTC (rev 275527)
@@ -63,13 +63,15 @@
class StylePropertyMap;
class WebAnimation;
+enum class AnimationImpact;
+enum class EventProcessing : uint8_t;
+enum class SelectionRestorationMode : uint8_t;
+
struct GetAnimationsOptions;
struct KeyframeAnimationOptions;
struct ScrollIntoViewOptions;
struct ScrollToOptions;
-enum class EventProcessing : uint8_t;
-
#if ENABLE(INTERSECTION_OBSERVER)
struct IntersectionObserverData;
#endif
@@ -82,8 +84,6 @@
struct ElementStyle;
}
-enum class AnimationImpact;
-
class Element : public ContainerNode {
WTF_MAKE_ISO_ALLOCATED(Element);
public:
Modified: trunk/Source/WebCore/dom/FocusOptions.h (275526 => 275527)
--- trunk/Source/WebCore/dom/FocusOptions.h 2021-04-06 16:37:25 UTC (rev 275526)
+++ trunk/Source/WebCore/dom/FocusOptions.h 2021-04-06 16:51:57 UTC (rev 275527)
@@ -25,8 +25,8 @@
#pragma once
-#include "Document.h"
#include "FocusDirection.h"
+#include "SelectionRestorationMode.h"
namespace WebCore {
Copied: trunk/Source/WebCore/dom/SelectionRestorationMode.h (from rev 275526, trunk/Source/WebCore/dom/FocusOptions.h) (0 => 275527)
--- trunk/Source/WebCore/dom/SelectionRestorationMode.h (rev 0)
+++ trunk/Source/WebCore/dom/SelectionRestorationMode.h 2021-04-06 16:51:57 UTC (rev 275527)
@@ -0,0 +1,37 @@
+/*
+ * Copyright (C) 2021 Tyler Wilcock <[email protected]>.
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions
+ * are met:
+ * 1. Redistributions of source code must retain the above copyright
+ * notice, this list of conditions and the following disclaimer.
+ * 2. Redistributions in binary form must reproduce the above copyright
+ * notice, this list of conditions and the following disclaimer in the
+ * documentation and/or other materials provided with the distribution.
+ *
+ * THIS SOFTWARE IS PROVIDED BY APPLE INC. ``AS IS'' AND ANY
+ * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+ * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
+ * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL APPLE INC. OR
+ * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
+ * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
+ * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
+ * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
+ * OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
+ * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
+ * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ */
+
+#pragma once
+
+namespace WebCore {
+
+enum class SelectionRestorationMode : uint8_t {
+ RestoreOrSelectAll,
+ SelectAll,
+ PlaceCaretAtStart,
+};
+
+} // namespace WebCore
+
Modified: trunk/Source/WebCore/history/CachedPage.cpp (275526 => 275527)
--- trunk/Source/WebCore/history/CachedPage.cpp 2021-04-06 16:37:25 UTC (rev 275526)
+++ trunk/Source/WebCore/history/CachedPage.cpp 2021-04-06 16:51:57 UTC (rev 275527)
@@ -39,6 +39,7 @@
#include "Page.h"
#include "PageTransitionEvent.h"
#include "ScriptDisallowedScope.h"
+#include "SelectionRestorationMode.h"
#include "Settings.h"
#include "VisitedLinkState.h"
#include <wtf/RefCountedLeakCounter.h>
Modified: trunk/Source/WebCore/html/HTMLFormControlElement.cpp (275526 => 275527)
--- trunk/Source/WebCore/html/HTMLFormControlElement.cpp 2021-04-06 16:37:25 UTC (rev 275526)
+++ trunk/Source/WebCore/html/HTMLFormControlElement.cpp 2021-04-06 16:51:57 UTC (rev 275527)
@@ -44,6 +44,7 @@
#include "RenderBox.h"
#include "RenderTheme.h"
#include "ScriptDisallowedScope.h"
+#include "SelectionRestorationMode.h"
#include "Settings.h"
#include "StyleTreeResolver.h"
#include "ValidationMessage.h"
Modified: trunk/Source/WebCore/html/HTMLInputElement.h (275526 => 275527)
--- trunk/Source/WebCore/html/HTMLInputElement.h 2021-04-06 16:37:25 UTC (rev 275526)
+++ trunk/Source/WebCore/html/HTMLInputElement.h 2021-04-06 16:51:57 UTC (rev 275527)
@@ -26,6 +26,7 @@
#include "FileChooser.h"
#include "HTMLTextFormControlElement.h"
+#include "SelectionRestorationMode.h"
#include <memory>
#include <wtf/WeakPtr.h>
Modified: trunk/Source/WebCore/html/HTMLLabelElement.cpp (275526 => 275527)
--- trunk/Source/WebCore/html/HTMLLabelElement.cpp 2021-04-06 16:37:25 UTC (rev 275526)
+++ trunk/Source/WebCore/html/HTMLLabelElement.cpp 2021-04-06 16:51:57 UTC (rev 275527)
@@ -32,6 +32,7 @@
#include "FormAssociatedElement.h"
#include "HTMLFormControlElement.h"
#include "HTMLNames.h"
+#include "SelectionRestorationMode.h"
#include <wtf/IsoMallocInlines.h>
namespace WebCore {
Modified: trunk/Source/WebCore/html/HTMLLegendElement.cpp (275526 => 275527)
--- trunk/Source/WebCore/html/HTMLLegendElement.cpp 2021-04-06 16:37:25 UTC (rev 275526)
+++ trunk/Source/WebCore/html/HTMLLegendElement.cpp 2021-04-06 16:51:57 UTC (rev 275527)
@@ -28,6 +28,7 @@
#include "ElementIterator.h"
#include "HTMLFieldSetElement.h"
#include "HTMLNames.h"
+#include "SelectionRestorationMode.h"
#include <wtf/IsoMallocInlines.h>
namespace WebCore {
Modified: trunk/Source/WebCore/html/HTMLTextAreaElement.h (275526 => 275527)
--- trunk/Source/WebCore/html/HTMLTextAreaElement.h 2021-04-06 16:37:25 UTC (rev 275526)
+++ trunk/Source/WebCore/html/HTMLTextAreaElement.h 2021-04-06 16:51:57 UTC (rev 275527)
@@ -24,6 +24,7 @@
#pragma once
#include "HTMLTextFormControlElement.h"
+#include "SelectionRestorationMode.h"
namespace WebCore {
Modified: trunk/Source/WebCore/html/InputType.cpp (275526 => 275527)
--- trunk/Source/WebCore/html/InputType.cpp 2021-04-06 16:37:25 UTC (rev 275526)
+++ trunk/Source/WebCore/html/InputType.cpp 2021-04-06 16:51:57 UTC (rev 275527)
@@ -64,6 +64,7 @@
#include "ResetInputType.h"
#include "ScopedEventQueue.h"
#include "SearchInputType.h"
+#include "SelectionRestorationMode.h"
#include "Settings.h"
#include "ShadowRoot.h"
#include "StepRange.h"
Modified: trunk/Source/WebCore/page/EventHandler.cpp (275526 => 275527)
--- trunk/Source/WebCore/page/EventHandler.cpp 2021-04-06 16:37:25 UTC (rev 275526)
+++ trunk/Source/WebCore/page/EventHandler.cpp 2021-04-06 16:51:57 UTC (rev 275527)
@@ -92,6 +92,7 @@
#include "ScrollAnimator.h"
#include "ScrollLatchingController.h"
#include "Scrollbar.h"
+#include "SelectionRestorationMode.h"
#include "Settings.h"
#include "ShadowRoot.h"
#include "SpatialNavigation.h"
Modified: trunk/Source/WebCore/page/FocusController.cpp (275526 => 275527)
--- trunk/Source/WebCore/page/FocusController.cpp 2021-04-06 16:37:25 UTC (rev 275526)
+++ trunk/Source/WebCore/page/FocusController.cpp 2021-04-06 16:51:57 UTC (rev 275527)
@@ -56,6 +56,7 @@
#include "Range.h"
#include "RenderWidget.h"
#include "ScrollAnimator.h"
+#include "SelectionRestorationMode.h"
#include "Settings.h"
#include "ShadowRoot.h"
#include "SpatialNavigation.h"
Modified: trunk/Source/WebCore/workers/service/context/ServiceWorkerThreadProxy.cpp (275526 => 275527)
--- trunk/Source/WebCore/workers/service/context/ServiceWorkerThreadProxy.cpp 2021-04-06 16:37:25 UTC (rev 275526)
+++ trunk/Source/WebCore/workers/service/context/ServiceWorkerThreadProxy.cpp 2021-04-06 16:51:57 UTC (rev 275527)
@@ -42,6 +42,7 @@
#include "PlatformStrategies.h"
#include "ServiceWorkerClientData.h"
#include "ServiceWorkerClientIdentifier.h"
+#include "ServiceWorkerGlobalScope.h"
#include "Settings.h"
#include "WorkerGlobalScope.h"
#include <wtf/MainThread.h>
Modified: trunk/Source/WebKit/ChangeLog (275526 => 275527)
--- trunk/Source/WebKit/ChangeLog 2021-04-06 16:37:25 UTC (rev 275526)
+++ trunk/Source/WebKit/ChangeLog 2021-04-06 16:51:57 UTC (rev 275527)
@@ -1,3 +1,17 @@
+2021-04-06 Tyler Wilcock <[email protected]>
+
+ Non-unified build fixes, early April 2021
+ https://bugs.webkit.org/show_bug.cgi?id=224091
+
+ Reviewed by Simon Fraser.
+
+ The SelectionRestorationMode enum has been moved out of Document.h so
+ the entirety of Document.h doesn't need to be included just for that
+ enum.
+
+ * WebProcess/WebPage/WebPage.cpp:
+ Add #include "SelectionRestorationMode.h".
+
2021-04-06 Youenn Fablet <[email protected]>
Release WebRTC remote encoder/decoder callback lock right after having changed the encoder/decoder callback
Modified: trunk/Source/WebKit/WebProcess/WebPage/WebPage.cpp (275526 => 275527)
--- trunk/Source/WebKit/WebProcess/WebPage/WebPage.cpp 2021-04-06 16:37:25 UTC (rev 275526)
+++ trunk/Source/WebKit/WebProcess/WebPage/WebPage.cpp 2021-04-06 16:51:57 UTC (rev 275527)
@@ -234,6 +234,7 @@
#include <WebCore/SWClientConnection.h>
#include <WebCore/ScriptController.h>
#include <WebCore/SecurityPolicy.h>
+#include <WebCore/SelectionRestorationMode.h>
#include <WebCore/SerializedScriptValue.h>
#include <WebCore/Settings.h>
#include <WebCore/ShadowRoot.h>