Changeset 275527 in webkit
- Timestamp:
- Apr 6, 2021 9:51:57 AM (3 years ago)
- Location:
- trunk/Source
- Files:
-
- 18 edited
- 1 copied
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebCore/ChangeLog
r275523 r275527 1 2021-04-06 Tyler Wilcock <twilco.o@protonmail.com> 2 3 Non-unified build fixes, early April 2021 4 https://bugs.webkit.org/show_bug.cgi?id=224091 5 6 Reviewed by Simon Fraser. 7 8 The SelectionRestorationMode enum has been moved out of Document.h so 9 the entirety of Document.h doesn't need to be included just for that 10 enum. 11 12 * Headers.cmake: 13 Add SelectionRestorationMode.h. 14 15 * WebCore.xcodeproj/project.pbxproj: 16 Add SelectionRestorationMode.h. 17 18 * dom/Document.h: 19 Move SelectionRestorationMode enum to its own file. 20 21 * dom/Element.h: 22 Add forward declaration for enum class SelectionRestorationMode. Rearrange 23 existing enum class forward declarations alphabetically. 24 25 * dom/SelectionRestorationMode.h: Added. 26 27 * dom/FocusOptions.h: 28 * history/CachedPage.cpp: 29 * html/HTMLFormControlElement.cpp: 30 * html/HTMLInputElement.h: 31 * html/HTMLLabelElement.cpp: 32 * html/HTMLLegendElement.cpp: 33 * html/HTMLTextAreaElement.h: 34 * html/InputType.cpp: 35 * page/EventHandler.cpp: 36 * page/FocusController.cpp: 37 Add #include "SelectionRestorationMode.h". 38 39 * workers/service/context/ServiceWorkerThreadProxy.cpp: 40 Add #include "ServiceWorkerGlobalScope.h" to fix: 41 ServiceWorkerThreadProxy.cpp:287:53: error: invalid use of incomplete type 42 'WTF::match_constness_t<WebCore::ScriptExecutionContext, WebCore::ServiceWorkerGlobalScope>' 43 {aka 'class WebCore::ServiceWorkerGlobalScope'} 44 1 45 2021-04-06 Aditya Keerthi <akeerthi@apple.com> 2 46 -
trunk/Source/WebCore/Headers.cmake
r275459 r275527 513 513 dom/SecurityContext.h 514 514 dom/SecurityPolicyViolationEvent.h 515 dom/SelectionRestorationMode.h 515 516 dom/ShadowRoot.h 516 517 dom/ShadowRootInit.h -
trunk/Source/WebCore/WebCore.xcodeproj/project.pbxproj
r275484 r275527 3083 3083 984264F112D5280A000D88A4 /* LinkLoaderClient.h in Headers */ = {isa = PBXBuildFile; fileRef = 984264EF12D5280A000D88A4 /* LinkLoaderClient.h */; settings = {ATTRIBUTES = (Private, ); }; }; 3084 3084 985BB96E13A94058007A0B69 /* LinkRelAttribute.h in Headers */ = {isa = PBXBuildFile; fileRef = 985BB96C13A94058007A0B69 /* LinkRelAttribute.h */; settings = {ATTRIBUTES = (Private, ); }; }; 3085 98CBC8052618F68C001593C8 /* SelectionRestorationMode.h in Headers */ = {isa = PBXBuildFile; fileRef = 98CBC8032618F68B001593C8 /* SelectionRestorationMode.h */; settings = {ATTRIBUTES = (Private, ); }; }; 3085 3086 98CE432A129E00E5005821DC /* LinkLoader.h in Headers */ = {isa = PBXBuildFile; fileRef = 98CE4329129E00E5005821DC /* LinkLoader.h */; settings = {ATTRIBUTES = (Private, ); }; }; 3086 3087 98EB1F951313FE0500D0E1EA /* NotImplemented.h in Headers */ = {isa = PBXBuildFile; fileRef = 98EB1F941313FE0500D0E1EA /* NotImplemented.h */; settings = {ATTRIBUTES = (Private, ); }; }; … … 12107 12108 985BB96B13A94058007A0B69 /* LinkRelAttribute.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = LinkRelAttribute.cpp; sourceTree = "<group>"; }; 12108 12109 985BB96C13A94058007A0B69 /* LinkRelAttribute.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = LinkRelAttribute.h; sourceTree = "<group>"; }; 12110 98CBC8032618F68B001593C8 /* SelectionRestorationMode.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SelectionRestorationMode.h; sourceTree = "<group>"; }; 12109 12111 98CE4325129E00BD005821DC /* LinkLoader.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = LinkLoader.cpp; sourceTree = "<group>"; }; 12110 12112 98CE4329129E00E5005821DC /* LinkLoader.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = LinkLoader.h; sourceTree = "<group>"; }; … … 30615 30617 2D5BC42516F882BE007048D0 /* SecurityPolicyViolationEvent.h */, 30616 30618 2D5BC42616F882BE007048D0 /* SecurityPolicyViolationEvent.idl */, 30619 98CBC8032618F68B001593C8 /* SelectionRestorationMode.h */, 30617 30620 E45322A9140CE267005A0F92 /* SelectorQuery.cpp */, 30618 30621 E45322AA140CE267005A0F92 /* SelectorQuery.h */, … … 34896 34899 BEA807C90F714A0300524199 /* SelectionRect.h in Headers */, 34897 34900 51405C89190B014400754F94 /* SelectionRectGatherer.h in Headers */, 34901 98CBC8052618F68C001593C8 /* SelectionRestorationMode.h in Headers */, 34898 34902 E44B4BB4141650D7002B1D8B /* SelectorChecker.h in Headers */, 34899 34903 432D3FE818A8658400D7DC03 /* SelectorCheckerTestFunctions.h in Headers */, -
trunk/Source/WebCore/dom/Document.h
r275420 r275527 292 292 enum DimensionsCheck { WidthDimensionsCheck = 1 << 0, HeightDimensionsCheck = 1 << 1, AllDimensionsCheck = 1 << 2 }; 293 293 294 enum class SelectionRestorationMode : uint8_t {295 RestoreOrSelectAll,296 SelectAll,297 PlaceCaretAtStart,298 };299 300 294 enum class HttpEquivPolicy { 301 295 Enabled, -
trunk/Source/WebCore/dom/Element.h
r274832 r275527 64 64 class WebAnimation; 65 65 66 enum class AnimationImpact; 67 enum class EventProcessing : uint8_t; 68 enum class SelectionRestorationMode : uint8_t; 69 66 70 struct GetAnimationsOptions; 67 71 struct KeyframeAnimationOptions; … … 69 73 struct ScrollToOptions; 70 74 71 enum class EventProcessing : uint8_t;72 73 75 #if ENABLE(INTERSECTION_OBSERVER) 74 76 struct IntersectionObserverData; … … 82 84 struct ElementStyle; 83 85 } 84 85 enum class AnimationImpact;86 86 87 87 class Element : public ContainerNode { -
trunk/Source/WebCore/dom/FocusOptions.h
r275422 r275527 26 26 #pragma once 27 27 28 #include "Document.h"29 28 #include "FocusDirection.h" 29 #include "SelectionRestorationMode.h" 30 30 31 31 namespace WebCore { -
trunk/Source/WebCore/dom/SelectionRestorationMode.h
r275526 r275527 1 1 /* 2 * Copyright (C) 202 0 Igalia S.L. All rights reserved.2 * Copyright (C) 2021 Tyler Wilcock <twilco.o@protonmail.com>. 3 3 * 4 4 * Redistribution and use in source and binary forms, with or without … … 26 26 #pragma once 27 27 28 #include "Document.h"29 #include "FocusDirection.h"30 31 28 namespace WebCore { 32 29 33 struct FocusOptions{34 SelectionRestorationMode selectionRestorationMode { SelectionRestorationMode::RestoreOrSelectAll };35 FocusDirection direction { FocusDirection::None };36 bool preventScroll { false };30 enum class SelectionRestorationMode : uint8_t { 31 RestoreOrSelectAll, 32 SelectAll, 33 PlaceCaretAtStart, 37 34 }; 38 35 39 36 } // namespace WebCore 37 -
trunk/Source/WebCore/history/CachedPage.cpp
r269587 r275527 40 40 #include "PageTransitionEvent.h" 41 41 #include "ScriptDisallowedScope.h" 42 #include "SelectionRestorationMode.h" 42 43 #include "Settings.h" 43 44 #include "VisitedLinkState.h" -
trunk/Source/WebCore/html/HTMLFormControlElement.cpp
r275161 r275527 45 45 #include "RenderTheme.h" 46 46 #include "ScriptDisallowedScope.h" 47 #include "SelectionRestorationMode.h" 47 48 #include "Settings.h" 48 49 #include "StyleTreeResolver.h" -
trunk/Source/WebCore/html/HTMLInputElement.h
r273049 r275527 27 27 #include "FileChooser.h" 28 28 #include "HTMLTextFormControlElement.h" 29 #include "SelectionRestorationMode.h" 29 30 #include <memory> 30 31 #include <wtf/WeakPtr.h> -
trunk/Source/WebCore/html/HTMLLabelElement.cpp
r274812 r275527 33 33 #include "HTMLFormControlElement.h" 34 34 #include "HTMLNames.h" 35 #include "SelectionRestorationMode.h" 35 36 #include <wtf/IsoMallocInlines.h> 36 37 -
trunk/Source/WebCore/html/HTMLLegendElement.cpp
r274812 r275527 29 29 #include "HTMLFieldSetElement.h" 30 30 #include "HTMLNames.h" 31 #include "SelectionRestorationMode.h" 31 32 #include <wtf/IsoMallocInlines.h> 32 33 -
trunk/Source/WebCore/html/HTMLTextAreaElement.h
r266026 r275527 25 25 26 26 #include "HTMLTextFormControlElement.h" 27 #include "SelectionRestorationMode.h" 27 28 28 29 namespace WebCore { -
trunk/Source/WebCore/html/InputType.cpp
r274812 r275527 65 65 #include "ScopedEventQueue.h" 66 66 #include "SearchInputType.h" 67 #include "SelectionRestorationMode.h" 67 68 #include "Settings.h" 68 69 #include "ShadowRoot.h" -
trunk/Source/WebCore/page/EventHandler.cpp
r275072 r275527 93 93 #include "ScrollLatchingController.h" 94 94 #include "Scrollbar.h" 95 #include "SelectionRestorationMode.h" 95 96 #include "Settings.h" 96 97 #include "ShadowRoot.h" -
trunk/Source/WebCore/page/FocusController.cpp
r274812 r275527 57 57 #include "RenderWidget.h" 58 58 #include "ScrollAnimator.h" 59 #include "SelectionRestorationMode.h" 59 60 #include "Settings.h" 60 61 #include "ShadowRoot.h" -
trunk/Source/WebCore/workers/service/context/ServiceWorkerThreadProxy.cpp
r275443 r275527 43 43 #include "ServiceWorkerClientData.h" 44 44 #include "ServiceWorkerClientIdentifier.h" 45 #include "ServiceWorkerGlobalScope.h" 45 46 #include "Settings.h" 46 47 #include "WorkerGlobalScope.h" -
trunk/Source/WebKit/ChangeLog
r275525 r275527 1 2021-04-06 Tyler Wilcock <twilco.o@protonmail.com> 2 3 Non-unified build fixes, early April 2021 4 https://bugs.webkit.org/show_bug.cgi?id=224091 5 6 Reviewed by Simon Fraser. 7 8 The SelectionRestorationMode enum has been moved out of Document.h so 9 the entirety of Document.h doesn't need to be included just for that 10 enum. 11 12 * WebProcess/WebPage/WebPage.cpp: 13 Add #include "SelectionRestorationMode.h". 14 1 15 2021-04-06 Youenn Fablet <youenn@apple.com> 2 16 -
trunk/Source/WebKit/WebProcess/WebPage/WebPage.cpp
r275486 r275527 235 235 #include <WebCore/ScriptController.h> 236 236 #include <WebCore/SecurityPolicy.h> 237 #include <WebCore/SelectionRestorationMode.h> 237 238 #include <WebCore/SerializedScriptValue.h> 238 239 #include <WebCore/Settings.h>
Note: See TracChangeset
for help on using the changeset viewer.