Skip to content

Commit

Permalink
Non-unified build fixes, early May 2024 edition
Browse files Browse the repository at this point in the history
https://bugs.webkit.org/show_bug.cgi?id=273273

Unreviewed non-unified build fix.

Fixing non-unified build for PlayStation.

* Source/JavaScriptCore/jit/ExecutableAllocator.cpp:
* Source/JavaScriptCore/runtime/JSCBytecodeCacheVersion.cpp:
* Source/WebCore/bindings/js/DOMWrapperWorld.cpp:
* Source/WebCore/crypto/algorithms/CryptoAlgorithmHKDF.cpp:
* Source/WebCore/crypto/algorithms/CryptoAlgorithmHMAC.cpp:
* Source/WebCore/dom/WindowEventLoop.cpp:
* Source/WebCore/layout/FormattingState.cpp:
* Source/WebCore/layout/Verification.cpp:
* Source/WebCore/layout/floats/FloatAvoider.cpp:
* Source/WebCore/layout/formattingContexts/block/BlockFormattingState.cpp:
* Source/WebCore/layout/formattingContexts/block/tablewrapper/TableWrapperBlockFormattingContext.cpp:
* Source/WebCore/layout/formattingContexts/block/tablewrapper/TableWrapperBlockFormattingQuirks.cpp:
* Source/WebCore/layout/formattingContexts/inline/InlineItem.cpp:
* Source/WebCore/layout/formattingContexts/table/TableFormattingState.cpp:
* Source/WebCore/layout/formattingContexts/table/TableGrid.cpp:
* Source/WebCore/layout/integration/LayoutIntegrationBoxTree.cpp:
* Source/WebCore/layout/layouttree/LayoutInitialContainingBlock.cpp:
* Source/WebCore/layout/layouttree/LayoutInlineTextBox.cpp:
* Source/WebCore/page/ElementTargetingController.cpp:
* Source/WebCore/page/ElementTargetingController.h:
* Source/WebCore/platform/graphics/FontCascadeDescription.cpp:
* Source/WebCore/platform/graphics/PixelFormatValidated.cpp:
* Source/WebCore/svg/properties/SVGSharedPrimitiveProperty.h:
* Source/WebCore/xml/parser/XMLDocumentParserScope.cpp:
* Source/WebCore/xml/parser/XMLDocumentParserScope.h:
* Source/WebKit/UIProcess/API/APITargetedElementRequest.cpp:
(API::TargetedElementRequest::makeRequest const):
* Source/WebKit/UIProcess/API/APITargetedElementRequest.h:

Canonical link: https://commits.webkit.org/278302@main
  • Loading branch information
donny-dont committed May 3, 2024
1 parent 69188a6 commit 1492af7
Show file tree
Hide file tree
Showing 27 changed files with 31 additions and 7 deletions.
2 changes: 2 additions & 0 deletions Source/JavaScriptCore/jit/ExecutableAllocator.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -157,8 +157,10 @@ static_assert(fixedExecutableMemoryPoolSize * executablePoolReservationFraction
static_assert(fixedExecutableMemoryPoolSize < 4 * GB, "ExecutableMemoryHandle assumes it is less than 4GB");
#endif

#if HAVE(KDEBUG_H)
// 325696c8-e7cc-11ee-9f4e-325096b39f47
static constexpr WTF::UUID jscJITNamespace { static_cast<UInt128>(0x325696c8e7cc11eeULL) << 64 | (0x9f4e325096b39f47ULL) };
#endif

static bool isJITEnabled()
{
Expand Down
2 changes: 2 additions & 0 deletions Source/JavaScriptCore/runtime/JSCBytecodeCacheVersion.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,11 @@

namespace JSC {

#if OS(DARWIN)
namespace JSCBytecodeCacheVersionInternal {
static constexpr bool verbose = false;
}
#endif

uint32_t computeJSCBytecodeCacheVersion()
{
Expand Down
2 changes: 2 additions & 0 deletions Source/WebCore/bindings/js/DOMWrapperWorld.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@
#include "CommonVM.h"
#include "WebCoreJSClientData.h"
#include "WindowProxy.h"
#include <JavaScriptCore/HeapCellInlines.h>
#include <JavaScriptCore/SlotVisitorInlines.h>
#include <JavaScriptCore/WeakInlines.h>
#include <wtf/MainThread.h>

Expand Down
1 change: 1 addition & 0 deletions Source/WebCore/crypto/algorithms/CryptoAlgorithmHKDF.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@

#include "CryptoAlgorithmHkdfParams.h"
#include "CryptoKeyRaw.h"
#include "ScriptExecutionContext.h"
#include <JavaScriptCore/JSCJSValueInlines.h>
#include <wtf/CrossThreadCopier.h>

Expand Down
1 change: 1 addition & 0 deletions Source/WebCore/crypto/algorithms/CryptoAlgorithmHMAC.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@

#include "CryptoAlgorithmHmacKeyParams.h"
#include "CryptoKeyHMAC.h"
#include "ScriptExecutionContext.h"
#include <variant>

namespace WebCore {
Expand Down
2 changes: 0 additions & 2 deletions Source/WebCore/dom/WindowEventLoop.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -67,8 +67,6 @@ static String agentClusterKeyOrNullIfUnique(const SecurityOrigin& origin)
return key;
}

static constexpr auto IdleCallbackDurationExpectation = 4_ms;

Ref<WindowEventLoop> WindowEventLoop::eventLoopForSecurityOrigin(const SecurityOrigin& origin)
{
auto key = agentClusterKeyOrNullIfUnique(origin);
Expand Down
1 change: 1 addition & 0 deletions Source/WebCore/layout/FormattingState.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
#include "FormattingState.h"

#include "LayoutBoxGeometry.h"
#include "RenderObject.h"
#include <wtf/IsoMallocInlines.h>

namespace WebCore {
Expand Down
2 changes: 2 additions & 0 deletions Source/WebCore/layout/Verification.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,8 @@
#include "config.h"
#include "LayoutState.h"

#include "RenderObject.h"

#if ASSERT_ENABLED

#include "BlockFormattingState.h"
Expand Down
1 change: 1 addition & 0 deletions Source/WebCore/layout/floats/FloatAvoider.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@

#include "LayoutBox.h"
#include "LayoutElementBox.h"
#include "RenderObject.h"
#include <wtf/IsoMallocInlines.h>

namespace WebCore {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
#include "config.h"
#include "BlockFormattingState.h"

#include "RenderObject.h"
#include <wtf/IsoMallocInlines.h>

namespace WebCore {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@
#include "LayoutChildIterator.h"
#include "LayoutContext.h"
#include "LayoutInitialContainingBlock.h"
#include "RenderObject.h"
#include "TableFormattingConstraints.h"
#include "TableFormattingContext.h"
#include "TableFormattingState.h"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@

#include "BlockFormattingGeometry.h"
#include "LayoutState.h"
#include "RenderObject.h"
#include "TableWrapperBlockFormattingContext.h"

namespace WebCore {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
#include "InlineItem.h"

#include "InlineTextItem.h"
#include "RenderObject.h"

namespace WebCore {
namespace Layout {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
#include "config.h"
#include "TableFormattingState.h"

#include "RenderObject.h"
#include "TableFormattingContext.h"
#include <wtf/IsoMallocInlines.h>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
#include "config.h"
#include "TableGrid.h"

#include "RenderObject.h"
#include <wtf/IsoMallocInlines.h>

namespace WebCore {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,6 @@
namespace WebCore {
namespace LayoutIntegration {

static constexpr size_t smallTreeThreshold = 8;

static std::unique_ptr<RenderStyle> firstLineStyleFor(const RenderObject& renderer)
{
auto& firstLineStyle = renderer.firstLineStyle();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
#include "config.h"
#include "LayoutInitialContainingBlock.h"

#include "RenderObject.h"
#include "RenderStyle.h"
#include <wtf/IsoMallocInlines.h>

Expand Down
1 change: 1 addition & 0 deletions Source/WebCore/layout/layouttree/LayoutInlineTextBox.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
#include "config.h"
#include "LayoutInlineTextBox.h"

#include "RenderObject.h"
#include "RenderStyle.h"
#include <wtf/IsoMallocInlines.h>

Expand Down
1 change: 1 addition & 0 deletions Source/WebCore/page/ElementTargetingController.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@
#include "ElementAncestorIteratorInlines.h"
#include "ElementChildIteratorInlines.h"
#include "ElementInlines.h"
#include "ElementRareData.h"
#include "ElementTargetingTypes.h"
#include "FloatPoint.h"
#include "FloatRect.h"
Expand Down
3 changes: 1 addition & 2 deletions Source/WebCore/page/ElementTargetingController.h
Original file line number Diff line number Diff line change
Expand Up @@ -28,13 +28,12 @@
#include "ElementIdentifier.h"
#include "ElementTargetingTypes.h"
#include "EventTarget.h"
#include "IntRect.h"
#include "IntRectHash.h"
#include "Region.h"
#include "ScriptExecutionContextIdentifier.h"
#include "Timer.h"
#include <wtf/ApproximateTime.h>
#include <wtf/CheckedPtr.h>
#include <wtf/HashMap.h>
#include <wtf/Ref.h>
#include <wtf/Vector.h>
#include <wtf/WeakHashSet.h>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@
#include "config.h"
#include "FontCascadeDescription.h"

#include "Font.h"
#include <wtf/text/StringHash.h>

#if USE(CORE_TEXT)
Expand Down
2 changes: 2 additions & 0 deletions Source/WebCore/platform/graphics/PixelFormatValidated.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,8 @@
#include "config.h"
#include "PixelFormatValidated.h"

#include "PixelFormat.h"

namespace WebCore {

PixelFormatValidated convertPixelFormatToPixelFormatValidated(PixelFormat format)
Expand Down
1 change: 1 addition & 0 deletions Source/WebCore/svg/properties/SVGSharedPrimitiveProperty.h
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
#pragma once

#include "SVGProperty.h"
#include "SVGPropertyTraits.h"

namespace WebCore {

Expand Down
1 change: 1 addition & 0 deletions Source/WebCore/xml/parser/XMLDocumentParserScope.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
#include "config.h"
#include "XMLDocumentParserScope.h"

#include "CachedResourceLoader.h"
#include "XMLDocumentParser.h"

namespace WebCore {
Expand Down
2 changes: 2 additions & 0 deletions Source/WebCore/xml/parser/XMLDocumentParserScope.h
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,9 @@

#pragma once

#include <libxml/parser.h>
#include <wtf/Noncopyable.h>
#include <wtf/WeakPtr.h>

#if ENABLE(XSLT)
#include <libxml/xmlerror.h>
Expand Down
2 changes: 1 addition & 1 deletion Source/WebKit/UIProcess/API/APITargetedElementRequest.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ void TargetedElementRequest::setSearchText(WTF::String&& searchText)
m_request.data = WTFMove(searchText);
}

WebCore::TargetedElementRequest TargetedElementRequest::makeRequest(const WebPageProxy& page) const
WebCore::TargetedElementRequest TargetedElementRequest::makeRequest(const WebKit::WebPageProxy& page) const
{
auto request = m_request;
if (std::holds_alternative<WebCore::FloatPoint>(m_request.data))
Expand Down
1 change: 1 addition & 0 deletions Source/WebKit/UIProcess/API/APITargetedElementRequest.h
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@

#pragma once

#include "APIObject.h"
#include <WebCore/ElementTargetingTypes.h>

namespace WebKit {
Expand Down

0 comments on commit 1492af7

Please sign in to comment.