[WTF] Add makeUnique<T>, which ensures T is fast-allocated, makeUnique / makeUniqueWithoutFastMallocCheck part
https://bugs.webkit.org/show_bug.cgi?id=200620
Source/JavaScriptCore:
Reviewed by Geoff Garen.
* API/JSCallbackObject.h:
(JSC::JSCallbackObjectData::setPrivateProperty):
* API/JSCallbackObjectFunctions.h:
(JSC::JSCallbackObject<Parent>::JSCallbackObject):
* API/JSClassRef.cpp:
(OpaqueJSClassContextData::OpaqueJSClassContextData):
(OpaqueJSClass::contextData):
* API/JSMarkingConstraintPrivate.cpp:
(JSContextGroupAddMarkingConstraint):
* API/JSWrapperMap.mm:
(-[JSWrapperMap initWithGlobalContextRef:]):
* API/ObjCCallbackFunction.mm:
(ArgumentTypeDelegate::typeInteger):
(ArgumentTypeDelegate::typeDouble):
(ArgumentTypeDelegate::typeBool):
(ArgumentTypeDelegate::typeId):
(ArgumentTypeDelegate::typeOfClass):
(ArgumentTypeDelegate::typeStruct):
(ResultTypeDelegate::typeInteger):
(ResultTypeDelegate::typeDouble):
(ResultTypeDelegate::typeBool):
(ResultTypeDelegate::typeVoid):
(ResultTypeDelegate::typeId):
(ResultTypeDelegate::typeOfClass):
(ResultTypeDelegate::typeBlock):
(ResultTypeDelegate::typeStruct):
(objCCallbackFunctionForInvocation):
* API/glib/JSCContext.cpp:
(jscContextSetVirtualMachine):
* API/glib/JSCWrapperMap.cpp:
(JSC::WrapperMap::WrapperMap):
* assembler/ProbeStack.cpp:
(JSC::Probe::Stack::ensurePageFor):
* b3/B3LowerToAir.cpp:
* b3/B3Procedure.cpp:
(JSC::B3::Procedure::Procedure):
(JSC::B3::Procedure::dominators):
(JSC::B3::Procedure::naturalLoops):
(JSC::B3::Procedure::backwardsCFG):
(JSC::B3::Procedure::backwardsDominators):
(JSC::B3::Procedure::addDataSection):
* b3/air/AirCode.cpp:
(JSC::B3::Air::Code::cCallSpecial):
* b3/air/AirGenerate.cpp:
(JSC::B3::Air::prepareForGeneration):
* b3/air/testair.cpp:
* b3/testb3.h:
(compileProc):
* bytecode/AccessCase.cpp:
(JSC::AccessCase::generateImpl):
* bytecode/AccessCaseSnippetParams.cpp:
* bytecode/BytecodeBasicBlock.cpp:
(JSC::BytecodeBasicBlock::computeImpl):
* bytecode/CallLinkInfo.cpp:
(JSC::CallLinkInfo::setFrameShuffleData):
* bytecode/CodeBlock.cpp:
(JSC::CodeBlock::ensureJITDataSlow):
(JSC::CodeBlock::setCalleeSaveRegisters):
(JSC::CodeBlock::ensureCatchLivenessIsComputedForBytecodeOffsetSlow):
* bytecode/CodeBlock.h:
(JSC::CodeBlock::createRareDataIfNecessary):
* bytecode/DFGExitProfile.cpp:
(JSC::DFG::ExitProfile::add):
* bytecode/DeferredCompilationCallback.cpp:
(JSC::DeferredCompilationCallback::ensureDeferredSourceDump):
* bytecode/GetByIdStatus.cpp:
(JSC::GetByIdStatus::computeForStubInfoWithoutExitSiteFeedback):
* bytecode/GetByIdVariant.cpp:
(JSC::GetByIdVariant::operator=):
* bytecode/LazyOperandValueProfile.cpp:
(JSC::CompressedLazyOperandValueProfileHolder::add):
* bytecode/PolyProtoAccessChain.h:
(JSC::PolyProtoAccessChain::clone):
* bytecode/PolymorphicAccess.cpp:
(JSC::PolymorphicAccess::regenerate):
* bytecode/PutByIdStatus.cpp:
(JSC::PutByIdStatus::computeForStubInfo):
* bytecode/PutByIdVariant.cpp:
(JSC::PutByIdVariant::operator=):
* bytecode/RecordedStatuses.cpp:
(JSC::RecordedStatuses::addCallLinkStatus):
(JSC::RecordedStatuses::addGetByIdStatus):
(JSC::RecordedStatuses::addPutByIdStatus):
(JSC::RecordedStatuses::addInByIdStatus):
* bytecode/StructureStubClearingWatchpoint.cpp:
(JSC::WatchpointsOnStructureStubInfo::ensureReferenceAndAddWatchpoint):
* bytecode/StructureStubInfo.cpp:
(JSC::StructureStubInfo::addAccessCase):
* bytecode/UnlinkedCodeBlock.cpp:
(JSC::UnlinkedCodeBlock::livenessAnalysisSlow):
* bytecode/UnlinkedCodeBlock.h:
(JSC::UnlinkedCodeBlock::createRareDataIfNecessary):
* bytecode/UnlinkedFunctionExecutable.cpp:
(JSC::UnlinkedFunctionExecutable::ensureRareDataSlow):
* bytecompiler/BytecodeGenerator.h:
(JSC::BytecodeGenerator::generate):
* dfg/DFGAbstractInterpreterInlines.h:
(JSC::DFG::AbstractInterpreter<AbstractStateType>::AbstractInterpreter):
* dfg/DFGGraph.cpp:
(JSC::DFG::Graph::Graph):
(JSC::DFG::Graph::livenessFor):
(JSC::DFG::Graph::killsFor):
(JSC::DFG::Graph::ensureCPSCFG):
(JSC::DFG::Graph::ensureCPSDominators):
(JSC::DFG::Graph::ensureSSADominators):
(JSC::DFG::Graph::ensureCPSNaturalLoops):
(JSC::DFG::Graph::ensureSSANaturalLoops):
(JSC::DFG::Graph::ensureBackwardsCFG):
(JSC::DFG::Graph::ensureBackwardsDominators):
(JSC::DFG::Graph::ensureControlEquivalenceAnalysis):
* dfg/DFGJITCompiler.cpp:
(JSC::DFG::JITCompiler::JITCompiler):
(JSC::DFG::JITCompiler::link):
(JSC::DFG::JITCompiler::compile):
(JSC::DFG::JITCompiler::compileFunction):
(JSC::DFG::JITCompiler::addressOfDoubleConstant):
* dfg/DFGLivenessAnalysisPhase.cpp:
* dfg/DFGPlan.cpp:
(JSC::DFG::Plan::compileInThreadImpl):
* dfg/DFGSSAConversionPhase.cpp:
(JSC::DFG::SSAConversionPhase::run):
* dfg/DFGSlowPathGenerator.h:
(JSC::DFG::slowPathCall):
(JSC::DFG::slowPathMove):
* dfg/DFGSpeculativeJIT.cpp:
(JSC::DFG::SpeculativeJIT::emitAllocateRawObject):
(JSC::DFG::SpeculativeJIT::arrayify):
(JSC::DFG::SpeculativeJIT::compileGetByValOnString):
(JSC::DFG::SpeculativeJIT::compileCreateDirectArguments):
(JSC::DFG::SpeculativeJIT::compileArraySlice):
(JSC::DFG::SpeculativeJIT::emitStructureCheck):
(JSC::DFG::SpeculativeJIT::compileAllocateNewArrayWithSize):
* dfg/DFGStoreBarrierInsertionPhase.cpp:
* dfg/DFGWorklist.cpp:
(JSC::DFG::Worklist::createNewThread):
* disassembler/Disassembler.cpp:
(JSC::disassembleAsynchronously):
* ftl/FTLAbstractHeap.cpp:
(JSC::FTL::IndexedAbstractHeap::atSlow):
* ftl/FTLCompile.cpp:
(JSC::FTL::compile):
* ftl/FTLFail.cpp:
(JSC::FTL::fail):
* ftl/FTLLink.cpp:
(JSC::FTL::link):
* ftl/FTLLowerDFGToB3.cpp:
(JSC::FTL::DFG::LowerDFGToB3::lazySlowPath):
* ftl/FTLState.cpp:
(JSC::FTL::State::State):
* heap/CompleteSubspace.cpp:
(JSC::CompleteSubspace::allocatorForSlow):
* heap/Heap.cpp:
(JSC::Heap::Heap):
(JSC::Heap::protectedObjectTypeCounts):
(JSC::Heap::objectTypeCounts):
(JSC::Heap::addCoreConstraints):
* heap/HeapInlines.h:
* heap/HeapSnapshotBuilder.cpp:
(JSC::HeapSnapshotBuilder::buildSnapshot):
* heap/IsoCellSet.cpp:
(JSC::IsoCellSet::addSlow):
* heap/IsoSubspace.cpp:
(JSC::IsoSubspace::IsoSubspace):
* heap/MarkingConstraintSet.cpp:
(JSC::MarkingConstraintSet::add):
* inspector/JSGlobalObjectConsoleClient.cpp:
(Inspector::JSGlobalObjectConsoleClient::messageWithTypeAndLevel):
(Inspector::JSGlobalObjectConsoleClient::profile):
(Inspector::JSGlobalObjectConsoleClient::profileEnd):
(Inspector::JSGlobalObjectConsoleClient::warnUnimplemented):
* inspector/JSGlobalObjectInspectorController.cpp:
(Inspector::JSGlobalObjectInspectorController::JSGlobalObjectInspectorController):
(Inspector::JSGlobalObjectInspectorController::reportAPIException):
(Inspector::JSGlobalObjectInspectorController::ensureInspectorAgent):
(Inspector::JSGlobalObjectInspectorController::ensureDebuggerAgent):
(Inspector::JSGlobalObjectInspectorController::createLazyAgents):
* inspector/agents/InspectorAgent.cpp:
(Inspector::InspectorAgent::InspectorAgent):
* inspector/agents/InspectorConsoleAgent.cpp:
(Inspector::InspectorConsoleAgent::InspectorConsoleAgent):
(Inspector::InspectorConsoleAgent::startTiming):
(Inspector::InspectorConsoleAgent::logTiming):
(Inspector::InspectorConsoleAgent::stopTiming):
(Inspector::InspectorConsoleAgent::count):
(Inspector::InspectorConsoleAgent::countReset):
* inspector/agents/InspectorDebuggerAgent.cpp:
(Inspector::InspectorDebuggerAgent::InspectorDebuggerAgent):
* inspector/agents/InspectorHeapAgent.cpp:
(Inspector::InspectorHeapAgent::InspectorHeapAgent):
* inspector/agents/InspectorScriptProfilerAgent.cpp:
(Inspector::InspectorScriptProfilerAgent::InspectorScriptProfilerAgent):
* inspector/agents/InspectorTargetAgent.cpp:
(Inspector::InspectorTargetAgent::InspectorTargetAgent):
* inspector/agents/JSGlobalObjectDebuggerAgent.cpp:
(Inspector::JSGlobalObjectDebuggerAgent::breakpointActionLog):
* inspector/agents/JSGlobalObjectRuntimeAgent.cpp:
(Inspector::JSGlobalObjectRuntimeAgent::JSGlobalObjectRuntimeAgent):
* inspector/remote/socket/RemoteInspectorSocketEndpoint.cpp:
(Inspector::RemoteInspectorSocketEndpoint::createClient):
* inspector/remote/socket/RemoteInspectorSocketEndpoint.h:
* inspector/scripts/codegen/objc_generator_templates.py:
* inspector/scripts/tests/all/expected/definitions-with-mac-platform.json-result:
* inspector/scripts/tests/generic/expected/commands-with-async-attribute.json-result:
* inspector/scripts/tests/generic/expected/commands-with-optional-call-return-parameters.json-result:
* inspector/scripts/tests/generic/expected/domain-availability.json-result:
* inspector/scripts/tests/generic/expected/domains-with-varying-command-sizes.json-result:
* inspector/scripts/tests/generic/expected/enum-values.json-result:
* inspector/scripts/tests/generic/expected/generate-domains-with-feature-guards.json-result:
* inspector/scripts/tests/mac/expected/definitions-with-mac-platform.json-result:
* jit/JIT.cpp:
(JSC::JIT::compileWithoutLinking):
(JSC::JIT::link):
* jit/JITThunks.cpp:
(JSC::JITThunks::JITThunks):
* jit/Repatch.cpp:
(JSC::linkPolymorphicCall):
* jsc.cpp:
(runJSC):
* parser/Parser.cpp:
(JSC::Parser<LexerType>::Parser):
* parser/Parser.h:
(JSC::Scope::pushLabel):
(JSC::Parser<LexerType>::parse):
* parser/ParserArena.h:
(JSC::ParserArena::identifierArena):
* profiler/ProfilerCompilation.cpp:
(JSC::Profiler::Compilation::executionCounterFor):
* runtime/Error.cpp:
(JSC::getStackTrace):
* runtime/FunctionExecutable.cpp:
(JSC::FunctionExecutable::ensureRareDataSlow):
* runtime/FunctionRareData.h:
(JSC::FunctionRareData::createAllocationProfileClearingWatchpoint):
* runtime/JSGlobalObject.cpp:
(JSC::JSGlobalObject::init):
(JSC::JSGlobalObject::tryInstallArraySpeciesWatchpoint):
* runtime/JSGlobalObject.h:
(JSC::JSGlobalObject::createRareDataIfNeeded):
* runtime/JSRunLoopTimer.cpp:
(JSC::JSRunLoopTimer::Manager::PerVMData::PerVMData):
(JSC::JSRunLoopTimer::Manager::registerVM):
* runtime/PropertyMapHashTable.h:
(JSC::PropertyTable::addDeletedOffset):
* runtime/PropertyTable.cpp:
(JSC::PropertyTable::PropertyTable):
* runtime/RegExp.cpp:
(JSC::RegExp::finishCreation):
* runtime/RegExp.h:
* runtime/ScriptExecutable.cpp:
(JSC::ScriptExecutable::ensureTemplateObjectMapImpl):
* runtime/Structure.cpp:
(JSC::Structure::ensurePropertyReplacementWatchpointSet):
* runtime/StructureRareData.cpp:
(JSC::StructureRareData::setObjectToStringValue):
* runtime/SymbolTable.cpp:
(JSC::SymbolTable::localToEntry):
(JSC::SymbolTable::cloneScopePart):
(JSC::SymbolTable::prepareForTypeProfiling):
(JSC::SymbolTable::setRareDataCodeBlock):
* runtime/TypeSet.cpp:
(JSC::StructureShape::propertyHash):
* runtime/VM.cpp:
(JSC::VM::VM):
(JSC::VM::ensureHeapProfiler):
(JSC::VM::enableTypeProfiler):
(JSC::VM::enableControlFlowProfiler):
(JSC::VM::queueMicrotask):
(JSC::VM::ensureShadowChicken):
* wasm/WasmAirIRGenerator.cpp:
(JSC::Wasm::AirIRGenerator::emitPatchpoint):
(JSC::Wasm::AirIRGenerator::emitCheck):
(JSC::Wasm::parseAndCompileAir):
* wasm/WasmB3IRGenerator.cpp:
(JSC::Wasm::parseAndCompile):
* wasm/WasmBBQPlan.cpp:
(JSC::Wasm::BBQPlan::complete):
* wasm/WasmOMGPlan.cpp:
(JSC::Wasm::OMGPlan::work):
* wasm/WasmWorklist.cpp:
(JSC::Wasm::Worklist::Worklist):
* wasm/js/JSToWasm.cpp:
(JSC::Wasm::createJSToWasmWrapper):
* yarr/YarrInterpreter.cpp:
(JSC::Yarr::ByteCompiler::compile):
(JSC::Yarr::ByteCompiler::atomParenthesesSubpatternEnd):
(JSC::Yarr::ByteCompiler::regexBegin):
* yarr/YarrJIT.cpp:
(JSC::Yarr::YarrGenerator::compile):
* yarr/YarrPattern.cpp:
(JSC::Yarr::CharacterClassConstructor::charClass):
(JSC::Yarr::YarrPatternConstructor::YarrPatternConstructor):
(JSC::Yarr::YarrPatternConstructor::resetForReparsing):
(JSC::Yarr::YarrPatternConstructor::atomParenthesesSubpatternBegin):
(JSC::Yarr::YarrPatternConstructor::atomParentheticalAssertionBegin):
(JSC::Yarr::YarrPatternConstructor::copyDisjunction):
(JSC::Yarr::anycharCreate):
* yarr/YarrPattern.h:
(JSC::Yarr::PatternDisjunction::addNewAlternative):
* yarr/create_regex_tables:
* yarr/generateYarrUnicodePropertyTables.py:
Source/WebCore:
Reviewed by Geoff Garen.
* Modules/applicationmanifest/ApplicationManifestParser.cpp:
(WebCore::ApplicationManifestParser::logDeveloperWarning):
* Modules/beacon/NavigatorBeacon.cpp:
(WebCore::NavigatorBeacon::from):
* Modules/cache/DOMWindowCaches.cpp:
(WebCore::DOMWindowCaches::from):
* Modules/cache/WorkerGlobalScopeCaches.cpp:
(WebCore::WorkerGlobalScopeCaches::from):
* Modules/credentialmanagement/NavigatorCredentials.cpp:
(WebCore::NavigatorCredentials::from):
* Modules/encryptedmedia/InitDataRegistry.cpp:
(WebCore::InitDataRegistry::extractPsshBoxesFromCenc):
* Modules/encryptedmedia/legacy/LegacyCDM.cpp:
(WebCore::LegacyCDM::create):
* Modules/encryptedmedia/legacy/LegacyCDMPrivateClearKey.cpp:
(WebCore::LegacyCDMPrivateClearKey::createSession):
* Modules/fetch/FetchBodyOwner.cpp:
(WebCore::FetchBodyOwner::loadBlob):
* Modules/fetch/FetchResponse.cpp:
(WebCore::FetchResponse::fetch):
(WebCore::FetchResponse::BodyLoader::start):
* Modules/gamepad/NavigatorGamepad.cpp:
(WebCore::NavigatorGamepad::from):
* Modules/geolocation/GeolocationController.cpp:
(WebCore::provideGeolocationTo):
* Modules/geolocation/NavigatorGeolocation.cpp:
(WebCore::NavigatorGeolocation::from):
* Modules/indexeddb/DOMWindowIndexedDatabase.cpp:
(WebCore::DOMWindowIndexedDatabase::from):
* Modules/indexeddb/IDBObjectStore.cpp:
(WebCore::IDBObjectStore::index):
* Modules/indexeddb/IDBTransaction.cpp:
(WebCore::IDBTransaction::objectStore):
(WebCore::IDBTransaction::createObjectStore):
(WebCore::IDBTransaction::createIndex):
* Modules/indexeddb/WorkerGlobalScopeIndexedDatabase.cpp:
(WebCore::WorkerGlobalScopeIndexedDatabase::from):
* Modules/indexeddb/client/IDBConnectionToServer.cpp:
(WebCore::IDBClient::IDBConnectionToServer::IDBConnectionToServer):
* Modules/indexeddb/client/TransactionOperation.cpp:
(WebCore::IDBClient::TransactionOperation::TransactionOperation):
* Modules/indexeddb/server/IDBServer.cpp:
(WebCore::IDBServer::IDBServer::getOrCreateUniqueIDBDatabase):
(WebCore::IDBServer::IDBServer::createBackingStore):
(WebCore::IDBServer::IDBServer::ensureQuotaUser):
* Modules/indexeddb/server/IndexValueStore.cpp:
(WebCore::IDBServer::IndexValueStore::addRecord):
* Modules/indexeddb/server/MemoryBackingStoreTransaction.cpp:
(WebCore::IDBServer::MemoryBackingStoreTransaction::create):
(WebCore::IDBServer::MemoryBackingStoreTransaction::MemoryBackingStoreTransaction):
(WebCore::IDBServer::MemoryBackingStoreTransaction::recordValueChanged):
* Modules/indexeddb/server/MemoryIDBBackingStore.cpp:
(WebCore::IDBServer::MemoryIDBBackingStore::create):
(WebCore::IDBServer::MemoryIDBBackingStore::getOrEstablishDatabaseInfo):
(WebCore::IDBServer::MemoryIDBBackingStore::setDatabaseInfo):
* Modules/indexeddb/server/MemoryIndex.cpp:
(WebCore::IDBServer::MemoryIndex::putIndexKey):
(WebCore::IDBServer::MemoryIndex::maybeOpenCursor):
* Modules/indexeddb/server/MemoryObjectStore.cpp:
(WebCore::IDBServer::MemoryObjectStore::addRecord):
(WebCore::IDBServer::MemoryObjectStore::maybeOpenCursor):
* Modules/indexeddb/server/SQLiteIDBBackingStore.cpp:
(WebCore::IDBServer::SQLiteIDBBackingStore::createAndPopulateInitialDatabaseInfo):
(WebCore::IDBServer::SQLiteIDBBackingStore::extractExistingDatabaseInfo):
(WebCore::IDBServer::SQLiteIDBBackingStore::getOrEstablishDatabaseInfo):
(WebCore::IDBServer::SQLiteIDBBackingStore::beginTransaction):
(WebCore::IDBServer::SQLiteIDBBackingStore::cachedStatement):
* Modules/indexeddb/server/SQLiteIDBCursor.cpp:
(WebCore::IDBServer::SQLiteIDBCursor::maybeCreate):
(WebCore::IDBServer::SQLiteIDBCursor::maybeCreateBackingStoreCursor):
(WebCore::IDBServer::SQLiteIDBCursor::createSQLiteStatement):
(WebCore::IDBServer::SQLiteIDBCursor::internalFetchNextRecord):
* Modules/indexeddb/server/SQLiteIDBTransaction.cpp:
(WebCore::IDBServer::SQLiteIDBTransaction::begin):
* Modules/indexeddb/server/UniqueIDBDatabase.cpp:
(WebCore::IDBServer::UniqueIDBDatabase::didDeleteBackingStore):
(WebCore::IDBServer::UniqueIDBDatabase::didOpenBackingStore):
(WebCore::IDBServer::UniqueIDBDatabase::didPerformAbortTransaction):
* Modules/indexeddb/server/UniqueIDBDatabaseTransaction.cpp:
(WebCore::IDBServer::UniqueIDBDatabaseTransaction::UniqueIDBDatabaseTransaction):
* Modules/indexeddb/shared/IDBRequestData.cpp:
(WebCore::IDBRequestData::IDBRequestData):
(WebCore::IDBRequestData::isolatedCopy):
* Modules/indexeddb/shared/IDBRequestData.h:
(WebCore::IDBRequestData::decode):
* Modules/indexeddb/shared/IDBResultData.cpp:
(WebCore::IDBResultData::IDBResultData):
(WebCore::IDBResultData::isolatedCopy):
(WebCore::IDBResultData::openDatabaseSuccess):
(WebCore::IDBResultData::openDatabaseUpgradeNeeded):
(WebCore::IDBResultData::deleteDatabaseSuccess):
(WebCore::IDBResultData::putOrAddSuccess):
(WebCore::IDBResultData::getRecordSuccess):
(WebCore::IDBResultData::getAllRecordsSuccess):
(WebCore::IDBResultData::openCursorSuccess):
(WebCore::IDBResultData::iterateCursorSuccess):
* Modules/indexeddb/shared/IDBResultData.h:
(WebCore::IDBResultData::decode):
* Modules/indexeddb/shared/IDBTransactionInfo.cpp:
(WebCore::IDBTransactionInfo::versionChange):
(WebCore::IDBTransactionInfo::IDBTransactionInfo):
(WebCore::IDBTransactionInfo::isolatedCopy):
* Modules/indexeddb/shared/IDBTransactionInfo.h:
(WebCore::IDBTransactionInfo::decode):
* Modules/indexeddb/shared/InProcessIDBServer.cpp:
(WebCore::InProcessIDBServer::quotaManager):
* Modules/mediacapabilities/NavigatorMediaCapabilities.cpp:
(WebCore::NavigatorMediaCapabilities::from):
* Modules/mediasession/WebMediaSessionManager.cpp:
(WebCore::WebMediaSessionManager::mockPicker):
(WebCore::WebMediaSessionManager::addPlaybackTargetPickerClient):
* Modules/mediasource/MediaSource.cpp:
(WebCore::MediaSource::buffered const):
(WebCore::MediaSource::setLiveSeekableRange):
* Modules/mediastream/NavigatorMediaDevices.cpp:
(WebCore::NavigatorMediaDevices::from):
* Modules/mediastream/UserMediaController.cpp:
(WebCore::provideUserMediaTo):
* Modules/mediastream/libwebrtc/LibWebRTCDataChannelHandler.cpp:
(WebCore::LibWebRTCDataChannelHandler::channelEvent):
* Modules/mediastream/libwebrtc/LibWebRTCMediaEndpoint.cpp:
(WebCore::LibWebRTCMediaEndpoint::addRemoteTrack):
(WebCore::LibWebRTCMediaEndpoint::collectTransceivers):
(WebCore::LibWebRTCMediaEndpoint::newTransceiver):
(WebCore::LibWebRTCMediaEndpoint::createTransceiverBackends):
(WebCore::LibWebRTCMediaEndpoint::transceiverBackendFromSender):
(WebCore::LibWebRTCMediaEndpoint::createDataChannel):
* Modules/mediastream/libwebrtc/LibWebRTCPeerConnectionBackend.cpp:
(WebCore::createLibWebRTCPeerConnectionBackend):
(WebCore::LibWebRTCPeerConnectionBackend::videoReceiver):
(WebCore::LibWebRTCPeerConnectionBackend::audioReceiver):
(WebCore::LibWebRTCPeerConnectionBackend::addTrack):
(WebCore::LibWebRTCPeerConnectionBackend::addTransceiver):
* Modules/mediastream/libwebrtc/LibWebRTCRtpSenderBackend.cpp:
(WebCore::LibWebRTCRtpSenderBackend::createDTMFBackend):
* Modules/mediastream/libwebrtc/LibWebRTCRtpTransceiverBackend.cpp:
(WebCore::LibWebRTCRtpTransceiverBackend::createReceiverBackend):
(WebCore::LibWebRTCRtpTransceiverBackend::createSenderBackend):
* Modules/notifications/Notification.cpp:
(WebCore::Notification::Notification):
* Modules/notifications/NotificationController.cpp:
(WebCore::provideNotification):
* Modules/quota/DOMWindowQuota.cpp:
(WebCore::DOMWindowQuota::from):
* Modules/quota/NavigatorStorageQuota.cpp:
(WebCore::NavigatorStorageQuota::from):
* Modules/quota/WorkerNavigatorStorageQuota.cpp:
(WebCore::WorkerNavigatorStorageQuota::from):
* Modules/speech/DOMWindowSpeechSynthesis.cpp:
(WebCore::DOMWindowSpeechSynthesis::from):
* Modules/speech/SpeechSynthesis.cpp:
(WebCore::SpeechSynthesis::ensurePlatformSpeechSynthesizer):
* Modules/webaudio/AsyncAudioDecoder.cpp:
(WebCore::AsyncAudioDecoder::decodeAsync):
* Modules/webaudio/AudioBasicInspectorNode.cpp:
(WebCore::AudioBasicInspectorNode::AudioBasicInspectorNode):
* Modules/webaudio/AudioBasicProcessorNode.cpp:
(WebCore::AudioBasicProcessorNode::AudioBasicProcessorNode):
* Modules/webaudio/AudioBufferSourceNode.cpp:
(WebCore::AudioBufferSourceNode::AudioBufferSourceNode):
* Modules/webaudio/AudioContext.cpp:
(WebCore::AudioContext::AudioContext):
(WebCore::AudioContext::decodeAudioData):
* Modules/webaudio/AudioDestinationNode.cpp:
(WebCore::AudioDestinationNode::AudioDestinationNode):
* Modules/webaudio/BiquadFilterNode.cpp:
(WebCore::BiquadFilterNode::BiquadFilterNode):
* Modules/webaudio/BiquadProcessor.cpp:
(WebCore::BiquadProcessor::createKernel):
(WebCore::BiquadProcessor::getFrequencyResponse):
* Modules/webaudio/ChannelMergerNode.cpp:
(WebCore::ChannelMergerNode::ChannelMergerNode):
* Modules/webaudio/ChannelSplitterNode.cpp:
(WebCore::ChannelSplitterNode::ChannelSplitterNode):
* Modules/webaudio/ConvolverNode.cpp:
(WebCore::ConvolverNode::ConvolverNode):
(WebCore::ConvolverNode::setBuffer):
* Modules/webaudio/DelayNode.cpp:
(WebCore::DelayNode::DelayNode):
* Modules/webaudio/DelayProcessor.cpp:
(WebCore::DelayProcessor::createKernel):
* Modules/webaudio/DynamicsCompressorNode.cpp:
(WebCore::DynamicsCompressorNode::DynamicsCompressorNode):
(WebCore::DynamicsCompressorNode::initialize):
* Modules/webaudio/GainNode.cpp:
(WebCore::GainNode::GainNode):
* Modules/webaudio/MediaElementAudioSourceNode.cpp:
(WebCore::MediaElementAudioSourceNode::MediaElementAudioSourceNode):
(WebCore::MediaElementAudioSourceNode::setFormat):
* Modules/webaudio/MediaStreamAudioSourceNode.cpp:
(WebCore::MediaStreamAudioSourceNode::MediaStreamAudioSourceNode):
(WebCore::MediaStreamAudioSourceNode::setFormat):
* Modules/webaudio/OscillatorNode.cpp:
(WebCore::OscillatorNode::OscillatorNode):
* Modules/webaudio/PannerNode.cpp:
(WebCore::PannerNode::PannerNode):
* Modules/webaudio/PeriodicWave.cpp:
(WebCore::PeriodicWave::createBandLimitedTables):
* Modules/webaudio/RealtimeAnalyser.cpp:
(WebCore::RealtimeAnalyser::RealtimeAnalyser):
(WebCore::RealtimeAnalyser::setFftSize):
* Modules/webaudio/ScriptProcessorNode.cpp:
(WebCore::ScriptProcessorNode::ScriptProcessorNode):
* Modules/webaudio/WaveShaperDSPKernel.cpp:
(WebCore::WaveShaperDSPKernel::lazyInitializeOversampling):
* Modules/webaudio/WaveShaperNode.cpp:
(WebCore::WaveShaperNode::WaveShaperNode):
* Modules/webaudio/WaveShaperProcessor.cpp:
(WebCore::WaveShaperProcessor::createKernel):
* Modules/webauthn/fido/FidoHidMessage.cpp:
(fido::FidoHidMessage::FidoHidMessage):
* Modules/webauthn/fido/FidoHidPacket.cpp:
(fido::FidoHidInitPacket::createFromSerializedData):
(fido::FidoHidContinuationPacket::createFromSerializedData):
* Modules/webdatabase/Database.cpp:
(WebCore::Database::openAndVerifyVersion):
(WebCore::Database::close):
(WebCore::Database::scheduleTransaction):
(WebCore::Database::scheduleTransactionStep):
(WebCore::Database::tableNames):
* Modules/webdatabase/DatabaseThread.cpp:
(WebCore::DatabaseThread::DatabaseThread):
* Modules/webdatabase/DatabaseTracker.cpp:
(WebCore::DatabaseTracker::addOpenDatabase):
(WebCore::DatabaseTracker::recordCreatingDatabase):
(WebCore::DatabaseTracker::recordDeletingDatabase):
* Modules/webdatabase/SQLTransaction.cpp:
(WebCore::SQLTransaction::executeSql):
(WebCore::SQLTransaction::openTransactionAndPreflight):
* Modules/webdriver/NavigatorWebDriver.cpp:
(WebCore::NavigatorWebDriver::from):
* Modules/webgpu/NavigatorGPU.cpp:
(WebCore::NavigatorGPU::from):
* Modules/webgpu/WHLSL/AST/WHLSLEnumerationDefinition.h:
* Modules/webgpu/WHLSL/AST/WHLSLVariableDeclaration.h:
* Modules/webgpu/WHLSL/Metal/WHLSLFunctionWriter.cpp:
(WebCore::WHLSL::Metal::RenderFunctionDefinitionWriter::createEntryPointScaffolding):
(WebCore::WHLSL::Metal::ComputeFunctionDefinitionWriter::createEntryPointScaffolding):
* Modules/webgpu/WHLSL/Metal/WHLSLTypeNamer.cpp:
(WebCore::WHLSL::Metal::TypeNamer::createNameNode):
* Modules/webgpu/WHLSL/WHLSLChecker.cpp:
(WebCore::WHLSL::Checker::assignConcreteType):
(WebCore::WHLSL::Checker::assignType):
(WebCore::WHLSL::Checker::forwardType):
* Modules/webgpu/WHLSL/WHLSLParser.cpp:
(WebCore::WHLSL::Parser::parseSemantic):
* Modules/webgpu/WorkerNavigatorGPU.cpp:
(WebCore::WorkerNavigatorGPU::from):
* Modules/websockets/ThreadableWebSocketChannelClientWrapper.cpp:
(WebCore::ThreadableWebSocketChannelClientWrapper::didConnect):
(WebCore::ThreadableWebSocketChannelClientWrapper::didReceiveMessage):
(WebCore::ThreadableWebSocketChannelClientWrapper::didReceiveBinaryData):
(WebCore::ThreadableWebSocketChannelClientWrapper::didUpdateBufferedAmount):
(WebCore::ThreadableWebSocketChannelClientWrapper::didStartClosingHandshake):
(WebCore::ThreadableWebSocketChannelClientWrapper::didClose):
(WebCore::ThreadableWebSocketChannelClientWrapper::didReceiveMessageError):
(WebCore::ThreadableWebSocketChannelClientWrapper::didUpgradeURL):
* Modules/websockets/WebSocketChannel.cpp:
(WebCore::WebSocketChannel::connect):
(WebCore::WebSocketChannel::enqueueTextFrame):
(WebCore::WebSocketChannel::enqueueRawFrame):
(WebCore::WebSocketChannel::enqueueBlobFrame):
(WebCore::WebSocketChannel::processOutgoingFrameQueue):
* Modules/websockets/WebSocketDeflateFramer.cpp:
(WebCore::WebSocketDeflateFramer::createExtensionProcessor):
(WebCore::WebSocketDeflateFramer::enableDeflate):
(WebCore::WebSocketDeflateFramer::deflate):
(WebCore::WebSocketDeflateFramer::inflate):
* Modules/websockets/WebSocketDeflater.cpp:
(WebCore::WebSocketDeflater::WebSocketDeflater):
(WebCore::WebSocketInflater::WebSocketInflater):
* Modules/websockets/WorkerThreadableWebSocketChannel.cpp:
(WebCore::WorkerThreadableWebSocketChannel::Bridge::mainThreadInitialize):
* Modules/webvr/NavigatorWebVR.cpp:
(WebCore::NavigatorWebVR::from):
* accessibility/AXObjectCache.cpp:
(WebCore::AXObjectCache::startCachingComputedObjectAttributesUntilTreeMutates):
* animation/WebAnimation.cpp:
(WebCore::WebAnimation::updateFinishedState):
* bindings/js/JSDOMWindowBase.cpp:
(WebCore::JSDOMWindowBase::queueTaskToEventLoop):
* bindings/js/JSEventTargetCustom.cpp:
(WebCore::jsEventTargetCast):
* bindings/js/JSWorkerGlobalScopeBase.cpp:
(WebCore::JSWorkerGlobalScopeBase::queueTaskToEventLoop):
* bindings/js/SerializedScriptValue.cpp:
(WebCore::transferArrayBuffers):
(WebCore::SerializedScriptValue::create):
* bindings/js/SerializedScriptValue.h:
(WebCore::SerializedScriptValue::decode):
* bindings/js/WebCoreJSClientData.cpp:
(WebCore::JSVMClientData::initNormalWorld):
* bindings/js/WorkerScriptController.cpp:
(WebCore::WorkerScriptController::initScript):
* bridge/c/c_class.cpp:
(JSC::Bindings::CClass::methodNamed const):
(JSC::Bindings::CClass::fieldNamed const):
* bridge/objc/objc_class.mm:
(JSC::Bindings::ObjcClass::methodNamed const):
(JSC::Bindings::ObjcClass::fieldNamed const):
* bridge/objc/objc_runtime.mm:
(JSC::Bindings::callObjCFallbackObject):
* contentextensions/CombinedURLFilters.cpp:
(WebCore::ContentExtensions::CombinedURLFilters::CombinedURLFilters):
(WebCore::ContentExtensions::CombinedURLFilters::addPattern):
* crypto/SubtleCrypto.cpp:
(WebCore::normalizeCryptoAlgorithmParameters):
(WebCore::crossThreadCopyImportParams):
* css/CSSCalculationValue.cpp:
(WebCore::determineCategory):
* css/CSSDefaultStyleSheets.cpp:
(WebCore::CSSDefaultStyleSheets::loadFullDefaultStyle):
(WebCore::CSSDefaultStyleSheets::loadSimpleDefaultStyle):
* css/CSSFontFace.cpp:
(WebCore::CSSFontFace::appendSources):
* css/CSSFontFaceSet.cpp:
(WebCore::CSSFontFaceSet::ensureLocalFontFacesForFamilyRegistered):
* css/CSSGroupingRule.cpp:
(WebCore::CSSGroupingRule::cssRules const):
* css/CSSImageGeneratorValue.cpp:
(WebCore::CSSImageGeneratorValue::saveCachedImageForSize):
* css/CSSKeyframesRule.cpp:
(WebCore::CSSKeyframesRule::cssRules):
* css/CSSStyleSheet.cpp:
(WebCore::CSSStyleSheet::cssRules):
* css/DOMCSSPaintWorklet.cpp:
(WebCore::DOMCSSPaintWorklet::from):
* css/DOMCSSRegisterCustomProperty.cpp:
(WebCore::DOMCSSRegisterCustomProperty::from):
* css/DocumentRuleSets.cpp:
(WebCore::DocumentRuleSets::DocumentRuleSets):
(WebCore::DocumentRuleSets::updateUserAgentMediaQueryStyleIfNeeded const):
(WebCore::DocumentRuleSets::initializeUserStyle):
(WebCore::makeRuleSet):
(WebCore::DocumentRuleSets::resetAuthorStyle):
(WebCore::ensureInvalidationRuleSets):
* css/ElementRuleCollector.cpp:
(WebCore::ElementRuleCollector::collectSlottedPseudoElementRulesForSlot):
* css/FontFace.cpp:
(WebCore::populateFontFaceWithArrayBuffer):
* css/PropertySetCSSStyleDeclaration.cpp:
(WebCore::PropertySetCSSStyleDeclaration::wrapForDeprecatedCSSOM):
* css/RuleFeature.cpp:
(WebCore::RuleFeatureSet::collectFeatures):
(WebCore::RuleFeatureSet::add):
* css/RuleSet.cpp:
(WebCore::RuleSet::addToRuleSet):
* css/StyleBuilderConverter.h:
(WebCore::StyleBuilderConverter::convertTo100PercentMinusLength):
* css/StyleBuilderCustom.h:
(WebCore::StyleBuilderCustom::applyTextOrBoxShadowValue):
(WebCore::StyleBuilderCustom::applyInheritTextShadow):
(WebCore::StyleBuilderCustom::applyInheritBoxShadow):
(WebCore::StyleBuilderCustom::applyValueContent):
* css/StyleProperties.cpp:
(WebCore::MutableStyleProperties::ensureCSSStyleDeclaration):
(WebCore::MutableStyleProperties::ensureInlineCSSStyleDeclaration):
* css/StyleResolver.cpp:
(WebCore::StyleResolver::cascadedPropertiesForRollback):
* css/makeprop.pl:
(generateFillLayerPropertyInheritValueSetter):
(generateFillLayerPropertyValueSetter):
* css/parser/CSSParserImpl.cpp:
(WebCore::CSSParserImpl::CSSParserImpl):
(WebCore::CSSParserImpl::parsePageSelector):
(WebCore::CSSParserImpl::consumeMediaRule):
(WebCore::CSSParserImpl::consumeSupportsRule):
(WebCore::CSSParserImpl::consumeKeyframesRule):
* css/parser/CSSParserSelector.cpp:
(WebCore::CSSParserSelector::parsePagePseudoSelector):
(WebCore::CSSParserSelector::parsePseudoElementSelector):
(WebCore::CSSParserSelector::parsePseudoClassSelector):
(WebCore::CSSParserSelector::CSSParserSelector):
(WebCore::CSSParserSelector::adoptSelectorVector):
(WebCore::CSSParserSelector::prependTagSelector):
* css/parser/CSSPropertyParser.cpp:
(WebCore::consumeBasicShapePath):
* css/parser/CSSSelectorParser.cpp:
(WebCore::CSSSelectorParser::consumePseudo):
* dom/CustomElementReactionQueue.cpp:
(WebCore::CustomElementReactionQueue::ensureBackupQueue):
* dom/DataTransfer.cpp:
(WebCore::DataTransfer::items):
(WebCore::DataTransfer::createForInputEvent):
(WebCore::DataTransfer::createForDragStartEvent):
(WebCore::DataTransfer::setDragImage):
* dom/DeviceOrientationController.cpp:
(WebCore::provideDeviceOrientationTo):
* dom/Document.cpp:
(WebCore::Document::Document):
(WebCore::Document::buildAccessKeyCache):
(WebCore::Document::implementation):
(WebCore::Document::formController):
(WebCore::Document::updateTextRenderer):
(WebCore::Document::userAgentShadowTreeStyleResolver):
(WebCore::Document::axObjectCache const):
(WebCore::Document::setParsing):
(WebCore::Document::accessSVGExtensions):
(WebCore::Document::initSecurityContext):
(WebCore::Document::textAutoSizing):
(WebCore::Document::didAddWheelEventHandler):
(WebCore::Document::didAddTouchEventHandler):
(WebCore::Document::didLogMessage):
(WebCore::Document::registerCSSProperty):
(WebCore::Document::deviceOrientationAndMotionAccessController):
(WebCore::Document::contentChangeObserver):
(WebCore::Document::domTimerHoldingTank):
* dom/Document.h:
(WebCore::Document::createParserYieldToken):
* dom/DocumentEventQueue.cpp:
(WebCore::DocumentEventQueue::DocumentEventQueue):
* dom/DocumentMarkerController.cpp:
(WebCore::DocumentMarkerController::addMarker):
* dom/DocumentStorageAccess.cpp:
(WebCore::DocumentStorageAccess::from):
(WebCore::DocumentStorageAccess::requestStorageAccess):
(WebCore::DocumentStorageAccess::enableTemporaryTimeUserGesture):
* dom/Element.cpp:
(WebCore::Element::attributes const):
(WebCore::Element::setIsDefinedCustomElement):
(WebCore::Element::enqueueToUpgrade):
(WebCore::Element::classList):
(WebCore::Element::dataset):
(WebCore::Element::ensureIntersectionObserverData):
(WebCore::Element::ensureResizeObserverData):
* dom/EventListenerMap.cpp:
(WebCore::EventListenerMap::add):
* dom/EventNames.h:
* dom/EventPath.cpp:
(WebCore::EventPath::buildPath):
(WebCore::EventPath::EventPath):
* dom/IdTargetObserverRegistry.cpp:
(WebCore::IdTargetObserverRegistry::addObserver):
* dom/KeyboardEvent.cpp:
(WebCore::KeyboardEvent::KeyboardEvent):
* dom/MutationObserver.cpp:
(WebCore::queueMutationObserverCompoundMicrotask):
* dom/MutationObserverInterestGroup.cpp:
(WebCore::MutationObserverInterestGroup::createIfNeeded):
* dom/MutationObserverRegistration.cpp:
(WebCore::MutationObserverRegistration::observedSubtreeNodeWillDetach):
* dom/Node.cpp:
(WebCore::Node::materializeRareData):
(WebCore::Node::ensureEventTargetData):
(WebCore::Node::registerMutationObserver):
* dom/NodeRareData.h:
(WebCore::NodeRareData::ensureNodeLists):
(WebCore::NodeRareData::ensureMutationObserverData):
* dom/RadioButtonGroups.cpp:
(WebCore::RadioButtonGroups::addButton):
* dom/ScriptExecutionContext.cpp:
(WebCore::ScriptExecutionContext::reportException):
(WebCore::ScriptExecutionContext::reportUnhandledPromiseRejection):
(WebCore::ScriptExecutionContext::ensureRejectedPromiseTrackerSlow):
* dom/SelectorQuery.cpp:
* dom/ShadowRoot.cpp:
(WebCore::ShadowRoot::ShadowRoot):
(WebCore::ShadowRoot::moveShadowRootToNewDocument):
(WebCore::ShadowRoot::addSlotElementByName):
* dom/SlotAssignment.cpp:
(WebCore::SlotAssignment::addSlotElementByName):
(WebCore::SlotAssignment::assignToSlot):
* dom/TreeScope.cpp:
(WebCore::TreeScope::TreeScope):
(WebCore::TreeScope::addElementById):
(WebCore::TreeScope::addElementByName):
(WebCore::TreeScope::addImageMap):
(WebCore::TreeScope::addImageElementByUsemap):
(WebCore::TreeScope::labelElementForId):
* editing/Editor.cpp:
(WebCore::createDataTransferForClipboardEvent):
(WebCore::Editor::Editor):
* editing/ReplaceSelectionCommand.cpp:
(WebCore::ReplaceSelectionCommand::ensureReplacementFragment):
* editing/SelectionRectGatherer.cpp:
(WebCore::SelectionRectGatherer::clearAndCreateNotifier):
* editing/TextIterator.cpp:
(WebCore::TextIterator::handleTextNode):
* editing/cocoa/HTMLConverter.mm:
(HTMLConverter::HTMLConverter):
(HTMLConverterCaches::computedStylePropertyForElement):
* editing/markup.cpp:
(WebCore::createPageForSanitizingWebContent):
* fileapi/AsyncFileStream.cpp:
(WebCore::callOnFileThread):
(WebCore::AsyncFileStream::AsyncFileStream):
* fileapi/FileReader.cpp:
(WebCore::FileReader::readInternal):
* history/CachedFrame.cpp:
(WebCore::CachedFrame::CachedFrame):
* history/CachedPage.cpp:
(WebCore::CachedPage::CachedPage):
* history/PageCache.cpp:
(WebCore::PageCache::addIfCacheable):
* html/FileInputType.cpp:
(WebCore::FileInputType::requestIcon):
* html/FormAssociatedElement.cpp:
(WebCore::FormAssociatedElement::resetFormAttributeTargetObserver):
* html/FormController.cpp:
(WebCore::SavedFormState::deserialize):
(WebCore::FormController::createSavedFormStateMap):
(WebCore::FormController::takeStateForFormElement):
* html/HTMLAnchorElement.cpp:
(WebCore::HTMLAnchorElement::relList const):
* html/HTMLAreaElement.cpp:
(WebCore::HTMLAreaElement::mapMouseEvent):
* html/HTMLCanvasElement.cpp:
(WebCore::HTMLCanvasElement::setImageBuffer const):
* html/HTMLCollection.cpp:
(WebCore::HTMLCollection::updateNamedElementCache const):
* html/HTMLDetailsElement.cpp:
(WebCore::HTMLDetailsElement::create):
* html/HTMLFormControlElement.cpp:
(WebCore::HTMLFormControlElement::updateVisibleValidationMessage):
* html/HTMLFormControlsCollection.cpp:
(WebCore::HTMLFormControlsCollection::updateNamedElementCache const):
* html/HTMLFormElement.cpp:
(WebCore::HTMLFormElement::addToPastNamesMap):
* html/HTMLIFrameElement.cpp:
(WebCore::HTMLIFrameElement::sandbox):
* html/HTMLInputElement.cpp:
(WebCore::HTMLInputElement::ensureImageLoader):
(WebCore::HTMLInputElement::resetListAttributeTargetObserver):
* html/HTMLLinkElement.cpp:
(WebCore::HTMLLinkElement::sizes):
(WebCore::HTMLLinkElement::relList):
* html/HTMLMediaElement.cpp:
(WebCore::HTMLMediaElement::finishInitialization):
(WebCore::HTMLMediaElement::seekWithTolerance):
* html/HTMLOutputElement.cpp:
(WebCore::HTMLOutputElement::htmlFor):
* html/HTMLPlugInImageElement.cpp:
(WebCore::HTMLPlugInImageElement::updateAfterStyleResolution):
* html/HTMLSummaryElement.cpp:
(WebCore::HTMLSummaryElement::create):
* html/HTMLVideoElement.cpp:
(WebCore::HTMLVideoElement::didAttachRenderers):
(WebCore::HTMLVideoElement::parseAttribute):
* html/PublicURLManager.cpp:
(WebCore::PublicURLManager::create):
* html/ValidationMessage.cpp:
(WebCore::ValidationMessage::setMessage):
(WebCore::ValidationMessage::setMessageDOMAndStartTimer):
(WebCore::ValidationMessage::requestToHideMessage):
* html/canvas/CanvasRenderingContext2DBase.cpp:
(WebCore::DisplayListDrawingContext::DisplayListDrawingContext):
(WebCore::CanvasRenderingContext2DBase::drawingContext const):
* html/canvas/WebGL2RenderingContext.cpp:
(WebCore::WebGL2RenderingContext::getExtension):
* html/canvas/WebGLRenderingContext.cpp:
(WebCore::WebGLRenderingContext::getExtension):
* html/canvas/WebGLRenderingContextBase.cpp:
(WebCore::WebGLRenderingContextBase::initializeNewContext):
(WebCore::WebGLRenderingContextBase::compileShader):
(WebCore::WebGLRenderingContextBase::printToConsole):
* html/parser/CSSPreloadScanner.cpp:
(WebCore::CSSPreloadScanner::emitRule):
* html/parser/HTMLConstructionSite.cpp:
(WebCore::HTMLConstructionSite::insertHTMLElementOrFindCustomElementInterface):
* html/parser/HTMLDocumentParser.cpp:
(WebCore::HTMLDocumentParser::HTMLDocumentParser):
(WebCore::HTMLDocumentParser::pumpTokenizer):
(WebCore::HTMLDocumentParser::insert):
* html/parser/HTMLElementStack.cpp:
(WebCore::HTMLElementStack::insertAbove):
(WebCore::HTMLElementStack::pushCommon):
* html/parser/HTMLPreloadScanner.cpp:
(WebCore::TokenPreloadScanner::StartTagScanner::createPreloadRequest):
* html/parser/HTMLToken.h:
(WebCore::HTMLToken::beginDOCTYPE):
* html/parser/XSSAuditor.cpp:
(WebCore::XSSAuditor::filterToken):
(WebCore::XSSAuditor::decodedHTTPBodySuffixTree):
* html/shadow/TextControlInnerElements.cpp:
(WebCore::TextControlInnerTextElement::resolveCustomStyle):
* html/track/InbandGenericTextTrack.cpp:
(WebCore::InbandGenericTextTrack::parser):
* html/track/InbandWebVTTTextTrack.cpp:
(WebCore::InbandWebVTTTextTrack::parser):
* html/track/LoadableTextTrack.cpp:
(WebCore::LoadableTextTrack::loadTimerFired):
* inspector/CommandLineAPIHost.cpp:
(WebCore::CommandLineAPIHost::CommandLineAPIHost):
(WebCore::CommandLineAPIHost::clearAllWrappers):
* inspector/DOMEditor.cpp:
(WebCore::DOMEditor::insertBefore):
(WebCore::DOMEditor::removeChild):
(WebCore::DOMEditor::setAttribute):
(WebCore::DOMEditor::removeAttribute):
(WebCore::DOMEditor::setOuterHTML):
(WebCore::DOMEditor::insertAdjacentHTML):
(WebCore::DOMEditor::replaceWholeText):
(WebCore::DOMEditor::replaceChild):
(WebCore::DOMEditor::setNodeValue):
* inspector/DOMPatchSupport.cpp:
(WebCore::DOMPatchSupport::createDigest):
* inspector/InspectorController.cpp:
(WebCore::InspectorController::InspectorController):
(WebCore::InspectorController::createLazyAgents):
(WebCore::InspectorController::ensureInspectorAgent):
(WebCore::InspectorController::ensureDOMAgent):
(WebCore::InspectorController::ensurePageAgent):
* inspector/InspectorHistory.cpp:
(WebCore::InspectorHistory::markUndoableState):
* inspector/InspectorStyleSheet.cpp:
(ParsedStyleSheet::setSourceData):
(WebCore::InspectorStyleSheet::ensureSourceData):
* inspector/NetworkResourcesData.cpp:
(WebCore::NetworkResourcesData::resourceCreated):
* inspector/WorkerInspectorController.cpp:
(WebCore::WorkerInspectorController::WorkerInspectorController):
(WebCore::WorkerInspectorController::connectFrontend):
(WebCore::WorkerInspectorController::createLazyAgents):
* inspector/agents/InspectorApplicationCacheAgent.cpp:
(WebCore::InspectorApplicationCacheAgent::InspectorApplicationCacheAgent):
* inspector/agents/InspectorCPUProfilerAgent.cpp:
(WebCore::InspectorCPUProfilerAgent::InspectorCPUProfilerAgent):
* inspector/agents/InspectorCSSAgent.cpp:
(WebCore::InspectorCSSAgent::InspectorCSSAgent):
(WebCore::InspectorCSSAgent::setStyleSheetText):
(WebCore::InspectorCSSAgent::setStyleText):
(WebCore::InspectorCSSAgent::setRuleSelector):
(WebCore::InspectorCSSAgent::addRule):
* inspector/agents/InspectorCanvasAgent.cpp:
(WebCore::InspectorCanvasAgent::InspectorCanvasAgent):
(WebCore::InspectorCanvasAgent::recordCanvasAction):
* inspector/agents/InspectorDOMAgent.cpp:
(WebCore::InspectorDOMAgent::InspectorDOMAgent):
(WebCore::InspectorDOMAgent::didCreateFrontendAndBackend):
(WebCore::InspectorDOMAgent::pushNodePathToFrontend):
(WebCore::InspectorDOMAgent::highlightConfigFromInspectorObject):
(WebCore::InspectorDOMAgent::highlightRect):
(WebCore::InspectorDOMAgent::highlightQuad):
(WebCore::InspectorDOMAgent::innerHighlightQuad):
(WebCore::InspectorDOMAgent::highlightFrame):
(WebCore::InspectorDOMAgent::setInspectedNode):
(WebCore::InspectorDOMAgent::didInvalidateStyleAttr):
* inspector/agents/InspectorDOMStorageAgent.cpp:
(WebCore::InspectorDOMStorageAgent::InspectorDOMStorageAgent):
* inspector/agents/InspectorDatabaseAgent.cpp:
(WebCore::InspectorDatabaseAgent::InspectorDatabaseAgent):
* inspector/agents/InspectorLayerTreeAgent.cpp:
(WebCore::InspectorLayerTreeAgent::InspectorLayerTreeAgent):
* inspector/agents/InspectorMemoryAgent.cpp:
(WebCore::InspectorMemoryAgent::InspectorMemoryAgent):
* inspector/agents/InspectorNetworkAgent.cpp:
(WebCore::InspectorNetworkAgent::InspectorNetworkAgent):
* inspector/agents/InspectorPageAgent.cpp:
(WebCore::InspectorPageAgent::InspectorPageAgent):
* inspector/agents/InspectorTimelineAgent.cpp:
(WebCore::InspectorTimelineAgent::InspectorTimelineAgent):
(WebCore::InspectorTimelineAgent::internalStart):
(WebCore::InspectorTimelineAgent::startFromConsole):
(WebCore::InspectorTimelineAgent::stopFromConsole):
* inspector/agents/InspectorWorkerAgent.cpp:
(WebCore::InspectorWorkerAgent::InspectorWorkerAgent):
* inspector/agents/WebConsoleAgent.cpp:
(WebCore::WebConsoleAgent::didReceiveResponse):
(WebCore::WebConsoleAgent::didFailLoading):
* inspector/agents/WebHeapAgent.cpp:
(WebCore::WebHeapAgent::WebHeapAgent):
* inspector/agents/page/PageRuntimeAgent.cpp:
(WebCore::PageRuntimeAgent::PageRuntimeAgent):
* inspector/agents/worker/WorkerDebuggerAgent.cpp:
(WebCore::WorkerDebuggerAgent::breakpointActionLog):
* layout/LayoutState.cpp:
(WebCore::Layout::LayoutState::displayBoxForLayoutBox const):
(WebCore::Layout::LayoutState::createFormattingStateForFormattingRootIfNeeded):
(WebCore::Layout::LayoutState::createFormattingContext):
* layout/inlineformatting/InlineFormattingContext.cpp:
(WebCore::Layout::InlineFormattingContext::collectInlineContent const):
* layout/inlineformatting/InlineFormattingContextLineLayout.cpp:
(WebCore::Layout::InlineFormattingContext::InlineLayout::createDisplayRuns const):
* layout/inlineformatting/InlineLine.cpp:
(WebCore::Layout::Line::Line):
(WebCore::Layout::Line::appendNonBreakableSpace):
(WebCore::Layout::Line::appendTextContent):
(WebCore::Layout::Line::appendNonReplacedInlineBox):
(WebCore::Layout::Line::appendHardLineBreak):
* layout/inlineformatting/InlineTextItem.cpp:
(WebCore::Layout::InlineTextItem::createAndAppendTextItems):
(WebCore::Layout::InlineTextItem::split const):
* layout/layouttree/LayoutBox.cpp:
(WebCore::Layout::Box::Box):
(WebCore::Layout::Box::ensureRareData):
* layout/layouttree/LayoutTreeBuilder.cpp:
(WebCore::Layout::TreeBuilder::createLayoutBox):
(WebCore::Layout::TreeBuilder::createTableStructure):
(WebCore::Layout::printLayoutTreeForLiveDocuments):
* layout/tableformatting/TableGrid.cpp:
(WebCore::Layout::TableGrid::appendCell):
* loader/ContentFilter.cpp:
(WebCore::ContentFilter::create):
* loader/CrossOriginAccessControl.cpp:
(WebCore::validatePreflightResponse):
* loader/DocumentLoader.cpp:
(WebCore::DocumentLoader::DocumentLoader):
(WebCore::DocumentLoader::loadApplicationManifest):
(WebCore::DocumentLoader::addAllArchiveResources):
(WebCore::DocumentLoader::addArchiveResource):
(WebCore::DocumentLoader::loadMainResource):
(WebCore::DocumentLoader::didGetLoadDecisionForIcon):
* loader/EmptyClients.cpp:
(WebCore::pageConfigurationWithEmptyClients):
* loader/FrameLoader.cpp:
(WebCore::FrameLoader::FrameLoader):
(WebCore::FrameLoader::init):
(WebCore::FrameLoader::initForSynthesizedDocument):
(WebCore::FrameLoader::detachChildren):
* loader/LinkLoader.cpp:
(WebCore::createLinkPreloadResourceClient):
* loader/NavigationScheduler.cpp:
(WebCore::NavigationScheduler::scheduleRedirect):
(WebCore::NavigationScheduler::scheduleLocationChange):
(WebCore::NavigationScheduler::scheduleFormSubmission):
(WebCore::NavigationScheduler::scheduleRefresh):
(WebCore::NavigationScheduler::scheduleHistoryNavigation):
(WebCore::NavigationScheduler::schedulePageBlock):
* loader/ProgressTracker.cpp:
(WebCore::ProgressTracker::incrementProgress):
* loader/TextResourceDecoder.cpp:
(WebCore::TextResourceDecoder::checkForHeadCharset):
* loader/TextTrackLoader.cpp:
(WebCore::TextTrackLoader::processNewCueData):
* loader/WorkerThreadableLoader.cpp:
(WebCore::WorkerThreadableLoader::MainThreadBridge::MainThreadBridge):
* loader/archive/cf/LegacyWebArchive.cpp:
(WebCore::LegacyWebArchive::create):
* loader/cache/CachedImage.cpp:
(WebCore::CachedImage::setBodyDataFrom):
(WebCore::CachedImage::createImage):
* loader/cache/CachedRawResource.cpp:
(WebCore::CachedRawResource::redirectReceived):
* loader/cache/CachedResource.cpp:
(WebCore::CachedResource::addClientToSet):
* loader/cache/CachedResourceLoader.cpp:
(WebCore::CachedResourceLoader::requestResource):
(WebCore::CachedResourceLoader::preload):
(WebCore::CachedResourceLoader::clearPreloads):
* loader/cache/MemoryCache.cpp:
(WebCore::MemoryCache::ensureSessionResourceMap):
(WebCore::MemoryCache::addImageToCache):
(WebCore::MemoryCache::lruListFor):
* loader/ios/PreviewLoader.mm:
(-[WebPreviewLoader initWithResourceLoader:resourceResponse:]):
(-[WebPreviewLoader connection:didFailWithError:]):
(WebCore::PreviewLoader::create):
* page/ContextMenuController.cpp:
(WebCore::ContextMenuController::maybeCreateContextMenu):
* page/DebugPageOverlays.cpp:
(WebCore::MouseWheelRegionOverlay::updateRegion):
* page/EventHandler.cpp:
(WebCore::EventHandler::EventHandler):
* page/FrameView.cpp:
(WebCore::FrameView::addEmbeddedObjectToUpdate):
(WebCore::FrameView::addSlowRepaintObject):
(WebCore::FrameView::addViewportConstrainedObject):
(WebCore::FrameView::addScrollableArea):
* page/FrameViewLayoutContext.cpp:
(WebCore::FrameViewLayoutContext::pushLayoutState):
(WebCore::FrameViewLayoutContext::pushLayoutStateForPaginationIfNeeded):
* page/NavigatorBase.cpp:
(WebCore::NavigatorBase::serviceWorker):
* page/Page.cpp:
(WebCore::Page::Page):
(WebCore::Page::initGroup):
(WebCore::Page::setResourceUsageOverlayVisible):
* page/PageConsoleClient.cpp:
(WebCore::PageConsoleClient::addMessage):
(WebCore::PageConsoleClient::messageWithTypeAndLevel):
(WebCore::PageConsoleClient::screenshot):
* page/PageGroup.cpp:
(WebCore::PageGroup::captionPreferences):
* page/Performance.cpp:
(WebCore::Performance::mark):
(WebCore::Performance::clearMarks):
(WebCore::Performance::measure):
(WebCore::Performance::clearMeasures):
* page/PrintContext.cpp:
(WebCore::PrintContext::outputLinkedDestinations):
* page/RenderingUpdateScheduler.cpp:
(WebCore::RenderingUpdateScheduler::startTimer):
* page/RenderingUpdateScheduler.h:
(WebCore::RenderingUpdateScheduler::create):
* page/SecurityPolicy.cpp:
(WebCore::SecurityPolicy::addOriginAccessWhitelistEntry):
* page/SettingsBase.cpp:
(WebCore::SettingsBase::SettingsBase):
* page/UserContentController.cpp:
(WebCore::UserContentController::addUserScript):
(WebCore::UserContentController::addUserStyleSheet):
* page/WheelEventDeltaFilter.cpp:
(WebCore::WheelEventDeltaFilter::create):
* page/animation/CSSAnimationController.cpp:
(WebCore::CSSAnimationController::CSSAnimationController):
* page/animation/CSSPropertyAnimation.cpp:
(WebCore::blendFunc):
(WebCore::PropertyWrapperVisitedAffectedColor::PropertyWrapperVisitedAffectedColor):
(WebCore::FillLayersPropertyWrapper::FillLayersPropertyWrapper):
(WebCore::CSSPropertyAnimationWrapperMap::CSSPropertyAnimationWrapperMap):
* page/csp/ContentSecurityPolicy.cpp:
(WebCore::ContentSecurityPolicy::updateSourceSelf):
* page/csp/ContentSecurityPolicyDirectiveList.cpp:
(WebCore::ContentSecurityPolicyDirectiveList::create):
(WebCore::ContentSecurityPolicyDirectiveList::setCSPDirective):
* page/linux/ResourceUsageOverlayLinux.cpp:
(WebCore::ResourceUsageOverlay::platformInitialize):
* page/mac/PageMac.mm:
(WebCore::Page::addSchedulePair):
* page/scrolling/AsyncScrollingCoordinator.cpp:
(WebCore::AsyncScrollingCoordinator::AsyncScrollingCoordinator):
* page/scrolling/ScrollingMomentumCalculator.cpp:
(WebCore::ScrollingMomentumCalculator::create):
* page/scrolling/ScrollingStateNode.cpp:
(WebCore::ScrollingStateNode::appendChild):
(WebCore::ScrollingStateNode::insertChild):
* page/scrolling/ScrollingStateTree.cpp:
(WebCore::ScrollingStateTree::commit):
* page/scrolling/ScrollingTreeNode.cpp:
(WebCore::ScrollingTreeNode::appendChild):
* page/scrolling/mac/ScrollingMomentumCalculatorMac.mm:
(WebCore::ScrollingMomentumCalculator::create):
* platform/Length.cpp:
(WebCore::convertTo100PercentMinusLength):
(WebCore::blendMixedTypes):
* platform/RemoteCommandListener.cpp:
(WebCore::RemoteCommandListener::create):
* platform/ScrollAnimator.cpp:
(WebCore::ScrollAnimator::create):
* platform/ScrollableArea.cpp:
(WebCore::ScrollableArea::scrollAnimator const):
(WebCore::ScrollableArea::ensureSnapOffsetsInfo):
* platform/ThreadGlobalData.cpp:
(WebCore::ThreadGlobalData::ThreadGlobalData):
* platform/audio/AudioBus.cpp:
(WebCore::AudioBus::AudioBus):
(WebCore::AudioBus::copyWithGainFrom):
* platform/audio/AudioChannel.h:
* platform/audio/AudioResampler.cpp:
(WebCore::AudioResampler::AudioResampler):
(WebCore::AudioResampler::configureChannels):
* platform/audio/DynamicsCompressor.cpp:
(WebCore::DynamicsCompressor::setNumberOfChannels):
* platform/audio/DynamicsCompressorKernel.cpp:
(WebCore::DynamicsCompressorKernel::setNumberOfChannels):
* platform/audio/FFTFrame.cpp:
(WebCore::FFTFrame::createInterpolatedFrame):
* platform/audio/HRTFDatabaseLoader.cpp:
(WebCore::HRTFDatabaseLoader::load):
* platform/audio/HRTFElevation.cpp:
(WebCore::HRTFElevation::createForSubject):
(WebCore::HRTFElevation::createByInterpolatingSlices):
* platform/audio/HRTFKernel.cpp:
(WebCore::HRTFKernel::HRTFKernel):
(WebCore::HRTFKernel::createImpulseResponse):
* platform/audio/MultiChannelResampler.cpp:
(WebCore::MultiChannelResampler::MultiChannelResampler):
* platform/audio/Panner.cpp:
(WebCore::Panner::create):
* platform/audio/PlatformMediaSession.cpp:
(WebCore::PlatformMediaSession::create):
* platform/audio/Reverb.cpp:
(WebCore::Reverb::initialize):
* platform/audio/ReverbConvolver.cpp:
(WebCore::ReverbConvolver::ReverbConvolver):
* platform/audio/ReverbConvolverStage.cpp:
(WebCore::ReverbConvolverStage::ReverbConvolverStage):
* platform/audio/gstreamer/AudioDestinationGStreamer.cpp:
(WebCore::AudioDestination::create):
* platform/audio/ios/AudioDestinationIOS.cpp:
(WebCore::AudioDestination::create):
* platform/audio/ios/AudioSessionIOS.mm:
(WebCore::AudioSession::AudioSession):
* platform/audio/mac/AudioDestinationMac.cpp:
(WebCore::AudioDestination::create):
* platform/audio/mac/AudioSampleDataSource.mm:
(WebCore::AudioSampleDataSource::setInputFormat):
(WebCore::AudioSampleDataSource::setOutputFormat):
* platform/audio/mac/AudioSessionMac.cpp:
(WebCore::AudioSession::AudioSession):
* platform/cf/KeyedDecoderCF.cpp:
(WebCore::KeyedDecoder::decoder):
* platform/cf/KeyedEncoderCF.cpp:
(WebCore::KeyedEncoder::encoder):
* platform/cf/MainThreadSharedTimerCF.cpp:
(WebCore::setupPowerObserver):
* platform/cocoa/NetworkExtensionContentFilter.mm:
(WebCore::NetworkExtensionContentFilter::create):
* platform/cocoa/ParentalControlsContentFilter.mm:
(WebCore::ParentalControlsContentFilter::create):
* platform/cocoa/ScrollController.mm:
(WebCore::ScrollController::updateScrollSnapPoints):
* platform/encryptedmedia/clearkey/CDMClearKey.cpp:
(WebCore::CDMFactoryClearKey::createCDM):
* platform/gamepad/cocoa/GameControllerGamepadProvider.mm:
(WebCore::GameControllerGamepadProvider::controllerDidConnect):
* platform/gamepad/mac/HIDGamepadProvider.cpp:
(WebCore::HIDGamepadProvider::deviceAdded):
* platform/generic/KeyedDecoderGeneric.cpp:
(WebCore::KeyedDecoderGeneric::Dictionary::add):
(WebCore::KeyedDecoder::decoder):
(WebCore::KeyedDecoderGeneric::KeyedDecoderGeneric):
* platform/generic/KeyedEncoderGeneric.cpp:
(WebCore::KeyedEncoder::encoder):
* platform/generic/ScrollAnimatorGeneric.cpp:
(WebCore::ScrollAnimator::create):
(WebCore::ScrollAnimatorGeneric::ScrollAnimatorGeneric):
(WebCore::ScrollAnimatorGeneric::ensureSmoothScrollingAnimation):
* platform/glib/KeyedDecoderGlib.cpp:
(WebCore::KeyedDecoder::decoder):
* platform/glib/KeyedEncoderGlib.cpp:
(WebCore::KeyedEncoder::encoder):
* platform/graphics/BitmapImage.cpp:
(WebCore::BitmapImage::startTimer):
(WebCore::BitmapImage::decode):
* platform/graphics/ComplexTextController.cpp:
(WebCore::TextLayout::TextLayout):
* platform/graphics/Font.cpp:
(WebCore::Font::ensureDerivedFontData const):
* platform/graphics/Font.h:
(WebCore::Font::boundsForGlyph const):
* platform/graphics/FontCache.cpp:
(WebCore::FontCache::getCachedFontPlatformData):
* platform/graphics/FontCascade.cpp:
(WebCore::retrieveOrAddCachedFonts):
(WebCore::FontCascade::displayListForTextRun const):
* platform/graphics/FontCascadeFonts.cpp:
(WebCore::FontCascadeFonts::GlyphPageCacheEntry::setGlyphDataForCharacter):
* platform/graphics/GlyphMetricsMap.h:
(WebCore::GlyphMetricsMap<T>::locatePageSlowCase):
* platform/graphics/GraphicsLayer.cpp:
(WebCore::GraphicsLayer::setTransform):
(WebCore::GraphicsLayer::setChildrenTransform):
* platform/graphics/GraphicsLayer.h:
* platform/graphics/Image.cpp:
(WebCore::Image::startAnimationAsynchronously):
* platform/graphics/MediaPlayer.cpp:
(WebCore::MediaPlayer::MediaPlayer):
(WebCore::MediaPlayer::loadWithNextMediaEngine):
* platform/graphics/MediaPlayerPrivate.h:
(WebCore::MediaPlayerPrivateInterface::seekable const):
* platform/graphics/PathUtilities.cpp:
(WebCore::FloatPointGraph::findOrCreateNode):
* platform/graphics/Region.cpp:
(WebCore::Region::setShape):
* platform/graphics/Region.h:
(WebCore::Region::copyShape const):
(WebCore::Region::decode):
* platform/graphics/TextTrackRepresentation.cpp:
(WebCore::TextTrackRepresentation::create):
* platform/graphics/angle/GraphicsContext3DANGLE.cpp:
(WebCore::GraphicsContext3D::getExtensions):
* platform/graphics/avfoundation/AudioSourceProviderAVFObjC.mm:
(WebCore::AudioSourceProviderAVFObjC::prepare):
* platform/graphics/avfoundation/CDMFairPlayStreaming.cpp:
(WebCore::CDMFactoryFairPlayStreaming::createCDM):
* platform/graphics/avfoundation/CDMPrivateMediaSourceAVFObjC.mm:
(WebCore::CDMPrivateMediaSourceAVFObjC::createSession):
* platform/graphics/avfoundation/MediaPlayerPrivateAVFoundation.cpp:
(WebCore::MediaPlayerPrivateAVFoundation::buffered const):
* platform/graphics/avfoundation/WebMediaSessionManagerMac.cpp:
(WebCore::WebMediaSessionManagerMac::platformPicker):
* platform/graphics/avfoundation/cf/MediaPlayerPrivateAVFoundationCF.cpp:
(WebCore::MediaPlayerPrivateAVFoundationCF::registerMediaEngine):
(WebCore::MediaPlayerPrivateAVFoundationCF::platformBufferedTimeRanges const):
(WebCore::MediaPlayerPrivateAVFoundationCF::createSession):
(WebCore::AVFWrapper::notificationCallback):
(WebCore::AVFWrapper::legibleOutputCallback):
(WebCore::AVFWrapper::resourceLoaderShouldWaitForLoadingOfRequestedResource):
(WebCore::AVFWrapper::platformLayer):
* platform/graphics/avfoundation/objc/AudioTrackPrivateAVFObjC.mm:
(WebCore::AudioTrackPrivateAVFObjC::AudioTrackPrivateAVFObjC):
(WebCore::AudioTrackPrivateAVFObjC::setPlayerItemTrack):
(WebCore::AudioTrackPrivateAVFObjC::setAssetTrack):
(WebCore::AudioTrackPrivateAVFObjC::setMediaSelectionOption):
* platform/graphics/avfoundation/objc/AudioTrackPrivateMediaSourceAVFObjC.cpp:
(WebCore::AudioTrackPrivateMediaSourceAVFObjC::AudioTrackPrivateMediaSourceAVFObjC):
(WebCore::AudioTrackPrivateMediaSourceAVFObjC::setAssetTrack):
* platform/graphics/avfoundation/objc/ImageDecoderAVFObjC.mm:
(WebCore::ImageDecoderAVFObjC::readTrackMetadata):
* platform/graphics/avfoundation/objc/MediaPlayerPrivateAVFoundationObjC.mm:
(WebCore::MediaPlayerPrivateAVFoundationObjC::registerMediaEngine):
(WebCore::MediaPlayerPrivateAVFoundationObjC::MediaPlayerPrivateAVFoundationObjC):
(WebCore::MediaPlayerPrivateAVFoundationObjC::platformBufferedTimeRanges const):
(WebCore::MediaPlayerPrivateAVFoundationObjC::updateRotationSession):
(WebCore::MediaPlayerPrivateAVFoundationObjC::updateLastImage):
(WebCore::MediaPlayerPrivateAVFoundationObjC::copyVideoTextureToPlatformTexture):
(WebCore::MediaPlayerPrivateAVFoundationObjC::createSession):
* platform/graphics/avfoundation/objc/MediaPlayerPrivateMediaSourceAVFObjC.mm:
(WebCore::MediaPlayerPrivateMediaSourceAVFObjC::MediaPlayerPrivateMediaSourceAVFObjC):
(WebCore::MediaPlayerPrivateMediaSourceAVFObjC::registerMediaEngine):
(WebCore::MediaPlayerPrivateMediaSourceAVFObjC::seekWithTolerance):
(WebCore::MediaPlayerPrivateMediaSourceAVFObjC::seekable const):
(WebCore::MediaPlayerPrivateMediaSourceAVFObjC::buffered const):
(WebCore::MediaPlayerPrivateMediaSourceAVFObjC::updateLastImage):
(WebCore::MediaPlayerPrivateMediaSourceAVFObjC::copyVideoTextureToPlatformTexture):
* platform/graphics/avfoundation/objc/MediaPlayerPrivateMediaStreamAVFObjC.mm:
(WebCore::MediaPlayerPrivateMediaStreamAVFObjC::MediaPlayerPrivateMediaStreamAVFObjC):
(WebCore::MediaPlayerPrivateMediaStreamAVFObjC::registerMediaEngine):
(WebCore::MediaPlayerPrivateMediaStreamAVFObjC::seekable const):
(WebCore::MediaPlayerPrivateMediaStreamAVFObjC::buffered const):
(WebCore::MediaPlayerPrivateMediaStreamAVFObjC::updateCurrentFrameImage):
* platform/graphics/avfoundation/objc/VideoTrackPrivateAVFObjC.cpp:
(WebCore::VideoTrackPrivateAVFObjC::VideoTrackPrivateAVFObjC):
(WebCore::VideoTrackPrivateAVFObjC::setPlayerItemTrack):
(WebCore::VideoTrackPrivateAVFObjC::setAssetTrack):
(WebCore::VideoTrackPrivateAVFObjC::setMediaSelectonOption):
* platform/graphics/avfoundation/objc/VideoTrackPrivateMediaSourceAVFObjC.mm:
(WebCore::VideoTrackPrivateMediaSourceAVFObjC::VideoTrackPrivateMediaSourceAVFObjC):
(WebCore::VideoTrackPrivateMediaSourceAVFObjC::setAssetTrack):
* platform/graphics/ca/GraphicsLayerCA.cpp:
(WebCore::GraphicsLayerCA::recursiveCommitChanges):
(WebCore::GraphicsLayerCA::ensureLayerAnimations):
(WebCore::GraphicsLayerCA::createTransformAnimationsFromKeyframes):
* platform/graphics/ca/TileController.cpp:
(WebCore::TileController::TileController):
(WebCore::TileController::setContentsScale):
(WebCore::TileController::adjustTileCoverageRectForScrolling):
(WebCore::TileController::tiledScrollingIndicatorLayer):
* platform/graphics/ca/cocoa/PlatformCALayerCocoa.mm:
(WebCore::PlatformCALayerCocoa::commonInit):
(WebCore::PlatformCALayerCocoa::setShapeRoundedRect):
* platform/graphics/ca/cocoa/WebTiledBackingLayer.mm:
(-[WebTiledBackingLayer createTileController:]):
* platform/graphics/ca/win/PlatformCALayerWin.cpp:
(PlatformCALayerWin::PlatformCALayerWin):
* platform/graphics/ca/win/WebTiledBackingLayerWin.cpp:
(WebTiledBackingLayerWin::createTileController):
* platform/graphics/cairo/GraphicsContextImplCairo.cpp:
(WebCore::GraphicsContextImplCairo::createFactory):
(WebCore::m_private):
* platform/graphics/cairo/ImageBufferCairo.cpp:
(WebCore::ImageBufferData::swapBuffersIfNeeded):
(WebCore::ImageBuffer::ImageBuffer):
* platform/graphics/cg/ImageBufferCG.cpp:
(WebCore::ImageBuffer::ImageBuffer):
* platform/graphics/cocoa/FontCacheCoreText.cpp:
(WebCore::FontCache::createFontPlatformData):
* platform/graphics/cocoa/FontFamilySpecificationCoreText.cpp:
(WebCore::FontFamilySpecificationCoreText::fontRanges const):
* platform/graphics/cocoa/GraphicsContext3DCocoa.mm:
(WebCore::GraphicsContext3D::GraphicsContext3D):
* platform/graphics/cocoa/IOSurface.mm:
(WebCore::IOSurface::ensureGraphicsContext):
* platform/graphics/cocoa/TextTrackRepresentationCocoa.mm:
(TextTrackRepresentation::create):
* platform/graphics/cv/TextureCacheCV.mm:
(WebCore::TextureCacheCV::create):
* platform/graphics/displaylists/DisplayListReplayer.cpp:
(WebCore::DisplayList::Replayer::replay):
* platform/graphics/filters/FilterOperation.cpp:
(WebCore::ReferenceFilterOperation::loadExternalDocumentIfNeeded):
* platform/graphics/freetype/FontCacheFreeType.cpp:
(WebCore::FontCache::createFontPlatformData):
* platform/graphics/freetype/FontCustomPlatformDataFreeType.cpp:
(WebCore::createFontCustomPlatformData):
* platform/graphics/gpu/Texture.cpp:
(WebCore::Texture::create):
* platform/graphics/gstreamer/MediaPlayerPrivateGStreamer.cpp:
(WebCore::MediaPlayerPrivateGStreamer::registerMediaEngine):
(WebCore::MediaPlayerPrivateGStreamer::buffered const):
(WebCore::MediaPlayerPrivateGStreamer::ensureAudioSourceProvider):
* platform/graphics/gstreamer/MediaPlayerPrivateGStreamerBase.cpp:
(WebCore::MediaPlayerPrivateGStreamerBase::pushTextureToCompositor):
(WebCore::MediaPlayerPrivateGStreamerBase::copyVideoTextureToPlatformTexture):
(WebCore::MediaPlayerPrivateGStreamerBase::nativeImageForCurrentTime):
(WebCore::MediaPlayerPrivateGStreamerBase::pushNextHolePunchBuffer):
* platform/graphics/gstreamer/WebKitWebSourceGStreamer.cpp:
(webKitWebSrcMakeRequest):
* platform/graphics/gstreamer/mse/MediaPlayerPrivateGStreamerMSE.cpp:
(WebCore::MediaPlayerPrivateGStreamerMSE::registerMediaEngine):
(WebCore::MediaPlayerPrivateGStreamerMSE::buffered const):
* platform/graphics/holepunch/MediaPlayerPrivateHolePunch.cpp:
(WebCore::MediaPlayerPrivateHolePunch::pushNextHolePunchBuffer):
(WebCore::MediaPlayerPrivateHolePunch::registerMediaEngine):
* platform/graphics/holepunch/MediaPlayerPrivateHolePunch.h:
* platform/graphics/iso/ISOProtectionSchemeInfoBox.cpp:
(WebCore::ISOProtectionSchemeInfoBox::parse):
* platform/graphics/iso/ISOSchemeInformationBox.cpp:
(WebCore::ISOSchemeInformationBox::parse):
* platform/graphics/mac/FontCustomPlatformData.cpp:
(WebCore::createFontCustomPlatformData):
* platform/graphics/nicosia/NicosiaSceneIntegration.cpp:
(Nicosia::SceneIntegration::createUpdateScope):
* platform/graphics/nicosia/cairo/NicosiaCairoOperationRecorder.cpp:
(Nicosia::createCommand):
* platform/graphics/nicosia/cairo/NicosiaPaintingContextCairo.cpp:
(Nicosia::PaintingContextCairo::ForPainting::ForPainting):
(Nicosia::PaintingContextCairo::ForRecording::ForRecording):
* platform/graphics/nicosia/texmap/NicosiaBackingStoreTextureMapperImpl.cpp:
(Nicosia::BackingStoreTextureMapperImpl::createFactory):
* platform/graphics/nicosia/texmap/NicosiaCompositionLayerTextureMapperImpl.cpp:
(Nicosia::CompositionLayerTextureMapperImpl::createFactory):
* platform/graphics/nicosia/texmap/NicosiaContentLayerTextureMapperImpl.cpp:
(Nicosia::ContentLayerTextureMapperImpl::createFactory):
* platform/graphics/nicosia/texmap/NicosiaGC3DLayer.cpp:
(Nicosia::GC3DLayer::swapBuffersIfNeeded):
* platform/graphics/nicosia/texmap/NicosiaImageBackingTextureMapperImpl.cpp:
(Nicosia::ImageBackingTextureMapperImpl::createFactory):
* platform/graphics/opengl/GraphicsContext3DOpenGL.cpp:
(WebCore::GraphicsContext3D::getExtensions):
* platform/graphics/opengl/GraphicsContext3DOpenGLCommon.cpp:
(WebCore::GraphicsContext3D::compileShader):
(WebCore::GraphicsContext3D::mappedSymbolName):
* platform/graphics/opengl/GraphicsContext3DOpenGLES.cpp:
(WebCore::GraphicsContext3D::getExtensions):
(WebCore::GraphicsContext3D::GraphicsContext3D):
* platform/graphics/texmap/GraphicsContext3DTextureMapper.cpp:
(WebCore::GraphicsContext3D::GraphicsContext3D):
(WebCore::GraphicsContext3D::getExtensions):
* platform/graphics/texmap/TextureMapperGC3DPlatformLayer.cpp:
(WebCore::TextureMapperGC3DPlatformLayer::swapBuffersIfNeeded):
* platform/graphics/texmap/TextureMapperGL.cpp:
(WebCore::TextureMapperGL::TextureMapperGL):
(WebCore::TextureMapper::platformCreateAccelerated):
* platform/graphics/texmap/TextureMapperPlatformLayerBuffer.cpp:
(WebCore::TextureMapperPlatformLayerBuffer::clone):
* platform/graphics/texmap/TextureMapperPlatformLayerProxy.cpp:
(WebCore::TextureMapperPlatformLayerProxy::activateOnCompositingThread):
* platform/graphics/texmap/coordinated/CoordinatedGraphicsLayer.cpp:
(WebCore::CoordinatedGraphicsLayer::updateContentBuffers):
* platform/graphics/texmap/coordinated/TiledBackingStore.cpp:
(WebCore::TiledBackingStore::createTiles):
* platform/graphics/transforms/TransformState.cpp:
(WebCore::TransformState::operator=):
(WebCore::TransformState::applyTransform):
(WebCore::TransformState::setLastPlanarSecondaryQuad):
* platform/graphics/transforms/TransformState.h:
(WebCore::TransformState::setSecondaryQuad):
* platform/graphics/win/FontCacheWin.cpp:
(WebCore::FontCache::createFontPlatformData):
* platform/graphics/win/FontCustomPlatformData.cpp:
(WebCore::createFontCustomPlatformData):
* platform/graphics/win/FontCustomPlatformDataCairo.cpp:
(WebCore::createFontCustomPlatformData):
* platform/graphics/win/FullScreenController.cpp:
(WebCore::FullScreenController::FullScreenController):
(WebCore::FullScreenController::enterFullScreen):
* platform/graphics/win/GraphicsContextCairoWin.cpp:
(WebCore::GraphicsContext::platformInit):
* platform/graphics/win/GraphicsContextDirect2D.cpp:
(WebCore::GraphicsContext::GraphicsContext):
(WebCore::GraphicsContext::platformInit):
* platform/graphics/win/GraphicsContextImplDirect2D.cpp:
(WebCore::GraphicsContextImplDirect2D::createFactory):
(WebCore::m_private):
* platform/graphics/win/GraphicsContextWin.cpp:
(WebCore::GraphicsContext::createWindowsBitmap):
* platform/graphics/win/ImageBufferDirect2D.cpp:
(WebCore::ImageBuffer::ImageBuffer):
* platform/graphics/win/MediaPlayerPrivateMediaFoundation.cpp:
(WebCore::MediaPlayerPrivateMediaFoundation::registerMediaEngine):
(WebCore::MediaPlayerPrivateMediaFoundation::buffered const):
(WebCore::MediaPlayerPrivateMediaFoundation::CustomVideoPresenter::CustomVideoPresenter):
* platform/graphics/win/WKCAImageQueue.cpp:
(WebCore::WKCAImageQueue::WKCAImageQueue):
* platform/gtk/PasteboardGtk.cpp:
(WebCore::Pasteboard::createForCopyAndPaste):
(WebCore::Pasteboard::createForGlobalSelection):
(WebCore::Pasteboard::createForDragAndDrop):
* platform/gtk/PasteboardHelper.cpp:
(WebCore::PasteboardHelper::writeClipboardContents):
* platform/gtk/RenderThemeGadget.cpp:
(WebCore::RenderThemeGadget::create):
* platform/gtk/RenderThemeWidget.cpp:
(WebCore::RenderThemeWidget::getOrCreate):
(WebCore::RenderThemeScrollbar::RenderThemeScrollbar):
(WebCore::RenderThemeComboBox::RenderThemeComboBox):
* platform/image-decoders/bmp/BMPImageDecoder.cpp:
(WebCore::BMPImageDecoder::decodeHelper):
* platform/image-decoders/gif/GIFImageDecoder.cpp:
(WebCore::GIFImageDecoder::decode):
* platform/image-decoders/gif/GIFImageReader.cpp:
(GIFFrameContext::decode):
(GIFImageReader::addFrameIfNecessary):
* platform/image-decoders/ico/ICOImageDecoder.cpp:
(WebCore::ICOImageDecoder::decodeAtIndex):
* platform/image-decoders/jpeg/JPEGImageDecoder.cpp:
(WebCore::JPEGImageDecoder::decode):
* platform/image-decoders/png/PNGImageDecoder.cpp:
(WebCore::PNGImageDecoder::decode):
* platform/ios/LegacyTileCache.mm:
(WebCore::LegacyTileCache::LegacyTileCache):
(WebCore::LegacyTileCache::commitScaleChange):
* platform/ios/PasteboardIOS.mm:
(WebCore::Pasteboard::createForDragAndDrop):
(WebCore::Pasteboard::createForCopyAndPaste):
* platform/ios/QuickLook.mm:
(WebCore::registerQLPreviewConverterIfNeeded):
* platform/ios/RemoteCommandListenerIOS.mm:
(WebCore::RemoteCommandListener::create):
* platform/ios/ScrollAnimatorIOS.mm:
(WebCore::ScrollAnimator::create):
* platform/libwpe/PasteboardLibWPE.cpp:
(WebCore::Pasteboard::createForCopyAndPaste):
* platform/mac/PasteboardMac.mm:
(WebCore::Pasteboard::createForCopyAndPaste):
(WebCore::Pasteboard::createForDragAndDrop):
* platform/mac/RemoteCommandListenerMac.mm:
(WebCore::RemoteCommandListener::create):
* platform/mac/ScrollAnimatorMac.mm:
(WebCore::ScrollAnimator::create):
* platform/mediarecorder/MediaRecorderPrivateAVFImpl.cpp:
(WebCore::MediaRecorderPrivateAVFImpl::create):
* platform/mediastream/gstreamer/GStreamerAudioCaptureSource.cpp:
(WebCore::m_capturer):
(WebCore::GStreamerAudioCaptureSource::GStreamerAudioCaptureSource):
* platform/mediastream/gstreamer/GStreamerMediaStreamSource.cpp:
(WebCore::webkit_media_stream_src_init):
* platform/mediastream/gstreamer/GStreamerVideoCaptureSource.cpp:
(WebCore::GStreamerVideoCaptureSource::GStreamerVideoCaptureSource):
(WebCore::m_capturer):
* platform/mediastream/libwebrtc/GStreamerVideoEncoderFactory.cpp:
(WebCore::GStreamerVideoEncoderFactory::CreateVideoEncoder):
* platform/mediastream/libwebrtc/LibWebRTCProvider.cpp:
(WebCore::BasicPacketSocketFactory::BasicPacketSocketFactory):
(WebCore::initializePeerConnectionFactoryAndThreads):
(WebCore::LibWebRTCProvider::createPeerConnection):
(WebCore::LibWebRTCProvider::certificateGenerator):
* platform/mediastream/libwebrtc/LibWebRTCProviderGStreamer.cpp:
(WebCore::LibWebRTCProviderGStreamer::createDecoderFactory):
(WebCore::LibWebRTCProviderGStreamer::createEncoderFactory):
* platform/mediastream/mac/AudioTrackPrivateMediaStreamCocoa.cpp:
(WebCore::AudioTrackPrivateMediaStreamCocoa::audioSamplesAvailable):
* platform/mediastream/mac/MockRealtimeAudioSourceMac.mm:
(WebCore::MockRealtimeAudioSourceMac::reconfigure):
* platform/mediastream/mac/RealtimeOutgoingVideoSourceCocoa.mm:
(WebCore::RealtimeOutgoingVideoSourceCocoa::convertToYUV):
(WebCore::RealtimeOutgoingVideoSourceCocoa::rotatePixelBuffer):
* platform/mock/RTCNotifiersMock.cpp:
(WebCore::RemoteDataChannelNotifier::fire):
* platform/mock/mediasource/MockMediaPlayerMediaSource.cpp:
(WebCore::MockMediaPlayerMediaSource::registerMediaEngine):
(WebCore::MockMediaPlayerMediaSource::buffered const):
* platform/network/BlobResourceHandle.cpp:
* platform/network/DataURLDecoder.cpp:
(WebCore::DataURLDecoder::createDecodeTask):
* platform/network/ResourceHandle.cpp:
(WebCore::ResourceHandle::ResourceHandle):
* platform/network/cf/ResourceHandleCFURLConnectionDelegateWithOperationQueue.cpp:
(WebCore::ResourceHandleCFURLConnectionDelegateWithOperationQueue::willSendRequest):
(WebCore::ResourceHandleCFURLConnectionDelegateWithOperationQueue::didReceiveResponse):
(WebCore::ResourceHandleCFURLConnectionDelegateWithOperationQueue::didReceiveData):
(WebCore::ResourceHandleCFURLConnectionDelegateWithOperationQueue::didFinishLoading):
(WebCore::ResourceHandleCFURLConnectionDelegateWithOperationQueue::didFail):
(WebCore::ResourceHandleCFURLConnectionDelegateWithOperationQueue::willCacheResponse):
(WebCore::ResourceHandleCFURLConnectionDelegateWithOperationQueue::didReceiveChallenge):
(WebCore::ResourceHandleCFURLConnectionDelegateWithOperationQueue::didSendBodyData):
(WebCore::ResourceHandleCFURLConnectionDelegateWithOperationQueue::canRespondToProtectionSpace):
* platform/network/cocoa/WebCoreNSURLSession.mm:
(-[WebCoreNSURLSessionDataTask _restart]):
* platform/network/curl/CookieJarDB.cpp:
(WebCore::CookieJarDB::searchCookies):
(WebCore::CookieJarDB::createPrepareStatement):
* platform/network/curl/CurlCacheManager.cpp:
(WebCore::CurlCacheManager::loadIndex):
(WebCore::CurlCacheManager::didReceiveResponse):
* platform/network/curl/CurlContext.cpp:
(WebCore::CurlContext::CurlContext):
(WebCore::CurlHandle::willSetupSslCtx):
* platform/network/curl/CurlFormDataStream.cpp:
(WebCore::CurlFormDataStream::getPostData):
* platform/network/curl/CurlMultipartHandle.cpp:
(WebCore::CurlMultipartHandle::createIfNeeded):
* platform/network/curl/CurlRequest.cpp:
(WebCore::CurlRequest::runOnMainThread):
(WebCore::CurlRequest::setupTransfer):
* platform/network/curl/CurlRequestScheduler.cpp:
(WebCore::CurlRequestScheduler::workerThread):
* platform/network/curl/ResourceHandleCurl.cpp:
(WebCore::ResourceHandle::delegate):
* platform/network/curl/SocketStreamHandleImplCurl.cpp:
(WebCore::SocketStreamHandleImpl::callOnWorkerThread):
* platform/network/mac/WebCoreResourceHandleAsOperationQueueDelegate.mm:
(-[WebCoreResourceHandleAsOperationQueueDelegate callFunctionOnMainThread:]):
* platform/network/soup/DNSResolveQueueSoup.cpp:
(WebCore::DNSResolveQueueSoup::resolve):
* platform/network/soup/NetworkStorageSessionSoup.cpp:
(WebCore::NetworkStorageSession::getCredentialFromPersistentStorage):
* platform/text/BidiResolver.h:
(WebCore::DerivedClass>::appendRunInternal):
* platform/text/LocaleICU.cpp:
(WebCore::Locale::create):
(WebCore::LocaleICU::createLabelVector):
(WebCore::createFallbackMonthLabels):
(WebCore::createFallbackAMPMLabels):
* platform/text/LocaleNone.cpp:
(WebCore::Locale::create):
* platform/text/TextCodecICU.cpp:
(WebCore::TextCodecICU::registerCodecs):
* platform/text/TextCodecLatin1.cpp:
(WebCore::TextCodecLatin1::registerCodecs):
* platform/text/TextCodecReplacement.cpp:
(WebCore::TextCodecReplacement::registerCodecs):
* platform/text/TextCodecUTF16.cpp:
(WebCore::TextCodecUTF16::registerCodecs):
* platform/text/TextCodecUTF8.cpp:
(WebCore::TextCodecUTF8::registerCodecs):
* platform/text/TextCodecUserDefined.cpp:
(WebCore::TextCodecUserDefined::registerCodecs):
* platform/text/mac/LocaleMac.mm:
(WebCore::Locale::create):
* platform/text/win/LocaleWin.cpp:
(WebCore::Locale::create):
* platform/text/win/TextCodecWin.cpp:
(WebCore::newTextCodecWin):
* platform/vr/openvr/VRPlatformManagerOpenVR.cpp:
(WebCore::VRPlatformManagerOpenVR::create):
(WebCore::VRPlatformManagerOpenVR::getVRDisplays):
* platform/win/PasteboardWin.cpp:
(WebCore::Pasteboard::createForCopyAndPaste):
(WebCore::Pasteboard::createForDragAndDrop):
* platform/win/SearchPopupMenuDB.cpp:
(WebCore::SearchPopupMenuDB::createPreparedStatement):
* platform/win/WCDataObject.cpp:
(WebCore::WCDataObject::SetData):
* rendering/CSSFilter.cpp:
(WebCore::CSSFilter::buildReferenceFilter):
* rendering/ComplexLineLayout.cpp:
(WebCore::createRun):
(WebCore::ComplexLineLayout::createRootInlineBox):
(WebCore::ComplexLineLayout::handleTrailingSpaces):
(WebCore::ComplexLineLayout::linkToEndLineIfNeeded):
* rendering/FloatingObjects.cpp:
(WebCore::FloatingObject::create):
(WebCore::FloatingObject::copyToNewContainer const):
(WebCore::FloatingObject::cloneForNewParent const):
(WebCore::FloatingObjects::computePlacedFloatsTree):
* rendering/Grid.cpp:
(WebCore::GridIterator::nextEmptyGridArea):
* rendering/GridBaselineAlignment.cpp:
(WebCore::GridBaselineAlignment::updateBaselineAlignmentContext):
* rendering/GridTrackSizingAlgorithm.cpp:
(WebCore::GridTrackSizingAlgorithm::computeFlexFactorUnitSize const):
(WebCore::GridTrackSizingAlgorithm::setup):
* rendering/HitTestResult.cpp:
(WebCore::HitTestResult::HitTestResult):
(WebCore::HitTestResult::operator=):
(WebCore::HitTestResult::listBasedTestResult const):
(WebCore::HitTestResult::mutableListBasedTestResult):
* rendering/InlineIterator.h:
(WebCore::addPlaceholderRunForIsolatedInline):
* rendering/LayerOverlapMap.cpp:
(WebCore::LayerOverlapMap::pushCompositingContainer):
* rendering/RenderBlock.cpp:
(WebCore::insertIntoTrackedRendererMaps):
(WebCore::PositionedDescendantsMap::addDescendant):
(WebCore::RenderBlock::beginUpdateScrollInfoAfterLayoutTransaction):
(WebCore::ensureBlockRareData):
* rendering/RenderBlockFlow.cpp:
(WebCore::RenderBlockFlow::layoutInlineChildren):
(WebCore::RenderBlockFlow::layoutLineGridBox):
(WebCore::RenderBlockFlow::createFloatingObjects):
(WebCore::RenderBlockFlow::ensureLineBoxes):
(WebCore::RenderBlockFlow::materializeRareBlockFlowData):
* rendering/RenderBox.cpp:
(WebCore::controlStatesForRenderer):
(WebCore::RenderBox::createInlineBox):
* rendering/RenderBoxModelObject.cpp:
(WebCore::RenderBoxModelObject::ensureContinuationChainNode):
* rendering/RenderCounter.cpp:
(WebCore::makeCounterNode):
* rendering/RenderFragmentContainer.cpp:
(WebCore::RenderFragmentContainer::setRenderBoxFragmentInfo):
* rendering/RenderFragmentedFlow.cpp:
(WebCore::RenderFragmentedFlow::containingFragmentMap):
* rendering/RenderGeometryMap.cpp:
(WebCore::RenderGeometryMap::push):
(WebCore::RenderGeometryMap::pushView):
* rendering/RenderGrid.cpp:
(WebCore::RenderGrid::computeEmptyTracksForAutoRepeat const):
(WebCore::RenderGrid::createEmptyGridAreaAtSpecifiedPositionsOutsideGrid const):
* rendering/RenderImage.cpp:
(WebCore::RenderImage::RenderImage):
* rendering/RenderInline.cpp:
(WebCore::RenderInline::createInlineFlowBox):
* rendering/RenderLayer.cpp:
(WebCore::RenderLayer::updateNormalFlowList):
(WebCore::RenderLayer::collectLayers):
(WebCore::RenderLayer::updateTransform):
(WebCore::RenderLayer::updateClipRects):
(WebCore::RenderLayer::calculateClipRects const):
* rendering/RenderLayerBacking.cpp:
(WebCore::RenderLayerBacking::updateAncestorClippingStack):
(WebCore::RenderLayerBacking::startAnimation):
(WebCore::RenderLayerBacking::startTransition):
* rendering/RenderLayerCompositor.cpp:
(WebCore::RenderLayerCompositor::RenderLayerCompositor):
(WebCore::RenderLayerCompositor::notifyFlushBeforeDisplayRefresh):
(WebCore::LegacyWebKitScrollingLayerCoordinator::registerAllViewportConstrainedLayers):
* rendering/RenderLayerModelObject.cpp:
(WebCore::RenderLayerModelObject::createLayer):
* rendering/RenderLineBreak.cpp:
(WebCore::RenderLineBreak::createInlineBox):
* rendering/RenderMultiColumnFlow.cpp:
(WebCore::RenderMultiColumnFlow::RenderMultiColumnFlow):
* rendering/RenderObject.cpp:
(WebCore::RenderObject::ensureRareData):
* rendering/RenderSnapshottedPlugIn.cpp:
(WebCore::RenderSnapshottedPlugIn::RenderSnapshottedPlugIn):
* rendering/RenderTable.cpp:
(WebCore::RenderTable::styleDidChange):
* rendering/RenderText.cpp:
(WebCore::RenderText::createTextBox):
(WebCore::RenderText::momentarilyRevealLastTypedCharacter):
* rendering/RenderView.cpp:
(WebCore::RenderView::repaintViewRectangle const):
(WebCore::RenderView::compositor):
(WebCore::RenderView::imageQualityController):
(WebCore::RenderView::RepaintRegionAccumulator::RepaintRegionAccumulator):
* rendering/RootInlineBox.cpp:
(WebCore::RootInlineBox::placeEllipsis):
* rendering/RootInlineBox.h:
(WebCore::RootInlineBox::appendFloat):
* rendering/SelectionRangeData.cpp:
(WebCore::collect):
(WebCore::SelectionRangeData::collectBounds const):
(WebCore::SelectionRangeData::apply):
* rendering/SimpleLineLayout.cpp:
(WebCore::SimpleLineLayout::Layout::runResolver const):
* rendering/SimpleLineLayoutFunctions.cpp:
(WebCore::SimpleLineLayout::paintFlow):
(WebCore::SimpleLineLayout::generateLineBoxTree):
* rendering/TextAutoSizing.cpp:
(WebCore::TextAutoSizing::addTextNode):
* rendering/line/LineBreaker.cpp:
(WebCore::LineBreaker::skipLeadingWhitespace):
* rendering/shapes/RasterShape.cpp:
(WebCore::RasterShapeIntervals::computeShapeMarginIntervals const):
* rendering/shapes/Shape.cpp:
(WebCore::createInsetShape):
(WebCore::createCircleShape):
(WebCore::createEllipseShape):
(WebCore::createPolygonShape):
(WebCore::Shape::createShape):
(WebCore::Shape::createRasterShape):
(WebCore::Shape::createBoxShape):
* rendering/shapes/ShapeOutsideInfo.h:
* rendering/style/BasicShapes.cpp:
(WebCore::BasicShapePath::blend const):
* rendering/style/ContentData.h:
* rendering/style/FillLayer.cpp:
(WebCore::FillLayer::FillLayer):
(WebCore::FillLayer::operator=):
* rendering/style/RenderStyle.cpp:
(WebCore::RenderStyle::clonePtr):
(WebCore::RenderStyle::addCachedPseudoStyle):
(WebCore::RenderStyle::addCustomPaintWatchProperty):
(WebCore::RenderStyle::setContent):
(WebCore::RenderStyle::accessCounterDirectives):
(WebCore::RenderStyle::ensureAnimations):
(WebCore::RenderStyle::ensureTransitions):
* rendering/style/SVGRenderStyleDefs.cpp:
(WebCore::StyleShadowSVGData::StyleShadowSVGData):
* rendering/style/ShadowData.cpp:
(WebCore::ShadowData::ShadowData):
* rendering/style/StyleRareInheritedData.cpp:
(WebCore::StyleRareInheritedData::StyleRareInheritedData):
* rendering/style/StyleRareNonInheritedData.cpp:
(WebCore::StyleRareNonInheritedData::StyleRareNonInheritedData):
* rendering/svg/RenderSVGImage.cpp:
(WebCore::RenderSVGImage::RenderSVGImage):
* rendering/svg/RenderSVGInline.cpp:
(WebCore::RenderSVGInline::createInlineFlowBox):
* rendering/svg/RenderSVGInlineText.cpp:
(WebCore::RenderSVGInlineText::createTextBox):
* rendering/svg/RenderSVGResourceFilter.cpp:
(WebCore::RenderSVGResourceFilter::buildPrimitives const):
(WebCore::RenderSVGResourceFilter::applyResource):
* rendering/svg/RenderSVGResourceGradient.cpp:
(WebCore::RenderSVGResourceGradient::applyResource):
* rendering/svg/RenderSVGResourceMasker.cpp:
(WebCore::RenderSVGResourceMasker::applyResource):
* rendering/svg/RenderSVGResourcePattern.cpp:
(WebCore::RenderSVGResourcePattern::buildPattern):
* rendering/svg/RenderSVGShape.cpp:
(WebCore::RenderSVGShape::updateShapeFromElement):
* rendering/svg/SVGResources.cpp:
(WebCore::SVGResources::setClipper):
(WebCore::SVGResources::setFilter):
(WebCore::SVGResources::setMarkerStart):
(WebCore::SVGResources::setMarkerMid):
(WebCore::SVGResources::setMarkerEnd):
(WebCore::SVGResources::setMasker):
(WebCore::SVGResources::setFill):
(WebCore::SVGResources::setStroke):
* rendering/svg/SVGResourcesCache.cpp:
(WebCore::SVGResourcesCache::addResourcesFromRenderer):
* rendering/svg/SVGTextMetricsBuilder.cpp:
(WebCore::SVGTextMetricsBuilder::initializeMeasurementWithTextRenderer):
* rendering/updating/RenderTreeBuilder.cpp:
(WebCore::RenderTreeBuilder::RenderTreeBuilder):
* rendering/updating/RenderTreeUpdater.cpp:
(WebCore::RenderTreeUpdater::RenderTreeUpdater):
* style/StyleInvalidator.cpp:
(WebCore::Style::Invalidator::Invalidator):
* style/StyleRelations.cpp:
(WebCore::Style::commitRelationsToRenderStyle):
* style/StyleScope.cpp:
(WebCore::Style::Scope::resolver):
(WebCore::Style::Scope::activeStyleSheetsContains const):
* style/StyleTreeResolver.cpp:
(WebCore::Style::TreeResolver::resolve):
* svg/SVGDocumentExtensions.cpp:
(WebCore::SVGDocumentExtensions::SVGDocumentExtensions):
(WebCore::SVGDocumentExtensions::addPendingResource):
(WebCore::SVGDocumentExtensions::addElementReferencingTarget):
* svg/SVGElement.cpp:
(WebCore::SVGElement::SVGElement):
(WebCore::SVGElement::ensureSVGRareData):
* svg/SVGGraphicsElement.cpp:
(WebCore::SVGGraphicsElement::supplementalTransform):
* svg/SVGPathByteStream.h:
(WebCore::SVGPathByteStream::copy const):
* svg/animation/SMILTimeContainer.cpp:
(WebCore::SMILTimeContainer::schedule):
* svg/graphics/SVGImage.cpp:
(WebCore::SVGImage::dataChanged):
* svg/properties/SVGAnimatedDecoratedProperty.h:
(WebCore::SVGAnimatedDecoratedProperty::create):
* svg/properties/SVGAnimatedPropertyAnimatorImpl.h:
* svg/properties/SVGAnimatedPropertyPairAnimatorImpl.h:
* svg/properties/SVGDecoratedEnumeration.h:
(WebCore::SVGDecoratedEnumeration::create):
* svg/properties/SVGPrimitivePropertyAnimator.h:
(WebCore::SVGPrimitivePropertyAnimator::create):
* svg/properties/SVGValuePropertyAnimatorImpl.h:
* svg/properties/SVGValuePropertyListAnimatorImpl.h:
* testing/InternalSettings.cpp:
(WebCore::InternalSettings::from):
* testing/Internals.cpp:
(WebCore::InspectorStubFrontend::InspectorStubFrontend):
(WebCore::Internals::Internals):
(WebCore::Internals::enableMockSpeechSynthesizer):
(WebCore::Internals::openDummyInspectorFrontend):
(WebCore::Internals::setPrinting):
(WebCore::Internals::initializeMockCDM):
(WebCore::Internals::queueMicroTask):
* testing/LegacyMockCDM.cpp:
(WebCore::LegacyMockCDM::createSession):
* testing/MockCDMFactory.cpp:
(WebCore::MockCDMFactory::createCDM):
* testing/MockContentFilter.cpp:
(WebCore::MockContentFilter::create):
* testing/MockGamepadProvider.cpp:
(WebCore::MockGamepadProvider::setMockGamepadDetails):
* workers/WorkerConsoleClient.cpp:
(WebCore::WorkerConsoleClient::messageWithTypeAndLevel):
* workers/WorkerEventQueue.cpp:
(WebCore::WorkerEventQueue::enqueueEvent):
* workers/WorkerGlobalScope.cpp:
(WebCore::WorkerGlobalScope::WorkerGlobalScope):
(WebCore::WorkerGlobalScope::addMessage):
* workers/WorkerMessagingProxy.cpp:
(WebCore::WorkerMessagingProxy::WorkerMessagingProxy):
(WebCore::WorkerMessagingProxy::postMessageToWorkerGlobalScope):
* workers/WorkerRunLoop.cpp:
(WebCore::WorkerRunLoop::WorkerRunLoop):
(WebCore::WorkerRunLoop::postTaskAndTerminate):
(WebCore::WorkerRunLoop::postTaskForMode):
* workers/WorkerScriptLoader.cpp:
(WebCore::WorkerScriptLoader::loadAsynchronously):
(WebCore::WorkerScriptLoader::createResourceRequest):
* workers/WorkerThread.cpp:
(WebCore::WorkerThread::WorkerThread):
* workers/service/ServiceWorkerContainer.cpp:
(WebCore::ServiceWorkerContainer::ready):
(WebCore::ServiceWorkerContainer::addRegistration):
(WebCore::ServiceWorkerContainer::removeRegistration):
(WebCore::ServiceWorkerContainer::updateRegistration):
(WebCore::ServiceWorkerContainer::getRegistration):
(WebCore::ServiceWorkerContainer::getRegistrations):
* workers/service/context/SWContextManager.cpp:
(WebCore::SWContextManager::terminateWorker):
* workers/service/context/ServiceWorkerThreadProxy.cpp:
(WebCore::ServiceWorkerThreadProxy::ServiceWorkerThreadProxy):
(WebCore::ServiceWorkerThreadProxy::createBlobLoader):
* workers/service/server/RegistrationDatabase.cpp:
(WebCore::RegistrationDatabase::openSQLiteDatabase):
* workers/service/server/SWServer.cpp:
(WebCore::SWServer::addRegistrationFromStore):
(WebCore::SWServer::SWServer):
(WebCore::SWServer::scheduleJob):
(WebCore::SWServer::unregisterServiceWorkerClient):
* workers/service/server/SWServerJobQueue.cpp:
(WebCore::SWServerJobQueue::runRegisterJob):
* worklets/PaintWorkletGlobalScope.cpp:
(WebCore::PaintWorkletGlobalScope::registerPaint):
* worklets/WorkletConsoleClient.cpp:
(WebCore::WorkletConsoleClient::messageWithTypeAndLevel):
* worklets/WorkletGlobalScope.cpp:
(WebCore::WorkletGlobalScope::WorkletGlobalScope):
(WebCore::WorkletGlobalScope::addConsoleMessage):
* worklets/WorkletScriptController.cpp:
(WebCore::WorkletScriptController::initScriptWithSubclass):
* xml/XMLHttpRequest.cpp:
(WebCore::XMLHttpRequest::upload):
* xml/XPathFunctions.cpp:
* xml/XPathPredicate.cpp:
(WebCore::XPath::evaluatePredicate):
* xml/XSLStyleSheetLibxslt.cpp:
(WebCore::XSLStyleSheet::loadChildSheet):
* xml/parser/XMLDocumentParser.cpp:
(WebCore::XMLDocumentParser::handleError):
* xml/parser/XMLDocumentParserLibxml2.cpp:
(WebCore::PendingCallbacks::appendStartElementNSCallback):
(WebCore::PendingCallbacks::appendEndElementNSCallback):
(WebCore::PendingCallbacks::appendCharactersCallback):
(WebCore::PendingCallbacks::appendProcessingInstructionCallback):
(WebCore::PendingCallbacks::appendCDATABlockCallback):
(WebCore::PendingCallbacks::appendCommentCallback):
(WebCore::PendingCallbacks::appendInternalSubsetCallback):
(WebCore::PendingCallbacks::appendErrorCallback):
(WebCore::XMLDocumentParser::XMLDocumentParser):
(WebCore::XMLDocumentParser::doEnd):
Source/WebCore/PAL:
Reviewed by Geoffrey Garen.
* pal/crypto/openssl/CryptoDigestOpenSSL.cpp:
(PAL::CryptoDigestContextImpl::create):
* pal/system/ClockGeneric.cpp:
(PAL::Clock::create):
* pal/system/mac/ClockCM.mm:
(Clock::create):
Source/WebDriver:
Reviewed by Geoffrey Garen.
* WebDriverService.cpp:
(WebDriver::WebDriverService::connectToBrowser):
* glib/SessionHostGlib.cpp:
(WebDriver::SessionHost::launchBrowser):
(WebDriver::SessionHost::sendMessageToBackend):
Source/WebKit:
Reviewed by Geoffrey Garen.
* NetworkProcess/Classifier/ResourceLoadStatisticsPersistentStorage.cpp:
(WebKit::ResourceLoadStatisticsPersistentStorage::startMonitoringDisk):
(WebKit::ResourceLoadStatisticsPersistentStorage::monitorDirectoryForNewStatistics):
* NetworkProcess/Classifier/WebResourceLoadStatisticsStore.cpp:
(WebKit::WebResourceLoadStatisticsStore::WebResourceLoadStatisticsStore):
* NetworkProcess/CustomProtocols/soup/LegacyCustomProtocolManagerSoup.cpp:
* NetworkProcess/Downloads/DownloadManager.cpp:
(WebKit::DownloadManager::startDownload):
(WebKit::DownloadManager::convertNetworkLoadToDownload):
(WebKit::DownloadManager::resumeDownload):
* NetworkProcess/Downloads/DownloadMap.cpp:
(WebKit::DownloadMap::add):
* NetworkProcess/Downloads/PendingDownload.cpp:
(WebKit::PendingDownload::PendingDownload):
* NetworkProcess/NetworkConnectionToWebProcess.cpp:
(WebKit::NetworkConnectionToWebProcess::establishSWServerConnection):
* NetworkProcess/NetworkContentRuleListManager.cpp:
(WebKit::NetworkContentRuleListManager::addContentRuleLists):
* NetworkProcess/NetworkDataTaskBlob.cpp:
(WebKit::NetworkDataTaskBlob::NetworkDataTaskBlob):
(WebKit::NetworkDataTaskBlob::download):
* NetworkProcess/NetworkHTTPSUpgradeChecker.cpp:
(WebKit::NetworkHTTPSUpgradeChecker::NetworkHTTPSUpgradeChecker):
* NetworkProcess/NetworkLoad.cpp:
(WebKit::NetworkLoad::didReceiveResponse):
* NetworkProcess/NetworkLoadChecker.cpp:
(WebKit::NetworkLoadChecker::checkCORSRequestWithPreflight):
(WebKit::NetworkLoadChecker::contentSecurityPolicy):
* NetworkProcess/NetworkProcess.cpp:
(WebKit::NetworkProcess::switchToNewTestingSession):
(WebKit::NetworkProcess::ensureSession):
(WebKit::NetworkProcess::swServerForSession):
(WebKit::NetworkProcess::initializeQuotaUsers):
(WebKit::NetworkProcess::storageQuotaManager):
* NetworkProcess/NetworkProcess.h:
(WebKit::NetworkProcess::addSupplement):
* NetworkProcess/NetworkResourceLoader.cpp:
(WebKit::m_shouldCaptureExtraNetworkLoadMetrics):
(WebKit::NetworkResourceLoader::startNetworkLoad):
* NetworkProcess/NetworkSocketChannel.cpp:
(WebKit::NetworkSocketChannel::create):
* NetworkProcess/PreconnectTask.cpp:
* NetworkProcess/WebStorage/LocalStorageDatabase.cpp:
(WebKit::LocalStorageDatabase::scheduleDatabaseUpdate):
* NetworkProcess/WebStorage/LocalStorageNamespace.cpp:
(WebKit::LocalStorageNamespace::getOrCreateStorageArea):
* NetworkProcess/WebStorage/SessionStorageNamespace.cpp:
(WebKit::SessionStorageNamespace::getOrCreateStorageArea):
* NetworkProcess/WebStorage/StorageArea.cpp:
(WebKit::StorageArea::clone const):
* NetworkProcess/WebStorage/StorageManager.cpp:
(WebKit::StorageManager::createSessionStorageNamespace):
(WebKit::StorageManager::getOrCreateLocalStorageNamespace):
(WebKit::StorageManager::getOrCreateTransientLocalStorageNamespace):
(WebKit::StorageManager::getOrCreateSessionStorageNamespace):
* NetworkProcess/WebStorage/StorageManagerSet.cpp:
(WebKit::StorageManagerSet::add):
* NetworkProcess/WebStorage/TransientLocalStorageNamespace.cpp:
(WebKit::TransientLocalStorageNamespace::getOrCreateStorageArea):
* NetworkProcess/cache/NetworkCache.cpp:
(WebKit::NetworkCache::Cache::Cache):
(WebKit::NetworkCache::Cache::makeEntry):
(WebKit::NetworkCache::Cache::makeRedirectEntry):
(WebKit::NetworkCache::Cache::update):
* NetworkProcess/cache/NetworkCacheEntry.cpp:
(WebKit::NetworkCache::Entry::decodeStorageRecord):
* NetworkProcess/cache/NetworkCacheSpeculativeLoad.cpp:
(WebKit::NetworkCache::SpeculativeLoad::SpeculativeLoad):
* NetworkProcess/cache/NetworkCacheSpeculativeLoadManager.cpp:
(WebKit::NetworkCache::SpeculativeLoadManager::PendingFrameLoad::registerSubresourceLoad):
(WebKit::NetworkCache::SpeculativeLoadManager::retrieve):
(WebKit::NetworkCache::SpeculativeLoadManager::addPreloadedEntry):
(WebKit::NetworkCache::SpeculativeLoadManager::satisfyPendingRequests):
(WebKit::NetworkCache::SpeculativeLoadManager::revalidateSubresource):
(WebKit::NetworkCache::SpeculativeLoadManager::startSpeculativeRevalidation):
* NetworkProcess/cache/NetworkCacheStorage.cpp:
(WebKit::NetworkCache::Storage::synchronize):
(WebKit::NetworkCache::Storage::readRecord):
(WebKit::NetworkCache::retrieveFromMemory):
(WebKit::NetworkCache::Storage::retrieve):
(WebKit::NetworkCache::Storage::store):
(WebKit::NetworkCache::Storage::traverse):
* NetworkProcess/cache/NetworkCacheSubresourcesEntry.cpp:
(WebKit::NetworkCache::SubresourcesEntry::decodeStorageRecord):
* NetworkProcess/cache/PrefetchCache.cpp:
(WebKit::PrefetchCache::store):
(WebKit::PrefetchCache::storeRedirect):
* NetworkProcess/cocoa/NetworkProcessCocoa.mm:
(WebKit::NetworkProcess::platformCreateDefaultStorageSession const):
(WebKit::NetworkProcess::networkHTTPSUpgradeChecker):
* NetworkProcess/cocoa/NetworkSessionCocoa.mm:
(-[WKNetworkSessionDelegate URLSession:dataTask:didBecomeDownloadTask:]):
(WebKit::NetworkSessionCocoa::create):
(WebKit::NetworkSessionCocoa::createWebSocketTask):
* NetworkProcess/curl/NetworkProcessCurl.cpp:
(WebKit::NetworkProcess::platformCreateDefaultStorageSession const):
* NetworkProcess/curl/NetworkSessionCurl.h:
* NetworkProcess/ios/NetworkConnectionToWebProcessIOS.mm:
(WebKit::NetworkConnectionToWebProcess::paymentCoordinator):
(WebKit::NetworkConnectionToWebProcess::paymentCoordinatorAuthorizationPresenter):
* NetworkProcess/soup/NetworkDataTaskSoup.cpp:
(WebKit::NetworkDataTaskSoup::download):
* NetworkProcess/soup/NetworkProcessSoup.cpp:
(WebKit::NetworkProcess::platformCreateDefaultStorageSession const):
* NetworkProcess/soup/NetworkSessionSoup.cpp:
(WebKit::NetworkSessionSoup::NetworkSessionSoup):
(WebKit::NetworkSessionSoup::createWebSocketTask):
* NetworkProcess/soup/NetworkSessionSoup.h:
* NetworkProcess/soup/WebKitSoupRequestInputStream.cpp:
(webkitSoupRequestInputStreamReadAsync):
* NetworkProcess/webrtc/NetworkMDNSRegister.cpp:
(WebKit::NetworkMDNSRegister::registerMDNSName):
* NetworkProcess/webrtc/NetworkRTCMonitor.cpp:
(WebKit::NetworkRTCMonitor::startUpdating):
* NetworkProcess/webrtc/NetworkRTCProvider.cpp:
(WebKit::NetworkRTCProvider::NetworkRTCProvider):
(WebKit::NetworkRTCProvider::createSocket):
(WebKit::NetworkRTCProvider::wrapNewTCPConnection):
* Platform/IPC/Connection.cpp:
(IPC::Connection::dispatchWorkQueueMessageReceiverMessage):
(IPC::Connection::createSyncMessageEncoder):
(IPC::Connection::enableIncomingMessagesThrottling):
(IPC::Connection::dispatchSyncMessage):
* Platform/IPC/Connection.h:
(IPC::Connection::send):
(IPC::Connection::sendWithAsyncReply):
* Platform/IPC/Decoder.cpp:
(IPC::Decoder::unwrapForTesting):
* Platform/IPC/HandleMessage.h:
(IPC::handleMessageAsync):
* Platform/IPC/MessageSender.h:
* Platform/IPC/cocoa/ConnectionCocoa.mm:
(IPC::ConnectionTerminationWatchdog::ConnectionTerminationWatchdog):
(IPC::Connection::open):
(IPC::createMessageDecoder):
(IPC::Connection::receiveSourceEventHandler):
* Platform/IPC/unix/ConnectionUnix.cpp:
(IPC::Connection::processMessage):
(IPC::Connection::sendOutputMessage):
* Platform/IPC/win/ConnectionWin.cpp:
(IPC::Connection::readEventHandler):
* Platform/mac/LayerHostingContext.mm:
(WebKit::LayerHostingContext::createForPort):
(WebKit::LayerHostingContext::createForExternalHostingProcess):
(WebKit::LayerHostingContext::createForExternalPluginHostingProcess):
* PluginProcess/WebProcessConnection.cpp:
(WebKit::WebProcessConnection::createPluginInternal):
* Shared/API/APIURL.h:
(API::URL::create):
(API::URL::parseURLIfNecessary const):
* Shared/API/Cocoa/RemoteObjectInvocation.mm:
(WebKit::RemoteObjectInvocation::decode):
* Shared/API/Cocoa/_WKRemoteObjectRegistry.mm:
(-[_WKRemoteObjectRegistry _initWithWebPage:]):
(-[_WKRemoteObjectRegistry _initWithWebPageProxy:]):
(-[_WKRemoteObjectRegistry _sendInvocation:interface:]):
* Shared/API/glib/WebKitContextMenuItem.cpp:
(webkitContextMenuItemCreate):
(webkit_context_menu_item_new):
(webkit_context_menu_item_new_from_gaction):
(webkit_context_menu_item_new_from_stock_action):
(webkit_context_menu_item_new_from_stock_action_with_label):
(webkit_context_menu_item_new_with_submenu):
(webkit_context_menu_item_new_separator):
* Shared/ApplePay/mac/WebPaymentCoordinatorProxyMac.mm:
(WebKit::WebPaymentCoordinatorProxy::platformShowPaymentUI):
* Shared/Cocoa/SandboxExtensionCocoa.mm:
(WebKit::SandboxExtension::Handle::decode):
* Shared/CoordinatedGraphics/CoordinatedGraphicsScene.cpp:
(WebKit::texmapLayer):
(WebKit::CoordinatedGraphicsScene::ensureRootLayer):
* Shared/CoordinatedGraphics/threadedcompositor/ThreadedCompositor.cpp:
(WebKit::ThreadedCompositor::ThreadedCompositor):
* Shared/Plugins/NPRemoteObjectMap.cpp:
(WebKit::NPRemoteObjectMap::registerNPObject):
* Shared/Plugins/Netscape/NetscapePluginModule.cpp:
(WebKit::NetscapePluginModule::tryLoad):
* Shared/RemoteLayerTree/RemoteLayerTreeTransaction.mm:
(WebKit::RemoteLayerTreeTransaction::LayerProperties::LayerProperties):
(WebKit::RemoteLayerTreeTransaction::LayerProperties::decode):
(WebKit::RemoteLayerTreeTransaction::decode):
* Shared/RemoteLayerTree/RemoteScrollingCoordinatorTransaction.cpp:
(WebKit::RemoteScrollingCoordinatorTransaction::decode):
* Shared/cairo/ShareableBitmapCairo.cpp:
(WebKit::ShareableBitmap::createGraphicsContext):
* Shared/cg/ShareableBitmapCG.cpp:
(WebKit::ShareableBitmap::createGraphicsContext):
* Shared/win/ShareableBitmapDirect2D.cpp:
(WebKit::ShareableBitmap::createGraphicsContext):
* UIProcess/API/APIHTTPCookieStore.cpp:
(API::HTTPCookieStore::registerObserver):
* UIProcess/API/C/WKContext.cpp:
(WKContextSetInjectedBundleClient):
(WKContextSetHistoryClient):
(WKContextSetDownloadClient):
* UIProcess/API/C/WKGeolocationManager.cpp:
(WKGeolocationManagerSetProvider):
* UIProcess/API/C/WKNotificationManager.cpp:
(WKNotificationManagerSetProvider):
* UIProcess/API/C/WKPage.cpp:
(WKPageSetPageContextMenuClient):
(WKPageSetPageDiagnosticLoggingClient):
(WKPageSetPageFindClient):
(WKPageSetPageFindMatchesClient):
(WKPageSetPageFormClient):
(WKPageSetPageLoaderClient):
(WKPageSetPagePolicyClient):
(WKPageSetPageUIClient):
(WKPageSetPageStateClient):
* UIProcess/API/C/mac/WKPagePrivateMac.mm:
(-[WKObservablePageState initWithPage:]):
* UIProcess/API/C/wpe/WKView.cpp:
(WKViewSetViewClient):
* UIProcess/API/Cocoa/WKBrowsingContextController.mm:
(-[WKBrowsingContextController _initWithPageRef:]):
* UIProcess/API/Cocoa/WKHTTPCookieStore.mm:
(-[WKHTTPCookieStore addObserver:]):
* UIProcess/API/Cocoa/WKProcessPool.mm:
(-[WKProcessPool _setDownloadDelegate:]):
(-[WKProcessPool _setAutomationDelegate:]):
* UIProcess/API/Cocoa/WKUserContentController.mm:
(-[WKUserContentController addScriptMessageHandler:name:]):
(-[WKUserContentController _addScriptMessageHandler:name:userContentWorld:]):
* UIProcess/API/Cocoa/WKWebView.mm:
(-[WKWebView _initializeWithConfiguration:]):
(-[WKWebView setAllowsBackForwardNavigationGestures:]):
(-[WKWebView _setInputDelegate:]):
* UIProcess/API/Cocoa/_WKAutomationSession.mm:
(-[_WKAutomationSession setDelegate:]):
* UIProcess/API/Cocoa/_WKRemoteWebInspectorViewController.mm:
(-[_WKRemoteWebInspectorViewController init]):
* UIProcess/API/glib/IconDatabase.cpp:
(WebKit::readySQLiteStatement):
* UIProcess/API/glib/WebKitAutomationSession.cpp:
(webkitAutomationSessionConstructed):
* UIProcess/API/glib/WebKitContextMenuClient.cpp:
(attachContextMenuClientToView):
* UIProcess/API/glib/WebKitCustomProtocolManagerClient.cpp:
(attachCustomProtocolManagerClientToContext):
* UIProcess/API/glib/WebKitDownloadClient.cpp:
(attachDownloadClientToContext):
* UIProcess/API/glib/WebKitFaviconDatabase.cpp:
(webkitFaviconDatabaseOpen):
* UIProcess/API/glib/WebKitFindController.cpp:
(webkitFindControllerConstructed):
* UIProcess/API/glib/WebKitFormClient.cpp:
(attachFormClientToView):
* UIProcess/API/glib/WebKitGeolocationManager.cpp:
(webkitGeolocationManagerCreate):
* UIProcess/API/glib/WebKitIconLoadingClient.cpp:
(attachIconLoadingClientToView):
* UIProcess/API/glib/WebKitInjectedBundleClient.cpp:
(attachInjectedBundleClientToContext):
* UIProcess/API/glib/WebKitNotificationProvider.cpp:
(WebKitNotificationProvider::WebKitNotificationProvider):
* UIProcess/API/glib/WebKitUIClient.cpp:
(attachUIClientToView):
* UIProcess/API/glib/WebKitUserContentManager.cpp:
(webkit_user_content_manager_register_script_message_handler):
(webkit_user_content_manager_register_script_message_handler_in_world):
* UIProcess/API/glib/WebKitWebContext.cpp:
(webkitWebContextConstructed):
(webkit_web_context_set_automation_allowed):
* UIProcess/API/glib/WebKitWebView.cpp:
(webkitWebViewConstructed):
* UIProcess/API/gtk/PageClientImpl.cpp:
(WebKit::PageClientImpl::createDrawingAreaProxy):
* UIProcess/API/gtk/WebKitEmojiChooser.cpp:
(webkitEmojiChooserSetupEmojiSections):
* UIProcess/API/gtk/WebKitRemoteInspectorProtocolHandler.cpp:
(WebKit::RemoteInspectorProtocolHandler::handleRequest):
* UIProcess/API/gtk/WebKitWebInspector.cpp:
(webkitWebInspectorCreate):
* UIProcess/API/gtk/WebKitWebViewBase.cpp:
(webkitWebViewBaseConstructed):
(webkitWebViewBaseGestureController):
(webkitWebViewBaseDragAndDropHandler):
(webkitWebViewBaseDidRelaunchWebProcess):
* UIProcess/API/mac/WKView.mm:
(-[WKView maybeInstallIconLoadingClient]):
(-[WKView initWithFrame:processPool:configuration:]):
* UIProcess/API/wpe/PageClientImpl.cpp:
(WebKit::PageClientImpl::PageClientImpl):
(WebKit::PageClientImpl::createDrawingAreaProxy):
* UIProcess/API/wpe/WPEView.cpp:
(WKWPE::View::View):
(WKWPE::View::setClient):
* UIProcess/API/wpe/qt/WPEQtView.cpp:
(WPEQtView::notifyLoadChangedCallback):
(WPEQtView::notifyLoadFailedCallback):
(WPEQtView::runJavaScript):
* UIProcess/API/wpe/qt/WPEQtViewBackend.cpp:
(WPEQtViewBackend::create):
* UIProcess/Automation/WebAutomationSession.cpp:
(WebKit::WebAutomationSession::WebAutomationSession):
* UIProcess/AuxiliaryProcessProxy.h:
(WebKit::AuxiliaryProcessProxy::send):
* UIProcess/Cocoa/IconLoadingDelegate.mm:
(WebKit::IconLoadingDelegate::createIconLoadingClient):
* UIProcess/Cocoa/UIDelegate.mm:
(WebKit::UIDelegate::createContextMenuClient):
(WebKit::UIDelegate::createUIClient):
* UIProcess/Cocoa/UserMediaCaptureManagerProxy.cpp:
(WebKit::UserMediaCaptureManagerProxy::createMediaSourceForCaptureDeviceWithConstraints):
* UIProcess/Cocoa/WebProcessPoolCocoa.mm:
(WebKit::WebProcessPool::platformInitialize):
(WebKit::WebProcessPool::startDisplayLink):
* UIProcess/Cocoa/WebProcessProxyCocoa.mm:
(WebKit::WebProcessProxy::processWasUnexpectedlyUnsuspended):
* UIProcess/Cocoa/WebViewImpl.mm:
(WebKit::WebViewImpl::WebViewImpl):
(WebKit::WebViewImpl::createDrawingAreaProxy):
(WebKit::WebViewImpl::setTextIndicator):
(WebKit::WebViewImpl::ensureGestureController):
* UIProcess/CoordinatedGraphics/DrawingAreaProxyCoordinatedGraphics.cpp:
(WebKit::DrawingAreaProxyCoordinatedGraphics::incorporateUpdate):
(WebKit::DrawingAreaProxyCoordinatedGraphics::dispatchAfterEnsuringDrawing):
* UIProcess/DeviceIdHashSaltStorage.cpp:
(WebKit::DeviceIdHashSaltStorage::getDataFromDecoder const):
(WebKit::DeviceIdHashSaltStorage::completeDeviceIdHashSaltForOriginCall):
* UIProcess/Downloads/DownloadProxyMap.cpp:
(WebKit::DownloadProxyMap::createDownloadProxy):
* UIProcess/Gamepad/UIGamepadProvider.cpp:
(WebKit::UIGamepadProvider::setInitialConnectedGamepads):
(WebKit::UIGamepadProvider::platformGamepadConnected):
* UIProcess/Network/NetworkProcessProxy.cpp:
(WebKit::NetworkProcessProxy::createDownloadProxy):
(WebKit::NetworkProcessProxy::takeUploadAssertion):
* UIProcess/Notifications/WebNotificationManagerProxy.cpp:
(WebKit::WebNotificationManagerProxy::WebNotificationManagerProxy):
(WebKit::WebNotificationManagerProxy::setProvider):
* UIProcess/Plugins/unix/PluginProcessProxyUnix.cpp:
(WebKit::pluginRequiresGtk2):
* UIProcess/ProcessThrottler.cpp:
(WebKit::ProcessThrottler::didConnectToProcess):
* UIProcess/RemoteLayerTree/RemoteLayerTreeDrawingAreaProxy.mm:
(WebKit::RemoteLayerTreeDrawingAreaProxy::RemoteLayerTreeDrawingAreaProxy):
(WebKit::RemoteLayerTreeDrawingAreaProxy::initializeDebugIndicator):
* UIProcess/RemoteLayerTree/RemoteLayerTreeHost.mm:
(WebKit::RemoteLayerTreeHost::makeNode):
* UIProcess/RemoteLayerTree/RemoteLayerTreeNode.mm:
(WebKit::RemoteLayerTreeNode::createWithPlainLayer):
* UIProcess/RemoteLayerTree/ios/RemoteLayerTreeHostIOS.mm:
(WebKit::RemoteLayerTreeHost::makeNode):
* UIProcess/RemoteLayerTree/ios/ScrollingTreeFrameScrollingNodeRemoteIOS.mm:
(WebKit::ScrollingTreeFrameScrollingNodeRemoteIOS::commitStateBeforeChildren):
* UIProcess/RemoteLayerTree/ios/ScrollingTreeOverflowScrollingNodeIOS.mm:
(WebKit::ScrollingTreeOverflowScrollingNodeIOS::ScrollingTreeOverflowScrollingNodeIOS):
* UIProcess/RemoteLayerTree/mac/ScrollingTreeFrameScrollingNodeRemoteMac.cpp:
(WebKit::ScrollingTreeFrameScrollingNodeRemoteMac::ScrollingTreeFrameScrollingNodeRemoteMac):
* UIProcess/RemoteLayerTree/mac/ScrollingTreeOverflowScrollingNodeRemoteMac.cpp:
(WebKit::ScrollingTreeOverflowScrollingNodeRemoteMac::ScrollingTreeOverflowScrollingNodeRemoteMac):
* UIProcess/WebAuthentication/Cocoa/HidService.mm:
(WebKit::HidService::deviceAdded):
* UIProcess/WebGeolocationManagerProxy.cpp:
(WebKit::WebGeolocationManagerProxy::WebGeolocationManagerProxy):
(WebKit::WebGeolocationManagerProxy::setProvider):
* UIProcess/WebMediaSessionFocusManager.cpp:
(WebKit::WebMediaSessionFocusManager::setFocusedMediaElement):
* UIProcess/WebPageInspectorController.cpp:
(WebKit::WebPageInspectorController::WebPageInspectorController):
* UIProcess/WebPageProxy.cpp:
(WebKit::WebPageProxy::WebPageProxy):
(WebKit::m_resetRecentCrashCountTimer):
(WebKit::WebPageProxy::setFormClient):
(WebKit::WebPageProxy::setUIClient):
(WebKit::WebPageProxy::setIconLoadingClient):
(WebKit::WebPageProxy::setFindClient):
(WebKit::WebPageProxy::setFindMatchesClient):
(WebKit::WebPageProxy::setContextMenuClient):
(WebKit::WebPageProxy::setInjectedBundleClient):
(WebKit::WebPageProxy::suspendCurrentPageIfPossible):
(WebKit::WebPageProxy::didAttachToRunningProcess):
(WebKit::WebPageProxy::setDrawingArea):
(WebKit::WebPageProxy::close):
(WebKit::WebPageProxy::loadData):
(WebKit::WebPageProxy::handleWheelEvent):
(WebKit::WebPageProxy::processNextQueuedWheelEvent):
(WebKit::WebPageProxy::continueNavigationInNewProcess):
(WebKit::WebPageProxy::setFullscreenClient):
(WebKit::WebPageProxy::userMediaPermissionRequestManager):
(WebKit::WebPageProxy::setScrollPerformanceDataCollectionEnabled):
(WebKit::WebPageProxy::speechSynthesisData):
* UIProcess/WebProcessCache.cpp:
(WebKit::WebProcessCache::addProcessIfPossible):
* UIProcess/WebProcessPool.cpp:
(WebKit::WebProcessPool::WebProcessPool):
(WebKit::WebProcessPool::setInjectedBundleClient):
(WebKit::WebProcessPool::setHistoryClient):
(WebKit::WebProcessPool::setDownloadClient):
(WebKit::WebProcessPool::setAutomationClient):
(WebKit::WebProcessPool::setLegacyCustomProtocolManagerClient):
(WebKit::WebProcessPool::ensureNetworkProcess):
(WebKit::WebProcessPool::didCollectPrewarmInformation):
(WebKit::WebProcessPool::setWebProcessHasUploads):
(WebKit::WebProcessPool::setWebProcessIsPlayingAudibleMedia):
* UIProcess/WebProcessProxy.cpp:
* UIProcess/cairo/BackingStoreCairo.cpp:
(WebKit::BackingStore::createBackend):
* UIProcess/glib/RemoteInspectorClient.cpp:
(WebKit::RemoteInspectorClient::inspect):
* UIProcess/gtk/AcceleratedBackingStoreWayland.cpp:
(WebKit::AcceleratedBackingStoreWayland::checkRequirements):
* UIProcess/gtk/DragAndDropHandler.cpp:
(WebKit::DragAndDropHandler::dragDataSelection):
* UIProcess/gtk/WaylandCompositor.cpp:
(WebKit::WaylandCompositor::initializeEGL):
* UIProcess/ios/EditableImageController.mm:
(WebKit::EditableImageController::ensureEditableImage):
* UIProcess/ios/WKApplicationStateTrackingView.mm:
(-[WKApplicationStateTrackingView didMoveToWindow]):
* UIProcess/ios/WKContentView.mm:
(-[WKContentView _commonInitializationWithProcessPool:configuration:]):
(-[WKContentView initWithFrame:processPool:configuration:webView:]):
(-[WKContentView _createDrawingAreaProxy:]):
* UIProcess/ios/WKContentViewInteraction.mm:
(-[WKContentView setupInteraction]):
(-[WKContentView becomeFirstResponderForWebView]):
(-[WKContentView _elementDidFocus:userIsInteracting:blurPreviousNode:activityStateChanges:userObject:]):
* UIProcess/ios/WebPageProxyIOS.mm:
(WebKit::WebPageProxy::elementDidFocus):
(WebKit::WebPageProxy::paymentCoordinatorAuthorizationPresenter):
* UIProcess/mac/PageClientImplMac.mm:
(WebKit::PageClientImpl::PageClientImpl):
* UIProcess/mac/WKFullScreenWindowController.mm:
(-[WKFullScreenWindowController initWithWindow:webView:page:]):
* UIProcess/mac/WKTextFinderClient.mm:
(-[WKTextFinderClient initWithPage:view:usePlatformFindUI:]):
* UIProcess/socket/RemoteInspectorClient.cpp:
(WebKit::RemoteInspectorClient::inspect):
* UIProcess/socket/RemoteInspectorProtocolHandler.cpp:
(WebKit::RemoteInspectorProtocolHandler::platformStartTask):
* UIProcess/win/BackingStoreDirect2D.cpp:
(WebKit::BackingStore::createBackend):
* UIProcess/win/PageClientImpl.cpp:
(WebKit::PageClientImpl::createDrawingAreaProxy):
* UIProcess/win/WebView.cpp:
(WebKit::WebView::WebView):
* WebProcess/Gamepad/WebGamepadProvider.cpp:
(WebKit::WebGamepadProvider::setInitialGamepads):
(WebKit::WebGamepadProvider::gamepadConnected):
* WebProcess/InjectedBundle/API/c/WKBundle.cpp:
(WKBundleSetClient):
* WebProcess/InjectedBundle/API/c/WKBundlePage.cpp:
(WKBundlePageSetContextMenuClient):
(WKBundlePageSetEditorClient):
(WKBundlePageSetFormClient):
(WKBundlePageSetPageLoaderClient):
(WKBundlePageSetResourceLoadClient):
(WKBundlePageSetUIClient):
* WebProcess/InjectedBundle/API/c/WKBundlePageOverlay.cpp:
(WKBundlePageOverlayCreate):
* WebProcess/InjectedBundle/API/c/mac/WKBundlePageBannerMac.mm:
(WKBundlePageBannerCreateBannerWithCALayer):
* WebProcess/InjectedBundle/API/glib/DOM/DOMObjectCache.cpp:
(WebKit::getOrCreateDOMObjectCacheFrameObserver):
(WebKit::DOMObjectCache::put):
* WebProcess/InjectedBundle/API/glib/WebKitExtensionManager.cpp:
(WebKit::WebKitExtensionManager::initialize):
* WebProcess/InjectedBundle/API/glib/WebKitWebEditor.cpp:
(webkitWebEditorCreate):
* WebProcess/InjectedBundle/API/glib/WebKitWebExtension.cpp:
(webkitWebExtensionCreate):
* WebProcess/InjectedBundle/API/glib/WebKitWebPage.cpp:
(webkitFrameGetOrCreate):
(webkitWebPageCreate):
* WebProcess/InjectedBundle/API/mac/WKDOMTextIterator.mm:
(-[WKDOMTextIterator initWithRange:]):
* WebProcess/InjectedBundle/API/mac/WKWebProcessPlugInBrowserContextController.mm:
(-[WKWebProcessPlugInBrowserContextController _setFormDelegate:]):
(-[WKWebProcessPlugInBrowserContextController _setEditingDelegate:]):
* WebProcess/InjectedBundle/InjectedBundle.cpp:
(WebKit::InjectedBundle::InjectedBundle):
(WebKit::InjectedBundle::setClient):
* WebProcess/Network/WebSocketChannel.cpp:
(WebKit::PendingMessage::PendingMessage):
(WebKit::WebSocketChannel::send):
* WebProcess/Network/webrtc/LibWebRTCProvider.cpp:
(WebKit::LibWebRTCProvider::createPeerConnection):
(WebKit::LibWebRTCProvider::createSocketFactory):
* WebProcess/Network/webrtc/LibWebRTCSocketFactory.cpp:
(WebKit::LibWebRTCSocketFactory::createServerTcpSocket):
(WebKit::LibWebRTCSocketFactory::createUdpSocket):
(WebKit::LibWebRTCSocketFactory::createClientTcpSocket):
(WebKit::LibWebRTCSocketFactory::createNewConnectionSocket):
(WebKit::LibWebRTCSocketFactory::createAsyncResolver):
* WebProcess/Plugins/Netscape/NetscapeBrowserFuncs.cpp:
(WebKit::PluginDestructionProtector::PluginDestructionProtector):
* WebProcess/Plugins/Netscape/NetscapePlugin.cpp:
(WebKit::NetscapePlugin::scheduleTimer):
* WebProcess/Plugins/Netscape/NetscapePluginStream.cpp:
(WebKit::NetscapePluginStream::deliverData):
* WebProcess/Plugins/Netscape/x11/NetscapePluginX11.cpp:
(WebKit::NetscapePluginX11::create):
* WebProcess/Plugins/PluginProxy.cpp:
(WebKit::PluginProxy::initialize):
* WebProcess/Plugins/PluginView.cpp:
(WebKit::PluginView::createWebEvent const):
* WebProcess/Storage/WebSWContextManagerConnection.cpp:
(WebKit::WebSWContextManagerConnection::installServiceWorker):
* WebProcess/WebCoreSupport/WebChromeClient.cpp:
(WebKit::WebChromeClient::createColorChooser):
(WebKit::WebChromeClient::createDataListSuggestionPicker):
* WebProcess/WebCoreSupport/WebInspectorClient.cpp:
(WebKit::WebInspectorClient::showPaintRect):
* WebProcess/WebCoreSupport/WebPasteboardOverrides.cpp:
(WebKit::WebPasteboardOverrides::addOverride):
* WebProcess/WebPage/CoordinatedGraphics/DrawingAreaCoordinatedGraphics.cpp:
(WebKit::DrawingAreaCoordinatedGraphics::enterAcceleratedCompositingMode):
* WebProcess/WebPage/DrawingArea.cpp:
(WebKit::DrawingArea::create):
* WebProcess/WebPage/RemoteLayerTree/PlatformCALayerRemote.cpp:
(WebKit::PlatformCALayerRemote::ensureBackingStore):
(WebKit::PlatformCALayerRemote::setTransform):
(WebKit::PlatformCALayerRemote::setSublayerTransform):
(WebKit::PlatformCALayerRemote::setFilters):
(WebKit::PlatformCALayerRemote::setShapeRoundedRect):
* WebProcess/WebPage/RemoteLayerTree/PlatformCALayerRemoteTiledBacking.cpp:
(WebKit::PlatformCALayerRemoteTiledBacking::PlatformCALayerRemoteTiledBacking):
* WebProcess/WebPage/RemoteLayerTree/RemoteLayerTreeDrawingArea.mm:
(WebKit::RemoteLayerTreeDrawingArea::RemoteLayerTreeDrawingArea):
(WebKit::RemoteLayerTreeDrawingArea::flushLayers):
* WebProcess/WebPage/WebFrame.cpp:
(WebKit::WebFrame::createSubframe):
* WebProcess/WebPage/WebPage.cpp:
(WebKit::m_textAutoSizingAdjustmentTimer):
(WebKit::WebPage::setInjectedBundleContextMenuClient):
(WebKit::WebPage::setInjectedBundleEditorClient):
(WebKit::WebPage::setInjectedBundleFormClient):
(WebKit::WebPage::setInjectedBundlePageLoaderClient):
(WebKit::WebPage::setInjectedBundleResourceLoadClient):
(WebKit::WebPage::setInjectedBundleUIClient):
(WebKit::WebPage::close):
(WebKit::WebPage::beginPrinting):
* WebProcess/WebPage/gtk/WebPrintOperationGtk.cpp:
(WebKit::WebPrintOperationGtk::print):
* WebProcess/WebPage/ios/FindControllerIOS.mm:
(WebKit::FindController::updateFindIndicator):
* WebProcess/WebPage/mac/DrawingAreaMac.cpp:
(WebKit::DisplayRefreshMonitorMac::requestRefreshCallback):
* WebProcess/WebPage/mac/TiledCoreAnimationDrawingArea.mm:
(WebKit::TiledCoreAnimationDrawingArea::TiledCoreAnimationDrawingArea):
* WebProcess/WebProcess.cpp:
(WebKit::WebProcess::markAllLayersVolatile):
(WebKit::WebProcess::ensureAutomationSessionProxy):
(WebKit::WebProcess::libWebRTCNetwork):
(WebKit::WebProcess::establishWorkerContextConnectionToNetworkProcess):
* WebProcess/WebProcess.h:
(WebKit::WebProcess::addSupplement):
* WebProcess/cocoa/UserMediaCaptureManager.cpp:
(WebKit::UserMediaCaptureManager::Source::Source):
* WebProcess/cocoa/WebProcessCocoa.mm:
(WebKit::WebProcess::processTaskStateDidChange):
(WebKit::WebProcess::updateCPUMonitorState):
Source/WebKitLegacy:
Reviewed by Geoffrey Garen.
* Storage/StorageSyncManager.cpp:
(WebCore::StorageSyncManager::StorageSyncManager):
* Storage/StorageThread.cpp:
(WebCore::StorageThread::dispatch):
(WebCore::StorageThread::terminate):
* Storage/StorageTracker.cpp:
(WebKit::StorageTracker::StorageTracker):
* WebCoreSupport/NetworkStorageSessionMap.cpp:
(NetworkStorageSessionMap::defaultStorageSession):
(NetworkStorageSessionMap::switchToNewTestingSession):
(NetworkStorageSessionMap::ensureSession):
Source/WebKitLegacy/cf:
Reviewed by Geoffrey Garen.
* WebCoreSupport/WebInspectorClientCF.cpp:
(WebInspectorClient::createFrontendSettings):
Source/WebKitLegacy/ios:
Reviewed by Geoffrey Garen.
* WebCoreSupport/WebFixedPositionContent.mm:
(-[WebFixedPositionContent setViewportConstrainedLayers:stickyContainerMap:]):
Source/WebKitLegacy/mac:
Reviewed by Geoffrey Garen.
* History/WebHistory.mm:
(-[WebHistoryPrivate init]):
* History/WebHistoryItem.mm:
(-[WebHistoryItem initFromDictionaryRepresentation:]):
* Plugins/Hosted/NetscapePluginHostProxy.mm:
(WKPCGetScriptableNPObjectReply):
(WKPCBooleanReply):
(WKPCBooleanAndDataReply):
(WKPCInstantiatePluginReply):
* Plugins/Hosted/ProxyInstance.mm:
(WebKit::ProxyInstance::methodNamed):
(WebKit::ProxyInstance::fieldNamed):
* Plugins/Hosted/WebHostedNetscapePluginView.mm:
(-[WebHostedNetscapePluginView createPlugin]):
* Plugins/WebNetscapePluginEventHandler.mm:
(WebNetscapePluginEventHandler::create):
* Plugins/WebNetscapePluginView.mm:
(-[WebNetscapePluginView scheduleTimerWithInterval:repeat:timerFunc:]):
* Storage/WebDatabaseManagerClient.mm:
(DidModifyOriginData::dispatchToMainThread):
* WebCoreSupport/WebFrameLoaderClient.mm:
(addRedirectURL):
(WebFrameLoaderClient::savePlatformDataToCachedFrame):
* WebCoreSupport/WebInspectorClient.mm:
(WebInspectorClient::openLocalFrontend):
* WebView/WebDeviceOrientationProviderMock.mm:
* WebView/WebFrame.mm:
(-[WebFrame _attachScriptDebugger]):
* WebView/WebMediaPlaybackTargetPicker.mm:
(WebMediaPlaybackTargetPicker::create):
* WebView/WebTextIterator.mm:
(-[WebTextIterator initWithRange:]):
* WebView/WebView.mm:
(-[WebView _injectOutlookQuirksScript]):
(-[WebView _commonInitializationWithFrameName:groupName:]):
(+[WebView _addUserScriptToGroup:world:source:url:whitelist:blacklist:injectionTime:injectedFrames:]):
(+[WebView _addUserStyleSheetToGroup:world:source:url:whitelist:blacklist:injectedFrames:]):
(-[WebView _selectionServiceController]):
(-[WebView _setTextIndicator:withLifetime:]):
* WebView/WebViewData.mm:
(WebViewLayerFlushScheduler::WebViewLayerFlushScheduler):
(-[WebViewPrivate init]):
Source/WebKitLegacy/win:
Reviewed by Geoffrey Garen.
* FullscreenVideoController.cpp:
(FullscreenVideoController::FullscreenVideoController):
* Plugins/PluginStream.cpp:
(WebCore::PluginStream::didReceiveData):
* Plugins/PluginView.cpp:
(WebCore::PluginView::load):
* Plugins/PluginViewWin.cpp:
(WebCore::PluginView::wndProc):
* WebCoreSupport/WebChromeClient.cpp:
(WebChromeClient::WebChromeClient):
* WebCoreSupport/WebFrameLoaderClient.cpp:
(WebFrameLoaderClient::WebFrameLoaderClient):
(WebFrameLoaderClient::savePlatformDataToCachedFrame):
* WebCoreSupport/WebInspectorClient.cpp:
(WebInspectorClient::openLocalFrontend):
(WebInspectorClient::highlight):
* WebElementPropertyBag.cpp:
(WebElementPropertyBag::WebElementPropertyBag):
* WebHistoryItem.cpp:
(WebHistoryItem::initFromDictionaryRepresentation):
* WebKitQuartzCoreAdditions/CAD3DRenderer.cpp:
(WKQCA::CAD3DRenderer::createD3DPostProcessingContext):
* WebNotificationCenter.cpp:
(WebNotificationCenter::WebNotificationCenter):
* WebView.cpp:
(WebView::handleMouseEvent):
(WebView::registerEmbeddedViewMIMEType):
(WebView::enterVideoFullscreenForVideoElement):
(WebView::addUserScriptToGroup):
(WebView::addUserStyleSheetToGroup):
(WebView::setAcceleratedCompositing):
Source/WTF:
Reviewed by Geoff Garen.
This patch is second part of bug 200620 patch. I split I split it into three pieces to make roll-out easy.
his part, we convert std::make_unique to WTF::makeUnique or WTF::makeUniqueWithoutFastMallocCheck.
In the third patch, we will add a static_assert to makeUnique, which ensures the given class T is FastMalloced or IsoHeaped.
This patch adds `WTF::makeUnique<T>` and `WTF::makeUniqueWithoutFastMallocCheck<T>` as drop-in replacement for `std::make_unique<T>`.
`WTF::makeUnique<T>` has one additional `static_assert` check which ensures `T` FastMalloc / IsoHeap annotated. If it is not, the
compile error happens.
In this patch, I tried using this everywhere in WebKit as much as possible. And we found that surprisingly many classes are missing
FastMalloc annotation and allocated from system-malloc. Using WTF::makeUnique enforces classes / structs to use FastMalloc.
WTF::makeUniqueWithoutFastMallocCheck is offered for the corner cases. This is identical to std::make_unique. We use this for classes
that are offered by non-WebKit code base, like, zlib. This clear name can make us easily find this allocation is intentionally done
by system-malloc.
We do not take the following direction, `WTF::makeUnique` automatically allocates FastMalloc even if FastMalloc annotation is not attached.
Since default deleter is performing `delete` and this is not what we want for FastMalloced ones, we need to return
std::unique_ptr<T, FastFreeDeleter> for T if T does not have FastMalloc-annotation. Automatically doing this sounds a bit dangerous.
auto pointer = WTF::makeUnique<T>();
// Super dangerous, but sometimes it is required...
auto* rawPointer = pointer.release();
// Passing rawPointer to somewhere, and
delete rawPointer;
The above one becomes invalid because pointer may start requiring non `delete` destroying function.
In the above case, the correct way becomes the following.
rawPointer->~T();
fastFree(rawPointer);
This looks non-intuitive. And having two ways to destroying objects (`delete` or the above one) can be error-prone.
If we have WTF_MAKE_FAST_ALLOCATED for T, we do not need to care about this. "new" and "delete" operators are defined, and C++ way works.
The simple invariant, "makeUnique just does `new` internally. And `delete` operator does `delete`. default deleter is just doing `delete`", is kept.
While we need to annotate many classes with WTF_MAKE_FAST_ALLOCATED, it is one time cost when we add a class.
And, by introducing `WTF::makeUnique<>`, we no longer forget adding this.
makeUnique(...)
static_assert(T is FastMalloced or IsoHeaped);
return make_unique<T>(...)
* benchmarks/LockFairnessTest.cpp:
* benchmarks/LockSpeedTest.cpp:
* wtf/ConcurrentVector.h:
* wtf/CrossThreadTaskHandler.cpp:
(WTF::CrossThreadTaskHandler::taskRunLoop):
* wtf/FilePrintStream.cpp:
(WTF::FilePrintStream::open):
* wtf/Function.h:
(WTF::Function<Out):
* wtf/HashTable.h:
(WTF::KeyTraits>::HashTable):
* wtf/MemoryPressureHandler.cpp:
(WTF::MemoryPressureHandler::setShouldUsePeriodicMemoryMonitor):
* wtf/StdLibExtras.h:
(WTF::makeUnique):
(WTF::makeUniqueWithoutFastMallocCheck):
* wtf/StreamBuffer.h:
(WTF::StreamBuffer::append):
* wtf/UniqueRef.h:
(WTF::makeUniqueRefWithoutFastMallocCheck):
(WTF::makeUniqueRef):
* wtf/glib/RunLoopGLib.cpp:
(WTF::RunLoop::dispatchAfter):
* wtf/text/StringView.cpp:
(WTF::StringView::GraphemeClusters::Iterator::Iterator):
Tools:
Reviewed by Geoffrey Garen.
* DumpRenderTree/TestRunner.cpp:
(addURLToRedirectCallback):
(setWillSendRequestClearHeaderCallback):
(TestRunner::setAccummulateLogsForChannel):
(TestRunner::runUIScript):
(TestRunner::setOpenPanelFiles):
* DumpRenderTree/mac/DumpRenderTree.mm:
(dumpFramesAsText):
* DumpRenderTree/mac/EventSendingController.mm:
(eventPressedMouseButtonsSwizzlerForViewAndEvent):
* DumpRenderTree/win/DRTDataObject.cpp:
(DRTDataObject::SetData):
* DumpRenderTree/win/FrameLoadDelegate.cpp:
(FrameLoadDelegate::FrameLoadDelegate):
* DumpRenderTree/win/UIDelegate.cpp:
(DRTUndoManager::DRTUndoManager):
(UIDelegate::UIDelegate):
(UIDelegate::resetUndoManager):
* TestWebKitAPI/JavaScriptTest.cpp:
(TestWebKitAPI::runJSTest):
* TestWebKitAPI/PlatformUtilities.cpp:
(TestWebKitAPI::Util::toSTD):
* TestWebKitAPI/Tests/WTF/Expected.cpp:
(TestWebKitAPI::TEST):
* TestWebKitAPI/Tests/WTF/HashCountedSet.cpp:
(TestWebKitAPI::TEST):
* TestWebKitAPI/Tests/WTF/HashMap.cpp:
(TestWebKitAPI::TEST):
(TestWebKitAPI::testMovingUsingEnsure):
(TestWebKitAPI::testMovingUsingAdd):
* TestWebKitAPI/Tests/WTF/HashSet.cpp:
(TestWebKitAPI::TEST):
* TestWebKitAPI/Tests/WTF/ListHashSet.cpp:
(TestWebKitAPI::TEST):
* TestWebKitAPI/Tests/WTF/Lock.cpp:
(TestWebKitAPI::runLockTest):
* TestWebKitAPI/Tests/WTF/ParkingLot.cpp:
* TestWebKitAPI/Tests/WTF/RefCounter.cpp:
(TestWebKitAPI::TEST):
* TestWebKitAPI/Tests/WTF/ThreadGroup.cpp:
(TestWebKitAPI::TEST):
* TestWebKitAPI/Tests/WTF/Variant.cpp:
(TestWebKitAPI::TEST):
* TestWebKitAPI/Tests/WTF/WeakPtr.cpp:
(TestWebKitAPI::TEST):
* TestWebKitAPI/Tests/WebCore/CARingBuffer.cpp:
(TestWebKitAPI::CARingBufferTest::SetUp):
* TestWebKitAPI/Tests/WebCore/CalculationValue.cpp:
(TestWebKitAPI::createTestValue):
* TestWebKitAPI/Tests/WebCore/FidoHidMessageTest.cpp:
(TestWebKitAPI::TEST):
* TestWebKitAPI/Tests/WebCore/FileMonitor.cpp:
(TestWebKitAPI::TEST_F):
* TestWebKitAPI/Tests/WebCore/curl/Cookies.cpp:
* TestWebKitAPI/Tests/WebKit/CloseFromWithinCreatePage.cpp:
(TestWebKitAPI::createNewPage):
* TestWebKitAPI/Tests/WebKit/ModalAlertsSPI.cpp:
(TestWebKitAPI::createNewPage):
* TestWebKitAPI/Tests/WebKit/TextFieldDidBeginAndEndEditing.cpp:
* TestWebKitAPI/Tests/WebKit/UserMessage.cpp:
(TestWebKitAPI::WebKit2UserMessageRoundTripTest::SetUp):
* TestWebKitAPI/Tests/WebKit/WillLoad.cpp:
(TestWebKitAPI::WebKit2WillLoadTest::SetUp):
* TestWebKitAPI/Tests/WebKit/mac/ForceLightAppearanceInBundle_Bundle.mm:
(TestWebKitAPI::ForceLightAppearanceInBundleTest::didReceiveMessage):
* TestWebKitAPI/Tests/WebKitGLib/TestAuthentication.cpp:
(serverCallback):
(testWebViewAuthenticationProxyHTTPS):
* TestWebKitAPI/Tests/WebKitGtk/DOMDOMWindowTest.cpp:
(WebKitDOMDOMWindowTest::create):
* TestWebKitAPI/cocoa/PlatformUtilitiesCocoa.mm:
(TestWebKitAPI::Util::toSTD):
* TestWebKitAPI/cocoa/TestWKWebView.mm:
(applyWorkaroundToAllowWritingAttributedStringsToItemProviders):
(-[TestWKWebView initWithFrame:configuration:addToWindow:]):
* TestWebKitAPI/mac/TestFontOptions.mm:
(-[TestFontOptions initWithFontOptions:]):
* WebKitTestRunner/InjectedBundle/EventSendingController.cpp:
(WTR::EventSendingController::callAfterScrollingCompletes):
* WebKitTestRunner/InjectedBundle/InjectedBundle.cpp:
(WTR::InjectedBundle::didCreatePage):
* WebKitTestRunner/InjectedBundle/TestRunner.cpp:
(WTR::TestRunner::setOpenPanelFiles):
* WebKitTestRunner/InjectedBundle/atk/AccessibilityUIElementAtk.cpp:
* WebKitTestRunner/StringFunctions.h:
(WTR::toSTD):
(WTR::toWTFString):
* WebKitTestRunner/TestController.cpp:
(WTR::TestController::initialize):
(WTR::TestController::generatePageConfiguration):
(WTR::TestController::resetStateToConsistentValues):
(WTR::createTestURL):
(WTR::TestController::runTest):
(WTR::TestController::platformCreateWebView):
* WebKitTestRunner/TestInvocation.cpp:
(WTR::TestInvocation::runUISideScript):
* WebKitTestRunner/cocoa/TestControllerCocoa.mm:
(WTR::TestController::platformCreateWebView):
(WTR::TestController::setDefaultCalendarType):
* WebKitTestRunner/gtk/EventSenderProxyGtk.cpp:
(WTR::getGDKKeySymForKeyRef):
* WebKitTestRunner/ios/TestControllerIOS.mm:
(WTR::TestController::platformResetStateToConsistentValues):
(WTR::TestController::setKeyboardInputModeIdentifier):
* WebKitTestRunner/mac/EventSenderProxy.mm:
(WTR::EventSenderProxy::mouseDown):
(WTR::EventSenderProxy::mouseUp):
(WTR::EventSenderProxy::mouseMoveTo):
* WebKitTestRunner/wpe/EventSenderProxyWPE.cpp:
(WTR::wpeKeySymForKeyRef):
git-svn-id: http://svn.webkit.org/repository/webkit/trunk@248846 268f45cc-cd09-0410-ab3c-d52691b4dbfc
diff --git a/Source/WebCore/ChangeLog b/Source/WebCore/ChangeLog
index cfc71de..86c5235 100644
--- a/Source/WebCore/ChangeLog
+++ b/Source/WebCore/ChangeLog
@@ -1,3 +1,1626 @@
+2019-08-18 Yusuke Suzuki <ysuzuki@apple.com>
+
+ [WTF] Add makeUnique<T>, which ensures T is fast-allocated, makeUnique / makeUniqueWithoutFastMallocCheck part
+ https://bugs.webkit.org/show_bug.cgi?id=200620
+
+ Reviewed by Geoff Garen.
+
+ * Modules/applicationmanifest/ApplicationManifestParser.cpp:
+ (WebCore::ApplicationManifestParser::logDeveloperWarning):
+ * Modules/beacon/NavigatorBeacon.cpp:
+ (WebCore::NavigatorBeacon::from):
+ * Modules/cache/DOMWindowCaches.cpp:
+ (WebCore::DOMWindowCaches::from):
+ * Modules/cache/WorkerGlobalScopeCaches.cpp:
+ (WebCore::WorkerGlobalScopeCaches::from):
+ * Modules/credentialmanagement/NavigatorCredentials.cpp:
+ (WebCore::NavigatorCredentials::from):
+ * Modules/encryptedmedia/InitDataRegistry.cpp:
+ (WebCore::InitDataRegistry::extractPsshBoxesFromCenc):
+ * Modules/encryptedmedia/legacy/LegacyCDM.cpp:
+ (WebCore::LegacyCDM::create):
+ * Modules/encryptedmedia/legacy/LegacyCDMPrivateClearKey.cpp:
+ (WebCore::LegacyCDMPrivateClearKey::createSession):
+ * Modules/fetch/FetchBodyOwner.cpp:
+ (WebCore::FetchBodyOwner::loadBlob):
+ * Modules/fetch/FetchResponse.cpp:
+ (WebCore::FetchResponse::fetch):
+ (WebCore::FetchResponse::BodyLoader::start):
+ * Modules/gamepad/NavigatorGamepad.cpp:
+ (WebCore::NavigatorGamepad::from):
+ * Modules/geolocation/GeolocationController.cpp:
+ (WebCore::provideGeolocationTo):
+ * Modules/geolocation/NavigatorGeolocation.cpp:
+ (WebCore::NavigatorGeolocation::from):
+ * Modules/indexeddb/DOMWindowIndexedDatabase.cpp:
+ (WebCore::DOMWindowIndexedDatabase::from):
+ * Modules/indexeddb/IDBObjectStore.cpp:
+ (WebCore::IDBObjectStore::index):
+ * Modules/indexeddb/IDBTransaction.cpp:
+ (WebCore::IDBTransaction::objectStore):
+ (WebCore::IDBTransaction::createObjectStore):
+ (WebCore::IDBTransaction::createIndex):
+ * Modules/indexeddb/WorkerGlobalScopeIndexedDatabase.cpp:
+ (WebCore::WorkerGlobalScopeIndexedDatabase::from):
+ * Modules/indexeddb/client/IDBConnectionToServer.cpp:
+ (WebCore::IDBClient::IDBConnectionToServer::IDBConnectionToServer):
+ * Modules/indexeddb/client/TransactionOperation.cpp:
+ (WebCore::IDBClient::TransactionOperation::TransactionOperation):
+ * Modules/indexeddb/server/IDBServer.cpp:
+ (WebCore::IDBServer::IDBServer::getOrCreateUniqueIDBDatabase):
+ (WebCore::IDBServer::IDBServer::createBackingStore):
+ (WebCore::IDBServer::IDBServer::ensureQuotaUser):
+ * Modules/indexeddb/server/IndexValueStore.cpp:
+ (WebCore::IDBServer::IndexValueStore::addRecord):
+ * Modules/indexeddb/server/MemoryBackingStoreTransaction.cpp:
+ (WebCore::IDBServer::MemoryBackingStoreTransaction::create):
+ (WebCore::IDBServer::MemoryBackingStoreTransaction::MemoryBackingStoreTransaction):
+ (WebCore::IDBServer::MemoryBackingStoreTransaction::recordValueChanged):
+ * Modules/indexeddb/server/MemoryIDBBackingStore.cpp:
+ (WebCore::IDBServer::MemoryIDBBackingStore::create):
+ (WebCore::IDBServer::MemoryIDBBackingStore::getOrEstablishDatabaseInfo):
+ (WebCore::IDBServer::MemoryIDBBackingStore::setDatabaseInfo):
+ * Modules/indexeddb/server/MemoryIndex.cpp:
+ (WebCore::IDBServer::MemoryIndex::putIndexKey):
+ (WebCore::IDBServer::MemoryIndex::maybeOpenCursor):
+ * Modules/indexeddb/server/MemoryObjectStore.cpp:
+ (WebCore::IDBServer::MemoryObjectStore::addRecord):
+ (WebCore::IDBServer::MemoryObjectStore::maybeOpenCursor):
+ * Modules/indexeddb/server/SQLiteIDBBackingStore.cpp:
+ (WebCore::IDBServer::SQLiteIDBBackingStore::createAndPopulateInitialDatabaseInfo):
+ (WebCore::IDBServer::SQLiteIDBBackingStore::extractExistingDatabaseInfo):
+ (WebCore::IDBServer::SQLiteIDBBackingStore::getOrEstablishDatabaseInfo):
+ (WebCore::IDBServer::SQLiteIDBBackingStore::beginTransaction):
+ (WebCore::IDBServer::SQLiteIDBBackingStore::cachedStatement):
+ * Modules/indexeddb/server/SQLiteIDBCursor.cpp:
+ (WebCore::IDBServer::SQLiteIDBCursor::maybeCreate):
+ (WebCore::IDBServer::SQLiteIDBCursor::maybeCreateBackingStoreCursor):
+ (WebCore::IDBServer::SQLiteIDBCursor::createSQLiteStatement):
+ (WebCore::IDBServer::SQLiteIDBCursor::internalFetchNextRecord):
+ * Modules/indexeddb/server/SQLiteIDBTransaction.cpp:
+ (WebCore::IDBServer::SQLiteIDBTransaction::begin):
+ * Modules/indexeddb/server/UniqueIDBDatabase.cpp:
+ (WebCore::IDBServer::UniqueIDBDatabase::didDeleteBackingStore):
+ (WebCore::IDBServer::UniqueIDBDatabase::didOpenBackingStore):
+ (WebCore::IDBServer::UniqueIDBDatabase::didPerformAbortTransaction):
+ * Modules/indexeddb/server/UniqueIDBDatabaseTransaction.cpp:
+ (WebCore::IDBServer::UniqueIDBDatabaseTransaction::UniqueIDBDatabaseTransaction):
+ * Modules/indexeddb/shared/IDBRequestData.cpp:
+ (WebCore::IDBRequestData::IDBRequestData):
+ (WebCore::IDBRequestData::isolatedCopy):
+ * Modules/indexeddb/shared/IDBRequestData.h:
+ (WebCore::IDBRequestData::decode):
+ * Modules/indexeddb/shared/IDBResultData.cpp:
+ (WebCore::IDBResultData::IDBResultData):
+ (WebCore::IDBResultData::isolatedCopy):
+ (WebCore::IDBResultData::openDatabaseSuccess):
+ (WebCore::IDBResultData::openDatabaseUpgradeNeeded):
+ (WebCore::IDBResultData::deleteDatabaseSuccess):
+ (WebCore::IDBResultData::putOrAddSuccess):
+ (WebCore::IDBResultData::getRecordSuccess):
+ (WebCore::IDBResultData::getAllRecordsSuccess):
+ (WebCore::IDBResultData::openCursorSuccess):
+ (WebCore::IDBResultData::iterateCursorSuccess):
+ * Modules/indexeddb/shared/IDBResultData.h:
+ (WebCore::IDBResultData::decode):
+ * Modules/indexeddb/shared/IDBTransactionInfo.cpp:
+ (WebCore::IDBTransactionInfo::versionChange):
+ (WebCore::IDBTransactionInfo::IDBTransactionInfo):
+ (WebCore::IDBTransactionInfo::isolatedCopy):
+ * Modules/indexeddb/shared/IDBTransactionInfo.h:
+ (WebCore::IDBTransactionInfo::decode):
+ * Modules/indexeddb/shared/InProcessIDBServer.cpp:
+ (WebCore::InProcessIDBServer::quotaManager):
+ * Modules/mediacapabilities/NavigatorMediaCapabilities.cpp:
+ (WebCore::NavigatorMediaCapabilities::from):
+ * Modules/mediasession/WebMediaSessionManager.cpp:
+ (WebCore::WebMediaSessionManager::mockPicker):
+ (WebCore::WebMediaSessionManager::addPlaybackTargetPickerClient):
+ * Modules/mediasource/MediaSource.cpp:
+ (WebCore::MediaSource::buffered const):
+ (WebCore::MediaSource::setLiveSeekableRange):
+ * Modules/mediastream/NavigatorMediaDevices.cpp:
+ (WebCore::NavigatorMediaDevices::from):
+ * Modules/mediastream/UserMediaController.cpp:
+ (WebCore::provideUserMediaTo):
+ * Modules/mediastream/libwebrtc/LibWebRTCDataChannelHandler.cpp:
+ (WebCore::LibWebRTCDataChannelHandler::channelEvent):
+ * Modules/mediastream/libwebrtc/LibWebRTCMediaEndpoint.cpp:
+ (WebCore::LibWebRTCMediaEndpoint::addRemoteTrack):
+ (WebCore::LibWebRTCMediaEndpoint::collectTransceivers):
+ (WebCore::LibWebRTCMediaEndpoint::newTransceiver):
+ (WebCore::LibWebRTCMediaEndpoint::createTransceiverBackends):
+ (WebCore::LibWebRTCMediaEndpoint::transceiverBackendFromSender):
+ (WebCore::LibWebRTCMediaEndpoint::createDataChannel):
+ * Modules/mediastream/libwebrtc/LibWebRTCPeerConnectionBackend.cpp:
+ (WebCore::createLibWebRTCPeerConnectionBackend):
+ (WebCore::LibWebRTCPeerConnectionBackend::videoReceiver):
+ (WebCore::LibWebRTCPeerConnectionBackend::audioReceiver):
+ (WebCore::LibWebRTCPeerConnectionBackend::addTrack):
+ (WebCore::LibWebRTCPeerConnectionBackend::addTransceiver):
+ * Modules/mediastream/libwebrtc/LibWebRTCRtpSenderBackend.cpp:
+ (WebCore::LibWebRTCRtpSenderBackend::createDTMFBackend):
+ * Modules/mediastream/libwebrtc/LibWebRTCRtpTransceiverBackend.cpp:
+ (WebCore::LibWebRTCRtpTransceiverBackend::createReceiverBackend):
+ (WebCore::LibWebRTCRtpTransceiverBackend::createSenderBackend):
+ * Modules/notifications/Notification.cpp:
+ (WebCore::Notification::Notification):
+ * Modules/notifications/NotificationController.cpp:
+ (WebCore::provideNotification):
+ * Modules/quota/DOMWindowQuota.cpp:
+ (WebCore::DOMWindowQuota::from):
+ * Modules/quota/NavigatorStorageQuota.cpp:
+ (WebCore::NavigatorStorageQuota::from):
+ * Modules/quota/WorkerNavigatorStorageQuota.cpp:
+ (WebCore::WorkerNavigatorStorageQuota::from):
+ * Modules/speech/DOMWindowSpeechSynthesis.cpp:
+ (WebCore::DOMWindowSpeechSynthesis::from):
+ * Modules/speech/SpeechSynthesis.cpp:
+ (WebCore::SpeechSynthesis::ensurePlatformSpeechSynthesizer):
+ * Modules/webaudio/AsyncAudioDecoder.cpp:
+ (WebCore::AsyncAudioDecoder::decodeAsync):
+ * Modules/webaudio/AudioBasicInspectorNode.cpp:
+ (WebCore::AudioBasicInspectorNode::AudioBasicInspectorNode):
+ * Modules/webaudio/AudioBasicProcessorNode.cpp:
+ (WebCore::AudioBasicProcessorNode::AudioBasicProcessorNode):
+ * Modules/webaudio/AudioBufferSourceNode.cpp:
+ (WebCore::AudioBufferSourceNode::AudioBufferSourceNode):
+ * Modules/webaudio/AudioContext.cpp:
+ (WebCore::AudioContext::AudioContext):
+ (WebCore::AudioContext::decodeAudioData):
+ * Modules/webaudio/AudioDestinationNode.cpp:
+ (WebCore::AudioDestinationNode::AudioDestinationNode):
+ * Modules/webaudio/BiquadFilterNode.cpp:
+ (WebCore::BiquadFilterNode::BiquadFilterNode):
+ * Modules/webaudio/BiquadProcessor.cpp:
+ (WebCore::BiquadProcessor::createKernel):
+ (WebCore::BiquadProcessor::getFrequencyResponse):
+ * Modules/webaudio/ChannelMergerNode.cpp:
+ (WebCore::ChannelMergerNode::ChannelMergerNode):
+ * Modules/webaudio/ChannelSplitterNode.cpp:
+ (WebCore::ChannelSplitterNode::ChannelSplitterNode):
+ * Modules/webaudio/ConvolverNode.cpp:
+ (WebCore::ConvolverNode::ConvolverNode):
+ (WebCore::ConvolverNode::setBuffer):
+ * Modules/webaudio/DelayNode.cpp:
+ (WebCore::DelayNode::DelayNode):
+ * Modules/webaudio/DelayProcessor.cpp:
+ (WebCore::DelayProcessor::createKernel):
+ * Modules/webaudio/DynamicsCompressorNode.cpp:
+ (WebCore::DynamicsCompressorNode::DynamicsCompressorNode):
+ (WebCore::DynamicsCompressorNode::initialize):
+ * Modules/webaudio/GainNode.cpp:
+ (WebCore::GainNode::GainNode):
+ * Modules/webaudio/MediaElementAudioSourceNode.cpp:
+ (WebCore::MediaElementAudioSourceNode::MediaElementAudioSourceNode):
+ (WebCore::MediaElementAudioSourceNode::setFormat):
+ * Modules/webaudio/MediaStreamAudioSourceNode.cpp:
+ (WebCore::MediaStreamAudioSourceNode::MediaStreamAudioSourceNode):
+ (WebCore::MediaStreamAudioSourceNode::setFormat):
+ * Modules/webaudio/OscillatorNode.cpp:
+ (WebCore::OscillatorNode::OscillatorNode):
+ * Modules/webaudio/PannerNode.cpp:
+ (WebCore::PannerNode::PannerNode):
+ * Modules/webaudio/PeriodicWave.cpp:
+ (WebCore::PeriodicWave::createBandLimitedTables):
+ * Modules/webaudio/RealtimeAnalyser.cpp:
+ (WebCore::RealtimeAnalyser::RealtimeAnalyser):
+ (WebCore::RealtimeAnalyser::setFftSize):
+ * Modules/webaudio/ScriptProcessorNode.cpp:
+ (WebCore::ScriptProcessorNode::ScriptProcessorNode):
+ * Modules/webaudio/WaveShaperDSPKernel.cpp:
+ (WebCore::WaveShaperDSPKernel::lazyInitializeOversampling):
+ * Modules/webaudio/WaveShaperNode.cpp:
+ (WebCore::WaveShaperNode::WaveShaperNode):
+ * Modules/webaudio/WaveShaperProcessor.cpp:
+ (WebCore::WaveShaperProcessor::createKernel):
+ * Modules/webauthn/fido/FidoHidMessage.cpp:
+ (fido::FidoHidMessage::FidoHidMessage):
+ * Modules/webauthn/fido/FidoHidPacket.cpp:
+ (fido::FidoHidInitPacket::createFromSerializedData):
+ (fido::FidoHidContinuationPacket::createFromSerializedData):
+ * Modules/webdatabase/Database.cpp:
+ (WebCore::Database::openAndVerifyVersion):
+ (WebCore::Database::close):
+ (WebCore::Database::scheduleTransaction):
+ (WebCore::Database::scheduleTransactionStep):
+ (WebCore::Database::tableNames):
+ * Modules/webdatabase/DatabaseThread.cpp:
+ (WebCore::DatabaseThread::DatabaseThread):
+ * Modules/webdatabase/DatabaseTracker.cpp:
+ (WebCore::DatabaseTracker::addOpenDatabase):
+ (WebCore::DatabaseTracker::recordCreatingDatabase):
+ (WebCore::DatabaseTracker::recordDeletingDatabase):
+ * Modules/webdatabase/SQLTransaction.cpp:
+ (WebCore::SQLTransaction::executeSql):
+ (WebCore::SQLTransaction::openTransactionAndPreflight):
+ * Modules/webdriver/NavigatorWebDriver.cpp:
+ (WebCore::NavigatorWebDriver::from):
+ * Modules/webgpu/NavigatorGPU.cpp:
+ (WebCore::NavigatorGPU::from):
+ * Modules/webgpu/WHLSL/AST/WHLSLEnumerationDefinition.h:
+ * Modules/webgpu/WHLSL/AST/WHLSLVariableDeclaration.h:
+ * Modules/webgpu/WHLSL/Metal/WHLSLFunctionWriter.cpp:
+ (WebCore::WHLSL::Metal::RenderFunctionDefinitionWriter::createEntryPointScaffolding):
+ (WebCore::WHLSL::Metal::ComputeFunctionDefinitionWriter::createEntryPointScaffolding):
+ * Modules/webgpu/WHLSL/Metal/WHLSLTypeNamer.cpp:
+ (WebCore::WHLSL::Metal::TypeNamer::createNameNode):
+ * Modules/webgpu/WHLSL/WHLSLChecker.cpp:
+ (WebCore::WHLSL::Checker::assignConcreteType):
+ (WebCore::WHLSL::Checker::assignType):
+ (WebCore::WHLSL::Checker::forwardType):
+ * Modules/webgpu/WHLSL/WHLSLParser.cpp:
+ (WebCore::WHLSL::Parser::parseSemantic):
+ * Modules/webgpu/WorkerNavigatorGPU.cpp:
+ (WebCore::WorkerNavigatorGPU::from):
+ * Modules/websockets/ThreadableWebSocketChannelClientWrapper.cpp:
+ (WebCore::ThreadableWebSocketChannelClientWrapper::didConnect):
+ (WebCore::ThreadableWebSocketChannelClientWrapper::didReceiveMessage):
+ (WebCore::ThreadableWebSocketChannelClientWrapper::didReceiveBinaryData):
+ (WebCore::ThreadableWebSocketChannelClientWrapper::didUpdateBufferedAmount):
+ (WebCore::ThreadableWebSocketChannelClientWrapper::didStartClosingHandshake):
+ (WebCore::ThreadableWebSocketChannelClientWrapper::didClose):
+ (WebCore::ThreadableWebSocketChannelClientWrapper::didReceiveMessageError):
+ (WebCore::ThreadableWebSocketChannelClientWrapper::didUpgradeURL):
+ * Modules/websockets/WebSocketChannel.cpp:
+ (WebCore::WebSocketChannel::connect):
+ (WebCore::WebSocketChannel::enqueueTextFrame):
+ (WebCore::WebSocketChannel::enqueueRawFrame):
+ (WebCore::WebSocketChannel::enqueueBlobFrame):
+ (WebCore::WebSocketChannel::processOutgoingFrameQueue):
+ * Modules/websockets/WebSocketDeflateFramer.cpp:
+ (WebCore::WebSocketDeflateFramer::createExtensionProcessor):
+ (WebCore::WebSocketDeflateFramer::enableDeflate):
+ (WebCore::WebSocketDeflateFramer::deflate):
+ (WebCore::WebSocketDeflateFramer::inflate):
+ * Modules/websockets/WebSocketDeflater.cpp:
+ (WebCore::WebSocketDeflater::WebSocketDeflater):
+ (WebCore::WebSocketInflater::WebSocketInflater):
+ * Modules/websockets/WorkerThreadableWebSocketChannel.cpp:
+ (WebCore::WorkerThreadableWebSocketChannel::Bridge::mainThreadInitialize):
+ * Modules/webvr/NavigatorWebVR.cpp:
+ (WebCore::NavigatorWebVR::from):
+ * accessibility/AXObjectCache.cpp:
+ (WebCore::AXObjectCache::startCachingComputedObjectAttributesUntilTreeMutates):
+ * animation/WebAnimation.cpp:
+ (WebCore::WebAnimation::updateFinishedState):
+ * bindings/js/JSDOMWindowBase.cpp:
+ (WebCore::JSDOMWindowBase::queueTaskToEventLoop):
+ * bindings/js/JSEventTargetCustom.cpp:
+ (WebCore::jsEventTargetCast):
+ * bindings/js/JSWorkerGlobalScopeBase.cpp:
+ (WebCore::JSWorkerGlobalScopeBase::queueTaskToEventLoop):
+ * bindings/js/SerializedScriptValue.cpp:
+ (WebCore::transferArrayBuffers):
+ (WebCore::SerializedScriptValue::create):
+ * bindings/js/SerializedScriptValue.h:
+ (WebCore::SerializedScriptValue::decode):
+ * bindings/js/WebCoreJSClientData.cpp:
+ (WebCore::JSVMClientData::initNormalWorld):
+ * bindings/js/WorkerScriptController.cpp:
+ (WebCore::WorkerScriptController::initScript):
+ * bridge/c/c_class.cpp:
+ (JSC::Bindings::CClass::methodNamed const):
+ (JSC::Bindings::CClass::fieldNamed const):
+ * bridge/objc/objc_class.mm:
+ (JSC::Bindings::ObjcClass::methodNamed const):
+ (JSC::Bindings::ObjcClass::fieldNamed const):
+ * bridge/objc/objc_runtime.mm:
+ (JSC::Bindings::callObjCFallbackObject):
+ * contentextensions/CombinedURLFilters.cpp:
+ (WebCore::ContentExtensions::CombinedURLFilters::CombinedURLFilters):
+ (WebCore::ContentExtensions::CombinedURLFilters::addPattern):
+ * crypto/SubtleCrypto.cpp:
+ (WebCore::normalizeCryptoAlgorithmParameters):
+ (WebCore::crossThreadCopyImportParams):
+ * css/CSSCalculationValue.cpp:
+ (WebCore::determineCategory):
+ * css/CSSDefaultStyleSheets.cpp:
+ (WebCore::CSSDefaultStyleSheets::loadFullDefaultStyle):
+ (WebCore::CSSDefaultStyleSheets::loadSimpleDefaultStyle):
+ * css/CSSFontFace.cpp:
+ (WebCore::CSSFontFace::appendSources):
+ * css/CSSFontFaceSet.cpp:
+ (WebCore::CSSFontFaceSet::ensureLocalFontFacesForFamilyRegistered):
+ * css/CSSGroupingRule.cpp:
+ (WebCore::CSSGroupingRule::cssRules const):
+ * css/CSSImageGeneratorValue.cpp:
+ (WebCore::CSSImageGeneratorValue::saveCachedImageForSize):
+ * css/CSSKeyframesRule.cpp:
+ (WebCore::CSSKeyframesRule::cssRules):
+ * css/CSSStyleSheet.cpp:
+ (WebCore::CSSStyleSheet::cssRules):
+ * css/DOMCSSPaintWorklet.cpp:
+ (WebCore::DOMCSSPaintWorklet::from):
+ * css/DOMCSSRegisterCustomProperty.cpp:
+ (WebCore::DOMCSSRegisterCustomProperty::from):
+ * css/DocumentRuleSets.cpp:
+ (WebCore::DocumentRuleSets::DocumentRuleSets):
+ (WebCore::DocumentRuleSets::updateUserAgentMediaQueryStyleIfNeeded const):
+ (WebCore::DocumentRuleSets::initializeUserStyle):
+ (WebCore::makeRuleSet):
+ (WebCore::DocumentRuleSets::resetAuthorStyle):
+ (WebCore::ensureInvalidationRuleSets):
+ * css/ElementRuleCollector.cpp:
+ (WebCore::ElementRuleCollector::collectSlottedPseudoElementRulesForSlot):
+ * css/FontFace.cpp:
+ (WebCore::populateFontFaceWithArrayBuffer):
+ * css/PropertySetCSSStyleDeclaration.cpp:
+ (WebCore::PropertySetCSSStyleDeclaration::wrapForDeprecatedCSSOM):
+ * css/RuleFeature.cpp:
+ (WebCore::RuleFeatureSet::collectFeatures):
+ (WebCore::RuleFeatureSet::add):
+ * css/RuleSet.cpp:
+ (WebCore::RuleSet::addToRuleSet):
+ * css/StyleBuilderConverter.h:
+ (WebCore::StyleBuilderConverter::convertTo100PercentMinusLength):
+ * css/StyleBuilderCustom.h:
+ (WebCore::StyleBuilderCustom::applyTextOrBoxShadowValue):
+ (WebCore::StyleBuilderCustom::applyInheritTextShadow):
+ (WebCore::StyleBuilderCustom::applyInheritBoxShadow):
+ (WebCore::StyleBuilderCustom::applyValueContent):
+ * css/StyleProperties.cpp:
+ (WebCore::MutableStyleProperties::ensureCSSStyleDeclaration):
+ (WebCore::MutableStyleProperties::ensureInlineCSSStyleDeclaration):
+ * css/StyleResolver.cpp:
+ (WebCore::StyleResolver::cascadedPropertiesForRollback):
+ * css/makeprop.pl:
+ (generateFillLayerPropertyInheritValueSetter):
+ (generateFillLayerPropertyValueSetter):
+ * css/parser/CSSParserImpl.cpp:
+ (WebCore::CSSParserImpl::CSSParserImpl):
+ (WebCore::CSSParserImpl::parsePageSelector):
+ (WebCore::CSSParserImpl::consumeMediaRule):
+ (WebCore::CSSParserImpl::consumeSupportsRule):
+ (WebCore::CSSParserImpl::consumeKeyframesRule):
+ * css/parser/CSSParserSelector.cpp:
+ (WebCore::CSSParserSelector::parsePagePseudoSelector):
+ (WebCore::CSSParserSelector::parsePseudoElementSelector):
+ (WebCore::CSSParserSelector::parsePseudoClassSelector):
+ (WebCore::CSSParserSelector::CSSParserSelector):
+ (WebCore::CSSParserSelector::adoptSelectorVector):
+ (WebCore::CSSParserSelector::prependTagSelector):
+ * css/parser/CSSPropertyParser.cpp:
+ (WebCore::consumeBasicShapePath):
+ * css/parser/CSSSelectorParser.cpp:
+ (WebCore::CSSSelectorParser::consumePseudo):
+ * dom/CustomElementReactionQueue.cpp:
+ (WebCore::CustomElementReactionQueue::ensureBackupQueue):
+ * dom/DataTransfer.cpp:
+ (WebCore::DataTransfer::items):
+ (WebCore::DataTransfer::createForInputEvent):
+ (WebCore::DataTransfer::createForDragStartEvent):
+ (WebCore::DataTransfer::setDragImage):
+ * dom/DeviceOrientationController.cpp:
+ (WebCore::provideDeviceOrientationTo):
+ * dom/Document.cpp:
+ (WebCore::Document::Document):
+ (WebCore::Document::buildAccessKeyCache):
+ (WebCore::Document::implementation):
+ (WebCore::Document::formController):
+ (WebCore::Document::updateTextRenderer):
+ (WebCore::Document::userAgentShadowTreeStyleResolver):
+ (WebCore::Document::axObjectCache const):
+ (WebCore::Document::setParsing):
+ (WebCore::Document::accessSVGExtensions):
+ (WebCore::Document::initSecurityContext):
+ (WebCore::Document::textAutoSizing):
+ (WebCore::Document::didAddWheelEventHandler):
+ (WebCore::Document::didAddTouchEventHandler):
+ (WebCore::Document::didLogMessage):
+ (WebCore::Document::registerCSSProperty):
+ (WebCore::Document::deviceOrientationAndMotionAccessController):
+ (WebCore::Document::contentChangeObserver):
+ (WebCore::Document::domTimerHoldingTank):
+ * dom/Document.h:
+ (WebCore::Document::createParserYieldToken):
+ * dom/DocumentEventQueue.cpp:
+ (WebCore::DocumentEventQueue::DocumentEventQueue):
+ * dom/DocumentMarkerController.cpp:
+ (WebCore::DocumentMarkerController::addMarker):
+ * dom/DocumentStorageAccess.cpp:
+ (WebCore::DocumentStorageAccess::from):
+ (WebCore::DocumentStorageAccess::requestStorageAccess):
+ (WebCore::DocumentStorageAccess::enableTemporaryTimeUserGesture):
+ * dom/Element.cpp:
+ (WebCore::Element::attributes const):
+ (WebCore::Element::setIsDefinedCustomElement):
+ (WebCore::Element::enqueueToUpgrade):
+ (WebCore::Element::classList):
+ (WebCore::Element::dataset):
+ (WebCore::Element::ensureIntersectionObserverData):
+ (WebCore::Element::ensureResizeObserverData):
+ * dom/EventListenerMap.cpp:
+ (WebCore::EventListenerMap::add):
+ * dom/EventNames.h:
+ * dom/EventPath.cpp:
+ (WebCore::EventPath::buildPath):
+ (WebCore::EventPath::EventPath):
+ * dom/IdTargetObserverRegistry.cpp:
+ (WebCore::IdTargetObserverRegistry::addObserver):
+ * dom/KeyboardEvent.cpp:
+ (WebCore::KeyboardEvent::KeyboardEvent):
+ * dom/MutationObserver.cpp:
+ (WebCore::queueMutationObserverCompoundMicrotask):
+ * dom/MutationObserverInterestGroup.cpp:
+ (WebCore::MutationObserverInterestGroup::createIfNeeded):
+ * dom/MutationObserverRegistration.cpp:
+ (WebCore::MutationObserverRegistration::observedSubtreeNodeWillDetach):
+ * dom/Node.cpp:
+ (WebCore::Node::materializeRareData):
+ (WebCore::Node::ensureEventTargetData):
+ (WebCore::Node::registerMutationObserver):
+ * dom/NodeRareData.h:
+ (WebCore::NodeRareData::ensureNodeLists):
+ (WebCore::NodeRareData::ensureMutationObserverData):
+ * dom/RadioButtonGroups.cpp:
+ (WebCore::RadioButtonGroups::addButton):
+ * dom/ScriptExecutionContext.cpp:
+ (WebCore::ScriptExecutionContext::reportException):
+ (WebCore::ScriptExecutionContext::reportUnhandledPromiseRejection):
+ (WebCore::ScriptExecutionContext::ensureRejectedPromiseTrackerSlow):
+ * dom/SelectorQuery.cpp:
+ * dom/ShadowRoot.cpp:
+ (WebCore::ShadowRoot::ShadowRoot):
+ (WebCore::ShadowRoot::moveShadowRootToNewDocument):
+ (WebCore::ShadowRoot::addSlotElementByName):
+ * dom/SlotAssignment.cpp:
+ (WebCore::SlotAssignment::addSlotElementByName):
+ (WebCore::SlotAssignment::assignToSlot):
+ * dom/TreeScope.cpp:
+ (WebCore::TreeScope::TreeScope):
+ (WebCore::TreeScope::addElementById):
+ (WebCore::TreeScope::addElementByName):
+ (WebCore::TreeScope::addImageMap):
+ (WebCore::TreeScope::addImageElementByUsemap):
+ (WebCore::TreeScope::labelElementForId):
+ * editing/Editor.cpp:
+ (WebCore::createDataTransferForClipboardEvent):
+ (WebCore::Editor::Editor):
+ * editing/ReplaceSelectionCommand.cpp:
+ (WebCore::ReplaceSelectionCommand::ensureReplacementFragment):
+ * editing/SelectionRectGatherer.cpp:
+ (WebCore::SelectionRectGatherer::clearAndCreateNotifier):
+ * editing/TextIterator.cpp:
+ (WebCore::TextIterator::handleTextNode):
+ * editing/cocoa/HTMLConverter.mm:
+ (HTMLConverter::HTMLConverter):
+ (HTMLConverterCaches::computedStylePropertyForElement):
+ * editing/markup.cpp:
+ (WebCore::createPageForSanitizingWebContent):
+ * fileapi/AsyncFileStream.cpp:
+ (WebCore::callOnFileThread):
+ (WebCore::AsyncFileStream::AsyncFileStream):
+ * fileapi/FileReader.cpp:
+ (WebCore::FileReader::readInternal):
+ * history/CachedFrame.cpp:
+ (WebCore::CachedFrame::CachedFrame):
+ * history/CachedPage.cpp:
+ (WebCore::CachedPage::CachedPage):
+ * history/PageCache.cpp:
+ (WebCore::PageCache::addIfCacheable):
+ * html/FileInputType.cpp:
+ (WebCore::FileInputType::requestIcon):
+ * html/FormAssociatedElement.cpp:
+ (WebCore::FormAssociatedElement::resetFormAttributeTargetObserver):
+ * html/FormController.cpp:
+ (WebCore::SavedFormState::deserialize):
+ (WebCore::FormController::createSavedFormStateMap):
+ (WebCore::FormController::takeStateForFormElement):
+ * html/HTMLAnchorElement.cpp:
+ (WebCore::HTMLAnchorElement::relList const):
+ * html/HTMLAreaElement.cpp:
+ (WebCore::HTMLAreaElement::mapMouseEvent):
+ * html/HTMLCanvasElement.cpp:
+ (WebCore::HTMLCanvasElement::setImageBuffer const):
+ * html/HTMLCollection.cpp:
+ (WebCore::HTMLCollection::updateNamedElementCache const):
+ * html/HTMLDetailsElement.cpp:
+ (WebCore::HTMLDetailsElement::create):
+ * html/HTMLFormControlElement.cpp:
+ (WebCore::HTMLFormControlElement::updateVisibleValidationMessage):
+ * html/HTMLFormControlsCollection.cpp:
+ (WebCore::HTMLFormControlsCollection::updateNamedElementCache const):
+ * html/HTMLFormElement.cpp:
+ (WebCore::HTMLFormElement::addToPastNamesMap):
+ * html/HTMLIFrameElement.cpp:
+ (WebCore::HTMLIFrameElement::sandbox):
+ * html/HTMLInputElement.cpp:
+ (WebCore::HTMLInputElement::ensureImageLoader):
+ (WebCore::HTMLInputElement::resetListAttributeTargetObserver):
+ * html/HTMLLinkElement.cpp:
+ (WebCore::HTMLLinkElement::sizes):
+ (WebCore::HTMLLinkElement::relList):
+ * html/HTMLMediaElement.cpp:
+ (WebCore::HTMLMediaElement::finishInitialization):
+ (WebCore::HTMLMediaElement::seekWithTolerance):
+ * html/HTMLOutputElement.cpp:
+ (WebCore::HTMLOutputElement::htmlFor):
+ * html/HTMLPlugInImageElement.cpp:
+ (WebCore::HTMLPlugInImageElement::updateAfterStyleResolution):
+ * html/HTMLSummaryElement.cpp:
+ (WebCore::HTMLSummaryElement::create):
+ * html/HTMLVideoElement.cpp:
+ (WebCore::HTMLVideoElement::didAttachRenderers):
+ (WebCore::HTMLVideoElement::parseAttribute):
+ * html/PublicURLManager.cpp:
+ (WebCore::PublicURLManager::create):
+ * html/ValidationMessage.cpp:
+ (WebCore::ValidationMessage::setMessage):
+ (WebCore::ValidationMessage::setMessageDOMAndStartTimer):
+ (WebCore::ValidationMessage::requestToHideMessage):
+ * html/canvas/CanvasRenderingContext2DBase.cpp:
+ (WebCore::DisplayListDrawingContext::DisplayListDrawingContext):
+ (WebCore::CanvasRenderingContext2DBase::drawingContext const):
+ * html/canvas/WebGL2RenderingContext.cpp:
+ (WebCore::WebGL2RenderingContext::getExtension):
+ * html/canvas/WebGLRenderingContext.cpp:
+ (WebCore::WebGLRenderingContext::getExtension):
+ * html/canvas/WebGLRenderingContextBase.cpp:
+ (WebCore::WebGLRenderingContextBase::initializeNewContext):
+ (WebCore::WebGLRenderingContextBase::compileShader):
+ (WebCore::WebGLRenderingContextBase::printToConsole):
+ * html/parser/CSSPreloadScanner.cpp:
+ (WebCore::CSSPreloadScanner::emitRule):
+ * html/parser/HTMLConstructionSite.cpp:
+ (WebCore::HTMLConstructionSite::insertHTMLElementOrFindCustomElementInterface):
+ * html/parser/HTMLDocumentParser.cpp:
+ (WebCore::HTMLDocumentParser::HTMLDocumentParser):
+ (WebCore::HTMLDocumentParser::pumpTokenizer):
+ (WebCore::HTMLDocumentParser::insert):
+ * html/parser/HTMLElementStack.cpp:
+ (WebCore::HTMLElementStack::insertAbove):
+ (WebCore::HTMLElementStack::pushCommon):
+ * html/parser/HTMLPreloadScanner.cpp:
+ (WebCore::TokenPreloadScanner::StartTagScanner::createPreloadRequest):
+ * html/parser/HTMLToken.h:
+ (WebCore::HTMLToken::beginDOCTYPE):
+ * html/parser/XSSAuditor.cpp:
+ (WebCore::XSSAuditor::filterToken):
+ (WebCore::XSSAuditor::decodedHTTPBodySuffixTree):
+ * html/shadow/TextControlInnerElements.cpp:
+ (WebCore::TextControlInnerTextElement::resolveCustomStyle):
+ * html/track/InbandGenericTextTrack.cpp:
+ (WebCore::InbandGenericTextTrack::parser):
+ * html/track/InbandWebVTTTextTrack.cpp:
+ (WebCore::InbandWebVTTTextTrack::parser):
+ * html/track/LoadableTextTrack.cpp:
+ (WebCore::LoadableTextTrack::loadTimerFired):
+ * inspector/CommandLineAPIHost.cpp:
+ (WebCore::CommandLineAPIHost::CommandLineAPIHost):
+ (WebCore::CommandLineAPIHost::clearAllWrappers):
+ * inspector/DOMEditor.cpp:
+ (WebCore::DOMEditor::insertBefore):
+ (WebCore::DOMEditor::removeChild):
+ (WebCore::DOMEditor::setAttribute):
+ (WebCore::DOMEditor::removeAttribute):
+ (WebCore::DOMEditor::setOuterHTML):
+ (WebCore::DOMEditor::insertAdjacentHTML):
+ (WebCore::DOMEditor::replaceWholeText):
+ (WebCore::DOMEditor::replaceChild):
+ (WebCore::DOMEditor::setNodeValue):
+ * inspector/DOMPatchSupport.cpp:
+ (WebCore::DOMPatchSupport::createDigest):
+ * inspector/InspectorController.cpp:
+ (WebCore::InspectorController::InspectorController):
+ (WebCore::InspectorController::createLazyAgents):
+ (WebCore::InspectorController::ensureInspectorAgent):
+ (WebCore::InspectorController::ensureDOMAgent):
+ (WebCore::InspectorController::ensurePageAgent):
+ * inspector/InspectorHistory.cpp:
+ (WebCore::InspectorHistory::markUndoableState):
+ * inspector/InspectorStyleSheet.cpp:
+ (ParsedStyleSheet::setSourceData):
+ (WebCore::InspectorStyleSheet::ensureSourceData):
+ * inspector/NetworkResourcesData.cpp:
+ (WebCore::NetworkResourcesData::resourceCreated):
+ * inspector/WorkerInspectorController.cpp:
+ (WebCore::WorkerInspectorController::WorkerInspectorController):
+ (WebCore::WorkerInspectorController::connectFrontend):
+ (WebCore::WorkerInspectorController::createLazyAgents):
+ * inspector/agents/InspectorApplicationCacheAgent.cpp:
+ (WebCore::InspectorApplicationCacheAgent::InspectorApplicationCacheAgent):
+ * inspector/agents/InspectorCPUProfilerAgent.cpp:
+ (WebCore::InspectorCPUProfilerAgent::InspectorCPUProfilerAgent):
+ * inspector/agents/InspectorCSSAgent.cpp:
+ (WebCore::InspectorCSSAgent::InspectorCSSAgent):
+ (WebCore::InspectorCSSAgent::setStyleSheetText):
+ (WebCore::InspectorCSSAgent::setStyleText):
+ (WebCore::InspectorCSSAgent::setRuleSelector):
+ (WebCore::InspectorCSSAgent::addRule):
+ * inspector/agents/InspectorCanvasAgent.cpp:
+ (WebCore::InspectorCanvasAgent::InspectorCanvasAgent):
+ (WebCore::InspectorCanvasAgent::recordCanvasAction):
+ * inspector/agents/InspectorDOMAgent.cpp:
+ (WebCore::InspectorDOMAgent::InspectorDOMAgent):
+ (WebCore::InspectorDOMAgent::didCreateFrontendAndBackend):
+ (WebCore::InspectorDOMAgent::pushNodePathToFrontend):
+ (WebCore::InspectorDOMAgent::highlightConfigFromInspectorObject):
+ (WebCore::InspectorDOMAgent::highlightRect):
+ (WebCore::InspectorDOMAgent::highlightQuad):
+ (WebCore::InspectorDOMAgent::innerHighlightQuad):
+ (WebCore::InspectorDOMAgent::highlightFrame):
+ (WebCore::InspectorDOMAgent::setInspectedNode):
+ (WebCore::InspectorDOMAgent::didInvalidateStyleAttr):
+ * inspector/agents/InspectorDOMStorageAgent.cpp:
+ (WebCore::InspectorDOMStorageAgent::InspectorDOMStorageAgent):
+ * inspector/agents/InspectorDatabaseAgent.cpp:
+ (WebCore::InspectorDatabaseAgent::InspectorDatabaseAgent):
+ * inspector/agents/InspectorLayerTreeAgent.cpp:
+ (WebCore::InspectorLayerTreeAgent::InspectorLayerTreeAgent):
+ * inspector/agents/InspectorMemoryAgent.cpp:
+ (WebCore::InspectorMemoryAgent::InspectorMemoryAgent):
+ * inspector/agents/InspectorNetworkAgent.cpp:
+ (WebCore::InspectorNetworkAgent::InspectorNetworkAgent):
+ * inspector/agents/InspectorPageAgent.cpp:
+ (WebCore::InspectorPageAgent::InspectorPageAgent):
+ * inspector/agents/InspectorTimelineAgent.cpp:
+ (WebCore::InspectorTimelineAgent::InspectorTimelineAgent):
+ (WebCore::InspectorTimelineAgent::internalStart):
+ (WebCore::InspectorTimelineAgent::startFromConsole):
+ (WebCore::InspectorTimelineAgent::stopFromConsole):
+ * inspector/agents/InspectorWorkerAgent.cpp:
+ (WebCore::InspectorWorkerAgent::InspectorWorkerAgent):
+ * inspector/agents/WebConsoleAgent.cpp:
+ (WebCore::WebConsoleAgent::didReceiveResponse):
+ (WebCore::WebConsoleAgent::didFailLoading):
+ * inspector/agents/WebHeapAgent.cpp:
+ (WebCore::WebHeapAgent::WebHeapAgent):
+ * inspector/agents/page/PageRuntimeAgent.cpp:
+ (WebCore::PageRuntimeAgent::PageRuntimeAgent):
+ * inspector/agents/worker/WorkerDebuggerAgent.cpp:
+ (WebCore::WorkerDebuggerAgent::breakpointActionLog):
+ * layout/LayoutState.cpp:
+ (WebCore::Layout::LayoutState::displayBoxForLayoutBox const):
+ (WebCore::Layout::LayoutState::createFormattingStateForFormattingRootIfNeeded):
+ (WebCore::Layout::LayoutState::createFormattingContext):
+ * layout/inlineformatting/InlineFormattingContext.cpp:
+ (WebCore::Layout::InlineFormattingContext::collectInlineContent const):
+ * layout/inlineformatting/InlineFormattingContextLineLayout.cpp:
+ (WebCore::Layout::InlineFormattingContext::InlineLayout::createDisplayRuns const):
+ * layout/inlineformatting/InlineLine.cpp:
+ (WebCore::Layout::Line::Line):
+ (WebCore::Layout::Line::appendNonBreakableSpace):
+ (WebCore::Layout::Line::appendTextContent):
+ (WebCore::Layout::Line::appendNonReplacedInlineBox):
+ (WebCore::Layout::Line::appendHardLineBreak):
+ * layout/inlineformatting/InlineTextItem.cpp:
+ (WebCore::Layout::InlineTextItem::createAndAppendTextItems):
+ (WebCore::Layout::InlineTextItem::split const):
+ * layout/layouttree/LayoutBox.cpp:
+ (WebCore::Layout::Box::Box):
+ (WebCore::Layout::Box::ensureRareData):
+ * layout/layouttree/LayoutTreeBuilder.cpp:
+ (WebCore::Layout::TreeBuilder::createLayoutBox):
+ (WebCore::Layout::TreeBuilder::createTableStructure):
+ (WebCore::Layout::printLayoutTreeForLiveDocuments):
+ * layout/tableformatting/TableGrid.cpp:
+ (WebCore::Layout::TableGrid::appendCell):
+ * loader/ContentFilter.cpp:
+ (WebCore::ContentFilter::create):
+ * loader/CrossOriginAccessControl.cpp:
+ (WebCore::validatePreflightResponse):
+ * loader/DocumentLoader.cpp:
+ (WebCore::DocumentLoader::DocumentLoader):
+ (WebCore::DocumentLoader::loadApplicationManifest):
+ (WebCore::DocumentLoader::addAllArchiveResources):
+ (WebCore::DocumentLoader::addArchiveResource):
+ (WebCore::DocumentLoader::loadMainResource):
+ (WebCore::DocumentLoader::didGetLoadDecisionForIcon):
+ * loader/EmptyClients.cpp:
+ (WebCore::pageConfigurationWithEmptyClients):
+ * loader/FrameLoader.cpp:
+ (WebCore::FrameLoader::FrameLoader):
+ (WebCore::FrameLoader::init):
+ (WebCore::FrameLoader::initForSynthesizedDocument):
+ (WebCore::FrameLoader::detachChildren):
+ * loader/LinkLoader.cpp:
+ (WebCore::createLinkPreloadResourceClient):
+ * loader/NavigationScheduler.cpp:
+ (WebCore::NavigationScheduler::scheduleRedirect):
+ (WebCore::NavigationScheduler::scheduleLocationChange):
+ (WebCore::NavigationScheduler::scheduleFormSubmission):
+ (WebCore::NavigationScheduler::scheduleRefresh):
+ (WebCore::NavigationScheduler::scheduleHistoryNavigation):
+ (WebCore::NavigationScheduler::schedulePageBlock):
+ * loader/ProgressTracker.cpp:
+ (WebCore::ProgressTracker::incrementProgress):
+ * loader/TextResourceDecoder.cpp:
+ (WebCore::TextResourceDecoder::checkForHeadCharset):
+ * loader/TextTrackLoader.cpp:
+ (WebCore::TextTrackLoader::processNewCueData):
+ * loader/WorkerThreadableLoader.cpp:
+ (WebCore::WorkerThreadableLoader::MainThreadBridge::MainThreadBridge):
+ * loader/archive/cf/LegacyWebArchive.cpp:
+ (WebCore::LegacyWebArchive::create):
+ * loader/cache/CachedImage.cpp:
+ (WebCore::CachedImage::setBodyDataFrom):
+ (WebCore::CachedImage::createImage):
+ * loader/cache/CachedRawResource.cpp:
+ (WebCore::CachedRawResource::redirectReceived):
+ * loader/cache/CachedResource.cpp:
+ (WebCore::CachedResource::addClientToSet):
+ * loader/cache/CachedResourceLoader.cpp:
+ (WebCore::CachedResourceLoader::requestResource):
+ (WebCore::CachedResourceLoader::preload):
+ (WebCore::CachedResourceLoader::clearPreloads):
+ * loader/cache/MemoryCache.cpp:
+ (WebCore::MemoryCache::ensureSessionResourceMap):
+ (WebCore::MemoryCache::addImageToCache):
+ (WebCore::MemoryCache::lruListFor):
+ * loader/ios/PreviewLoader.mm:
+ (-[WebPreviewLoader initWithResourceLoader:resourceResponse:]):
+ (-[WebPreviewLoader connection:didFailWithError:]):
+ (WebCore::PreviewLoader::create):
+ * page/ContextMenuController.cpp:
+ (WebCore::ContextMenuController::maybeCreateContextMenu):
+ * page/DebugPageOverlays.cpp:
+ (WebCore::MouseWheelRegionOverlay::updateRegion):
+ * page/EventHandler.cpp:
+ (WebCore::EventHandler::EventHandler):
+ * page/FrameView.cpp:
+ (WebCore::FrameView::addEmbeddedObjectToUpdate):
+ (WebCore::FrameView::addSlowRepaintObject):
+ (WebCore::FrameView::addViewportConstrainedObject):
+ (WebCore::FrameView::addScrollableArea):
+ * page/FrameViewLayoutContext.cpp:
+ (WebCore::FrameViewLayoutContext::pushLayoutState):
+ (WebCore::FrameViewLayoutContext::pushLayoutStateForPaginationIfNeeded):
+ * page/NavigatorBase.cpp:
+ (WebCore::NavigatorBase::serviceWorker):
+ * page/Page.cpp:
+ (WebCore::Page::Page):
+ (WebCore::Page::initGroup):
+ (WebCore::Page::setResourceUsageOverlayVisible):
+ * page/PageConsoleClient.cpp:
+ (WebCore::PageConsoleClient::addMessage):
+ (WebCore::PageConsoleClient::messageWithTypeAndLevel):
+ (WebCore::PageConsoleClient::screenshot):
+ * page/PageGroup.cpp:
+ (WebCore::PageGroup::captionPreferences):
+ * page/Performance.cpp:
+ (WebCore::Performance::mark):
+ (WebCore::Performance::clearMarks):
+ (WebCore::Performance::measure):
+ (WebCore::Performance::clearMeasures):
+ * page/PrintContext.cpp:
+ (WebCore::PrintContext::outputLinkedDestinations):
+ * page/RenderingUpdateScheduler.cpp:
+ (WebCore::RenderingUpdateScheduler::startTimer):
+ * page/RenderingUpdateScheduler.h:
+ (WebCore::RenderingUpdateScheduler::create):
+ * page/SecurityPolicy.cpp:
+ (WebCore::SecurityPolicy::addOriginAccessWhitelistEntry):
+ * page/SettingsBase.cpp:
+ (WebCore::SettingsBase::SettingsBase):
+ * page/UserContentController.cpp:
+ (WebCore::UserContentController::addUserScript):
+ (WebCore::UserContentController::addUserStyleSheet):
+ * page/WheelEventDeltaFilter.cpp:
+ (WebCore::WheelEventDeltaFilter::create):
+ * page/animation/CSSAnimationController.cpp:
+ (WebCore::CSSAnimationController::CSSAnimationController):
+ * page/animation/CSSPropertyAnimation.cpp:
+ (WebCore::blendFunc):
+ (WebCore::PropertyWrapperVisitedAffectedColor::PropertyWrapperVisitedAffectedColor):
+ (WebCore::FillLayersPropertyWrapper::FillLayersPropertyWrapper):
+ (WebCore::CSSPropertyAnimationWrapperMap::CSSPropertyAnimationWrapperMap):
+ * page/csp/ContentSecurityPolicy.cpp:
+ (WebCore::ContentSecurityPolicy::updateSourceSelf):
+ * page/csp/ContentSecurityPolicyDirectiveList.cpp:
+ (WebCore::ContentSecurityPolicyDirectiveList::create):
+ (WebCore::ContentSecurityPolicyDirectiveList::setCSPDirective):
+ * page/linux/ResourceUsageOverlayLinux.cpp:
+ (WebCore::ResourceUsageOverlay::platformInitialize):
+ * page/mac/PageMac.mm:
+ (WebCore::Page::addSchedulePair):
+ * page/scrolling/AsyncScrollingCoordinator.cpp:
+ (WebCore::AsyncScrollingCoordinator::AsyncScrollingCoordinator):
+ * page/scrolling/ScrollingMomentumCalculator.cpp:
+ (WebCore::ScrollingMomentumCalculator::create):
+ * page/scrolling/ScrollingStateNode.cpp:
+ (WebCore::ScrollingStateNode::appendChild):
+ (WebCore::ScrollingStateNode::insertChild):
+ * page/scrolling/ScrollingStateTree.cpp:
+ (WebCore::ScrollingStateTree::commit):
+ * page/scrolling/ScrollingTreeNode.cpp:
+ (WebCore::ScrollingTreeNode::appendChild):
+ * page/scrolling/mac/ScrollingMomentumCalculatorMac.mm:
+ (WebCore::ScrollingMomentumCalculator::create):
+ * platform/Length.cpp:
+ (WebCore::convertTo100PercentMinusLength):
+ (WebCore::blendMixedTypes):
+ * platform/RemoteCommandListener.cpp:
+ (WebCore::RemoteCommandListener::create):
+ * platform/ScrollAnimator.cpp:
+ (WebCore::ScrollAnimator::create):
+ * platform/ScrollableArea.cpp:
+ (WebCore::ScrollableArea::scrollAnimator const):
+ (WebCore::ScrollableArea::ensureSnapOffsetsInfo):
+ * platform/ThreadGlobalData.cpp:
+ (WebCore::ThreadGlobalData::ThreadGlobalData):
+ * platform/audio/AudioBus.cpp:
+ (WebCore::AudioBus::AudioBus):
+ (WebCore::AudioBus::copyWithGainFrom):
+ * platform/audio/AudioChannel.h:
+ * platform/audio/AudioResampler.cpp:
+ (WebCore::AudioResampler::AudioResampler):
+ (WebCore::AudioResampler::configureChannels):
+ * platform/audio/DynamicsCompressor.cpp:
+ (WebCore::DynamicsCompressor::setNumberOfChannels):
+ * platform/audio/DynamicsCompressorKernel.cpp:
+ (WebCore::DynamicsCompressorKernel::setNumberOfChannels):
+ * platform/audio/FFTFrame.cpp:
+ (WebCore::FFTFrame::createInterpolatedFrame):
+ * platform/audio/HRTFDatabaseLoader.cpp:
+ (WebCore::HRTFDatabaseLoader::load):
+ * platform/audio/HRTFElevation.cpp:
+ (WebCore::HRTFElevation::createForSubject):
+ (WebCore::HRTFElevation::createByInterpolatingSlices):
+ * platform/audio/HRTFKernel.cpp:
+ (WebCore::HRTFKernel::HRTFKernel):
+ (WebCore::HRTFKernel::createImpulseResponse):
+ * platform/audio/MultiChannelResampler.cpp:
+ (WebCore::MultiChannelResampler::MultiChannelResampler):
+ * platform/audio/Panner.cpp:
+ (WebCore::Panner::create):
+ * platform/audio/PlatformMediaSession.cpp:
+ (WebCore::PlatformMediaSession::create):
+ * platform/audio/Reverb.cpp:
+ (WebCore::Reverb::initialize):
+ * platform/audio/ReverbConvolver.cpp:
+ (WebCore::ReverbConvolver::ReverbConvolver):
+ * platform/audio/ReverbConvolverStage.cpp:
+ (WebCore::ReverbConvolverStage::ReverbConvolverStage):
+ * platform/audio/gstreamer/AudioDestinationGStreamer.cpp:
+ (WebCore::AudioDestination::create):
+ * platform/audio/ios/AudioDestinationIOS.cpp:
+ (WebCore::AudioDestination::create):
+ * platform/audio/ios/AudioSessionIOS.mm:
+ (WebCore::AudioSession::AudioSession):
+ * platform/audio/mac/AudioDestinationMac.cpp:
+ (WebCore::AudioDestination::create):
+ * platform/audio/mac/AudioSampleDataSource.mm:
+ (WebCore::AudioSampleDataSource::setInputFormat):
+ (WebCore::AudioSampleDataSource::setOutputFormat):
+ * platform/audio/mac/AudioSessionMac.cpp:
+ (WebCore::AudioSession::AudioSession):
+ * platform/cf/KeyedDecoderCF.cpp:
+ (WebCore::KeyedDecoder::decoder):
+ * platform/cf/KeyedEncoderCF.cpp:
+ (WebCore::KeyedEncoder::encoder):
+ * platform/cf/MainThreadSharedTimerCF.cpp:
+ (WebCore::setupPowerObserver):
+ * platform/cocoa/NetworkExtensionContentFilter.mm:
+ (WebCore::NetworkExtensionContentFilter::create):
+ * platform/cocoa/ParentalControlsContentFilter.mm:
+ (WebCore::ParentalControlsContentFilter::create):
+ * platform/cocoa/ScrollController.mm:
+ (WebCore::ScrollController::updateScrollSnapPoints):
+ * platform/encryptedmedia/clearkey/CDMClearKey.cpp:
+ (WebCore::CDMFactoryClearKey::createCDM):
+ * platform/gamepad/cocoa/GameControllerGamepadProvider.mm:
+ (WebCore::GameControllerGamepadProvider::controllerDidConnect):
+ * platform/gamepad/mac/HIDGamepadProvider.cpp:
+ (WebCore::HIDGamepadProvider::deviceAdded):
+ * platform/generic/KeyedDecoderGeneric.cpp:
+ (WebCore::KeyedDecoderGeneric::Dictionary::add):
+ (WebCore::KeyedDecoder::decoder):
+ (WebCore::KeyedDecoderGeneric::KeyedDecoderGeneric):
+ * platform/generic/KeyedEncoderGeneric.cpp:
+ (WebCore::KeyedEncoder::encoder):
+ * platform/generic/ScrollAnimatorGeneric.cpp:
+ (WebCore::ScrollAnimator::create):
+ (WebCore::ScrollAnimatorGeneric::ScrollAnimatorGeneric):
+ (WebCore::ScrollAnimatorGeneric::ensureSmoothScrollingAnimation):
+ * platform/glib/KeyedDecoderGlib.cpp:
+ (WebCore::KeyedDecoder::decoder):
+ * platform/glib/KeyedEncoderGlib.cpp:
+ (WebCore::KeyedEncoder::encoder):
+ * platform/graphics/BitmapImage.cpp:
+ (WebCore::BitmapImage::startTimer):
+ (WebCore::BitmapImage::decode):
+ * platform/graphics/ComplexTextController.cpp:
+ (WebCore::TextLayout::TextLayout):
+ * platform/graphics/Font.cpp:
+ (WebCore::Font::ensureDerivedFontData const):
+ * platform/graphics/Font.h:
+ (WebCore::Font::boundsForGlyph const):
+ * platform/graphics/FontCache.cpp:
+ (WebCore::FontCache::getCachedFontPlatformData):
+ * platform/graphics/FontCascade.cpp:
+ (WebCore::retrieveOrAddCachedFonts):
+ (WebCore::FontCascade::displayListForTextRun const):
+ * platform/graphics/FontCascadeFonts.cpp:
+ (WebCore::FontCascadeFonts::GlyphPageCacheEntry::setGlyphDataForCharacter):
+ * platform/graphics/GlyphMetricsMap.h:
+ (WebCore::GlyphMetricsMap<T>::locatePageSlowCase):
+ * platform/graphics/GraphicsLayer.cpp:
+ (WebCore::GraphicsLayer::setTransform):
+ (WebCore::GraphicsLayer::setChildrenTransform):
+ * platform/graphics/GraphicsLayer.h:
+ * platform/graphics/Image.cpp:
+ (WebCore::Image::startAnimationAsynchronously):
+ * platform/graphics/MediaPlayer.cpp:
+ (WebCore::MediaPlayer::MediaPlayer):
+ (WebCore::MediaPlayer::loadWithNextMediaEngine):
+ * platform/graphics/MediaPlayerPrivate.h:
+ (WebCore::MediaPlayerPrivateInterface::seekable const):
+ * platform/graphics/PathUtilities.cpp:
+ (WebCore::FloatPointGraph::findOrCreateNode):
+ * platform/graphics/Region.cpp:
+ (WebCore::Region::setShape):
+ * platform/graphics/Region.h:
+ (WebCore::Region::copyShape const):
+ (WebCore::Region::decode):
+ * platform/graphics/TextTrackRepresentation.cpp:
+ (WebCore::TextTrackRepresentation::create):
+ * platform/graphics/angle/GraphicsContext3DANGLE.cpp:
+ (WebCore::GraphicsContext3D::getExtensions):
+ * platform/graphics/avfoundation/AudioSourceProviderAVFObjC.mm:
+ (WebCore::AudioSourceProviderAVFObjC::prepare):
+ * platform/graphics/avfoundation/CDMFairPlayStreaming.cpp:
+ (WebCore::CDMFactoryFairPlayStreaming::createCDM):
+ * platform/graphics/avfoundation/CDMPrivateMediaSourceAVFObjC.mm:
+ (WebCore::CDMPrivateMediaSourceAVFObjC::createSession):
+ * platform/graphics/avfoundation/MediaPlayerPrivateAVFoundation.cpp:
+ (WebCore::MediaPlayerPrivateAVFoundation::buffered const):
+ * platform/graphics/avfoundation/WebMediaSessionManagerMac.cpp:
+ (WebCore::WebMediaSessionManagerMac::platformPicker):
+ * platform/graphics/avfoundation/cf/MediaPlayerPrivateAVFoundationCF.cpp:
+ (WebCore::MediaPlayerPrivateAVFoundationCF::registerMediaEngine):
+ (WebCore::MediaPlayerPrivateAVFoundationCF::platformBufferedTimeRanges const):
+ (WebCore::MediaPlayerPrivateAVFoundationCF::createSession):
+ (WebCore::AVFWrapper::notificationCallback):
+ (WebCore::AVFWrapper::legibleOutputCallback):
+ (WebCore::AVFWrapper::resourceLoaderShouldWaitForLoadingOfRequestedResource):
+ (WebCore::AVFWrapper::platformLayer):
+ * platform/graphics/avfoundation/objc/AudioTrackPrivateAVFObjC.mm:
+ (WebCore::AudioTrackPrivateAVFObjC::AudioTrackPrivateAVFObjC):
+ (WebCore::AudioTrackPrivateAVFObjC::setPlayerItemTrack):
+ (WebCore::AudioTrackPrivateAVFObjC::setAssetTrack):
+ (WebCore::AudioTrackPrivateAVFObjC::setMediaSelectionOption):
+ * platform/graphics/avfoundation/objc/AudioTrackPrivateMediaSourceAVFObjC.cpp:
+ (WebCore::AudioTrackPrivateMediaSourceAVFObjC::AudioTrackPrivateMediaSourceAVFObjC):
+ (WebCore::AudioTrackPrivateMediaSourceAVFObjC::setAssetTrack):
+ * platform/graphics/avfoundation/objc/ImageDecoderAVFObjC.mm:
+ (WebCore::ImageDecoderAVFObjC::readTrackMetadata):
+ * platform/graphics/avfoundation/objc/MediaPlayerPrivateAVFoundationObjC.mm:
+ (WebCore::MediaPlayerPrivateAVFoundationObjC::registerMediaEngine):
+ (WebCore::MediaPlayerPrivateAVFoundationObjC::MediaPlayerPrivateAVFoundationObjC):
+ (WebCore::MediaPlayerPrivateAVFoundationObjC::platformBufferedTimeRanges const):
+ (WebCore::MediaPlayerPrivateAVFoundationObjC::updateRotationSession):
+ (WebCore::MediaPlayerPrivateAVFoundationObjC::updateLastImage):
+ (WebCore::MediaPlayerPrivateAVFoundationObjC::copyVideoTextureToPlatformTexture):
+ (WebCore::MediaPlayerPrivateAVFoundationObjC::createSession):
+ * platform/graphics/avfoundation/objc/MediaPlayerPrivateMediaSourceAVFObjC.mm:
+ (WebCore::MediaPlayerPrivateMediaSourceAVFObjC::MediaPlayerPrivateMediaSourceAVFObjC):
+ (WebCore::MediaPlayerPrivateMediaSourceAVFObjC::registerMediaEngine):
+ (WebCore::MediaPlayerPrivateMediaSourceAVFObjC::seekWithTolerance):
+ (WebCore::MediaPlayerPrivateMediaSourceAVFObjC::seekable const):
+ (WebCore::MediaPlayerPrivateMediaSourceAVFObjC::buffered const):
+ (WebCore::MediaPlayerPrivateMediaSourceAVFObjC::updateLastImage):
+ (WebCore::MediaPlayerPrivateMediaSourceAVFObjC::copyVideoTextureToPlatformTexture):
+ * platform/graphics/avfoundation/objc/MediaPlayerPrivateMediaStreamAVFObjC.mm:
+ (WebCore::MediaPlayerPrivateMediaStreamAVFObjC::MediaPlayerPrivateMediaStreamAVFObjC):
+ (WebCore::MediaPlayerPrivateMediaStreamAVFObjC::registerMediaEngine):
+ (WebCore::MediaPlayerPrivateMediaStreamAVFObjC::seekable const):
+ (WebCore::MediaPlayerPrivateMediaStreamAVFObjC::buffered const):
+ (WebCore::MediaPlayerPrivateMediaStreamAVFObjC::updateCurrentFrameImage):
+ * platform/graphics/avfoundation/objc/VideoTrackPrivateAVFObjC.cpp:
+ (WebCore::VideoTrackPrivateAVFObjC::VideoTrackPrivateAVFObjC):
+ (WebCore::VideoTrackPrivateAVFObjC::setPlayerItemTrack):
+ (WebCore::VideoTrackPrivateAVFObjC::setAssetTrack):
+ (WebCore::VideoTrackPrivateAVFObjC::setMediaSelectonOption):
+ * platform/graphics/avfoundation/objc/VideoTrackPrivateMediaSourceAVFObjC.mm:
+ (WebCore::VideoTrackPrivateMediaSourceAVFObjC::VideoTrackPrivateMediaSourceAVFObjC):
+ (WebCore::VideoTrackPrivateMediaSourceAVFObjC::setAssetTrack):
+ * platform/graphics/ca/GraphicsLayerCA.cpp:
+ (WebCore::GraphicsLayerCA::recursiveCommitChanges):
+ (WebCore::GraphicsLayerCA::ensureLayerAnimations):
+ (WebCore::GraphicsLayerCA::createTransformAnimationsFromKeyframes):
+ * platform/graphics/ca/TileController.cpp:
+ (WebCore::TileController::TileController):
+ (WebCore::TileController::setContentsScale):
+ (WebCore::TileController::adjustTileCoverageRectForScrolling):
+ (WebCore::TileController::tiledScrollingIndicatorLayer):
+ * platform/graphics/ca/cocoa/PlatformCALayerCocoa.mm:
+ (WebCore::PlatformCALayerCocoa::commonInit):
+ (WebCore::PlatformCALayerCocoa::setShapeRoundedRect):
+ * platform/graphics/ca/cocoa/WebTiledBackingLayer.mm:
+ (-[WebTiledBackingLayer createTileController:]):
+ * platform/graphics/ca/win/PlatformCALayerWin.cpp:
+ (PlatformCALayerWin::PlatformCALayerWin):
+ * platform/graphics/ca/win/WebTiledBackingLayerWin.cpp:
+ (WebTiledBackingLayerWin::createTileController):
+ * platform/graphics/cairo/GraphicsContextImplCairo.cpp:
+ (WebCore::GraphicsContextImplCairo::createFactory):
+ (WebCore::m_private):
+ * platform/graphics/cairo/ImageBufferCairo.cpp:
+ (WebCore::ImageBufferData::swapBuffersIfNeeded):
+ (WebCore::ImageBuffer::ImageBuffer):
+ * platform/graphics/cg/ImageBufferCG.cpp:
+ (WebCore::ImageBuffer::ImageBuffer):
+ * platform/graphics/cocoa/FontCacheCoreText.cpp:
+ (WebCore::FontCache::createFontPlatformData):
+ * platform/graphics/cocoa/FontFamilySpecificationCoreText.cpp:
+ (WebCore::FontFamilySpecificationCoreText::fontRanges const):
+ * platform/graphics/cocoa/GraphicsContext3DCocoa.mm:
+ (WebCore::GraphicsContext3D::GraphicsContext3D):
+ * platform/graphics/cocoa/IOSurface.mm:
+ (WebCore::IOSurface::ensureGraphicsContext):
+ * platform/graphics/cocoa/TextTrackRepresentationCocoa.mm:
+ (TextTrackRepresentation::create):
+ * platform/graphics/cv/TextureCacheCV.mm:
+ (WebCore::TextureCacheCV::create):
+ * platform/graphics/displaylists/DisplayListReplayer.cpp:
+ (WebCore::DisplayList::Replayer::replay):
+ * platform/graphics/filters/FilterOperation.cpp:
+ (WebCore::ReferenceFilterOperation::loadExternalDocumentIfNeeded):
+ * platform/graphics/freetype/FontCacheFreeType.cpp:
+ (WebCore::FontCache::createFontPlatformData):
+ * platform/graphics/freetype/FontCustomPlatformDataFreeType.cpp:
+ (WebCore::createFontCustomPlatformData):
+ * platform/graphics/gpu/Texture.cpp:
+ (WebCore::Texture::create):
+ * platform/graphics/gstreamer/MediaPlayerPrivateGStreamer.cpp:
+ (WebCore::MediaPlayerPrivateGStreamer::registerMediaEngine):
+ (WebCore::MediaPlayerPrivateGStreamer::buffered const):
+ (WebCore::MediaPlayerPrivateGStreamer::ensureAudioSourceProvider):
+ * platform/graphics/gstreamer/MediaPlayerPrivateGStreamerBase.cpp:
+ (WebCore::MediaPlayerPrivateGStreamerBase::pushTextureToCompositor):
+ (WebCore::MediaPlayerPrivateGStreamerBase::copyVideoTextureToPlatformTexture):
+ (WebCore::MediaPlayerPrivateGStreamerBase::nativeImageForCurrentTime):
+ (WebCore::MediaPlayerPrivateGStreamerBase::pushNextHolePunchBuffer):
+ * platform/graphics/gstreamer/WebKitWebSourceGStreamer.cpp:
+ (webKitWebSrcMakeRequest):
+ * platform/graphics/gstreamer/mse/MediaPlayerPrivateGStreamerMSE.cpp:
+ (WebCore::MediaPlayerPrivateGStreamerMSE::registerMediaEngine):
+ (WebCore::MediaPlayerPrivateGStreamerMSE::buffered const):
+ * platform/graphics/holepunch/MediaPlayerPrivateHolePunch.cpp:
+ (WebCore::MediaPlayerPrivateHolePunch::pushNextHolePunchBuffer):
+ (WebCore::MediaPlayerPrivateHolePunch::registerMediaEngine):
+ * platform/graphics/holepunch/MediaPlayerPrivateHolePunch.h:
+ * platform/graphics/iso/ISOProtectionSchemeInfoBox.cpp:
+ (WebCore::ISOProtectionSchemeInfoBox::parse):
+ * platform/graphics/iso/ISOSchemeInformationBox.cpp:
+ (WebCore::ISOSchemeInformationBox::parse):
+ * platform/graphics/mac/FontCustomPlatformData.cpp:
+ (WebCore::createFontCustomPlatformData):
+ * platform/graphics/nicosia/NicosiaSceneIntegration.cpp:
+ (Nicosia::SceneIntegration::createUpdateScope):
+ * platform/graphics/nicosia/cairo/NicosiaCairoOperationRecorder.cpp:
+ (Nicosia::createCommand):
+ * platform/graphics/nicosia/cairo/NicosiaPaintingContextCairo.cpp:
+ (Nicosia::PaintingContextCairo::ForPainting::ForPainting):
+ (Nicosia::PaintingContextCairo::ForRecording::ForRecording):
+ * platform/graphics/nicosia/texmap/NicosiaBackingStoreTextureMapperImpl.cpp:
+ (Nicosia::BackingStoreTextureMapperImpl::createFactory):
+ * platform/graphics/nicosia/texmap/NicosiaCompositionLayerTextureMapperImpl.cpp:
+ (Nicosia::CompositionLayerTextureMapperImpl::createFactory):
+ * platform/graphics/nicosia/texmap/NicosiaContentLayerTextureMapperImpl.cpp:
+ (Nicosia::ContentLayerTextureMapperImpl::createFactory):
+ * platform/graphics/nicosia/texmap/NicosiaGC3DLayer.cpp:
+ (Nicosia::GC3DLayer::swapBuffersIfNeeded):
+ * platform/graphics/nicosia/texmap/NicosiaImageBackingTextureMapperImpl.cpp:
+ (Nicosia::ImageBackingTextureMapperImpl::createFactory):
+ * platform/graphics/opengl/GraphicsContext3DOpenGL.cpp:
+ (WebCore::GraphicsContext3D::getExtensions):
+ * platform/graphics/opengl/GraphicsContext3DOpenGLCommon.cpp:
+ (WebCore::GraphicsContext3D::compileShader):
+ (WebCore::GraphicsContext3D::mappedSymbolName):
+ * platform/graphics/opengl/GraphicsContext3DOpenGLES.cpp:
+ (WebCore::GraphicsContext3D::getExtensions):
+ (WebCore::GraphicsContext3D::GraphicsContext3D):
+ * platform/graphics/texmap/GraphicsContext3DTextureMapper.cpp:
+ (WebCore::GraphicsContext3D::GraphicsContext3D):
+ (WebCore::GraphicsContext3D::getExtensions):
+ * platform/graphics/texmap/TextureMapperGC3DPlatformLayer.cpp:
+ (WebCore::TextureMapperGC3DPlatformLayer::swapBuffersIfNeeded):
+ * platform/graphics/texmap/TextureMapperGL.cpp:
+ (WebCore::TextureMapperGL::TextureMapperGL):
+ (WebCore::TextureMapper::platformCreateAccelerated):
+ * platform/graphics/texmap/TextureMapperPlatformLayerBuffer.cpp:
+ (WebCore::TextureMapperPlatformLayerBuffer::clone):
+ * platform/graphics/texmap/TextureMapperPlatformLayerProxy.cpp:
+ (WebCore::TextureMapperPlatformLayerProxy::activateOnCompositingThread):
+ * platform/graphics/texmap/coordinated/CoordinatedGraphicsLayer.cpp:
+ (WebCore::CoordinatedGraphicsLayer::updateContentBuffers):
+ * platform/graphics/texmap/coordinated/TiledBackingStore.cpp:
+ (WebCore::TiledBackingStore::createTiles):
+ * platform/graphics/transforms/TransformState.cpp:
+ (WebCore::TransformState::operator=):
+ (WebCore::TransformState::applyTransform):
+ (WebCore::TransformState::setLastPlanarSecondaryQuad):
+ * platform/graphics/transforms/TransformState.h:
+ (WebCore::TransformState::setSecondaryQuad):
+ * platform/graphics/win/FontCacheWin.cpp:
+ (WebCore::FontCache::createFontPlatformData):
+ * platform/graphics/win/FontCustomPlatformData.cpp:
+ (WebCore::createFontCustomPlatformData):
+ * platform/graphics/win/FontCustomPlatformDataCairo.cpp:
+ (WebCore::createFontCustomPlatformData):
+ * platform/graphics/win/FullScreenController.cpp:
+ (WebCore::FullScreenController::FullScreenController):
+ (WebCore::FullScreenController::enterFullScreen):
+ * platform/graphics/win/GraphicsContextCairoWin.cpp:
+ (WebCore::GraphicsContext::platformInit):
+ * platform/graphics/win/GraphicsContextDirect2D.cpp:
+ (WebCore::GraphicsContext::GraphicsContext):
+ (WebCore::GraphicsContext::platformInit):
+ * platform/graphics/win/GraphicsContextImplDirect2D.cpp:
+ (WebCore::GraphicsContextImplDirect2D::createFactory):
+ (WebCore::m_private):
+ * platform/graphics/win/GraphicsContextWin.cpp:
+ (WebCore::GraphicsContext::createWindowsBitmap):
+ * platform/graphics/win/ImageBufferDirect2D.cpp:
+ (WebCore::ImageBuffer::ImageBuffer):
+ * platform/graphics/win/MediaPlayerPrivateMediaFoundation.cpp:
+ (WebCore::MediaPlayerPrivateMediaFoundation::registerMediaEngine):
+ (WebCore::MediaPlayerPrivateMediaFoundation::buffered const):
+ (WebCore::MediaPlayerPrivateMediaFoundation::CustomVideoPresenter::CustomVideoPresenter):
+ * platform/graphics/win/WKCAImageQueue.cpp:
+ (WebCore::WKCAImageQueue::WKCAImageQueue):
+ * platform/gtk/PasteboardGtk.cpp:
+ (WebCore::Pasteboard::createForCopyAndPaste):
+ (WebCore::Pasteboard::createForGlobalSelection):
+ (WebCore::Pasteboard::createForDragAndDrop):
+ * platform/gtk/PasteboardHelper.cpp:
+ (WebCore::PasteboardHelper::writeClipboardContents):
+ * platform/gtk/RenderThemeGadget.cpp:
+ (WebCore::RenderThemeGadget::create):
+ * platform/gtk/RenderThemeWidget.cpp:
+ (WebCore::RenderThemeWidget::getOrCreate):
+ (WebCore::RenderThemeScrollbar::RenderThemeScrollbar):
+ (WebCore::RenderThemeComboBox::RenderThemeComboBox):
+ * platform/image-decoders/bmp/BMPImageDecoder.cpp:
+ (WebCore::BMPImageDecoder::decodeHelper):
+ * platform/image-decoders/gif/GIFImageDecoder.cpp:
+ (WebCore::GIFImageDecoder::decode):
+ * platform/image-decoders/gif/GIFImageReader.cpp:
+ (GIFFrameContext::decode):
+ (GIFImageReader::addFrameIfNecessary):
+ * platform/image-decoders/ico/ICOImageDecoder.cpp:
+ (WebCore::ICOImageDecoder::decodeAtIndex):
+ * platform/image-decoders/jpeg/JPEGImageDecoder.cpp:
+ (WebCore::JPEGImageDecoder::decode):
+ * platform/image-decoders/png/PNGImageDecoder.cpp:
+ (WebCore::PNGImageDecoder::decode):
+ * platform/ios/LegacyTileCache.mm:
+ (WebCore::LegacyTileCache::LegacyTileCache):
+ (WebCore::LegacyTileCache::commitScaleChange):
+ * platform/ios/PasteboardIOS.mm:
+ (WebCore::Pasteboard::createForDragAndDrop):
+ (WebCore::Pasteboard::createForCopyAndPaste):
+ * platform/ios/QuickLook.mm:
+ (WebCore::registerQLPreviewConverterIfNeeded):
+ * platform/ios/RemoteCommandListenerIOS.mm:
+ (WebCore::RemoteCommandListener::create):
+ * platform/ios/ScrollAnimatorIOS.mm:
+ (WebCore::ScrollAnimator::create):
+ * platform/libwpe/PasteboardLibWPE.cpp:
+ (WebCore::Pasteboard::createForCopyAndPaste):
+ * platform/mac/PasteboardMac.mm:
+ (WebCore::Pasteboard::createForCopyAndPaste):
+ (WebCore::Pasteboard::createForDragAndDrop):
+ * platform/mac/RemoteCommandListenerMac.mm:
+ (WebCore::RemoteCommandListener::create):
+ * platform/mac/ScrollAnimatorMac.mm:
+ (WebCore::ScrollAnimator::create):
+ * platform/mediarecorder/MediaRecorderPrivateAVFImpl.cpp:
+ (WebCore::MediaRecorderPrivateAVFImpl::create):
+ * platform/mediastream/gstreamer/GStreamerAudioCaptureSource.cpp:
+ (WebCore::m_capturer):
+ (WebCore::GStreamerAudioCaptureSource::GStreamerAudioCaptureSource):
+ * platform/mediastream/gstreamer/GStreamerMediaStreamSource.cpp:
+ (WebCore::webkit_media_stream_src_init):
+ * platform/mediastream/gstreamer/GStreamerVideoCaptureSource.cpp:
+ (WebCore::GStreamerVideoCaptureSource::GStreamerVideoCaptureSource):
+ (WebCore::m_capturer):
+ * platform/mediastream/libwebrtc/GStreamerVideoEncoderFactory.cpp:
+ (WebCore::GStreamerVideoEncoderFactory::CreateVideoEncoder):
+ * platform/mediastream/libwebrtc/LibWebRTCProvider.cpp:
+ (WebCore::BasicPacketSocketFactory::BasicPacketSocketFactory):
+ (WebCore::initializePeerConnectionFactoryAndThreads):
+ (WebCore::LibWebRTCProvider::createPeerConnection):
+ (WebCore::LibWebRTCProvider::certificateGenerator):
+ * platform/mediastream/libwebrtc/LibWebRTCProviderGStreamer.cpp:
+ (WebCore::LibWebRTCProviderGStreamer::createDecoderFactory):
+ (WebCore::LibWebRTCProviderGStreamer::createEncoderFactory):
+ * platform/mediastream/mac/AudioTrackPrivateMediaStreamCocoa.cpp:
+ (WebCore::AudioTrackPrivateMediaStreamCocoa::audioSamplesAvailable):
+ * platform/mediastream/mac/MockRealtimeAudioSourceMac.mm:
+ (WebCore::MockRealtimeAudioSourceMac::reconfigure):
+ * platform/mediastream/mac/RealtimeOutgoingVideoSourceCocoa.mm:
+ (WebCore::RealtimeOutgoingVideoSourceCocoa::convertToYUV):
+ (WebCore::RealtimeOutgoingVideoSourceCocoa::rotatePixelBuffer):
+ * platform/mock/RTCNotifiersMock.cpp:
+ (WebCore::RemoteDataChannelNotifier::fire):
+ * platform/mock/mediasource/MockMediaPlayerMediaSource.cpp:
+ (WebCore::MockMediaPlayerMediaSource::registerMediaEngine):
+ (WebCore::MockMediaPlayerMediaSource::buffered const):
+ * platform/network/BlobResourceHandle.cpp:
+ * platform/network/DataURLDecoder.cpp:
+ (WebCore::DataURLDecoder::createDecodeTask):
+ * platform/network/ResourceHandle.cpp:
+ (WebCore::ResourceHandle::ResourceHandle):
+ * platform/network/cf/ResourceHandleCFURLConnectionDelegateWithOperationQueue.cpp:
+ (WebCore::ResourceHandleCFURLConnectionDelegateWithOperationQueue::willSendRequest):
+ (WebCore::ResourceHandleCFURLConnectionDelegateWithOperationQueue::didReceiveResponse):
+ (WebCore::ResourceHandleCFURLConnectionDelegateWithOperationQueue::didReceiveData):
+ (WebCore::ResourceHandleCFURLConnectionDelegateWithOperationQueue::didFinishLoading):
+ (WebCore::ResourceHandleCFURLConnectionDelegateWithOperationQueue::didFail):
+ (WebCore::ResourceHandleCFURLConnectionDelegateWithOperationQueue::willCacheResponse):
+ (WebCore::ResourceHandleCFURLConnectionDelegateWithOperationQueue::didReceiveChallenge):
+ (WebCore::ResourceHandleCFURLConnectionDelegateWithOperationQueue::didSendBodyData):
+ (WebCore::ResourceHandleCFURLConnectionDelegateWithOperationQueue::canRespondToProtectionSpace):
+ * platform/network/cocoa/WebCoreNSURLSession.mm:
+ (-[WebCoreNSURLSessionDataTask _restart]):
+ * platform/network/curl/CookieJarDB.cpp:
+ (WebCore::CookieJarDB::searchCookies):
+ (WebCore::CookieJarDB::createPrepareStatement):
+ * platform/network/curl/CurlCacheManager.cpp:
+ (WebCore::CurlCacheManager::loadIndex):
+ (WebCore::CurlCacheManager::didReceiveResponse):
+ * platform/network/curl/CurlContext.cpp:
+ (WebCore::CurlContext::CurlContext):
+ (WebCore::CurlHandle::willSetupSslCtx):
+ * platform/network/curl/CurlFormDataStream.cpp:
+ (WebCore::CurlFormDataStream::getPostData):
+ * platform/network/curl/CurlMultipartHandle.cpp:
+ (WebCore::CurlMultipartHandle::createIfNeeded):
+ * platform/network/curl/CurlRequest.cpp:
+ (WebCore::CurlRequest::runOnMainThread):
+ (WebCore::CurlRequest::setupTransfer):
+ * platform/network/curl/CurlRequestScheduler.cpp:
+ (WebCore::CurlRequestScheduler::workerThread):
+ * platform/network/curl/ResourceHandleCurl.cpp:
+ (WebCore::ResourceHandle::delegate):
+ * platform/network/curl/SocketStreamHandleImplCurl.cpp:
+ (WebCore::SocketStreamHandleImpl::callOnWorkerThread):
+ * platform/network/mac/WebCoreResourceHandleAsOperationQueueDelegate.mm:
+ (-[WebCoreResourceHandleAsOperationQueueDelegate callFunctionOnMainThread:]):
+ * platform/network/soup/DNSResolveQueueSoup.cpp:
+ (WebCore::DNSResolveQueueSoup::resolve):
+ * platform/network/soup/NetworkStorageSessionSoup.cpp:
+ (WebCore::NetworkStorageSession::getCredentialFromPersistentStorage):
+ * platform/text/BidiResolver.h:
+ (WebCore::DerivedClass>::appendRunInternal):
+ * platform/text/LocaleICU.cpp:
+ (WebCore::Locale::create):
+ (WebCore::LocaleICU::createLabelVector):
+ (WebCore::createFallbackMonthLabels):
+ (WebCore::createFallbackAMPMLabels):
+ * platform/text/LocaleNone.cpp:
+ (WebCore::Locale::create):
+ * platform/text/TextCodecICU.cpp:
+ (WebCore::TextCodecICU::registerCodecs):
+ * platform/text/TextCodecLatin1.cpp:
+ (WebCore::TextCodecLatin1::registerCodecs):
+ * platform/text/TextCodecReplacement.cpp:
+ (WebCore::TextCodecReplacement::registerCodecs):
+ * platform/text/TextCodecUTF16.cpp:
+ (WebCore::TextCodecUTF16::registerCodecs):
+ * platform/text/TextCodecUTF8.cpp:
+ (WebCore::TextCodecUTF8::registerCodecs):
+ * platform/text/TextCodecUserDefined.cpp:
+ (WebCore::TextCodecUserDefined::registerCodecs):
+ * platform/text/mac/LocaleMac.mm:
+ (WebCore::Locale::create):
+ * platform/text/win/LocaleWin.cpp:
+ (WebCore::Locale::create):
+ * platform/text/win/TextCodecWin.cpp:
+ (WebCore::newTextCodecWin):
+ * platform/vr/openvr/VRPlatformManagerOpenVR.cpp:
+ (WebCore::VRPlatformManagerOpenVR::create):
+ (WebCore::VRPlatformManagerOpenVR::getVRDisplays):
+ * platform/win/PasteboardWin.cpp:
+ (WebCore::Pasteboard::createForCopyAndPaste):
+ (WebCore::Pasteboard::createForDragAndDrop):
+ * platform/win/SearchPopupMenuDB.cpp:
+ (WebCore::SearchPopupMenuDB::createPreparedStatement):
+ * platform/win/WCDataObject.cpp:
+ (WebCore::WCDataObject::SetData):
+ * rendering/CSSFilter.cpp:
+ (WebCore::CSSFilter::buildReferenceFilter):
+ * rendering/ComplexLineLayout.cpp:
+ (WebCore::createRun):
+ (WebCore::ComplexLineLayout::createRootInlineBox):
+ (WebCore::ComplexLineLayout::handleTrailingSpaces):
+ (WebCore::ComplexLineLayout::linkToEndLineIfNeeded):
+ * rendering/FloatingObjects.cpp:
+ (WebCore::FloatingObject::create):
+ (WebCore::FloatingObject::copyToNewContainer const):
+ (WebCore::FloatingObject::cloneForNewParent const):
+ (WebCore::FloatingObjects::computePlacedFloatsTree):
+ * rendering/Grid.cpp:
+ (WebCore::GridIterator::nextEmptyGridArea):
+ * rendering/GridBaselineAlignment.cpp:
+ (WebCore::GridBaselineAlignment::updateBaselineAlignmentContext):
+ * rendering/GridTrackSizingAlgorithm.cpp:
+ (WebCore::GridTrackSizingAlgorithm::computeFlexFactorUnitSize const):
+ (WebCore::GridTrackSizingAlgorithm::setup):
+ * rendering/HitTestResult.cpp:
+ (WebCore::HitTestResult::HitTestResult):
+ (WebCore::HitTestResult::operator=):
+ (WebCore::HitTestResult::listBasedTestResult const):
+ (WebCore::HitTestResult::mutableListBasedTestResult):
+ * rendering/InlineIterator.h:
+ (WebCore::addPlaceholderRunForIsolatedInline):
+ * rendering/LayerOverlapMap.cpp:
+ (WebCore::LayerOverlapMap::pushCompositingContainer):
+ * rendering/RenderBlock.cpp:
+ (WebCore::insertIntoTrackedRendererMaps):
+ (WebCore::PositionedDescendantsMap::addDescendant):
+ (WebCore::RenderBlock::beginUpdateScrollInfoAfterLayoutTransaction):
+ (WebCore::ensureBlockRareData):
+ * rendering/RenderBlockFlow.cpp:
+ (WebCore::RenderBlockFlow::layoutInlineChildren):
+ (WebCore::RenderBlockFlow::layoutLineGridBox):
+ (WebCore::RenderBlockFlow::createFloatingObjects):
+ (WebCore::RenderBlockFlow::ensureLineBoxes):
+ (WebCore::RenderBlockFlow::materializeRareBlockFlowData):
+ * rendering/RenderBox.cpp:
+ (WebCore::controlStatesForRenderer):
+ (WebCore::RenderBox::createInlineBox):
+ * rendering/RenderBoxModelObject.cpp:
+ (WebCore::RenderBoxModelObject::ensureContinuationChainNode):
+ * rendering/RenderCounter.cpp:
+ (WebCore::makeCounterNode):
+ * rendering/RenderFragmentContainer.cpp:
+ (WebCore::RenderFragmentContainer::setRenderBoxFragmentInfo):
+ * rendering/RenderFragmentedFlow.cpp:
+ (WebCore::RenderFragmentedFlow::containingFragmentMap):
+ * rendering/RenderGeometryMap.cpp:
+ (WebCore::RenderGeometryMap::push):
+ (WebCore::RenderGeometryMap::pushView):
+ * rendering/RenderGrid.cpp:
+ (WebCore::RenderGrid::computeEmptyTracksForAutoRepeat const):
+ (WebCore::RenderGrid::createEmptyGridAreaAtSpecifiedPositionsOutsideGrid const):
+ * rendering/RenderImage.cpp:
+ (WebCore::RenderImage::RenderImage):
+ * rendering/RenderInline.cpp:
+ (WebCore::RenderInline::createInlineFlowBox):
+ * rendering/RenderLayer.cpp:
+ (WebCore::RenderLayer::updateNormalFlowList):
+ (WebCore::RenderLayer::collectLayers):
+ (WebCore::RenderLayer::updateTransform):
+ (WebCore::RenderLayer::updateClipRects):
+ (WebCore::RenderLayer::calculateClipRects const):
+ * rendering/RenderLayerBacking.cpp:
+ (WebCore::RenderLayerBacking::updateAncestorClippingStack):
+ (WebCore::RenderLayerBacking::startAnimation):
+ (WebCore::RenderLayerBacking::startTransition):
+ * rendering/RenderLayerCompositor.cpp:
+ (WebCore::RenderLayerCompositor::RenderLayerCompositor):
+ (WebCore::RenderLayerCompositor::notifyFlushBeforeDisplayRefresh):
+ (WebCore::LegacyWebKitScrollingLayerCoordinator::registerAllViewportConstrainedLayers):
+ * rendering/RenderLayerModelObject.cpp:
+ (WebCore::RenderLayerModelObject::createLayer):
+ * rendering/RenderLineBreak.cpp:
+ (WebCore::RenderLineBreak::createInlineBox):
+ * rendering/RenderMultiColumnFlow.cpp:
+ (WebCore::RenderMultiColumnFlow::RenderMultiColumnFlow):
+ * rendering/RenderObject.cpp:
+ (WebCore::RenderObject::ensureRareData):
+ * rendering/RenderSnapshottedPlugIn.cpp:
+ (WebCore::RenderSnapshottedPlugIn::RenderSnapshottedPlugIn):
+ * rendering/RenderTable.cpp:
+ (WebCore::RenderTable::styleDidChange):
+ * rendering/RenderText.cpp:
+ (WebCore::RenderText::createTextBox):
+ (WebCore::RenderText::momentarilyRevealLastTypedCharacter):
+ * rendering/RenderView.cpp:
+ (WebCore::RenderView::repaintViewRectangle const):
+ (WebCore::RenderView::compositor):
+ (WebCore::RenderView::imageQualityController):
+ (WebCore::RenderView::RepaintRegionAccumulator::RepaintRegionAccumulator):
+ * rendering/RootInlineBox.cpp:
+ (WebCore::RootInlineBox::placeEllipsis):
+ * rendering/RootInlineBox.h:
+ (WebCore::RootInlineBox::appendFloat):
+ * rendering/SelectionRangeData.cpp:
+ (WebCore::collect):
+ (WebCore::SelectionRangeData::collectBounds const):
+ (WebCore::SelectionRangeData::apply):
+ * rendering/SimpleLineLayout.cpp:
+ (WebCore::SimpleLineLayout::Layout::runResolver const):
+ * rendering/SimpleLineLayoutFunctions.cpp:
+ (WebCore::SimpleLineLayout::paintFlow):
+ (WebCore::SimpleLineLayout::generateLineBoxTree):
+ * rendering/TextAutoSizing.cpp:
+ (WebCore::TextAutoSizing::addTextNode):
+ * rendering/line/LineBreaker.cpp:
+ (WebCore::LineBreaker::skipLeadingWhitespace):
+ * rendering/shapes/RasterShape.cpp:
+ (WebCore::RasterShapeIntervals::computeShapeMarginIntervals const):
+ * rendering/shapes/Shape.cpp:
+ (WebCore::createInsetShape):
+ (WebCore::createCircleShape):
+ (WebCore::createEllipseShape):
+ (WebCore::createPolygonShape):
+ (WebCore::Shape::createShape):
+ (WebCore::Shape::createRasterShape):
+ (WebCore::Shape::createBoxShape):
+ * rendering/shapes/ShapeOutsideInfo.h:
+ * rendering/style/BasicShapes.cpp:
+ (WebCore::BasicShapePath::blend const):
+ * rendering/style/ContentData.h:
+ * rendering/style/FillLayer.cpp:
+ (WebCore::FillLayer::FillLayer):
+ (WebCore::FillLayer::operator=):
+ * rendering/style/RenderStyle.cpp:
+ (WebCore::RenderStyle::clonePtr):
+ (WebCore::RenderStyle::addCachedPseudoStyle):
+ (WebCore::RenderStyle::addCustomPaintWatchProperty):
+ (WebCore::RenderStyle::setContent):
+ (WebCore::RenderStyle::accessCounterDirectives):
+ (WebCore::RenderStyle::ensureAnimations):
+ (WebCore::RenderStyle::ensureTransitions):
+ * rendering/style/SVGRenderStyleDefs.cpp:
+ (WebCore::StyleShadowSVGData::StyleShadowSVGData):
+ * rendering/style/ShadowData.cpp:
+ (WebCore::ShadowData::ShadowData):
+ * rendering/style/StyleRareInheritedData.cpp:
+ (WebCore::StyleRareInheritedData::StyleRareInheritedData):
+ * rendering/style/StyleRareNonInheritedData.cpp:
+ (WebCore::StyleRareNonInheritedData::StyleRareNonInheritedData):
+ * rendering/svg/RenderSVGImage.cpp:
+ (WebCore::RenderSVGImage::RenderSVGImage):
+ * rendering/svg/RenderSVGInline.cpp:
+ (WebCore::RenderSVGInline::createInlineFlowBox):
+ * rendering/svg/RenderSVGInlineText.cpp:
+ (WebCore::RenderSVGInlineText::createTextBox):
+ * rendering/svg/RenderSVGResourceFilter.cpp:
+ (WebCore::RenderSVGResourceFilter::buildPrimitives const):
+ (WebCore::RenderSVGResourceFilter::applyResource):
+ * rendering/svg/RenderSVGResourceGradient.cpp:
+ (WebCore::RenderSVGResourceGradient::applyResource):
+ * rendering/svg/RenderSVGResourceMasker.cpp:
+ (WebCore::RenderSVGResourceMasker::applyResource):
+ * rendering/svg/RenderSVGResourcePattern.cpp:
+ (WebCore::RenderSVGResourcePattern::buildPattern):
+ * rendering/svg/RenderSVGShape.cpp:
+ (WebCore::RenderSVGShape::updateShapeFromElement):
+ * rendering/svg/SVGResources.cpp:
+ (WebCore::SVGResources::setClipper):
+ (WebCore::SVGResources::setFilter):
+ (WebCore::SVGResources::setMarkerStart):
+ (WebCore::SVGResources::setMarkerMid):
+ (WebCore::SVGResources::setMarkerEnd):
+ (WebCore::SVGResources::setMasker):
+ (WebCore::SVGResources::setFill):
+ (WebCore::SVGResources::setStroke):
+ * rendering/svg/SVGResourcesCache.cpp:
+ (WebCore::SVGResourcesCache::addResourcesFromRenderer):
+ * rendering/svg/SVGTextMetricsBuilder.cpp:
+ (WebCore::SVGTextMetricsBuilder::initializeMeasurementWithTextRenderer):
+ * rendering/updating/RenderTreeBuilder.cpp:
+ (WebCore::RenderTreeBuilder::RenderTreeBuilder):
+ * rendering/updating/RenderTreeUpdater.cpp:
+ (WebCore::RenderTreeUpdater::RenderTreeUpdater):
+ * style/StyleInvalidator.cpp:
+ (WebCore::Style::Invalidator::Invalidator):
+ * style/StyleRelations.cpp:
+ (WebCore::Style::commitRelationsToRenderStyle):
+ * style/StyleScope.cpp:
+ (WebCore::Style::Scope::resolver):
+ (WebCore::Style::Scope::activeStyleSheetsContains const):
+ * style/StyleTreeResolver.cpp:
+ (WebCore::Style::TreeResolver::resolve):
+ * svg/SVGDocumentExtensions.cpp:
+ (WebCore::SVGDocumentExtensions::SVGDocumentExtensions):
+ (WebCore::SVGDocumentExtensions::addPendingResource):
+ (WebCore::SVGDocumentExtensions::addElementReferencingTarget):
+ * svg/SVGElement.cpp:
+ (WebCore::SVGElement::SVGElement):
+ (WebCore::SVGElement::ensureSVGRareData):
+ * svg/SVGGraphicsElement.cpp:
+ (WebCore::SVGGraphicsElement::supplementalTransform):
+ * svg/SVGPathByteStream.h:
+ (WebCore::SVGPathByteStream::copy const):
+ * svg/animation/SMILTimeContainer.cpp:
+ (WebCore::SMILTimeContainer::schedule):
+ * svg/graphics/SVGImage.cpp:
+ (WebCore::SVGImage::dataChanged):
+ * svg/properties/SVGAnimatedDecoratedProperty.h:
+ (WebCore::SVGAnimatedDecoratedProperty::create):
+ * svg/properties/SVGAnimatedPropertyAnimatorImpl.h:
+ * svg/properties/SVGAnimatedPropertyPairAnimatorImpl.h:
+ * svg/properties/SVGDecoratedEnumeration.h:
+ (WebCore::SVGDecoratedEnumeration::create):
+ * svg/properties/SVGPrimitivePropertyAnimator.h:
+ (WebCore::SVGPrimitivePropertyAnimator::create):
+ * svg/properties/SVGValuePropertyAnimatorImpl.h:
+ * svg/properties/SVGValuePropertyListAnimatorImpl.h:
+ * testing/InternalSettings.cpp:
+ (WebCore::InternalSettings::from):
+ * testing/Internals.cpp:
+ (WebCore::InspectorStubFrontend::InspectorStubFrontend):
+ (WebCore::Internals::Internals):
+ (WebCore::Internals::enableMockSpeechSynthesizer):
+ (WebCore::Internals::openDummyInspectorFrontend):
+ (WebCore::Internals::setPrinting):
+ (WebCore::Internals::initializeMockCDM):
+ (WebCore::Internals::queueMicroTask):
+ * testing/LegacyMockCDM.cpp:
+ (WebCore::LegacyMockCDM::createSession):
+ * testing/MockCDMFactory.cpp:
+ (WebCore::MockCDMFactory::createCDM):
+ * testing/MockContentFilter.cpp:
+ (WebCore::MockContentFilter::create):
+ * testing/MockGamepadProvider.cpp:
+ (WebCore::MockGamepadProvider::setMockGamepadDetails):
+ * workers/WorkerConsoleClient.cpp:
+ (WebCore::WorkerConsoleClient::messageWithTypeAndLevel):
+ * workers/WorkerEventQueue.cpp:
+ (WebCore::WorkerEventQueue::enqueueEvent):
+ * workers/WorkerGlobalScope.cpp:
+ (WebCore::WorkerGlobalScope::WorkerGlobalScope):
+ (WebCore::WorkerGlobalScope::addMessage):
+ * workers/WorkerMessagingProxy.cpp:
+ (WebCore::WorkerMessagingProxy::WorkerMessagingProxy):
+ (WebCore::WorkerMessagingProxy::postMessageToWorkerGlobalScope):
+ * workers/WorkerRunLoop.cpp:
+ (WebCore::WorkerRunLoop::WorkerRunLoop):
+ (WebCore::WorkerRunLoop::postTaskAndTerminate):
+ (WebCore::WorkerRunLoop::postTaskForMode):
+ * workers/WorkerScriptLoader.cpp:
+ (WebCore::WorkerScriptLoader::loadAsynchronously):
+ (WebCore::WorkerScriptLoader::createResourceRequest):
+ * workers/WorkerThread.cpp:
+ (WebCore::WorkerThread::WorkerThread):
+ * workers/service/ServiceWorkerContainer.cpp:
+ (WebCore::ServiceWorkerContainer::ready):
+ (WebCore::ServiceWorkerContainer::addRegistration):
+ (WebCore::ServiceWorkerContainer::removeRegistration):
+ (WebCore::ServiceWorkerContainer::updateRegistration):
+ (WebCore::ServiceWorkerContainer::getRegistration):
+ (WebCore::ServiceWorkerContainer::getRegistrations):
+ * workers/service/context/SWContextManager.cpp:
+ (WebCore::SWContextManager::terminateWorker):
+ * workers/service/context/ServiceWorkerThreadProxy.cpp:
+ (WebCore::ServiceWorkerThreadProxy::ServiceWorkerThreadProxy):
+ (WebCore::ServiceWorkerThreadProxy::createBlobLoader):
+ * workers/service/server/RegistrationDatabase.cpp:
+ (WebCore::RegistrationDatabase::openSQLiteDatabase):
+ * workers/service/server/SWServer.cpp:
+ (WebCore::SWServer::addRegistrationFromStore):
+ (WebCore::SWServer::SWServer):
+ (WebCore::SWServer::scheduleJob):
+ (WebCore::SWServer::unregisterServiceWorkerClient):
+ * workers/service/server/SWServerJobQueue.cpp:
+ (WebCore::SWServerJobQueue::runRegisterJob):
+ * worklets/PaintWorkletGlobalScope.cpp:
+ (WebCore::PaintWorkletGlobalScope::registerPaint):
+ * worklets/WorkletConsoleClient.cpp:
+ (WebCore::WorkletConsoleClient::messageWithTypeAndLevel):
+ * worklets/WorkletGlobalScope.cpp:
+ (WebCore::WorkletGlobalScope::WorkletGlobalScope):
+ (WebCore::WorkletGlobalScope::addConsoleMessage):
+ * worklets/WorkletScriptController.cpp:
+ (WebCore::WorkletScriptController::initScriptWithSubclass):
+ * xml/XMLHttpRequest.cpp:
+ (WebCore::XMLHttpRequest::upload):
+ * xml/XPathFunctions.cpp:
+ * xml/XPathPredicate.cpp:
+ (WebCore::XPath::evaluatePredicate):
+ * xml/XSLStyleSheetLibxslt.cpp:
+ (WebCore::XSLStyleSheet::loadChildSheet):
+ * xml/parser/XMLDocumentParser.cpp:
+ (WebCore::XMLDocumentParser::handleError):
+ * xml/parser/XMLDocumentParserLibxml2.cpp:
+ (WebCore::PendingCallbacks::appendStartElementNSCallback):
+ (WebCore::PendingCallbacks::appendEndElementNSCallback):
+ (WebCore::PendingCallbacks::appendCharactersCallback):
+ (WebCore::PendingCallbacks::appendProcessingInstructionCallback):
+ (WebCore::PendingCallbacks::appendCDATABlockCallback):
+ (WebCore::PendingCallbacks::appendCommentCallback):
+ (WebCore::PendingCallbacks::appendInternalSubsetCallback):
+ (WebCore::PendingCallbacks::appendErrorCallback):
+ (WebCore::XMLDocumentParser::XMLDocumentParser):
+ (WebCore::XMLDocumentParser::doEnd):
+
2019-08-18 Zalan Bujtas <zalan@apple.com>
[LFC][TFC] Compute column min/max widths and table width.
diff --git a/Source/WebCore/Modules/applicationmanifest/ApplicationManifestParser.cpp b/Source/WebCore/Modules/applicationmanifest/ApplicationManifestParser.cpp
index fdb8ce2..8dc76fa 100644
--- a/Source/WebCore/Modules/applicationmanifest/ApplicationManifestParser.cpp
+++ b/Source/WebCore/Modules/applicationmanifest/ApplicationManifestParser.cpp
@@ -91,7 +91,7 @@
void ApplicationManifestParser::logDeveloperWarning(const String& message)
{
if (m_consoleContext)
- m_consoleContext->addConsoleMessage(std::make_unique<Inspector::ConsoleMessage>(JSC::MessageSource::Other, JSC::MessageType::Log, JSC::MessageLevel::Warning, makeString("Parsing application manifest "_s, m_manifestURL.string(), ": "_s, message)));
+ m_consoleContext->addConsoleMessage(makeUnique<Inspector::ConsoleMessage>(JSC::MessageSource::Other, JSC::MessageType::Log, JSC::MessageLevel::Warning, makeString("Parsing application manifest "_s, m_manifestURL.string(), ": "_s, message)));
}
URL ApplicationManifestParser::parseStartURL(const JSON::Object& manifest, const URL& documentURL)
diff --git a/Source/WebCore/Modules/beacon/NavigatorBeacon.cpp b/Source/WebCore/Modules/beacon/NavigatorBeacon.cpp
index 9bfa5f9..7e4f794 100644
--- a/Source/WebCore/Modules/beacon/NavigatorBeacon.cpp
+++ b/Source/WebCore/Modules/beacon/NavigatorBeacon.cpp
@@ -52,7 +52,7 @@
{
auto* supplement = static_cast<NavigatorBeacon*>(Supplement<Navigator>::from(&navigator, supplementName()));
if (!supplement) {
- auto newSupplement = std::make_unique<NavigatorBeacon>(navigator);
+ auto newSupplement = makeUnique<NavigatorBeacon>(navigator);
supplement = newSupplement.get();
provideTo(&navigator, supplementName(), WTFMove(newSupplement));
}
diff --git a/Source/WebCore/Modules/cache/DOMWindowCaches.cpp b/Source/WebCore/Modules/cache/DOMWindowCaches.cpp
index 5ed1f5c..6153943 100644
--- a/Source/WebCore/Modules/cache/DOMWindowCaches.cpp
+++ b/Source/WebCore/Modules/cache/DOMWindowCaches.cpp
@@ -49,7 +49,7 @@
{
auto* supplement = static_cast<DOMWindowCaches*>(Supplement<DOMWindow>::from(window, supplementName()));
if (!supplement) {
- auto newSupplement = std::make_unique<DOMWindowCaches>(window);
+ auto newSupplement = makeUnique<DOMWindowCaches>(window);
supplement = newSupplement.get();
provideTo(window, supplementName(), WTFMove(newSupplement));
}
diff --git a/Source/WebCore/Modules/cache/WorkerGlobalScopeCaches.cpp b/Source/WebCore/Modules/cache/WorkerGlobalScopeCaches.cpp
index 0656bef..5118a48 100644
--- a/Source/WebCore/Modules/cache/WorkerGlobalScopeCaches.cpp
+++ b/Source/WebCore/Modules/cache/WorkerGlobalScopeCaches.cpp
@@ -40,7 +40,7 @@
{
auto* supplement = static_cast<WorkerGlobalScopeCaches*>(Supplement<WorkerGlobalScope>::from(&scope, supplementName()));
if (!supplement) {
- auto newSupplement = std::make_unique<WorkerGlobalScopeCaches>(scope);
+ auto newSupplement = makeUnique<WorkerGlobalScopeCaches>(scope);
supplement = newSupplement.get();
provideTo(&scope, supplementName(), WTFMove(newSupplement));
}
diff --git a/Source/WebCore/Modules/credentialmanagement/NavigatorCredentials.cpp b/Source/WebCore/Modules/credentialmanagement/NavigatorCredentials.cpp
index 71f438c..1181bd9 100644
--- a/Source/WebCore/Modules/credentialmanagement/NavigatorCredentials.cpp
+++ b/Source/WebCore/Modules/credentialmanagement/NavigatorCredentials.cpp
@@ -63,7 +63,7 @@
{
NavigatorCredentials* supplement = static_cast<NavigatorCredentials*>(Supplement<Navigator>::from(navigator, supplementName()));
if (!supplement) {
- auto newSupplement = std::make_unique<NavigatorCredentials>();
+ auto newSupplement = makeUnique<NavigatorCredentials>();
supplement = newSupplement.get();
provideTo(navigator, supplementName(), WTFMove(newSupplement));
}
diff --git a/Source/WebCore/Modules/encryptedmedia/InitDataRegistry.cpp b/Source/WebCore/Modules/encryptedmedia/InitDataRegistry.cpp
index b6fd68d..75edb6a 100644
--- a/Source/WebCore/Modules/encryptedmedia/InitDataRegistry.cpp
+++ b/Source/WebCore/Modules/encryptedmedia/InitDataRegistry.cpp
@@ -133,7 +133,7 @@
auto systemID = ISOProtectionSystemSpecificHeaderBox::peekSystemID(view, offset);
#if HAVE(FAIRPLAYSTREAMING_CENC_INITDATA)
if (systemID == ISOFairPlayStreamingPsshBox::fairPlaySystemID()) {
- auto fpsPssh = std::make_unique<ISOFairPlayStreamingPsshBox>();
+ auto fpsPssh = makeUnique<ISOFairPlayStreamingPsshBox>();
if (!fpsPssh->read(view, offset))
return WTF::nullopt;
psshBoxes.append(WTFMove(fpsPssh));
@@ -142,7 +142,7 @@
#else
UNUSED_PARAM(systemID);
#endif
- auto psshBox = std::make_unique<ISOProtectionSystemSpecificHeaderBox>();
+ auto psshBox = makeUnique<ISOProtectionSystemSpecificHeaderBox>();
if (!psshBox->read(view, offset))
return WTF::nullopt;
diff --git a/Source/WebCore/Modules/encryptedmedia/legacy/LegacyCDM.cpp b/Source/WebCore/Modules/encryptedmedia/legacy/LegacyCDM.cpp
index 8262893..837df12 100644
--- a/Source/WebCore/Modules/encryptedmedia/legacy/LegacyCDM.cpp
+++ b/Source/WebCore/Modules/encryptedmedia/legacy/LegacyCDM.cpp
@@ -61,15 +61,15 @@
static Vector<CDMFactory*>& installedCDMFactories()
{
static auto cdms = makeNeverDestroyed(Vector<CDMFactory*> {
- new CDMFactory([](LegacyCDM* cdm) { return std::make_unique<LegacyCDMPrivateClearKey>(cdm); },
+ new CDMFactory([](LegacyCDM* cdm) { return makeUnique<LegacyCDMPrivateClearKey>(cdm); },
LegacyCDMPrivateClearKey::supportsKeySystem, LegacyCDMPrivateClearKey::supportsKeySystemAndMimeType),
// FIXME: initialize specific UA CDMs. http://webkit.org/b/109318, http://webkit.org/b/109320
- new CDMFactory([](LegacyCDM* cdm) { return std::make_unique<CDMPrivateMediaPlayer>(cdm); },
+ new CDMFactory([](LegacyCDM* cdm) { return makeUnique<CDMPrivateMediaPlayer>(cdm); },
CDMPrivateMediaPlayer::supportsKeySystem, CDMPrivateMediaPlayer::supportsKeySystemAndMimeType),
#if (HAVE(AVCONTENTKEYSESSION) || HAVE(AVSTREAMSESSION)) && ENABLE(MEDIA_SOURCE)
- new CDMFactory([](LegacyCDM* cdm) { return std::make_unique<CDMPrivateMediaSourceAVFObjC>(cdm); },
+ new CDMFactory([](LegacyCDM* cdm) { return makeUnique<CDMPrivateMediaSourceAVFObjC>(cdm); },
CDMPrivateMediaSourceAVFObjC::supportsKeySystem, CDMPrivateMediaSourceAVFObjC::supportsKeySystemAndMimeType),
#endif
});
@@ -107,7 +107,7 @@
if (!supportsKeySystem(keySystem))
return nullptr;
- return std::make_unique<LegacyCDM>(keySystem);
+ return makeUnique<LegacyCDM>(keySystem);
}
LegacyCDM::LegacyCDM(const String& keySystem)
diff --git a/Source/WebCore/Modules/encryptedmedia/legacy/LegacyCDMPrivateClearKey.cpp b/Source/WebCore/Modules/encryptedmedia/legacy/LegacyCDMPrivateClearKey.cpp
index c9316df..3a8c00f 100644
--- a/Source/WebCore/Modules/encryptedmedia/legacy/LegacyCDMPrivateClearKey.cpp
+++ b/Source/WebCore/Modules/encryptedmedia/legacy/LegacyCDMPrivateClearKey.cpp
@@ -60,7 +60,7 @@
std::unique_ptr<LegacyCDMSession> LegacyCDMPrivateClearKey::createSession(LegacyCDMSessionClient* client)
{
- return std::make_unique<CDMSessionClearKey>(client);
+ return makeUnique<CDMSessionClearKey>(client);
}
}
diff --git a/Source/WebCore/Modules/fetch/FetchBodyOwner.cpp b/Source/WebCore/Modules/fetch/FetchBodyOwner.cpp
index addc5489..db6390e 100644
--- a/Source/WebCore/Modules/fetch/FetchBodyOwner.cpp
+++ b/Source/WebCore/Modules/fetch/FetchBodyOwner.cpp
@@ -244,7 +244,7 @@
}
m_blobLoader.emplace(*this);
- m_blobLoader->loader = std::make_unique<FetchLoader>(*m_blobLoader, consumer);
+ m_blobLoader->loader = makeUnique<FetchLoader>(*m_blobLoader, consumer);
m_blobLoader->loader->start(*scriptExecutionContext(), blob);
if (!m_blobLoader->loader->isStarted()) {
diff --git a/Source/WebCore/Modules/fetch/FetchResponse.cpp b/Source/WebCore/Modules/fetch/FetchResponse.cpp
index cd345eb..94013cf 100644
--- a/Source/WebCore/Modules/fetch/FetchResponse.cpp
+++ b/Source/WebCore/Modules/fetch/FetchResponse.cpp
@@ -243,7 +243,7 @@
response->addAbortSteps(request.signal());
- response->m_bodyLoader = std::make_unique<BodyLoader>(response.get(), WTFMove(responseCallback));
+ response->m_bodyLoader = makeUnique<BodyLoader>(response.get(), WTFMove(responseCallback));
if (!response->m_bodyLoader->start(context, request))
response->m_bodyLoader = nullptr;
}
@@ -382,7 +382,7 @@
bool FetchResponse::BodyLoader::start(ScriptExecutionContext& context, const FetchRequest& request)
{
- m_loader = std::make_unique<FetchLoader>(*this, &m_response.m_body->consumer());
+ m_loader = makeUnique<FetchLoader>(*this, &m_response.m_body->consumer());
m_loader->start(context, request);
return m_loader->isStarted();
}
diff --git a/Source/WebCore/Modules/gamepad/NavigatorGamepad.cpp b/Source/WebCore/Modules/gamepad/NavigatorGamepad.cpp
index 6102089..850d22d 100644
--- a/Source/WebCore/Modules/gamepad/NavigatorGamepad.cpp
+++ b/Source/WebCore/Modules/gamepad/NavigatorGamepad.cpp
@@ -55,7 +55,7 @@
{
NavigatorGamepad* supplement = static_cast<NavigatorGamepad*>(Supplement<Navigator>::from(navigator, supplementName()));
if (!supplement) {
- auto newSupplement = std::make_unique<NavigatorGamepad>();
+ auto newSupplement = makeUnique<NavigatorGamepad>();
supplement = newSupplement.get();
provideTo(navigator, supplementName(), WTFMove(newSupplement));
}
diff --git a/Source/WebCore/Modules/geolocation/GeolocationController.cpp b/Source/WebCore/Modules/geolocation/GeolocationController.cpp
index b09fc34..cd8070b 100644
--- a/Source/WebCore/Modules/geolocation/GeolocationController.cpp
+++ b/Source/WebCore/Modules/geolocation/GeolocationController.cpp
@@ -155,7 +155,7 @@
void provideGeolocationTo(Page* page, GeolocationClient& client)
{
ASSERT(page);
- Supplement<Page>::provideTo(page, GeolocationController::supplementName(), std::make_unique<GeolocationController>(*page, client));
+ Supplement<Page>::provideTo(page, GeolocationController::supplementName(), makeUnique<GeolocationController>(*page, client));
}
} // namespace WebCore
diff --git a/Source/WebCore/Modules/geolocation/NavigatorGeolocation.cpp b/Source/WebCore/Modules/geolocation/NavigatorGeolocation.cpp
index b34f49a..35dfbf8 100644
--- a/Source/WebCore/Modules/geolocation/NavigatorGeolocation.cpp
+++ b/Source/WebCore/Modules/geolocation/NavigatorGeolocation.cpp
@@ -50,7 +50,7 @@
{
NavigatorGeolocation* supplement = static_cast<NavigatorGeolocation*>(Supplement<Navigator>::from(&navigator, supplementName()));
if (!supplement) {
- auto newSupplement = std::make_unique<NavigatorGeolocation>(navigator);
+ auto newSupplement = makeUnique<NavigatorGeolocation>(navigator);
supplement = newSupplement.get();
provideTo(&navigator, supplementName(), WTFMove(newSupplement));
}
diff --git a/Source/WebCore/Modules/indexeddb/DOMWindowIndexedDatabase.cpp b/Source/WebCore/Modules/indexeddb/DOMWindowIndexedDatabase.cpp
index c7203a9..5e9d979 100644
--- a/Source/WebCore/Modules/indexeddb/DOMWindowIndexedDatabase.cpp
+++ b/Source/WebCore/Modules/indexeddb/DOMWindowIndexedDatabase.cpp
@@ -52,7 +52,7 @@
{
DOMWindowIndexedDatabase* supplement = static_cast<DOMWindowIndexedDatabase*>(Supplement<DOMWindow>::from(window, supplementName()));
if (!supplement) {
- auto newSupplement = std::make_unique<DOMWindowIndexedDatabase>(window);
+ auto newSupplement = makeUnique<DOMWindowIndexedDatabase>(window);
supplement = newSupplement.get();
provideTo(window, supplementName(), WTFMove(newSupplement));
}
diff --git a/Source/WebCore/Modules/indexeddb/IDBObjectStore.cpp b/Source/WebCore/Modules/indexeddb/IDBObjectStore.cpp
index f43090c..9a78127 100644
--- a/Source/WebCore/Modules/indexeddb/IDBObjectStore.cpp
+++ b/Source/WebCore/Modules/indexeddb/IDBObjectStore.cpp
@@ -517,7 +517,7 @@
if (!info)
return Exception { NotFoundError, "Failed to execute 'index' on 'IDBObjectStore': The specified index was not found."_s };
- auto index = std::make_unique<IDBIndex>(*scriptExecutionContext(), *info, *this);
+ auto index = makeUnique<IDBIndex>(*scriptExecutionContext(), *info, *this);
Ref<IDBIndex> referencedIndex { *index };
diff --git a/Source/WebCore/Modules/indexeddb/IDBTransaction.cpp b/Source/WebCore/Modules/indexeddb/IDBTransaction.cpp
index fa2cd7e..42243fb 100644
--- a/Source/WebCore/Modules/indexeddb/IDBTransaction.cpp
+++ b/Source/WebCore/Modules/indexeddb/IDBTransaction.cpp
@@ -179,7 +179,7 @@
if (!info || (!found && !isVersionChange()))
return Exception { NotFoundError, "Failed to execute 'objectStore' on 'IDBTransaction': The specified object store was not found."_s };
- auto objectStore = std::make_unique<IDBObjectStore>(*scriptExecutionContext(), *info, *this);
+ auto objectStore = makeUnique<IDBObjectStore>(*scriptExecutionContext(), *info, *this);
auto* rawObjectStore = objectStore.get();
m_referencedObjectStores.set(objectStoreName, WTFMove(objectStore));
@@ -667,7 +667,7 @@
Locker<Lock> locker(m_referencedObjectStoreLock);
- auto objectStore = std::make_unique<IDBObjectStore>(*scriptExecutionContext(), info, *this);
+ auto objectStore = makeUnique<IDBObjectStore>(*scriptExecutionContext(), info, *this);
auto* rawObjectStore = objectStore.get();
m_referencedObjectStores.set(info.name(), WTFMove(objectStore));
@@ -755,7 +755,7 @@
protectedThis->createIndexOnServer(operation, info);
}));
- return std::make_unique<IDBIndex>(*scriptExecutionContext(), info, objectStore);
+ return makeUnique<IDBIndex>(*scriptExecutionContext(), info, objectStore);
}
void IDBTransaction::createIndexOnServer(IDBClient::TransactionOperation& operation, const IDBIndexInfo& info)
diff --git a/Source/WebCore/Modules/indexeddb/WorkerGlobalScopeIndexedDatabase.cpp b/Source/WebCore/Modules/indexeddb/WorkerGlobalScopeIndexedDatabase.cpp
index a48503b..9b75774 100644
--- a/Source/WebCore/Modules/indexeddb/WorkerGlobalScopeIndexedDatabase.cpp
+++ b/Source/WebCore/Modules/indexeddb/WorkerGlobalScopeIndexedDatabase.cpp
@@ -59,7 +59,7 @@
if (!connectionProxy)
return nullptr;
- auto newSupplement = std::make_unique<WorkerGlobalScopeIndexedDatabase>(scope, *connectionProxy);
+ auto newSupplement = makeUnique<WorkerGlobalScopeIndexedDatabase>(scope, *connectionProxy);
supplement = newSupplement.get();
provideTo(&scope, supplementName(), WTFMove(newSupplement));
}
diff --git a/Source/WebCore/Modules/indexeddb/client/IDBConnectionToServer.cpp b/Source/WebCore/Modules/indexeddb/client/IDBConnectionToServer.cpp
index 948cf74..37711dc 100644
--- a/Source/WebCore/Modules/indexeddb/client/IDBConnectionToServer.cpp
+++ b/Source/WebCore/Modules/indexeddb/client/IDBConnectionToServer.cpp
@@ -50,7 +50,7 @@
IDBConnectionToServer::IDBConnectionToServer(IDBConnectionToServerDelegate& delegate)
: m_delegate(makeWeakPtr(delegate))
- , m_proxy(std::make_unique<IDBConnectionProxy>(*this))
+ , m_proxy(makeUnique<IDBConnectionProxy>(*this))
{
}
diff --git a/Source/WebCore/Modules/indexeddb/client/TransactionOperation.cpp b/Source/WebCore/Modules/indexeddb/client/TransactionOperation.cpp
index 2753fd0..8e1de06 100644
--- a/Source/WebCore/Modules/indexeddb/client/TransactionOperation.cpp
+++ b/Source/WebCore/Modules/indexeddb/client/TransactionOperation.cpp
@@ -42,7 +42,7 @@
if (m_indexIdentifier)
m_indexRecordType = request.requestedIndexRecordType();
if (auto* cursor = request.pendingCursor())
- m_cursorIdentifier = std::make_unique<IDBResourceIdentifier>(cursor->info().identifier());
+ m_cursorIdentifier = makeUnique<IDBResourceIdentifier>(cursor->info().identifier());
m_idbRequest = &request;
}
diff --git a/Source/WebCore/Modules/indexeddb/server/IDBServer.cpp b/Source/WebCore/Modules/indexeddb/server/IDBServer.cpp
index 55b4124..4fe6c4a 100644
--- a/Source/WebCore/Modules/indexeddb/server/IDBServer.cpp
+++ b/Source/WebCore/Modules/indexeddb/server/IDBServer.cpp
@@ -123,7 +123,7 @@
auto uniqueIDBDatabase = m_uniqueIDBDatabaseMap.add(identifier, nullptr);
if (uniqueIDBDatabase.isNewEntry)
- uniqueIDBDatabase.iterator->value = std::make_unique<UniqueIDBDatabase>(*this, identifier);
+ uniqueIDBDatabase.iterator->value = makeUnique<UniqueIDBDatabase>(*this, identifier);
return *uniqueIDBDatabase.iterator->value;
}
@@ -135,7 +135,7 @@
if (m_databaseDirectoryPath.isEmpty())
return MemoryIDBBackingStore::create(m_sessionID, identifier);
- return std::make_unique<SQLiteIDBBackingStore>(m_sessionID, identifier, m_databaseDirectoryPath, m_backingStoreTemporaryFileHandler, m_perOriginQuota);
+ return makeUnique<SQLiteIDBBackingStore>(m_sessionID, identifier, m_databaseDirectoryPath, m_backingStoreTemporaryFileHandler, m_perOriginQuota);
}
void IDBServer::openDatabase(const IDBRequestData& requestData)
@@ -761,7 +761,7 @@
IDBServer::QuotaUser& IDBServer::ensureQuotaUser(const ClientOrigin& origin)
{
return *m_quotaUsers.ensure(origin, [this, &origin] {
- return std::make_unique<QuotaUser>(*this, m_quotaManagerGetter(m_sessionID, origin), ClientOrigin { origin });
+ return makeUnique<QuotaUser>(*this, m_quotaManagerGetter(m_sessionID, origin), ClientOrigin { origin });
}).iterator->value;
}
diff --git a/Source/WebCore/Modules/indexeddb/server/IndexValueStore.cpp b/Source/WebCore/Modules/indexeddb/server/IndexValueStore.cpp
index 6983c9d..8d921d8 100644
--- a/Source/WebCore/Modules/indexeddb/server/IndexValueStore.cpp
+++ b/Source/WebCore/Modules/indexeddb/server/IndexValueStore.cpp
@@ -92,7 +92,7 @@
return IDBError(ConstraintError);
if (result.isNewEntry)
- result.iterator->value = std::make_unique<IndexValueEntry>(m_unique);
+ result.iterator->value = makeUnique<IndexValueEntry>(m_unique);
result.iterator->value->addKey(valueKey);
m_orderedKeys.insert(indexKey);
diff --git a/Source/WebCore/Modules/indexeddb/server/MemoryBackingStoreTransaction.cpp b/Source/WebCore/Modules/indexeddb/server/MemoryBackingStoreTransaction.cpp
index 47cc42f..5e71449 100644
--- a/Source/WebCore/Modules/indexeddb/server/MemoryBackingStoreTransaction.cpp
+++ b/Source/WebCore/Modules/indexeddb/server/MemoryBackingStoreTransaction.cpp
@@ -41,7 +41,7 @@
std::unique_ptr<MemoryBackingStoreTransaction> MemoryBackingStoreTransaction::create(MemoryIDBBackingStore& backingStore, const IDBTransactionInfo& info)
{
- return std::make_unique<MemoryBackingStoreTransaction>(backingStore, info);
+ return makeUnique<MemoryBackingStoreTransaction>(backingStore, info);
}
MemoryBackingStoreTransaction::MemoryBackingStoreTransaction(MemoryIDBBackingStore& backingStore, const IDBTransactionInfo& info)
@@ -52,7 +52,7 @@
IDBDatabaseInfo info;
auto error = m_backingStore.getOrEstablishDatabaseInfo(info);
if (error.isNull())
- m_originalDatabaseInfo = std::make_unique<IDBDatabaseInfo>(info);
+ m_originalDatabaseInfo = makeUnique<IDBDatabaseInfo>(info);
}
}
@@ -195,7 +195,7 @@
auto originalAddResult = m_originalValues.add(&objectStore, nullptr);
if (originalAddResult.isNewEntry)
- originalAddResult.iterator->value = std::make_unique<KeyValueMap>();
+ originalAddResult.iterator->value = makeUnique<KeyValueMap>();
auto* map = originalAddResult.iterator->value.get();
diff --git a/Source/WebCore/Modules/indexeddb/server/MemoryIDBBackingStore.cpp b/Source/WebCore/Modules/indexeddb/server/MemoryIDBBackingStore.cpp
index ffc35c3..53c50f3 100644
--- a/Source/WebCore/Modules/indexeddb/server/MemoryIDBBackingStore.cpp
+++ b/Source/WebCore/Modules/indexeddb/server/MemoryIDBBackingStore.cpp
@@ -48,7 +48,7 @@
std::unique_ptr<MemoryIDBBackingStore> MemoryIDBBackingStore::create(PAL::SessionID sessionID, const IDBDatabaseIdentifier& identifier)
{
- return std::make_unique<MemoryIDBBackingStore>(sessionID, identifier);
+ return makeUnique<MemoryIDBBackingStore>(sessionID, identifier);
}
MemoryIDBBackingStore::MemoryIDBBackingStore(PAL::SessionID sessionID, const IDBDatabaseIdentifier& identifier)
@@ -62,7 +62,7 @@
IDBError MemoryIDBBackingStore::getOrEstablishDatabaseInfo(IDBDatabaseInfo& info)
{
if (!m_databaseInfo)
- m_databaseInfo = std::make_unique<IDBDatabaseInfo>(m_identifier.databaseName(), 0);
+ m_databaseInfo = makeUnique<IDBDatabaseInfo>(m_identifier.databaseName(), 0);
info = *m_databaseInfo;
return IDBError { };
@@ -73,7 +73,7 @@
// It is not valid to directly set database info on a backing store that hasn't already set its own database info.
ASSERT(m_databaseInfo);
- m_databaseInfo = std::make_unique<IDBDatabaseInfo>(info);
+ m_databaseInfo = makeUnique<IDBDatabaseInfo>(info);
}
IDBError MemoryIDBBackingStore::beginTransaction(const IDBTransactionInfo& info)
diff --git a/Source/WebCore/Modules/indexeddb/server/MemoryIndex.cpp b/Source/WebCore/Modules/indexeddb/server/MemoryIndex.cpp
index 49ddca6..8595dbb 100644
--- a/Source/WebCore/Modules/indexeddb/server/MemoryIndex.cpp
+++ b/Source/WebCore/Modules/indexeddb/server/MemoryIndex.cpp
@@ -194,7 +194,7 @@
LOG(IndexedDB, "MemoryIndex::provisionalPutIndexKey");
if (!m_records) {
- m_records = std::make_unique<IndexValueStore>(m_info.unique());
+ m_records = makeUnique<IndexValueStore>(m_info.unique());
notifyCursorsOfAllRecordsChanged();
}
@@ -259,7 +259,7 @@
if (!result.isNewEntry)
return nullptr;
- result.iterator->value = std::make_unique<MemoryIndexCursor>(*this, info);
+ result.iterator->value = makeUnique<MemoryIndexCursor>(*this, info);
return result.iterator->value.get();
}
diff --git a/Source/WebCore/Modules/indexeddb/server/MemoryObjectStore.cpp b/Source/WebCore/Modules/indexeddb/server/MemoryObjectStore.cpp
index d865b64..7155b59 100644
--- a/Source/WebCore/Modules/indexeddb/server/MemoryObjectStore.cpp
+++ b/Source/WebCore/Modules/indexeddb/server/MemoryObjectStore.cpp
@@ -261,8 +261,8 @@
if (!m_keyValueStore) {
ASSERT(!m_orderedKeys);
- m_keyValueStore = std::make_unique<KeyValueMap>();
- m_orderedKeys = std::make_unique<IDBKeyDataSet>();
+ m_keyValueStore = makeUnique<KeyValueMap>();
+ m_orderedKeys = makeUniqueWithoutFastMallocCheck<IDBKeyDataSet>();
}
auto mapResult = m_keyValueStore->set(keyData, value.data());
@@ -499,7 +499,7 @@
if (!result.isNewEntry)
return nullptr;
- result.iterator->value = std::make_unique<MemoryObjectStoreCursor>(*this, info);
+ result.iterator->value = makeUnique<MemoryObjectStoreCursor>(*this, info);
return result.iterator->value.get();
}
diff --git a/Source/WebCore/Modules/indexeddb/server/SQLiteIDBBackingStore.cpp b/Source/WebCore/Modules/indexeddb/server/SQLiteIDBBackingStore.cpp
index 40b6b67..4d9e3ac 100644
--- a/Source/WebCore/Modules/indexeddb/server/SQLiteIDBBackingStore.cpp
+++ b/Source/WebCore/Modules/indexeddb/server/SQLiteIDBBackingStore.cpp
@@ -596,7 +596,7 @@
}
// This initial database info matches the default values we just put into the metadata database.
- return std::make_unique<IDBDatabaseInfo>(m_identifier.databaseName(), 0);
+ return makeUnique<IDBDatabaseInfo>(m_identifier.databaseName(), 0);
}
std::unique_ptr<IDBDatabaseInfo> SQLiteIDBBackingStore::extractExistingDatabaseInfo()
@@ -631,7 +631,7 @@
}
}
- auto databaseInfo = std::make_unique<IDBDatabaseInfo>(databaseName, databaseVersion);
+ auto databaseInfo = makeUnique<IDBDatabaseInfo>(databaseName, databaseVersion);
{
SQLiteStatement sql(*m_sqliteDB, "SELECT id, name, keyPath, autoInc, maxIndexID FROM ObjectStoreInfo;"_s);
@@ -793,7 +793,7 @@
String dbFilename = fullDatabasePath();
- m_sqliteDB = std::make_unique<SQLiteDatabase>();
+ m_sqliteDB = makeUnique<SQLiteDatabase>();
if (!m_sqliteDB->open(dbFilename)) {
LOG_ERROR("Failed to open SQLite database at path '%s'", dbFilename.utf8().data());
closeSQLiteDB();
@@ -903,11 +903,11 @@
return IDBError { UnknownError, "Attempt to establish transaction identifier that already exists"_s };
}
- addResult.iterator->value = std::make_unique<SQLiteIDBTransaction>(*this, info);
+ addResult.iterator->value = makeUnique<SQLiteIDBTransaction>(*this, info);
auto error = addResult.iterator->value->begin(*m_sqliteDB);
if (error.isNull() && info.mode() == IDBTransactionMode::Versionchange) {
- m_originalDatabaseInfoBeforeVersionChange = std::make_unique<IDBDatabaseInfo>(*m_databaseInfo);
+ m_originalDatabaseInfoBeforeVersionChange = makeUnique<IDBDatabaseInfo>(*m_databaseInfo);
SQLiteStatement sql(*m_sqliteDB, "UPDATE IDBDatabaseInfo SET value = ? where key = 'DatabaseVersion';"_s);
if (sql.prepare() != SQLITE_OK
@@ -2634,7 +2634,7 @@
}
if (m_sqliteDB) {
- m_cachedStatements[static_cast<size_t>(sql)] = std::make_unique<SQLiteStatement>(*m_sqliteDB, statement);
+ m_cachedStatements[static_cast<size_t>(sql)] = makeUnique<SQLiteStatement>(*m_sqliteDB, statement);
if (m_cachedStatements[static_cast<size_t>(sql)]->prepare() != SQLITE_OK)
m_cachedStatements[static_cast<size_t>(sql)] = nullptr;
}
diff --git a/Source/WebCore/Modules/indexeddb/server/SQLiteIDBCursor.cpp b/Source/WebCore/Modules/indexeddb/server/SQLiteIDBCursor.cpp
index f8405a7..c6b3fd9 100644
--- a/Source/WebCore/Modules/indexeddb/server/SQLiteIDBCursor.cpp
+++ b/Source/WebCore/Modules/indexeddb/server/SQLiteIDBCursor.cpp
@@ -46,7 +46,7 @@
std::unique_ptr<SQLiteIDBCursor> SQLiteIDBCursor::maybeCreate(SQLiteIDBTransaction& transaction, const IDBCursorInfo& info)
{
- auto cursor = std::make_unique<SQLiteIDBCursor>(transaction, info);
+ auto cursor = makeUnique<SQLiteIDBCursor>(transaction, info);
if (!cursor->establishStatement())
return nullptr;
@@ -59,7 +59,7 @@
std::unique_ptr<SQLiteIDBCursor> SQLiteIDBCursor::maybeCreateBackingStoreCursor(SQLiteIDBTransaction& transaction, const uint64_t objectStoreID, const uint64_t indexID, const IDBKeyRangeData& range)
{
- auto cursor = std::make_unique<SQLiteIDBCursor>(transaction, objectStoreID, indexID, range);
+ auto cursor = makeUnique<SQLiteIDBCursor>(transaction, objectStoreID, indexID, range);
if (!cursor->establishStatement())
return nullptr;
@@ -199,7 +199,7 @@
ASSERT(!m_currentUpperKey.isNull());
ASSERT(m_transaction->sqliteTransaction());
- m_statement = std::make_unique<SQLiteStatement>(m_transaction->sqliteTransaction()->database(), sql);
+ m_statement = makeUnique<SQLiteStatement>(m_transaction->sqliteTransaction()->database(), sql);
if (m_statement->prepare() != SQLITE_OK) {
LOG_ERROR("Could not create cursor statement (prepare/id) - '%s'", m_transaction->sqliteTransaction()->database().lastErrorMsg());
@@ -464,7 +464,7 @@
}
if (m_cursorType == IndexedDB::CursorType::KeyAndValue)
- record.record.value = std::make_unique<IDBValue>(ThreadSafeDataBuffer::create(WTFMove(keyData)), blobURLs, blobFilePaths);
+ record.record.value = makeUnique<IDBValue>(ThreadSafeDataBuffer::create(WTFMove(keyData)), blobURLs, blobFilePaths);
} else {
if (!deserializeIDBKeyData(keyData.data(), keyData.size(), record.record.primaryKey)) {
LOG_ERROR("Unable to deserialize value data from database while advancing index cursor");
@@ -486,7 +486,7 @@
if (result == SQLITE_ROW) {
objectStoreStatement.getColumnBlobAsVector(0, keyData);
- record.record.value = std::make_unique<IDBValue>(ThreadSafeDataBuffer::create(WTFMove(keyData)));
+ record.record.value = makeUnique<IDBValue>(ThreadSafeDataBuffer::create(WTFMove(keyData)));
} else if (result == SQLITE_DONE) {
// This indicates that the record we're trying to retrieve has been removed from the object store.
// Skip over it.
diff --git a/Source/WebCore/Modules/indexeddb/server/SQLiteIDBTransaction.cpp b/Source/WebCore/Modules/indexeddb/server/SQLiteIDBTransaction.cpp
index a6a3c5f..d212de2 100644
--- a/Source/WebCore/Modules/indexeddb/server/SQLiteIDBTransaction.cpp
+++ b/Source/WebCore/Modules/indexeddb/server/SQLiteIDBTransaction.cpp
@@ -58,7 +58,7 @@
{
ASSERT(!m_sqliteTransaction);
- m_sqliteTransaction = std::make_unique<SQLiteTransaction>(database, m_info.mode() == IDBTransactionMode::Readonly);
+ m_sqliteTransaction = makeUnique<SQLiteTransaction>(database, m_info.mode() == IDBTransactionMode::Readonly);
m_sqliteTransaction->begin();
if (m_sqliteTransaction->inProgress())
diff --git a/Source/WebCore/Modules/indexeddb/server/UniqueIDBDatabase.cpp b/Source/WebCore/Modules/indexeddb/server/UniqueIDBDatabase.cpp
index 4a5194d..9f3af11 100644
--- a/Source/WebCore/Modules/indexeddb/server/UniqueIDBDatabase.cpp
+++ b/Source/WebCore/Modules/indexeddb/server/UniqueIDBDatabase.cpp
@@ -433,7 +433,7 @@
// we won't have a m_mostRecentDeletedDatabaseInfo. In that case, we'll manufacture one using the
// passed in deletedVersion argument.
if (!m_mostRecentDeletedDatabaseInfo)
- m_mostRecentDeletedDatabaseInfo = std::make_unique<IDBDatabaseInfo>(m_identifier.databaseName(), deletedVersion);
+ m_mostRecentDeletedDatabaseInfo = makeUnique<IDBDatabaseInfo>(m_identifier.databaseName(), deletedVersion);
if (m_currentOpenDBRequest) {
m_currentOpenDBRequest->notifyDidDeleteDatabase(*m_mostRecentDeletedDatabaseInfo);
@@ -784,7 +784,7 @@
ASSERT(isMainThread());
LOG(IndexedDB, "(main) UniqueIDBDatabase::didOpenBackingStore");
- m_databaseInfo = std::make_unique<IDBDatabaseInfo>(info);
+ m_databaseInfo = makeUnique<IDBDatabaseInfo>(info);
m_backingStoreOpenError = error;
ASSERT(m_isOpeningBackingStore);
@@ -1731,7 +1731,7 @@
ASSERT(m_versionChangeTransaction == transaction);
ASSERT(!m_versionChangeDatabaseConnection || &m_versionChangeTransaction->databaseConnection() == m_versionChangeDatabaseConnection);
ASSERT(m_versionChangeTransaction->originalDatabaseInfo());
- m_databaseInfo = std::make_unique<IDBDatabaseInfo>(*m_versionChangeTransaction->originalDatabaseInfo());
+ m_databaseInfo = makeUnique<IDBDatabaseInfo>(*m_versionChangeTransaction->originalDatabaseInfo());
}
IDBError result = transaction->state() == UniqueIDBDatabaseTransaction::State::Aborted ? transaction->result() : error;
diff --git a/Source/WebCore/Modules/indexeddb/server/UniqueIDBDatabaseTransaction.cpp b/Source/WebCore/Modules/indexeddb/server/UniqueIDBDatabaseTransaction.cpp
index f17a4e5..8540ca7 100644
--- a/Source/WebCore/Modules/indexeddb/server/UniqueIDBDatabaseTransaction.cpp
+++ b/Source/WebCore/Modules/indexeddb/server/UniqueIDBDatabaseTransaction.cpp
@@ -51,7 +51,7 @@
ASSERT(database);
if (m_transactionInfo.mode() == IDBTransactionMode::Versionchange)
- m_originalDatabaseInfo = std::make_unique<IDBDatabaseInfo>(database->info());
+ m_originalDatabaseInfo = makeUnique<IDBDatabaseInfo>(database->info());
if (auto* server = m_databaseConnection->server())
server->registerTransaction(*this);
diff --git a/Source/WebCore/Modules/indexeddb/shared/IDBRequestData.cpp b/Source/WebCore/Modules/indexeddb/shared/IDBRequestData.cpp
index b10d840..216416a 100644
--- a/Source/WebCore/Modules/indexeddb/shared/IDBRequestData.cpp
+++ b/Source/WebCore/Modules/indexeddb/shared/IDBRequestData.cpp
@@ -40,7 +40,7 @@
IDBRequestData::IDBRequestData(const IDBClient::IDBConnectionProxy& connectionProxy, const IDBOpenDBRequest& request)
: m_serverConnectionIdentifier(connectionProxy.serverConnectionIdentifier())
- , m_requestIdentifier(std::make_unique<IDBResourceIdentifier>(connectionProxy, request))
+ , m_requestIdentifier(makeUnique<IDBResourceIdentifier>(connectionProxy, request))
, m_databaseIdentifier(request.databaseIdentifier())
, m_requestedVersion(request.version())
, m_requestType(request.requestType())
@@ -49,8 +49,8 @@
IDBRequestData::IDBRequestData(IDBClient::TransactionOperation& operation)
: m_serverConnectionIdentifier(operation.transaction().database().connectionProxy().serverConnectionIdentifier())
- , m_requestIdentifier(std::make_unique<IDBResourceIdentifier>(operation.identifier()))
- , m_transactionIdentifier(std::make_unique<IDBResourceIdentifier>(operation.transactionIdentifier()))
+ , m_requestIdentifier(makeUnique<IDBResourceIdentifier>(operation.identifier()))
+ , m_transactionIdentifier(makeUnique<IDBResourceIdentifier>(operation.transactionIdentifier()))
, m_objectStoreIdentifier(operation.objectStoreIdentifier())
, m_indexIdentifier(operation.indexIdentifier())
{
@@ -58,7 +58,7 @@
m_indexRecordType = operation.indexRecordType();
if (operation.cursorIdentifier())
- m_cursorIdentifier = std::make_unique<IDBResourceIdentifier>(*operation.cursorIdentifier());
+ m_cursorIdentifier = makeUnique<IDBResourceIdentifier>(*operation.cursorIdentifier());
}
IDBRequestData::IDBRequestData(const IDBRequestData& other)
@@ -71,11 +71,11 @@
, m_requestType(other.m_requestType)
{
if (other.m_requestIdentifier)
- m_requestIdentifier = std::make_unique<IDBResourceIdentifier>(*other.m_requestIdentifier);
+ m_requestIdentifier = makeUnique<IDBResourceIdentifier>(*other.m_requestIdentifier);
if (other.m_transactionIdentifier)
- m_transactionIdentifier = std::make_unique<IDBResourceIdentifier>(*other.m_transactionIdentifier);
+ m_transactionIdentifier = makeUnique<IDBResourceIdentifier>(*other.m_transactionIdentifier);
if (other.m_cursorIdentifier)
- m_cursorIdentifier = std::make_unique<IDBResourceIdentifier>(*other.m_cursorIdentifier);
+ m_cursorIdentifier = makeUnique<IDBResourceIdentifier>(*other.m_cursorIdentifier);
}
IDBRequestData::IDBRequestData(const IDBRequestData& that, IsolatedCopyTag)
@@ -102,11 +102,11 @@
destination.m_databaseIdentifier = source.m_databaseIdentifier->isolatedCopy();
if (source.m_requestIdentifier)
- destination.m_requestIdentifier = std::make_unique<IDBResourceIdentifier>(*source.m_requestIdentifier);
+ destination.m_requestIdentifier = makeUnique<IDBResourceIdentifier>(*source.m_requestIdentifier);
if (source.m_transactionIdentifier)
- destination.m_transactionIdentifier = std::make_unique<IDBResourceIdentifier>(*source.m_transactionIdentifier);
+ destination.m_transactionIdentifier = makeUnique<IDBResourceIdentifier>(*source.m_transactionIdentifier);
if (source.m_cursorIdentifier)
- destination.m_cursorIdentifier = std::make_unique<IDBResourceIdentifier>(*source.m_cursorIdentifier);
+ destination.m_cursorIdentifier = makeUnique<IDBResourceIdentifier>(*source.m_cursorIdentifier);
}
uint64_t IDBRequestData::serverConnectionIdentifier() const
diff --git a/Source/WebCore/Modules/indexeddb/shared/IDBRequestData.h b/Source/WebCore/Modules/indexeddb/shared/IDBRequestData.h
index 45cffae..408b4e4 100644
--- a/Source/WebCore/Modules/indexeddb/shared/IDBRequestData.h
+++ b/Source/WebCore/Modules/indexeddb/shared/IDBRequestData.h
@@ -156,7 +156,7 @@
if (!decoder.decode(hasObject))
return false;
if (hasObject) {
- std::unique_ptr<IDBResourceIdentifier> object = std::make_unique<IDBResourceIdentifier>();
+ std::unique_ptr<IDBResourceIdentifier> object = makeUnique<IDBResourceIdentifier>();
if (!decoder.decode(*object))
return false;
request.m_requestIdentifier = WTFMove(object);
@@ -165,7 +165,7 @@
if (!decoder.decode(hasObject))
return false;
if (hasObject) {
- std::unique_ptr<IDBResourceIdentifier> object = std::make_unique<IDBResourceIdentifier>();
+ std::unique_ptr<IDBResourceIdentifier> object = makeUnique<IDBResourceIdentifier>();
if (!decoder.decode(*object))
return false;
request.m_transactionIdentifier = WTFMove(object);
@@ -174,7 +174,7 @@
if (!decoder.decode(hasObject))
return false;
if (hasObject) {
- std::unique_ptr<IDBResourceIdentifier> object = std::make_unique<IDBResourceIdentifier>();
+ std::unique_ptr<IDBResourceIdentifier> object = makeUnique<IDBResourceIdentifier>();
if (!decoder.decode(*object))
return false;
request.m_cursorIdentifier = WTFMove(object);
diff --git a/Source/WebCore/Modules/indexeddb/shared/IDBResultData.cpp b/Source/WebCore/Modules/indexeddb/shared/IDBResultData.cpp
index a89454e..4cbd5d9 100644
--- a/Source/WebCore/Modules/indexeddb/shared/IDBResultData.cpp
+++ b/Source/WebCore/Modules/indexeddb/shared/IDBResultData.cpp
@@ -57,15 +57,15 @@
, m_resultInteger(other.m_resultInteger)
{
if (other.m_databaseInfo)
- m_databaseInfo = std::make_unique<IDBDatabaseInfo>(*other.m_databaseInfo);
+ m_databaseInfo = makeUnique<IDBDatabaseInfo>(*other.m_databaseInfo);
if (other.m_transactionInfo)
- m_transactionInfo = std::make_unique<IDBTransactionInfo>(*other.m_transactionInfo);
+ m_transactionInfo = makeUnique<IDBTransactionInfo>(*other.m_transactionInfo);
if (other.m_resultKey)
- m_resultKey = std::make_unique<IDBKeyData>(*other.m_resultKey);
+ m_resultKey = makeUnique<IDBKeyData>(*other.m_resultKey);
if (other.m_getResult)
- m_getResult = std::make_unique<IDBGetResult>(*other.m_getResult);
+ m_getResult = makeUnique<IDBGetResult>(*other.m_getResult);
if (other.m_getAllResult)
- m_getAllResult = std::make_unique<IDBGetAllResult>(*other.m_getAllResult);
+ m_getAllResult = makeUnique<IDBGetAllResult>(*other.m_getAllResult);
}
IDBResultData::IDBResultData(const IDBResultData& that, IsolatedCopyTag)
@@ -87,15 +87,15 @@
destination.m_resultInteger = source.m_resultInteger;
if (source.m_databaseInfo)
- destination.m_databaseInfo = std::make_unique<IDBDatabaseInfo>(*source.m_databaseInfo, IDBDatabaseInfo::IsolatedCopy);
+ destination.m_databaseInfo = makeUnique<IDBDatabaseInfo>(*source.m_databaseInfo, IDBDatabaseInfo::IsolatedCopy);
if (source.m_transactionInfo)
- destination.m_transactionInfo = std::make_unique<IDBTransactionInfo>(*source.m_transactionInfo, IDBTransactionInfo::IsolatedCopy);
+ destination.m_transactionInfo = makeUnique<IDBTransactionInfo>(*source.m_transactionInfo, IDBTransactionInfo::IsolatedCopy);
if (source.m_resultKey)
- destination.m_resultKey = std::make_unique<IDBKeyData>(*source.m_resultKey, IDBKeyData::IsolatedCopy);
+ destination.m_resultKey = makeUnique<IDBKeyData>(*source.m_resultKey, IDBKeyData::IsolatedCopy);
if (source.m_getResult)
- destination.m_getResult = std::make_unique<IDBGetResult>(*source.m_getResult, IDBGetResult::IsolatedCopy);
+ destination.m_getResult = makeUnique<IDBGetResult>(*source.m_getResult, IDBGetResult::IsolatedCopy);
if (source.m_getAllResult)
- destination.m_getAllResult = std::make_unique<IDBGetAllResult>(*source.m_getAllResult, IDBGetAllResult::IsolatedCopy);
+ destination.m_getAllResult = makeUnique<IDBGetAllResult>(*source.m_getAllResult, IDBGetAllResult::IsolatedCopy);
}
IDBResultData IDBResultData::error(const IDBResourceIdentifier& requestIdentifier, const IDBError& error)
@@ -111,7 +111,7 @@
IDBResultData result { requestIdentifier };
result.m_type = IDBResultType::OpenDatabaseSuccess;
result.m_databaseConnectionIdentifier = connection.identifier();
- result.m_databaseInfo = std::make_unique<IDBDatabaseInfo>(connection.database()->info());
+ result.m_databaseInfo = makeUnique<IDBDatabaseInfo>(connection.database()->info());
return result;
}
@@ -121,15 +121,15 @@
IDBResultData result { requestIdentifier };
result.m_type = IDBResultType::OpenDatabaseUpgradeNeeded;
result.m_databaseConnectionIdentifier = transaction.databaseConnection().identifier();
- result.m_databaseInfo = std::make_unique<IDBDatabaseInfo>(transaction.databaseConnection().database()->info());
- result.m_transactionInfo = std::make_unique<IDBTransactionInfo>(transaction.info());
+ result.m_databaseInfo = makeUnique<IDBDatabaseInfo>(transaction.databaseConnection().database()->info());
+ result.m_transactionInfo = makeUnique<IDBTransactionInfo>(transaction.info());
return result;
}
IDBResultData IDBResultData::deleteDatabaseSuccess(const IDBResourceIdentifier& requestIdentifier, const IDBDatabaseInfo& info)
{
IDBResultData result {IDBResultType::DeleteDatabaseSuccess, requestIdentifier };
- result.m_databaseInfo = std::make_unique<IDBDatabaseInfo>(info);
+ result.m_databaseInfo = makeUnique<IDBDatabaseInfo>(info);
return result;
}
@@ -171,21 +171,21 @@
IDBResultData IDBResultData::putOrAddSuccess(const IDBResourceIdentifier& requestIdentifier, const IDBKeyData& resultKey)
{
IDBResultData result { IDBResultType::PutOrAddSuccess, requestIdentifier };
- result.m_resultKey = std::make_unique<IDBKeyData>(resultKey);
+ result.m_resultKey = makeUnique<IDBKeyData>(resultKey);
return result;
}
IDBResultData IDBResultData::getRecordSuccess(const IDBResourceIdentifier& requestIdentifier, const IDBGetResult& getResult)
{
IDBResultData result { IDBResultType::GetRecordSuccess, requestIdentifier };
- result.m_getResult = std::make_unique<IDBGetResult>(getResult);
+ result.m_getResult = makeUnique<IDBGetResult>(getResult);
return result;
}
IDBResultData IDBResultData::getAllRecordsSuccess(const IDBResourceIdentifier& requestIdentifier, const IDBGetAllResult& getAllResult)
{
IDBResultData result { IDBResultType::GetAllRecordsSuccess, requestIdentifier };
- result.m_getAllResult = std::make_unique<IDBGetAllResult>(getAllResult);
+ result.m_getAllResult = makeUnique<IDBGetAllResult>(getAllResult);
return result;
}
@@ -204,14 +204,14 @@
IDBResultData IDBResultData::openCursorSuccess(const IDBResourceIdentifier& requestIdentifier, const IDBGetResult& getResult)
{
IDBResultData result { IDBResultType::OpenCursorSuccess, requestIdentifier };
- result.m_getResult = std::make_unique<IDBGetResult>(getResult);
+ result.m_getResult = makeUnique<IDBGetResult>(getResult);
return result;
}
IDBResultData IDBResultData::iterateCursorSuccess(const IDBResourceIdentifier& requestIdentifier, const IDBGetResult& getResult)
{
IDBResultData result { IDBResultType::IterateCursorSuccess, requestIdentifier };
- result.m_getResult = std::make_unique<IDBGetResult>(getResult);
+ result.m_getResult = makeUnique<IDBGetResult>(getResult);
return result;
}
diff --git a/Source/WebCore/Modules/indexeddb/shared/IDBResultData.h b/Source/WebCore/Modules/indexeddb/shared/IDBResultData.h
index 717b3e2..62062a1 100644
--- a/Source/WebCore/Modules/indexeddb/shared/IDBResultData.h
+++ b/Source/WebCore/Modules/indexeddb/shared/IDBResultData.h
@@ -184,7 +184,7 @@
if (!decoder.decode(hasObject))
return WTF::nullopt;
if (hasObject) {
- auto object = std::make_unique<IDBDatabaseInfo>();
+ auto object = makeUnique<IDBDatabaseInfo>();
if (!decoder.decode(*object))
return WTF::nullopt;
result.m_databaseInfo = WTFMove(object);
@@ -193,7 +193,7 @@
if (!decoder.decode(hasObject))
return WTF::nullopt;
if (hasObject) {
- auto object = std::make_unique<IDBTransactionInfo>();
+ auto object = makeUnique<IDBTransactionInfo>();
if (!decoder.decode(*object))
return WTF::nullopt;
result.m_transactionInfo = WTFMove(object);
@@ -202,7 +202,7 @@
if (!decoder.decode(hasObject))
return WTF::nullopt;
if (hasObject) {
- auto object = std::make_unique<IDBKeyData>();
+ auto object = makeUnique<IDBKeyData>();
Optional<IDBKeyData> optional;
decoder >> optional;
if (!optional)
@@ -214,7 +214,7 @@
if (!decoder.decode(hasObject))
return WTF::nullopt;
if (hasObject) {
- auto object = std::make_unique<IDBGetResult>();
+ auto object = makeUnique<IDBGetResult>();
if (!decoder.decode(*object))
return WTF::nullopt;
result.m_getResult = WTFMove(object);
@@ -223,7 +223,7 @@
if (!decoder.decode(hasObject))
return WTF::nullopt;
if (hasObject) {
- auto object = std::make_unique<IDBGetAllResult>();
+ auto object = makeUnique<IDBGetAllResult>();
if (!decoder.decode(*object))
return WTF::nullopt;
result.m_getAllResult = WTFMove(object);
diff --git a/Source/WebCore/Modules/indexeddb/shared/IDBTransactionInfo.cpp b/Source/WebCore/Modules/indexeddb/shared/IDBTransactionInfo.cpp
index 983c1c1..4fb9991 100644
--- a/Source/WebCore/Modules/indexeddb/shared/IDBTransactionInfo.cpp
+++ b/Source/WebCore/Modules/indexeddb/shared/IDBTransactionInfo.cpp
@@ -55,7 +55,7 @@
IDBTransactionInfo result((IDBResourceIdentifier(connection)));
result.m_mode = IDBTransactionMode::Versionchange;
result.m_newVersion = newVersion;
- result.m_originalDatabaseInfo = std::make_unique<IDBDatabaseInfo>(originalDatabaseInfo);
+ result.m_originalDatabaseInfo = makeUnique<IDBDatabaseInfo>(originalDatabaseInfo);
return result;
}
@@ -67,7 +67,7 @@
, m_objectStores(info.m_objectStores)
{
if (info.m_originalDatabaseInfo)
- m_originalDatabaseInfo = std::make_unique<IDBDatabaseInfo>(*info.m_originalDatabaseInfo);
+ m_originalDatabaseInfo = makeUnique<IDBDatabaseInfo>(*info.m_originalDatabaseInfo);
}
IDBTransactionInfo::IDBTransactionInfo(const IDBTransactionInfo& that, IsolatedCopyTag)
@@ -91,7 +91,7 @@
destination.m_objectStores.uncheckedAppend(objectStore.isolatedCopy());
if (source.m_originalDatabaseInfo)
- destination.m_originalDatabaseInfo = std::make_unique<IDBDatabaseInfo>(*source.m_originalDatabaseInfo, IDBDatabaseInfo::IsolatedCopy);
+ destination.m_originalDatabaseInfo = makeUnique<IDBDatabaseInfo>(*source.m_originalDatabaseInfo, IDBDatabaseInfo::IsolatedCopy);
}
#if !LOG_DISABLED
diff --git a/Source/WebCore/Modules/indexeddb/shared/IDBTransactionInfo.h b/Source/WebCore/Modules/indexeddb/shared/IDBTransactionInfo.h
index 930d802..7b9477e 100644
--- a/Source/WebCore/Modules/indexeddb/shared/IDBTransactionInfo.h
+++ b/Source/WebCore/Modules/indexeddb/shared/IDBTransactionInfo.h
@@ -119,7 +119,7 @@
return false;
if (hasObject) {
- std::unique_ptr<IDBDatabaseInfo> object = std::make_unique<IDBDatabaseInfo>();
+ std::unique_ptr<IDBDatabaseInfo> object = makeUnique<IDBDatabaseInfo>();
if (!decoder.decode(*object))
return false;
info.m_originalDatabaseInfo = WTFMove(object);
diff --git a/Source/WebCore/Modules/indexeddb/shared/InProcessIDBServer.cpp b/Source/WebCore/Modules/indexeddb/shared/InProcessIDBServer.cpp
index 87b1adc..c968944 100644
--- a/Source/WebCore/Modules/indexeddb/shared/InProcessIDBServer.cpp
+++ b/Source/WebCore/Modules/indexeddb/shared/InProcessIDBServer.cpp
@@ -61,7 +61,7 @@
StorageQuotaManager* InProcessIDBServer::quotaManager(const ClientOrigin& origin)
{
return m_quotaManagers.ensure(origin, [] {
- return std::make_unique<StorageQuotaManager>(StorageQuotaManager::defaultQuota(), [](uint64_t quota, uint64_t currentSpace, uint64_t spaceIncrease, auto callback) {
+ return makeUnique<StorageQuotaManager>(StorageQuotaManager::defaultQuota(), [](uint64_t quota, uint64_t currentSpace, uint64_t spaceIncrease, auto callback) {
callback(quota + currentSpace + spaceIncrease);
});
}).iterator->value.get();
diff --git a/Source/WebCore/Modules/mediacapabilities/NavigatorMediaCapabilities.cpp b/Source/WebCore/Modules/mediacapabilities/NavigatorMediaCapabilities.cpp
index f872574..a31badb 100644
--- a/Source/WebCore/Modules/mediacapabilities/NavigatorMediaCapabilities.cpp
+++ b/Source/WebCore/Modules/mediacapabilities/NavigatorMediaCapabilities.cpp
@@ -47,7 +47,7 @@
{
NavigatorMediaCapabilities* supplement = static_cast<NavigatorMediaCapabilities*>(Supplement<Navigator>::from(&navigator, supplementName()));
if (!supplement) {
- auto newSupplement = std::make_unique<NavigatorMediaCapabilities>();
+ auto newSupplement = makeUnique<NavigatorMediaCapabilities>();
supplement = newSupplement.get();
provideTo(&navigator, supplementName(), WTFMove(newSupplement));
}
diff --git a/Source/WebCore/Modules/mediasession/WebMediaSessionManager.cpp b/Source/WebCore/Modules/mediasession/WebMediaSessionManager.cpp
index 50d0bb0..b97434c 100644
--- a/Source/WebCore/Modules/mediasession/WebMediaSessionManager.cpp
+++ b/Source/WebCore/Modules/mediasession/WebMediaSessionManager.cpp
@@ -115,7 +115,7 @@
MediaPlaybackTargetPickerMock& WebMediaSessionManager::mockPicker()
{
if (!m_pickerOverride)
- m_pickerOverride = std::make_unique<MediaPlaybackTargetPickerMock>(*this);
+ m_pickerOverride = makeUnique<MediaPlaybackTargetPickerMock>(*this);
return *m_pickerOverride.get();
}
@@ -145,7 +145,7 @@
LOG(Media, "WebMediaSessionManager::addPlaybackTargetPickerClient(%p + %llu)", &client, contextId);
- m_clientState.append(std::make_unique<ClientState>(client, contextId));
+ m_clientState.append(makeUnique<ClientState>(client, contextId));
if (m_externalOutputDeviceAvailable || m_playbackTarget)
scheduleDelayedTask(InitialConfigurationTask | TargetClientsConfigurationTask);
diff --git a/Source/WebCore/Modules/mediasource/MediaSource.cpp b/Source/WebCore/Modules/mediasource/MediaSource.cpp
index d417a12..7cbc6a1 100644
--- a/Source/WebCore/Modules/mediasource/MediaSource.cpp
+++ b/Source/WebCore/Modules/mediasource/MediaSource.cpp
@@ -178,9 +178,9 @@
std::unique_ptr<PlatformTimeRanges> MediaSource::buffered() const
{
if (m_buffered && m_activeSourceBuffers->length() && std::all_of(m_activeSourceBuffers->begin(), m_activeSourceBuffers->end(), [](auto& buffer) { return !buffer->isBufferedDirty(); }))
- return std::make_unique<PlatformTimeRanges>(*m_buffered);
+ return makeUnique<PlatformTimeRanges>(*m_buffered);
- m_buffered = std::make_unique<PlatformTimeRanges>();
+ m_buffered = makeUnique<PlatformTimeRanges>();
for (auto& sourceBuffer : *m_activeSourceBuffers)
sourceBuffer->setBufferedDirty(false);
@@ -190,7 +190,7 @@
// 1. If activeSourceBuffers.length equals 0 then return an empty TimeRanges object and abort these steps.
if (activeRanges.isEmpty())
- return std::make_unique<PlatformTimeRanges>(*m_buffered);
+ return makeUnique<PlatformTimeRanges>(*m_buffered);
// 2. Let active ranges be the ranges returned by buffered for each SourceBuffer object in activeSourceBuffers.
// 3. Let highest end time be the largest range end time in the active ranges.
@@ -203,7 +203,7 @@
// Return an empty range if all ranges are empty.
if (!highestEndTime)
- return std::make_unique<PlatformTimeRanges>(*m_buffered);
+ return makeUnique<PlatformTimeRanges>(*m_buffered);
// 4. Let intersection ranges equal a TimeRange object containing a single range from 0 to highest end time.
m_buffered->add(MediaTime::zeroTime(), highestEndTime);
@@ -221,7 +221,7 @@
m_buffered->intersectWith(sourceRanges);
}
- return std::make_unique<PlatformTimeRanges>(*m_buffered);
+ return makeUnique<PlatformTimeRanges>(*m_buffered);
}
void MediaSource::seekToTime(const MediaTime& time)
@@ -344,7 +344,7 @@
// Set live seekable range to be a new normalized TimeRanges object containing a single range
// whose start position is start and end position is end.
- m_liveSeekable = std::make_unique<PlatformTimeRanges>(MediaTime::createWithDouble(start), MediaTime::createWithDouble(end));
+ m_liveSeekable = makeUnique<PlatformTimeRanges>(MediaTime::createWithDouble(start), MediaTime::createWithDouble(end));
return { };
}
diff --git a/Source/WebCore/Modules/mediastream/NavigatorMediaDevices.cpp b/Source/WebCore/Modules/mediastream/NavigatorMediaDevices.cpp
index e418278..7b358f5 100644
--- a/Source/WebCore/Modules/mediastream/NavigatorMediaDevices.cpp
+++ b/Source/WebCore/Modules/mediastream/NavigatorMediaDevices.cpp
@@ -51,7 +51,7 @@
{
NavigatorMediaDevices* supplement = static_cast<NavigatorMediaDevices*>(Supplement<Navigator>::from(navigator, supplementName()));
if (!supplement) {
- auto newSupplement = std::make_unique<NavigatorMediaDevices>(navigator->window());
+ auto newSupplement = makeUnique<NavigatorMediaDevices>(navigator->window());
supplement = newSupplement.get();
provideTo(navigator, supplementName(), WTFMove(newSupplement));
}
diff --git a/Source/WebCore/Modules/mediastream/UserMediaController.cpp b/Source/WebCore/Modules/mediastream/UserMediaController.cpp
index 8d7e63c..14df116 100644
--- a/Source/WebCore/Modules/mediastream/UserMediaController.cpp
+++ b/Source/WebCore/Modules/mediastream/UserMediaController.cpp
@@ -58,7 +58,7 @@
void provideUserMediaTo(Page* page, UserMediaClient* client)
{
- UserMediaController::provideTo(page, UserMediaController::supplementName(), std::make_unique<UserMediaController>(client));
+ UserMediaController::provideTo(page, UserMediaController::supplementName(), makeUnique<UserMediaController>(client));
}
static inline bool isSecure(DocumentLoader& documentLoader)
diff --git a/Source/WebCore/Modules/mediastream/libwebrtc/LibWebRTCDataChannelHandler.cpp b/Source/WebCore/Modules/mediastream/libwebrtc/LibWebRTCDataChannelHandler.cpp
index aaa4000..c985bc19 100644
--- a/Source/WebCore/Modules/mediastream/libwebrtc/LibWebRTCDataChannelHandler.cpp
+++ b/Source/WebCore/Modules/mediastream/libwebrtc/LibWebRTCDataChannelHandler.cpp
@@ -69,7 +69,7 @@
init.negotiated = dataChannel->negotiated();
init.id = dataChannel->id();
- auto handler = std::make_unique<LibWebRTCDataChannelHandler>(WTFMove(dataChannel));
+ auto handler = makeUnique<LibWebRTCDataChannelHandler>(WTFMove(dataChannel));
auto channel = RTCDataChannel::create(context, WTFMove(handler), fromStdString(label), WTFMove(init));
return RTCDataChannelEvent::create(eventNames().datachannelEvent, Event::CanBubble::No, Event::IsCancelable::No, WTFMove(channel));
diff --git a/Source/WebCore/Modules/mediastream/libwebrtc/LibWebRTCMediaEndpoint.cpp b/Source/WebCore/Modules/mediastream/libwebrtc/LibWebRTCMediaEndpoint.cpp
index def1f91..d1a74b8 100644
--- a/Source/WebCore/Modules/mediastream/libwebrtc/LibWebRTCMediaEndpoint.cpp
+++ b/Source/WebCore/Modules/mediastream/libwebrtc/LibWebRTCMediaEndpoint.cpp
@@ -397,7 +397,7 @@
}
}
- receiver->setBackend(std::make_unique<LibWebRTCRtpReceiverBackend>(WTFMove(rtcReceiver)));
+ receiver->setBackend(makeUnique<LibWebRTCRtpReceiverBackend>(WTFMove(rtcReceiver)));
auto& track = receiver->track();
addPendingTrackEvent(receiver.releaseNonNull(), track, rtcStreams, nullptr);
}
@@ -478,7 +478,7 @@
if (!source)
return;
- m_peerConnectionBackend.newRemoteTransceiver(std::make_unique<LibWebRTCRtpTransceiverBackend>(WTFMove(rtcTransceiver)), source.releaseNonNull());
+ m_peerConnectionBackend.newRemoteTransceiver(makeUnique<LibWebRTCRtpTransceiverBackend>(WTFMove(rtcTransceiver)), source.releaseNonNull());
}
}
@@ -499,7 +499,7 @@
if (!source)
return;
- auto& newTransceiver = m_peerConnectionBackend.newRemoteTransceiver(std::make_unique<LibWebRTCRtpTransceiverBackend>(WTFMove(rtcTransceiver)), source.releaseNonNull());
+ auto& newTransceiver = m_peerConnectionBackend.newRemoteTransceiver(makeUnique<LibWebRTCRtpTransceiverBackend>(WTFMove(rtcTransceiver)), source.releaseNonNull());
addPendingTrackEvent(makeRef(newTransceiver.receiver()), newTransceiver.receiver().track(), rtcReceiver->streams(), makeRef(newTransceiver));
}
@@ -534,7 +534,7 @@
if (!result.ok())
return WTF::nullopt;
- auto transceiver = std::make_unique<LibWebRTCRtpTransceiverBackend>(result.MoveValue());
+ auto transceiver = makeUnique<LibWebRTCRtpTransceiverBackend>(result.MoveValue());
return LibWebRTCMediaEndpoint::Backends { transceiver->createSenderBackend(m_peerConnectionBackend, WTFMove(source)), transceiver->createReceiverBackend(), WTFMove(transceiver) };
}
@@ -585,7 +585,7 @@
{
for (auto& transceiver : m_backend->GetTransceivers()) {
if (transceiver->sender().get() == backend.rtcSender())
- return std::make_unique<LibWebRTCRtpTransceiverBackend>(rtc::scoped_refptr<webrtc::RtpTransceiverInterface>(transceiver));
+ return makeUnique<LibWebRTCRtpTransceiverBackend>(rtc::scoped_refptr<webrtc::RtpTransceiverInterface>(transceiver));
}
return nullptr;
}
@@ -654,7 +654,7 @@
{
auto init = LibWebRTCDataChannelHandler::fromRTCDataChannelInit(options);
auto channel = m_backend->CreateDataChannel(label.utf8().data(), &init);
- return channel ? std::make_unique<LibWebRTCDataChannelHandler>(WTFMove(channel)) : nullptr;
+ return channel ? makeUnique<LibWebRTCDataChannelHandler>(WTFMove(channel)) : nullptr;
}
void LibWebRTCMediaEndpoint::OnDataChannel(rtc::scoped_refptr<webrtc::DataChannelInterface> dataChannel)
diff --git a/Source/WebCore/Modules/mediastream/libwebrtc/LibWebRTCPeerConnectionBackend.cpp b/Source/WebCore/Modules/mediastream/libwebrtc/LibWebRTCPeerConnectionBackend.cpp
index 207f15e..fc91ccd 100644
--- a/Source/WebCore/Modules/mediastream/libwebrtc/LibWebRTCPeerConnectionBackend.cpp
+++ b/Source/WebCore/Modules/mediastream/libwebrtc/LibWebRTCPeerConnectionBackend.cpp
@@ -61,7 +61,7 @@
page->libWebRTCProvider().setEnableWebRTCEncryption(page->settings().webRTCEncryptionEnabled());
- return std::make_unique<LibWebRTCPeerConnectionBackend>(peerConnection, page->libWebRTCProvider());
+ return makeUnique<LibWebRTCPeerConnectionBackend>(peerConnection, page->libWebRTCProvider());
}
CreatePeerConnectionBackend PeerConnectionBackend::create = createLibWebRTCPeerConnectionBackend;
@@ -311,7 +311,7 @@
auto source = RealtimeIncomingVideoSource::create(nullptr, WTFMove(trackId));
auto receiver = createReceiverForSource(source.copyRef(), nullptr);
- auto senderBackend = std::make_unique<LibWebRTCRtpSenderBackend>(*this, nullptr);
+ auto senderBackend = makeUnique<LibWebRTCRtpSenderBackend>(*this, nullptr);
auto transceiver = RTCRtpTransceiver::create(RTCRtpSender::create(*this, "video"_s, { }, WTFMove(senderBackend)), receiver.copyRef(), nullptr);
transceiver->disableSendingDirection();
m_peerConnection.addTransceiver(WTFMove(transceiver));
@@ -334,7 +334,7 @@
auto source = RealtimeIncomingAudioSource::create(nullptr, WTFMove(trackId));
auto receiver = createReceiverForSource(source.copyRef(), nullptr);
- auto senderBackend = std::make_unique<LibWebRTCRtpSenderBackend>(*this, nullptr);
+ auto senderBackend = makeUnique<LibWebRTCRtpSenderBackend>(*this, nullptr);
auto transceiver = RTCRtpTransceiver::create(RTCRtpSender::create(*this, "audio"_s, { }, WTFMove(senderBackend)), receiver.copyRef(), nullptr);
transceiver->disableSendingDirection();
m_peerConnection.addTransceiver(WTFMove(transceiver));
@@ -400,7 +400,7 @@
ExceptionOr<Ref<RTCRtpSender>> LibWebRTCPeerConnectionBackend::addTrack(MediaStreamTrack& track, Vector<String>&& mediaStreamIds)
{
if (RuntimeEnabledFeatures::sharedFeatures().webRTCUnifiedPlanEnabled()) {
- auto senderBackend = std::make_unique<LibWebRTCRtpSenderBackend>(*this, nullptr);
+ auto senderBackend = makeUnique<LibWebRTCRtpSenderBackend>(*this, nullptr);
if (!m_endpoint->addTrack(*senderBackend, track, mediaStreamIds))
return Exception { TypeError, "Unable to add track"_s };
@@ -438,7 +438,7 @@
const String& trackKind = track.kind();
String trackId = createCanonicalUUIDString();
- auto senderBackend = std::make_unique<LibWebRTCRtpSenderBackend>(*this, nullptr);
+ auto senderBackend = makeUnique<LibWebRTCRtpSenderBackend>(*this, nullptr);
auto newSender = RTCRtpSender::create(*this, makeRef(track), Vector<String> { mediaStreamIds }, WTFMove(senderBackend));
auto receiver = createReceiver(trackKind, trackId);
auto transceiver = RTCRtpTransceiver::create(WTFMove(newSender), WTFMove(receiver), nullptr);
@@ -472,7 +472,7 @@
if (RuntimeEnabledFeatures::sharedFeatures().webRTCUnifiedPlanEnabled())
return addUnifiedPlanTransceiver(String { trackKind }, init);
- auto senderBackend = std::make_unique<LibWebRTCRtpSenderBackend>(*this, nullptr);
+ auto senderBackend = makeUnique<LibWebRTCRtpSenderBackend>(*this, nullptr);
auto newSender = RTCRtpSender::create(*this, String(trackKind), Vector<String>(), WTFMove(senderBackend));
return completeAddTransceiver(WTFMove(newSender), init, createCanonicalUUIDString(), trackKind);
}
@@ -482,7 +482,7 @@
if (RuntimeEnabledFeatures::sharedFeatures().webRTCUnifiedPlanEnabled())
return addUnifiedPlanTransceiver(WTFMove(track), init);
- auto senderBackend = std::make_unique<LibWebRTCRtpSenderBackend>(*this, nullptr);
+ auto senderBackend = makeUnique<LibWebRTCRtpSenderBackend>(*this, nullptr);
auto& backend = *senderBackend;
auto sender = RTCRtpSender::create(*this, track.copyRef(), Vector<String>(), WTFMove(senderBackend));
if (!m_endpoint->addTrack(backend, track, Vector<String> { }))
diff --git a/Source/WebCore/Modules/mediastream/libwebrtc/LibWebRTCRtpSenderBackend.cpp b/Source/WebCore/Modules/mediastream/libwebrtc/LibWebRTCRtpSenderBackend.cpp
index 6850e6a..6aeea13 100644
--- a/Source/WebCore/Modules/mediastream/libwebrtc/LibWebRTCRtpSenderBackend.cpp
+++ b/Source/WebCore/Modules/mediastream/libwebrtc/LibWebRTCRtpSenderBackend.cpp
@@ -148,7 +148,7 @@
std::unique_ptr<RTCDTMFSenderBackend> LibWebRTCRtpSenderBackend::createDTMFBackend()
{
- return std::make_unique<LibWebRTCDTMFSenderBackend>(m_rtcSender->GetDtmfSender());
+ return makeUnique<LibWebRTCDTMFSenderBackend>(m_rtcSender->GetDtmfSender());
}
} // namespace WebCore
diff --git a/Source/WebCore/Modules/mediastream/libwebrtc/LibWebRTCRtpTransceiverBackend.cpp b/Source/WebCore/Modules/mediastream/libwebrtc/LibWebRTCRtpTransceiverBackend.cpp
index eb871eb..5c0d7e9 100644
--- a/Source/WebCore/Modules/mediastream/libwebrtc/LibWebRTCRtpTransceiverBackend.cpp
+++ b/Source/WebCore/Modules/mediastream/libwebrtc/LibWebRTCRtpTransceiverBackend.cpp
@@ -35,12 +35,12 @@
std::unique_ptr<LibWebRTCRtpReceiverBackend> LibWebRTCRtpTransceiverBackend::createReceiverBackend()
{
- return std::make_unique<LibWebRTCRtpReceiverBackend>(m_rtcTransceiver->receiver());
+ return makeUnique<LibWebRTCRtpReceiverBackend>(m_rtcTransceiver->receiver());
}
std::unique_ptr<LibWebRTCRtpSenderBackend> LibWebRTCRtpTransceiverBackend::createSenderBackend(LibWebRTCPeerConnectionBackend& backend, LibWebRTCRtpSenderBackend::Source&& source)
{
- return std::make_unique<LibWebRTCRtpSenderBackend>(backend, m_rtcTransceiver->sender(), WTFMove(source));
+ return makeUnique<LibWebRTCRtpSenderBackend>(backend, m_rtcTransceiver->sender(), WTFMove(source));
}
RTCRtpTransceiverDirection LibWebRTCRtpTransceiverBackend::direction() const
diff --git a/Source/WebCore/Modules/notifications/Notification.cpp b/Source/WebCore/Modules/notifications/Notification.cpp
index 0c328fa..0ebaff8 100644
--- a/Source/WebCore/Modules/notifications/Notification.cpp
+++ b/Source/WebCore/Modules/notifications/Notification.cpp
@@ -63,7 +63,7 @@
, m_body(options.body)
, m_tag(options.tag)
, m_state(Idle)
- , m_taskTimer(std::make_unique<Timer>([this] () { show(); }))
+ , m_taskTimer(makeUnique<Timer>([this] () { show(); }))
{
if (!options.icon.isEmpty()) {
auto iconURL = document.completeURL(options.icon);
diff --git a/Source/WebCore/Modules/notifications/NotificationController.cpp b/Source/WebCore/Modules/notifications/NotificationController.cpp
index a620353..d48f205 100644
--- a/Source/WebCore/Modules/notifications/NotificationController.cpp
+++ b/Source/WebCore/Modules/notifications/NotificationController.cpp
@@ -58,7 +58,7 @@
void provideNotification(Page* page, NotificationClient* client)
{
- NotificationController::provideTo(page, NotificationController::supplementName(), std::make_unique<NotificationController>(client));
+ NotificationController::provideTo(page, NotificationController::supplementName(), makeUnique<NotificationController>(client));
}
} // namespace WebCore
diff --git a/Source/WebCore/Modules/quota/DOMWindowQuota.cpp b/Source/WebCore/Modules/quota/DOMWindowQuota.cpp
index 03fe9e3..c98c998 100644
--- a/Source/WebCore/Modules/quota/DOMWindowQuota.cpp
+++ b/Source/WebCore/Modules/quota/DOMWindowQuota.cpp
@@ -57,7 +57,7 @@
{
DOMWindowQuota* supplement = static_cast<DOMWindowQuota*>(Supplement<DOMWindow>::from(window, supplementName()));
if (!supplement) {
- auto newSupplement = std::make_unique<DOMWindowQuota>(window);
+ auto newSupplement = makeUnique<DOMWindowQuota>(window);
supplement = newSupplement.get();
provideTo(window, supplementName(), WTFMove(newSupplement));
}
diff --git a/Source/WebCore/Modules/quota/NavigatorStorageQuota.cpp b/Source/WebCore/Modules/quota/NavigatorStorageQuota.cpp
index 7ba1d3d..7a08045 100644
--- a/Source/WebCore/Modules/quota/NavigatorStorageQuota.cpp
+++ b/Source/WebCore/Modules/quota/NavigatorStorageQuota.cpp
@@ -55,7 +55,7 @@
{
NavigatorStorageQuota* supplement = static_cast<NavigatorStorageQuota*>(Supplement<Navigator>::from(navigator, supplementName()));
if (!supplement) {
- auto newSupplement = std::make_unique<NavigatorStorageQuota>(window);
+ auto newSupplement = makeUnique<NavigatorStorageQuota>(window);
supplement = newSupplement.get();
provideTo(navigator, supplementName(), WTFMove(newSupplement));
}
diff --git a/Source/WebCore/Modules/quota/WorkerNavigatorStorageQuota.cpp b/Source/WebCore/Modules/quota/WorkerNavigatorStorageQuota.cpp
index 95c3e43..1a1c847 100644
--- a/Source/WebCore/Modules/quota/WorkerNavigatorStorageQuota.cpp
+++ b/Source/WebCore/Modules/quota/WorkerNavigatorStorageQuota.cpp
@@ -51,7 +51,7 @@
{
WorkerNavigatorStorageQuota* supplement = static_cast<WorkerNavigatorStorageQuota*>(Supplement<WorkerNavigator>::from(navigator, supplementName()));
if (!supplement) {
- auto newSupplement = std::make_unique<WorkerNavigatorStorageQuota>(window);
+ auto newSupplement = makeUnique<WorkerNavigatorStorageQuota>(window);
supplement = newSupplement.get();
provideTo(navigator, supplementName(), WTFMove(newSupplement));
}
diff --git a/Source/WebCore/Modules/speech/DOMWindowSpeechSynthesis.cpp b/Source/WebCore/Modules/speech/DOMWindowSpeechSynthesis.cpp
index 3795652..969c237 100644
--- a/Source/WebCore/Modules/speech/DOMWindowSpeechSynthesis.cpp
+++ b/Source/WebCore/Modules/speech/DOMWindowSpeechSynthesis.cpp
@@ -55,7 +55,7 @@
{
DOMWindowSpeechSynthesis* supplement = static_cast<DOMWindowSpeechSynthesis*>(Supplement<DOMWindow>::from(window, supplementName()));
if (!supplement) {
- auto newSupplement = std::make_unique<DOMWindowSpeechSynthesis>(window);
+ auto newSupplement = makeUnique<DOMWindowSpeechSynthesis>(window);
supplement = newSupplement.get();
provideTo(window, supplementName(), WTFMove(newSupplement));
}
diff --git a/Source/WebCore/Modules/speech/SpeechSynthesis.cpp b/Source/WebCore/Modules/speech/SpeechSynthesis.cpp
index 72b563e..e7b62a1 100644
--- a/Source/WebCore/Modules/speech/SpeechSynthesis.cpp
+++ b/Source/WebCore/Modules/speech/SpeechSynthesis.cpp
@@ -73,7 +73,7 @@
PlatformSpeechSynthesizer& SpeechSynthesis::ensurePlatformSpeechSynthesizer()
{
if (!m_platformSpeechSynthesizer)
- m_platformSpeechSynthesizer = std::make_unique<PlatformSpeechSynthesizer>(this);
+ m_platformSpeechSynthesizer = makeUnique<PlatformSpeechSynthesizer>(this);
return *m_platformSpeechSynthesizer;
}
diff --git a/Source/WebCore/Modules/webaudio/AsyncAudioDecoder.cpp b/Source/WebCore/Modules/webaudio/AsyncAudioDecoder.cpp
index 62f68ec..2f54272 100644
--- a/Source/WebCore/Modules/webaudio/AsyncAudioDecoder.cpp
+++ b/Source/WebCore/Modules/webaudio/AsyncAudioDecoder.cpp
@@ -56,7 +56,7 @@
{
ASSERT(isMainThread());
- auto decodingTask = std::make_unique<DecodingTask>(WTFMove(audioData), sampleRate, WTFMove(successCallback), WTFMove(errorCallback));
+ auto decodingTask = makeUnique<DecodingTask>(WTFMove(audioData), sampleRate, WTFMove(successCallback), WTFMove(errorCallback));
m_queue.append(WTFMove(decodingTask)); // note that ownership of the task is effectively taken by the queue.
}
diff --git a/Source/WebCore/Modules/webaudio/AudioBasicInspectorNode.cpp b/Source/WebCore/Modules/webaudio/AudioBasicInspectorNode.cpp
index ba8c255..0fb55b0 100644
--- a/Source/WebCore/Modules/webaudio/AudioBasicInspectorNode.cpp
+++ b/Source/WebCore/Modules/webaudio/AudioBasicInspectorNode.cpp
@@ -40,8 +40,8 @@
: AudioNode(context, sampleRate)
{
setNodeType(NodeTypeBasicInspector);
- addInput(std::make_unique<AudioNodeInput>(this));
- addOutput(std::make_unique<AudioNodeOutput>(this, outputChannelCount));
+ addInput(makeUnique<AudioNodeInput>(this));
+ addOutput(makeUnique<AudioNodeOutput>(this, outputChannelCount));
}
// We override pullInputs() as an optimization allowing this node to take advantage of in-place processing,
diff --git a/Source/WebCore/Modules/webaudio/AudioBasicProcessorNode.cpp b/Source/WebCore/Modules/webaudio/AudioBasicProcessorNode.cpp
index bc189c0..0b9f1ce 100644
--- a/Source/WebCore/Modules/webaudio/AudioBasicProcessorNode.cpp
+++ b/Source/WebCore/Modules/webaudio/AudioBasicProcessorNode.cpp
@@ -42,8 +42,8 @@
AudioBasicProcessorNode::AudioBasicProcessorNode(AudioContext& context, float sampleRate)
: AudioNode(context, sampleRate)
{
- addInput(std::make_unique<AudioNodeInput>(this));
- addOutput(std::make_unique<AudioNodeOutput>(this, 1));
+ addInput(makeUnique<AudioNodeInput>(this));
+ addOutput(makeUnique<AudioNodeOutput>(this, 1));
// The subclass must create m_processor.
}
diff --git a/Source/WebCore/Modules/webaudio/AudioBufferSourceNode.cpp b/Source/WebCore/Modules/webaudio/AudioBufferSourceNode.cpp
index 40ac32c..2510c40 100644
--- a/Source/WebCore/Modules/webaudio/AudioBufferSourceNode.cpp
+++ b/Source/WebCore/Modules/webaudio/AudioBufferSourceNode.cpp
@@ -73,7 +73,7 @@
m_playbackRate = AudioParam::create(context, "playbackRate", 1.0, -MaxRate, MaxRate);
// Default to mono. A call to setBuffer() will set the number of output channels to that of the buffer.
- addOutput(std::make_unique<AudioNodeOutput>(this, 1));
+ addOutput(makeUnique<AudioNodeOutput>(this, 1));
initialize();
}
diff --git a/Source/WebCore/Modules/webaudio/AudioContext.cpp b/Source/WebCore/Modules/webaudio/AudioContext.cpp
index 9956c15..d4cdb76 100644
--- a/Source/WebCore/Modules/webaudio/AudioContext.cpp
+++ b/Source/WebCore/Modules/webaudio/AudioContext.cpp
@@ -140,7 +140,7 @@
, m_logIdentifier(uniqueLogIdentifier())
#endif
, m_mediaSession(PlatformMediaSession::create(*this))
- , m_eventQueue(std::make_unique<GenericEventQueue>(*this))
+ , m_eventQueue(makeUnique<GenericEventQueue>(*this))
{
// According to spec AudioContext must die only after page navigate.
// Lets mark it as ActiveDOMObject with pending activity and unmark it in clear method.
@@ -166,7 +166,7 @@
#endif
, m_isOfflineContext(true)
, m_mediaSession(PlatformMediaSession::create(*this))
- , m_eventQueue(std::make_unique<GenericEventQueue>(*this))
+ , m_eventQueue(makeUnique<GenericEventQueue>(*this))
{
constructCommon();
@@ -432,7 +432,7 @@
void AudioContext::decodeAudioData(Ref<ArrayBuffer>&& audioData, RefPtr<AudioBufferCallback>&& successCallback, RefPtr<AudioBufferCallback>&& errorCallback)
{
if (!m_audioDecoder)
- m_audioDecoder = std::make_unique<AsyncAudioDecoder>();
+ m_audioDecoder = makeUnique<AsyncAudioDecoder>();
m_audioDecoder->decodeAsync(WTFMove(audioData), sampleRate(), WTFMove(successCallback), WTFMove(errorCallback));
}
diff --git a/Source/WebCore/Modules/webaudio/AudioDestinationNode.cpp b/Source/WebCore/Modules/webaudio/AudioDestinationNode.cpp
index 9758875..d9abb977 100644
--- a/Source/WebCore/Modules/webaudio/AudioDestinationNode.cpp
+++ b/Source/WebCore/Modules/webaudio/AudioDestinationNode.cpp
@@ -47,7 +47,7 @@
, m_muted(false)
{
setNodeType(NodeTypeDestination);
- addInput(std::make_unique<AudioNodeInput>(this));
+ addInput(makeUnique<AudioNodeInput>(this));
}
AudioDestinationNode::~AudioDestinationNode()
diff --git a/Source/WebCore/Modules/webaudio/BiquadFilterNode.cpp b/Source/WebCore/Modules/webaudio/BiquadFilterNode.cpp
index 16373ce..4a8255e 100644
--- a/Source/WebCore/Modules/webaudio/BiquadFilterNode.cpp
+++ b/Source/WebCore/Modules/webaudio/BiquadFilterNode.cpp
@@ -39,7 +39,7 @@
setNodeType(NodeTypeBiquadFilter);
// Initially setup as lowpass filter.
- m_processor = std::make_unique<BiquadProcessor>(context, sampleRate, 1, false);
+ m_processor = makeUnique<BiquadProcessor>(context, sampleRate, 1, false);
}
BiquadFilterType BiquadFilterNode::type() const
diff --git a/Source/WebCore/Modules/webaudio/BiquadProcessor.cpp b/Source/WebCore/Modules/webaudio/BiquadProcessor.cpp
index 0e4e368..e84b980 100644
--- a/Source/WebCore/Modules/webaudio/BiquadProcessor.cpp
+++ b/Source/WebCore/Modules/webaudio/BiquadProcessor.cpp
@@ -62,7 +62,7 @@
std::unique_ptr<AudioDSPKernel> BiquadProcessor::createKernel()
{
- return std::make_unique<BiquadDSPKernel>(this);
+ return makeUnique<BiquadDSPKernel>(this);
}
void BiquadProcessor::checkForDirtyCoefficients()
@@ -125,7 +125,7 @@
// to avoid interfering with the processing running in the audio
// thread on the main kernels.
- auto responseKernel = std::make_unique<BiquadDSPKernel>(this);
+ auto responseKernel = makeUnique<BiquadDSPKernel>(this);
responseKernel->getFrequencyResponse(nFrequencies, frequencyHz, magResponse, phaseResponse);
}
diff --git a/Source/WebCore/Modules/webaudio/ChannelMergerNode.cpp b/Source/WebCore/Modules/webaudio/ChannelMergerNode.cpp
index 20b8da1..df50f26 100644
--- a/Source/WebCore/Modules/webaudio/ChannelMergerNode.cpp
+++ b/Source/WebCore/Modules/webaudio/ChannelMergerNode.cpp
@@ -59,9 +59,9 @@
// Create the requested number of inputs.
for (unsigned i = 0; i < numberOfInputs; ++i)
- addInput(std::make_unique<AudioNodeInput>(this));
+ addInput(makeUnique<AudioNodeInput>(this));
- addOutput(std::make_unique<AudioNodeOutput>(this, 1));
+ addOutput(makeUnique<AudioNodeOutput>(this, 1));
initialize();
}
diff --git a/Source/WebCore/Modules/webaudio/ChannelSplitterNode.cpp b/Source/WebCore/Modules/webaudio/ChannelSplitterNode.cpp
index 4635498..82f69a0 100644
--- a/Source/WebCore/Modules/webaudio/ChannelSplitterNode.cpp
+++ b/Source/WebCore/Modules/webaudio/ChannelSplitterNode.cpp
@@ -50,11 +50,11 @@
{
setNodeType(NodeTypeChannelSplitter);
- addInput(std::make_unique<AudioNodeInput>(this));
+ addInput(makeUnique<AudioNodeInput>(this));
// Create a fixed number of outputs (able to handle the maximum number of channels fed to an input).
for (unsigned i = 0; i < numberOfOutputs; ++i)
- addOutput(std::make_unique<AudioNodeOutput>(this, 1));
+ addOutput(makeUnique<AudioNodeOutput>(this, 1));
initialize();
}
diff --git a/Source/WebCore/Modules/webaudio/ConvolverNode.cpp b/Source/WebCore/Modules/webaudio/ConvolverNode.cpp
index 2382dab..e36677c 100644
--- a/Source/WebCore/Modules/webaudio/ConvolverNode.cpp
+++ b/Source/WebCore/Modules/webaudio/ConvolverNode.cpp
@@ -52,8 +52,8 @@
{
setNodeType(NodeTypeConvolver);
- addInput(std::make_unique<AudioNodeInput>(this));
- addOutput(std::make_unique<AudioNodeOutput>(this, 2));
+ addInput(makeUnique<AudioNodeInput>(this));
+ addOutput(makeUnique<AudioNodeOutput>(this, 2));
// Node-specific default mixing rules.
m_channelCount = 2;
@@ -146,7 +146,7 @@
// Create the reverb with the given impulse response.
bool useBackgroundThreads = !context().isOfflineContext();
- auto reverb = std::make_unique<Reverb>(bufferBus.get(), AudioNode::ProcessingSizeInFrames, MaxFFTSize, 2, useBackgroundThreads, m_normalize);
+ auto reverb = makeUnique<Reverb>(bufferBus.get(), AudioNode::ProcessingSizeInFrames, MaxFFTSize, 2, useBackgroundThreads, m_normalize);
{
// Synchronize with process().
diff --git a/Source/WebCore/Modules/webaudio/DelayNode.cpp b/Source/WebCore/Modules/webaudio/DelayNode.cpp
index 4265a00..81bd7d1 100644
--- a/Source/WebCore/Modules/webaudio/DelayNode.cpp
+++ b/Source/WebCore/Modules/webaudio/DelayNode.cpp
@@ -41,7 +41,7 @@
: AudioBasicProcessorNode(context, sampleRate)
{
setNodeType(NodeTypeDelay);
- m_processor = std::make_unique<DelayProcessor>(context, sampleRate, 1, maxDelayTime);
+ m_processor = makeUnique<DelayProcessor>(context, sampleRate, 1, maxDelayTime);
}
ExceptionOr<Ref<DelayNode>> DelayNode::create(AudioContext& context, float sampleRate, double maxDelayTime)
diff --git a/Source/WebCore/Modules/webaudio/DelayProcessor.cpp b/Source/WebCore/Modules/webaudio/DelayProcessor.cpp
index a75ba6b..10366ef 100644
--- a/Source/WebCore/Modules/webaudio/DelayProcessor.cpp
+++ b/Source/WebCore/Modules/webaudio/DelayProcessor.cpp
@@ -47,7 +47,7 @@
std::unique_ptr<AudioDSPKernel> DelayProcessor::createKernel()
{
- return std::make_unique<DelayDSPKernel>(this);
+ return makeUnique<DelayDSPKernel>(this);
}
} // namespace WebCore
diff --git a/Source/WebCore/Modules/webaudio/DynamicsCompressorNode.cpp b/Source/WebCore/Modules/webaudio/DynamicsCompressorNode.cpp
index aa0e4a8..14096d8 100644
--- a/Source/WebCore/Modules/webaudio/DynamicsCompressorNode.cpp
+++ b/Source/WebCore/Modules/webaudio/DynamicsCompressorNode.cpp
@@ -46,8 +46,8 @@
{
setNodeType(NodeTypeDynamicsCompressor);
- addInput(std::make_unique<AudioNodeInput>(this));
- addOutput(std::make_unique<AudioNodeOutput>(this, defaultNumberOfOutputChannels));
+ addInput(makeUnique<AudioNodeInput>(this));
+ addOutput(makeUnique<AudioNodeOutput>(this, defaultNumberOfOutputChannels));
m_threshold = AudioParam::create(context, "threshold", -24, -100, 0);
m_knee = AudioParam::create(context, "knee", 30, 0, 40);
@@ -98,7 +98,7 @@
return;
AudioNode::initialize();
- m_dynamicsCompressor = std::make_unique<DynamicsCompressor>(sampleRate(), defaultNumberOfOutputChannels);
+ m_dynamicsCompressor = makeUnique<DynamicsCompressor>(sampleRate(), defaultNumberOfOutputChannels);
}
void DynamicsCompressorNode::uninitialize()
diff --git a/Source/WebCore/Modules/webaudio/GainNode.cpp b/Source/WebCore/Modules/webaudio/GainNode.cpp
index 6c94a52..257df2e 100644
--- a/Source/WebCore/Modules/webaudio/GainNode.cpp
+++ b/Source/WebCore/Modules/webaudio/GainNode.cpp
@@ -46,8 +46,8 @@
m_gain = AudioParam::create(context, "gain", 1.0, 0.0, 1.0);
- addInput(std::make_unique<AudioNodeInput>(this));
- addOutput(std::make_unique<AudioNodeOutput>(this, 1));
+ addInput(makeUnique<AudioNodeInput>(this));
+ addOutput(makeUnique<AudioNodeOutput>(this, 1));
initialize();
}
diff --git a/Source/WebCore/Modules/webaudio/MediaElementAudioSourceNode.cpp b/Source/WebCore/Modules/webaudio/MediaElementAudioSourceNode.cpp
index 381ae72..912e6eb 100644
--- a/Source/WebCore/Modules/webaudio/MediaElementAudioSourceNode.cpp
+++ b/Source/WebCore/Modules/webaudio/MediaElementAudioSourceNode.cpp
@@ -57,7 +57,7 @@
setNodeType(NodeTypeMediaElementAudioSource);
// Default to stereo. This could change depending on what the media element .src is set to.
- addOutput(std::make_unique<AudioNodeOutput>(this, 2));
+ addOutput(makeUnique<AudioNodeOutput>(this, 2));
initialize();
}
@@ -89,7 +89,7 @@
if (sourceSampleRate != sampleRate()) {
double scaleFactor = sourceSampleRate / sampleRate();
- m_multiChannelResampler = std::make_unique<MultiChannelResampler>(scaleFactor, numberOfChannels);
+ m_multiChannelResampler = makeUnique<MultiChannelResampler>(scaleFactor, numberOfChannels);
} else {
// Bypass resampling.
m_multiChannelResampler = nullptr;
diff --git a/Source/WebCore/Modules/webaudio/MediaStreamAudioSourceNode.cpp b/Source/WebCore/Modules/webaudio/MediaStreamAudioSourceNode.cpp
index 5b2a500..e43f544 100644
--- a/Source/WebCore/Modules/webaudio/MediaStreamAudioSourceNode.cpp
+++ b/Source/WebCore/Modules/webaudio/MediaStreamAudioSourceNode.cpp
@@ -56,7 +56,7 @@
audioSourceProvider->setClient(this);
// Default to stereo. This could change depending on the format of the MediaStream's audio track.
- addOutput(std::make_unique<AudioNodeOutput>(this, 2));
+ addOutput(makeUnique<AudioNodeOutput>(this, 2));
initialize();
}
@@ -93,7 +93,7 @@
m_multiChannelResampler = nullptr;
else {
double scaleFactor = sourceSampleRate / sampleRate;
- m_multiChannelResampler = std::make_unique<MultiChannelResampler>(scaleFactor, numberOfChannels);
+ m_multiChannelResampler = makeUnique<MultiChannelResampler>(scaleFactor, numberOfChannels);
}
m_sourceNumberOfChannels = numberOfChannels;
diff --git a/Source/WebCore/Modules/webaudio/OscillatorNode.cpp b/Source/WebCore/Modules/webaudio/OscillatorNode.cpp
index 5b5029b..a99ceaa 100644
--- a/Source/WebCore/Modules/webaudio/OscillatorNode.cpp
+++ b/Source/WebCore/Modules/webaudio/OscillatorNode.cpp
@@ -68,7 +68,7 @@
setType(m_type);
// An oscillator is always mono.
- addOutput(std::make_unique<AudioNodeOutput>(this, 1));
+ addOutput(makeUnique<AudioNodeOutput>(this, 1));
initialize();
}
diff --git a/Source/WebCore/Modules/webaudio/PannerNode.cpp b/Source/WebCore/Modules/webaudio/PannerNode.cpp
index f647469..51c6991 100644
--- a/Source/WebCore/Modules/webaudio/PannerNode.cpp
+++ b/Source/WebCore/Modules/webaudio/PannerNode.cpp
@@ -58,8 +58,8 @@
// Load the HRTF database asynchronously so we don't block the Javascript thread while creating the HRTF database.
m_hrtfDatabaseLoader = HRTFDatabaseLoader::createAndLoadAsynchronouslyIfNecessary(context.sampleRate());
- addInput(std::make_unique<AudioNodeInput>(this));
- addOutput(std::make_unique<AudioNodeOutput>(this, 2));
+ addInput(makeUnique<AudioNodeInput>(this));
+ addOutput(makeUnique<AudioNodeOutput>(this, 2));
// Node-specific default mixing rules.
m_channelCount = 2;
diff --git a/Source/WebCore/Modules/webaudio/PeriodicWave.cpp b/Source/WebCore/Modules/webaudio/PeriodicWave.cpp
index bb2a07d..ec9a17c 100644
--- a/Source/WebCore/Modules/webaudio/PeriodicWave.cpp
+++ b/Source/WebCore/Modules/webaudio/PeriodicWave.cpp
@@ -192,7 +192,7 @@
realP[0] = 0;
// Create the band-limited table.
- m_bandLimitedTables.append(std::make_unique<AudioFloatArray>(m_periodicWaveSize));
+ m_bandLimitedTables.append(makeUnique<AudioFloatArray>(m_periodicWaveSize));
// Apply an inverse FFT to generate the time-domain table data.
float* data = m_bandLimitedTables[rangeIndex]->data();
diff --git a/Source/WebCore/Modules/webaudio/RealtimeAnalyser.cpp b/Source/WebCore/Modules/webaudio/RealtimeAnalyser.cpp
index 3b6281d..8023734 100644
--- a/Source/WebCore/Modules/webaudio/RealtimeAnalyser.cpp
+++ b/Source/WebCore/Modules/webaudio/RealtimeAnalyser.cpp
@@ -59,7 +59,7 @@
, m_minDecibels(DefaultMinDecibels)
, m_maxDecibels(DefaultMaxDecibels)
{
- m_analysisFrame = std::make_unique<FFTFrame>(DefaultFFTSize);
+ m_analysisFrame = makeUnique<FFTFrame>(DefaultFFTSize);
}
RealtimeAnalyser::~RealtimeAnalyser() = default;
@@ -83,7 +83,7 @@
return false;
if (m_fftSize != size) {
- m_analysisFrame = std::make_unique<FFTFrame>(size);
+ m_analysisFrame = makeUnique<FFTFrame>(size);
// m_magnitudeBuffer has size = fftSize / 2 because it contains floats reduced from complex values in m_analysisFrame.
m_magnitudeBuffer.allocate(size / 2);
m_fftSize = size;
diff --git a/Source/WebCore/Modules/webaudio/ScriptProcessorNode.cpp b/Source/WebCore/Modules/webaudio/ScriptProcessorNode.cpp
index d59decf..d5b3afb 100644
--- a/Source/WebCore/Modules/webaudio/ScriptProcessorNode.cpp
+++ b/Source/WebCore/Modules/webaudio/ScriptProcessorNode.cpp
@@ -68,8 +68,8 @@
ASSERT(numberOfInputChannels <= AudioContext::maxNumberOfChannels());
setNodeType(NodeTypeJavaScript);
- addInput(std::make_unique<AudioNodeInput>(this));
- addOutput(std::make_unique<AudioNodeOutput>(this, numberOfOutputChannels));
+ addInput(makeUnique<AudioNodeInput>(this));
+ addOutput(makeUnique<AudioNodeOutput>(this, numberOfOutputChannels));
initialize();
}
diff --git a/Source/WebCore/Modules/webaudio/WaveShaperDSPKernel.cpp b/Source/WebCore/Modules/webaudio/WaveShaperDSPKernel.cpp
index 410d1da..f3d2122 100644
--- a/Source/WebCore/Modules/webaudio/WaveShaperDSPKernel.cpp
+++ b/Source/WebCore/Modules/webaudio/WaveShaperDSPKernel.cpp
@@ -49,12 +49,12 @@
ASSERT(isMainThread());
if (!m_tempBuffer) {
- m_tempBuffer = std::make_unique<AudioFloatArray>(RenderingQuantum * 2);
- m_tempBuffer2 = std::make_unique<AudioFloatArray>(RenderingQuantum * 4);
- m_upSampler = std::make_unique<UpSampler>(RenderingQuantum);
- m_downSampler = std::make_unique<DownSampler>(RenderingQuantum * 2);
- m_upSampler2 = std::make_unique<UpSampler>(RenderingQuantum * 2);
- m_downSampler2 = std::make_unique<DownSampler>(RenderingQuantum * 4);
+ m_tempBuffer = makeUnique<AudioFloatArray>(RenderingQuantum * 2);
+ m_tempBuffer2 = makeUnique<AudioFloatArray>(RenderingQuantum * 4);
+ m_upSampler = makeUnique<UpSampler>(RenderingQuantum);
+ m_downSampler = makeUnique<DownSampler>(RenderingQuantum * 2);
+ m_upSampler2 = makeUnique<UpSampler>(RenderingQuantum * 2);
+ m_downSampler2 = makeUnique<DownSampler>(RenderingQuantum * 4);
}
}
diff --git a/Source/WebCore/Modules/webaudio/WaveShaperNode.cpp b/Source/WebCore/Modules/webaudio/WaveShaperNode.cpp
index 8486993..6e7e8dd 100644
--- a/Source/WebCore/Modules/webaudio/WaveShaperNode.cpp
+++ b/Source/WebCore/Modules/webaudio/WaveShaperNode.cpp
@@ -39,7 +39,7 @@
: AudioBasicProcessorNode(context, context.sampleRate())
{
setNodeType(NodeTypeWaveShaper);
- m_processor = std::make_unique<WaveShaperProcessor>(context.sampleRate(), 1);
+ m_processor = makeUnique<WaveShaperProcessor>(context.sampleRate(), 1);
initialize();
}
diff --git a/Source/WebCore/Modules/webaudio/WaveShaperProcessor.cpp b/Source/WebCore/Modules/webaudio/WaveShaperProcessor.cpp
index 289c39f..bfe5e0e 100644
--- a/Source/WebCore/Modules/webaudio/WaveShaperProcessor.cpp
+++ b/Source/WebCore/Modules/webaudio/WaveShaperProcessor.cpp
@@ -46,7 +46,7 @@
std::unique_ptr<AudioDSPKernel> WaveShaperProcessor::createKernel()
{
- return std::make_unique<WaveShaperDSPKernel>(this);
+ return makeUnique<WaveShaperDSPKernel>(this);
}
void WaveShaperProcessor::setCurve(Float32Array* curve)
diff --git a/Source/WebCore/Modules/webauthn/fido/FidoHidMessage.cpp b/Source/WebCore/Modules/webauthn/fido/FidoHidMessage.cpp
index 8c3d134..1b912d9 100644
--- a/Source/WebCore/Modules/webauthn/fido/FidoHidMessage.cpp
+++ b/Source/WebCore/Modules/webauthn/fido/FidoHidMessage.cpp
@@ -150,9 +150,9 @@
uint8_t sequence = 0;
size_t pos = data.size() > kHidInitPacketDataSize ? kHidInitPacketDataSize : data.size();
- m_packets.append(std::make_unique<FidoHidInitPacket>(channelId, type, getInitPacketData(data), data.size()));
+ m_packets.append(makeUnique<FidoHidInitPacket>(channelId, type, getInitPacketData(data), data.size()));
for (; pos < data.size(); pos += kHidContinuationPacketDataSize)
- m_packets.append(std::make_unique<FidoHidContinuationPacket>(channelId, sequence++, getContinuationPacketData(data, pos)));
+ m_packets.append(makeUnique<FidoHidContinuationPacket>(channelId, sequence++, getContinuationPacketData(data, pos)));
}
FidoHidMessage::FidoHidMessage(std::unique_ptr<FidoHidInitPacket> initPacket, size_t remainingSize)
diff --git a/Source/WebCore/Modules/webauthn/fido/FidoHidPacket.cpp b/Source/WebCore/Modules/webauthn/fido/FidoHidPacket.cpp
index 55b7b2d..26b80aa 100644
--- a/Source/WebCore/Modules/webauthn/fido/FidoHidPacket.cpp
+++ b/Source/WebCore/Modules/webauthn/fido/FidoHidPacket.cpp
@@ -70,7 +70,7 @@
auto data = Vector<uint8_t>();
data.append(serialized.begin() + index, dataSize);
- return std::make_unique<FidoHidInitPacket>(channelId, command, WTFMove(data), payloadSize);
+ return makeUnique<FidoHidInitPacket>(channelId, command, WTFMove(data), payloadSize);
}
// U2F Initialization packet is defined as:
@@ -123,7 +123,7 @@
auto data = Vector<uint8_t>();
data.append(serialized.begin() + index, dataSize);
- return std::make_unique<FidoHidContinuationPacket>(channelId, sequence, WTFMove(data));
+ return makeUnique<FidoHidContinuationPacket>(channelId, sequence, WTFMove(data));
}
// U2F Continuation packet is defined as:
diff --git a/Source/WebCore/Modules/webdatabase/Database.cpp b/Source/WebCore/Modules/webdatabase/Database.cpp
index 02145d0..5b64a08 100644
--- a/Source/WebCore/Modules/webdatabase/Database.cpp
+++ b/Source/WebCore/Modules/webdatabase/Database.cpp
@@ -250,7 +250,7 @@
return Exception { InvalidStateError };
ExceptionOr<void> result;
- auto task = std::make_unique<DatabaseOpenTask>(*this, setVersionInNewDatabase, synchronizer, result);
+ auto task = makeUnique<DatabaseOpenTask>(*this, setVersionInNewDatabase, synchronizer, result);
thread.scheduleImmediateTask(WTFMove(task));
synchronizer.waitForTaskCompletion();
@@ -273,7 +273,7 @@
return;
}
- thread.scheduleImmediateTask(std::make_unique<DatabaseCloseTask>(*this, synchronizer));
+ thread.scheduleImmediateTask(makeUnique<DatabaseCloseTask>(*this, synchronizer));
// FIXME: iOS depends on this function blocking until the database is closed as part
// of closing all open databases from a process assertion expiration handler.
@@ -532,7 +532,7 @@
m_transactionInProgress = true;
auto transaction = m_transactionQueue.takeFirst();
- auto task = std::make_unique<DatabaseTransactionTask>(WTFMove(transaction));
+ auto task = makeUnique<DatabaseTransactionTask>(WTFMove(transaction));
LOG(StorageAPI, "Scheduling DatabaseTransactionTask %p for transaction %p\n", task.get(), task->transaction());
databaseThread().scheduleTask(WTFMove(task));
}
@@ -541,7 +541,7 @@
{
auto& thread = databaseThread();
- auto task = std::make_unique<DatabaseTransactionTask>(&transaction);
+ auto task = makeUnique<DatabaseTransactionTask>(&transaction);
LOG(StorageAPI, "Scheduling DatabaseTransactionTask %p for the transaction step\n", task.get());
thread.scheduleTask(WTFMove(task));
}
@@ -763,7 +763,7 @@
if (thread.terminationRequested(&synchronizer))
return result;
- auto task = std::make_unique<DatabaseTableNamesTask>(*this, synchronizer, result);
+ auto task = makeUnique<DatabaseTableNamesTask>(*this, synchronizer, result);
thread.scheduleImmediateTask(WTFMove(task));
synchronizer.waitForTaskCompletion();
diff --git a/Source/WebCore/Modules/webdatabase/DatabaseThread.cpp b/Source/WebCore/Modules/webdatabase/DatabaseThread.cpp
index 3babd49..d6497c3 100644
--- a/Source/WebCore/Modules/webdatabase/DatabaseThread.cpp
+++ b/Source/WebCore/Modules/webdatabase/DatabaseThread.cpp
@@ -39,7 +39,7 @@
namespace WebCore {
DatabaseThread::DatabaseThread()
- : m_transactionCoordinator(std::make_unique<SQLTransactionCoordinator>())
+ : m_transactionCoordinator(makeUnique<SQLTransactionCoordinator>())
{
m_selfRef = this;
}
diff --git a/Source/WebCore/Modules/webdatabase/DatabaseTracker.cpp b/Source/WebCore/Modules/webdatabase/DatabaseTracker.cpp
index d8ddcc5..c28a96f 100644
--- a/Source/WebCore/Modules/webdatabase/DatabaseTracker.cpp
+++ b/Source/WebCore/Modules/webdatabase/DatabaseTracker.cpp
@@ -549,7 +549,7 @@
LockHolder openDatabaseMapLock(m_openDatabaseMapGuard);
if (!m_openDatabaseMap)
- m_openDatabaseMap = std::make_unique<DatabaseOriginMap>();
+ m_openDatabaseMap = makeUnique<DatabaseOriginMap>();
auto origin = database.securityOrigin();
@@ -956,7 +956,7 @@
// We don't use HashMap::ensure here to avoid making an isolated copy of the origin every time.
auto* nameSet = m_beingCreated.get(origin);
if (!nameSet) {
- auto ownedSet = std::make_unique<HashCountedSet<String>>();
+ auto ownedSet = makeUnique<HashCountedSet<String>>();
nameSet = ownedSet.get();
m_beingCreated.add(origin.isolatedCopy(), WTFMove(ownedSet));
}
@@ -1002,7 +1002,7 @@
// We don't use HashMap::ensure here to avoid making an isolated copy of the origin every time.
auto* nameSet = m_beingDeleted.get(origin);
if (!nameSet) {
- auto ownedSet = std::make_unique<HashSet<String>>();
+ auto ownedSet = makeUnique<HashSet<String>>();
nameSet = ownedSet.get();
m_beingDeleted.add(origin.isolatedCopy(), WTFMove(ownedSet));
}
diff --git a/Source/WebCore/Modules/webdatabase/SQLTransaction.cpp b/Source/WebCore/Modules/webdatabase/SQLTransaction.cpp
index 20d6973..4cb041e 100644
--- a/Source/WebCore/Modules/webdatabase/SQLTransaction.cpp
+++ b/Source/WebCore/Modules/webdatabase/SQLTransaction.cpp
@@ -83,7 +83,7 @@
else if (m_readOnly)
permissions |= DatabaseAuthorizer::ReadOnlyMask;
- auto statement = std::make_unique<SQLStatement>(m_database, sqlStatement, arguments.valueOr(Vector<SQLValue> { }), WTFMove(callback), WTFMove(callbackError), permissions);
+ auto statement = makeUnique<SQLStatement>(m_database, sqlStatement, arguments.valueOr(Vector<SQLValue> { }), WTFMove(callback), WTFMove(callbackError), permissions);
if (m_database->deleted())
statement->setDatabaseDeletedError();
@@ -234,7 +234,7 @@
}
ASSERT(!m_sqliteTransaction);
- m_sqliteTransaction = std::make_unique<SQLiteTransaction>(m_database->sqliteDatabase(), m_readOnly);
+ m_sqliteTransaction = makeUnique<SQLiteTransaction>(m_database->sqliteDatabase(), m_readOnly);
m_database->resetDeletes();
m_database->disableAuthorizer();
diff --git a/Source/WebCore/Modules/webdriver/NavigatorWebDriver.cpp b/Source/WebCore/Modules/webdriver/NavigatorWebDriver.cpp
index 79aa561..129d86f 100644
--- a/Source/WebCore/Modules/webdriver/NavigatorWebDriver.cpp
+++ b/Source/WebCore/Modules/webdriver/NavigatorWebDriver.cpp
@@ -56,7 +56,7 @@
{
NavigatorWebDriver* supplement = static_cast<NavigatorWebDriver*>(Supplement<Navigator>::from(navigator, supplementName()));
if (!supplement) {
- auto newSupplement = std::make_unique<NavigatorWebDriver>();
+ auto newSupplement = makeUnique<NavigatorWebDriver>();
supplement = newSupplement.get();
provideTo(navigator, supplementName(), WTFMove(newSupplement));
}
diff --git a/Source/WebCore/Modules/webgpu/NavigatorGPU.cpp b/Source/WebCore/Modules/webgpu/NavigatorGPU.cpp
index 88a9780..376d155 100644
--- a/Source/WebCore/Modules/webgpu/NavigatorGPU.cpp
+++ b/Source/WebCore/Modules/webgpu/NavigatorGPU.cpp
@@ -38,7 +38,7 @@
{
NavigatorGPU* supplement = static_cast<NavigatorGPU*>(Supplement<Navigator>::from(navigator, supplementName()));
if (!supplement) {
- auto newSupplement = std::make_unique<NavigatorGPU>();
+ auto newSupplement = makeUnique<NavigatorGPU>();
supplement = newSupplement.get();
provideTo(navigator, supplementName(), WTFMove(newSupplement));
}
diff --git a/Source/WebCore/Modules/webgpu/WHLSL/AST/WHLSLEnumerationDefinition.h b/Source/WebCore/Modules/webgpu/WHLSL/AST/WHLSLEnumerationDefinition.h
index 1b34250..5f57ef1 100644
--- a/Source/WebCore/Modules/webgpu/WHLSL/AST/WHLSLEnumerationDefinition.h
+++ b/Source/WebCore/Modules/webgpu/WHLSL/AST/WHLSLEnumerationDefinition.h
@@ -63,7 +63,7 @@
bool add(EnumerationMember&& member)
{
- auto result = m_members.add(member.name(), std::make_unique<EnumerationMember>(WTFMove(member)));
+ auto result = m_members.add(member.name(), makeUnique<EnumerationMember>(WTFMove(member)));
return result.isNewEntry;
}
diff --git a/Source/WebCore/Modules/webgpu/WHLSL/AST/WHLSLVariableDeclaration.h b/Source/WebCore/Modules/webgpu/WHLSL/AST/WHLSLVariableDeclaration.h
index 3d02813..fa86551 100644
--- a/Source/WebCore/Modules/webgpu/WHLSL/AST/WHLSLVariableDeclaration.h
+++ b/Source/WebCore/Modules/webgpu/WHLSL/AST/WHLSLVariableDeclaration.h
@@ -65,7 +65,7 @@
, m_name(WTFMove(name))
{
if (semantic || !qualifiers.isEmpty())
- m_rareData = std::make_unique<RareData>(WTFMove(qualifiers), WTFMove(semantic));
+ m_rareData = makeUnique<RareData>(WTFMove(qualifiers), WTFMove(semantic));
}
~VariableDeclaration() = default;
diff --git a/Source/WebCore/Modules/webgpu/WHLSL/Metal/WHLSLFunctionWriter.cpp b/Source/WebCore/Modules/webgpu/WHLSL/Metal/WHLSLFunctionWriter.cpp
index dda5259..5dd9c8e 100644
--- a/Source/WebCore/Modules/webgpu/WHLSL/Metal/WHLSLFunctionWriter.cpp
+++ b/Source/WebCore/Modules/webgpu/WHLSL/Metal/WHLSLFunctionWriter.cpp
@@ -748,9 +748,9 @@
return this->generateNextVariableName();
};
if (&functionDefinition == m_matchedSemantics.vertexShader)
- return std::make_unique<VertexEntryPointScaffolding>(functionDefinition, m_intrinsics, m_typeNamer, m_matchedSemantics.vertexShaderEntryPointItems, m_matchedSemantics.vertexShaderResourceMap, m_layout, WTFMove(generateNextVariableName), m_matchedSemantics.matchedVertexAttributes);
+ return makeUnique<VertexEntryPointScaffolding>(functionDefinition, m_intrinsics, m_typeNamer, m_matchedSemantics.vertexShaderEntryPointItems, m_matchedSemantics.vertexShaderResourceMap, m_layout, WTFMove(generateNextVariableName), m_matchedSemantics.matchedVertexAttributes);
if (&functionDefinition == m_matchedSemantics.fragmentShader)
- return std::make_unique<FragmentEntryPointScaffolding>(functionDefinition, m_intrinsics, m_typeNamer, m_matchedSemantics.fragmentShaderEntryPointItems, m_matchedSemantics.fragmentShaderResourceMap, m_layout, WTFMove(generateNextVariableName), m_matchedSemantics.matchedColorAttachments);
+ return makeUnique<FragmentEntryPointScaffolding>(functionDefinition, m_intrinsics, m_typeNamer, m_matchedSemantics.fragmentShaderEntryPointItems, m_matchedSemantics.fragmentShaderResourceMap, m_layout, WTFMove(generateNextVariableName), m_matchedSemantics.matchedColorAttachments);
return nullptr;
}
@@ -774,7 +774,7 @@
return this->generateNextVariableName();
};
if (&functionDefinition == m_matchedSemantics.shader)
- return std::make_unique<ComputeEntryPointScaffolding>(functionDefinition, m_intrinsics, m_typeNamer, m_matchedSemantics.entryPointItems, m_matchedSemantics.resourceMap, m_layout, WTFMove(generateNextVariableName));
+ return makeUnique<ComputeEntryPointScaffolding>(functionDefinition, m_intrinsics, m_typeNamer, m_matchedSemantics.entryPointItems, m_matchedSemantics.resourceMap, m_layout, WTFMove(generateNextVariableName));
return nullptr;
}
diff --git a/Source/WebCore/Modules/webgpu/WHLSL/Metal/WHLSLTypeNamer.cpp b/Source/WebCore/Modules/webgpu/WHLSL/Metal/WHLSLTypeNamer.cpp
index 25fee22..08f951e 100644
--- a/Source/WebCore/Modules/webgpu/WHLSL/Metal/WHLSLTypeNamer.cpp
+++ b/Source/WebCore/Modules/webgpu/WHLSL/Metal/WHLSLTypeNamer.cpp
@@ -272,19 +272,19 @@
switch (unnamedType.kind()) {
case AST::UnnamedType::Kind::TypeReference: {
auto& typeReference = downcast<AST::TypeReference>(unnamedType);
- return std::make_unique<ReferenceTypeNameNode>(parent, generateNextTypeName(), typeReference.resolvedType());
+ return makeUnique<ReferenceTypeNameNode>(parent, generateNextTypeName(), typeReference.resolvedType());
}
case AST::UnnamedType::Kind::Pointer: {
auto& pointerType = downcast<AST::PointerType>(unnamedType);
- return std::make_unique<PointerTypeNameNode>(parent, generateNextTypeName(), pointerType.addressSpace());
+ return makeUnique<PointerTypeNameNode>(parent, generateNextTypeName(), pointerType.addressSpace());
}
case AST::UnnamedType::Kind::ArrayReference: {
auto& arrayReferenceType = downcast<AST::ArrayReferenceType>(unnamedType);
- return std::make_unique<ArrayReferenceTypeNameNode>(parent, generateNextTypeName(), arrayReferenceType.addressSpace());
+ return makeUnique<ArrayReferenceTypeNameNode>(parent, generateNextTypeName(), arrayReferenceType.addressSpace());
}
case AST::UnnamedType::Kind::Array: {
auto& arrayType = downcast<AST::ArrayType>(unnamedType);
- return std::make_unique<ArrayTypeNameNode>(parent, generateNextTypeName(), arrayType.numElements());
+ return makeUnique<ArrayTypeNameNode>(parent, generateNextTypeName(), arrayType.numElements());
}
default:
RELEASE_ASSERT_NOT_REACHED();
diff --git a/Source/WebCore/Modules/webgpu/WHLSL/WHLSLChecker.cpp b/Source/WebCore/Modules/webgpu/WHLSL/WHLSLChecker.cpp
index 63255d4..bb9c601 100644
--- a/Source/WebCore/Modules/webgpu/WHLSL/WHLSLChecker.cpp
+++ b/Source/WebCore/Modules/webgpu/WHLSL/WHLSLChecker.cpp
@@ -962,14 +962,14 @@
void Checker::assignConcreteType(AST::Expression& expression, Ref<AST::UnnamedType> unnamedType, AST::TypeAnnotation typeAnnotation = AST::RightValue())
{
- auto addResult = m_typeMap.add(&expression, std::make_unique<ResolvingType>(WTFMove(unnamedType)));
+ auto addResult = m_typeMap.add(&expression, makeUnique<ResolvingType>(WTFMove(unnamedType)));
ASSERT_UNUSED(addResult, addResult.isNewEntry);
expression.setTypeAnnotation(WTFMove(typeAnnotation));
}
void Checker::assignType(AST::Expression& expression, RefPtr<ResolvableTypeReference> resolvableTypeReference, AST::TypeAnnotation typeAnnotation = AST::RightValue())
{
- auto addResult = m_typeMap.add(&expression, std::make_unique<ResolvingType>(WTFMove(resolvableTypeReference)));
+ auto addResult = m_typeMap.add(&expression, makeUnique<ResolvingType>(WTFMove(resolvableTypeReference)));
ASSERT_UNUSED(addResult, addResult.isNewEntry);
expression.setTypeAnnotation(WTFMove(typeAnnotation));
}
@@ -977,10 +977,10 @@
void Checker::forwardType(AST::Expression& expression, ResolvingType& resolvingType, AST::TypeAnnotation typeAnnotation = AST::RightValue())
{
resolvingType.visit(WTF::makeVisitor([&](Ref<AST::UnnamedType>& result) {
- auto addResult = m_typeMap.add(&expression, std::make_unique<ResolvingType>(result.copyRef()));
+ auto addResult = m_typeMap.add(&expression, makeUnique<ResolvingType>(result.copyRef()));
ASSERT_UNUSED(addResult, addResult.isNewEntry);
}, [&](RefPtr<ResolvableTypeReference>& result) {
- auto addResult = m_typeMap.add(&expression, std::make_unique<ResolvingType>(result.copyRef()));
+ auto addResult = m_typeMap.add(&expression, makeUnique<ResolvingType>(result.copyRef()));
ASSERT_UNUSED(addResult, addResult.isNewEntry);
}));
expression.setTypeAnnotation(WTFMove(typeAnnotation));
diff --git a/Source/WebCore/Modules/webgpu/WHLSL/WHLSLParser.cpp b/Source/WebCore/Modules/webgpu/WHLSL/WHLSLParser.cpp
index 79708a1..d84e749 100644
--- a/Source/WebCore/Modules/webgpu/WHLSL/WHLSLParser.cpp
+++ b/Source/WebCore/Modules/webgpu/WHLSL/WHLSLParser.cpp
@@ -740,19 +740,19 @@
switch (token->type) {
case Token::Type::Attribute: {
PARSE(result, StageInOutSemantic);
- return { std::make_unique<AST::Semantic>(WTFMove(*result)) };
+ return { makeUnique<AST::Semantic>(WTFMove(*result)) };
}
case Token::Type::Specialized: {
PARSE(result, SpecializationConstantSemantic);
- return { std::make_unique<AST::Semantic>(WTFMove(*result)) };
+ return { makeUnique<AST::Semantic>(WTFMove(*result)) };
}
case Token::Type::Register: {
PARSE(result, ResourceSemantic);
- return { std::make_unique<AST::Semantic>(WTFMove(*result)) };
+ return { makeUnique<AST::Semantic>(WTFMove(*result)) };
}
default: {
PARSE(result, BuiltInSemantic);
- return { std::make_unique<AST::Semantic>(WTFMove(*result)) };
+ return { makeUnique<AST::Semantic>(WTFMove(*result)) };
}
}
}
diff --git a/Source/WebCore/Modules/webgpu/WorkerNavigatorGPU.cpp b/Source/WebCore/Modules/webgpu/WorkerNavigatorGPU.cpp
index bf90f6c..d952230 100644
--- a/Source/WebCore/Modules/webgpu/WorkerNavigatorGPU.cpp
+++ b/Source/WebCore/Modules/webgpu/WorkerNavigatorGPU.cpp
@@ -38,7 +38,7 @@
{
WorkerNavigatorGPU* supplement = static_cast<WorkerNavigatorGPU*>(Supplement<WorkerNavigator>::from(navigator, supplementName()));
if (!supplement) {
- auto newSupplement = std::make_unique<WorkerNavigatorGPU>();
+ auto newSupplement = makeUnique<WorkerNavigatorGPU>();
supplement = newSupplement.get();
provideTo(navigator, supplementName(), WTFMove(newSupplement));
}
diff --git a/Source/WebCore/Modules/websockets/ThreadableWebSocketChannelClientWrapper.cpp b/Source/WebCore/Modules/websockets/ThreadableWebSocketChannelClientWrapper.cpp
index ed5a3cc..c1bac86 100644
--- a/Source/WebCore/Modules/websockets/ThreadableWebSocketChannelClientWrapper.cpp
+++ b/Source/WebCore/Modules/websockets/ThreadableWebSocketChannelClientWrapper.cpp
@@ -153,7 +153,7 @@
void ThreadableWebSocketChannelClientWrapper::didConnect()
{
- m_pendingTasks.append(std::make_unique<ScriptExecutionContext::Task>([this, protectedThis = makeRef(*this)] (ScriptExecutionContext&) {
+ m_pendingTasks.append(makeUnique<ScriptExecutionContext::Task>([this, protectedThis = makeRef(*this)] (ScriptExecutionContext&) {
if (m_client)
m_client->didConnect();
}));
@@ -164,7 +164,7 @@
void ThreadableWebSocketChannelClientWrapper::didReceiveMessage(const String& message)
{
- m_pendingTasks.append(std::make_unique<ScriptExecutionContext::Task>([this, protectedThis = makeRef(*this), message = message.isolatedCopy()] (ScriptExecutionContext&) {
+ m_pendingTasks.append(makeUnique<ScriptExecutionContext::Task>([this, protectedThis = makeRef(*this), message = message.isolatedCopy()] (ScriptExecutionContext&) {
if (m_client)
m_client->didReceiveMessage(message);
}));
@@ -175,7 +175,7 @@
void ThreadableWebSocketChannelClientWrapper::didReceiveBinaryData(Vector<uint8_t>&& binaryData)
{
- m_pendingTasks.append(std::make_unique<ScriptExecutionContext::Task>([this, protectedThis = makeRef(*this), binaryData = WTFMove(binaryData)] (ScriptExecutionContext&) mutable {
+ m_pendingTasks.append(makeUnique<ScriptExecutionContext::Task>([this, protectedThis = makeRef(*this), binaryData = WTFMove(binaryData)] (ScriptExecutionContext&) mutable {
if (m_client)
m_client->didReceiveBinaryData(WTFMove(binaryData));
}));
@@ -186,7 +186,7 @@
void ThreadableWebSocketChannelClientWrapper::didUpdateBufferedAmount(unsigned bufferedAmount)
{
- m_pendingTasks.append(std::make_unique<ScriptExecutionContext::Task>([this, protectedThis = makeRef(*this), bufferedAmount] (ScriptExecutionContext&) {
+ m_pendingTasks.append(makeUnique<ScriptExecutionContext::Task>([this, protectedThis = makeRef(*this), bufferedAmount] (ScriptExecutionContext&) {
if (m_client)
m_client->didUpdateBufferedAmount(bufferedAmount);
}));
@@ -197,7 +197,7 @@
void ThreadableWebSocketChannelClientWrapper::didStartClosingHandshake()
{
- m_pendingTasks.append(std::make_unique<ScriptExecutionContext::Task>([this, protectedThis = makeRef(*this)] (ScriptExecutionContext&) {
+ m_pendingTasks.append(makeUnique<ScriptExecutionContext::Task>([this, protectedThis = makeRef(*this)] (ScriptExecutionContext&) {
if (m_client)
m_client->didStartClosingHandshake();
}));
@@ -208,7 +208,7 @@
void ThreadableWebSocketChannelClientWrapper::didClose(unsigned unhandledBufferedAmount, WebSocketChannelClient::ClosingHandshakeCompletionStatus closingHandshakeCompletion, unsigned short code, const String& reason)
{
- m_pendingTasks.append(std::make_unique<ScriptExecutionContext::Task>([this, protectedThis = makeRef(*this), unhandledBufferedAmount, closingHandshakeCompletion, code, reason = reason.isolatedCopy()] (ScriptExecutionContext&) {
+ m_pendingTasks.append(makeUnique<ScriptExecutionContext::Task>([this, protectedThis = makeRef(*this), unhandledBufferedAmount, closingHandshakeCompletion, code, reason = reason.isolatedCopy()] (ScriptExecutionContext&) {
if (m_client)
m_client->didClose(unhandledBufferedAmount, closingHandshakeCompletion, code, reason);
}));
@@ -219,7 +219,7 @@
void ThreadableWebSocketChannelClientWrapper::didReceiveMessageError()
{
- m_pendingTasks.append(std::make_unique<ScriptExecutionContext::Task>([this, protectedThis = makeRef(*this)] (ScriptExecutionContext&) {
+ m_pendingTasks.append(makeUnique<ScriptExecutionContext::Task>([this, protectedThis = makeRef(*this)] (ScriptExecutionContext&) {
if (m_client)
m_client->didReceiveMessageError();
}));
@@ -230,7 +230,7 @@
void ThreadableWebSocketChannelClientWrapper::didUpgradeURL()
{
- m_pendingTasks.append(std::make_unique<ScriptExecutionContext::Task>([this, protectedThis = makeRef(*this)] (ScriptExecutionContext&) {
+ m_pendingTasks.append(makeUnique<ScriptExecutionContext::Task>([this, protectedThis = makeRef(*this)] (ScriptExecutionContext&) {
if (m_client)
m_client->didUpgradeURL();
}));
diff --git a/Source/WebCore/Modules/websockets/WebSocketChannel.cpp b/Source/WebCore/Modules/websockets/WebSocketChannel.cpp
index 6071440..a07a876 100644
--- a/Source/WebCore/Modules/websockets/WebSocketChannel.cpp
+++ b/Source/WebCore/Modules/websockets/WebSocketChannel.cpp
@@ -97,7 +97,7 @@
m_allowCookies = validatedURL->areCookiesAllowed;
String userAgent = m_document->userAgent(m_document->url());
String clientOrigin = m_document->securityOrigin().toString();
- m_handshake = std::make_unique<WebSocketHandshake>(validatedURL->url, protocol, userAgent, clientOrigin, m_allowCookies);
+ m_handshake = makeUnique<WebSocketHandshake>(validatedURL->url, protocol, userAgent, clientOrigin, m_allowCookies);
m_handshake->reset();
if (m_deflateFramer.canDeflate())
m_handshake->addExtensionProcessor(m_deflateFramer.createExtensionProcessor());
@@ -703,7 +703,7 @@
void WebSocketChannel::enqueueTextFrame(const CString& string)
{
ASSERT(m_outgoingFrameQueueStatus == OutgoingFrameQueueOpen);
- auto frame = std::make_unique<QueuedFrame>();
+ auto frame = makeUnique<QueuedFrame>();
frame->opCode = WebSocketFrame::OpCodeText;
frame->frameType = QueuedFrameTypeString;
frame->stringData = string;
@@ -713,7 +713,7 @@
void WebSocketChannel::enqueueRawFrame(WebSocketFrame::OpCode opCode, const char* data, size_t dataLength)
{
ASSERT(m_outgoingFrameQueueStatus == OutgoingFrameQueueOpen);
- auto frame = std::make_unique<QueuedFrame>();
+ auto frame = makeUnique<QueuedFrame>();
frame->opCode = opCode;
frame->frameType = QueuedFrameTypeVector;
frame->vectorData.resize(dataLength);
@@ -725,7 +725,7 @@
void WebSocketChannel::enqueueBlobFrame(WebSocketFrame::OpCode opCode, Blob& blob)
{
ASSERT(m_outgoingFrameQueueStatus == OutgoingFrameQueueOpen);
- auto frame = std::make_unique<QueuedFrame>();
+ auto frame = makeUnique<QueuedFrame>();
frame->opCode = opCode;
frame->frameType = QueuedFrameTypeBlob;
frame->blobData = &blob;
@@ -763,7 +763,7 @@
ref(); // Will be derefed after didFinishLoading() or didFail().
ASSERT(!m_blobLoader);
ASSERT(frame->blobData);
- m_blobLoader = std::make_unique<FileReaderLoader>(FileReaderLoader::ReadAsArrayBuffer, this);
+ m_blobLoader = makeUnique<FileReaderLoader>(FileReaderLoader::ReadAsArrayBuffer, this);
m_blobLoaderStatus = BlobLoaderStarted;
m_blobLoader->start(m_document.get(), *frame->blobData);
m_outgoingFrameQueue.prepend(WTFMove(frame));
diff --git a/Source/WebCore/Modules/websockets/WebSocketDeflateFramer.cpp b/Source/WebCore/Modules/websockets/WebSocketDeflateFramer.cpp
index f2fa620..ee33ea0 100644
--- a/Source/WebCore/Modules/websockets/WebSocketDeflateFramer.cpp
+++ b/Source/WebCore/Modules/websockets/WebSocketDeflateFramer.cpp
@@ -155,7 +155,7 @@
std::unique_ptr<WebSocketExtensionProcessor> WebSocketDeflateFramer::createExtensionProcessor()
{
- return std::make_unique<WebSocketExtensionDeflateFrame>(this);
+ return makeUnique<WebSocketExtensionDeflateFrame>(this);
}
bool WebSocketDeflateFramer::canDeflate() const
@@ -170,8 +170,8 @@
#if USE(ZLIB)
void WebSocketDeflateFramer::enableDeflate(int windowBits, WebSocketDeflater::ContextTakeOverMode mode)
{
- m_deflater = std::make_unique<WebSocketDeflater>(windowBits, mode);
- m_inflater = std::make_unique<WebSocketInflater>();
+ m_deflater = makeUnique<WebSocketDeflater>(windowBits, mode);
+ m_inflater = makeUnique<WebSocketInflater>();
if (!m_deflater->initialize() || !m_inflater->initialize()) {
m_deflater = nullptr;
m_inflater = nullptr;
@@ -184,7 +184,7 @@
std::unique_ptr<DeflateResultHolder> WebSocketDeflateFramer::deflate(WebSocketFrame& frame)
{
#if USE(ZLIB)
- auto result = std::make_unique<DeflateResultHolder>(this);
+ auto result = makeUnique<DeflateResultHolder>(this);
if (!enabled() || !WebSocketFrame::isNonControlOpCode(frame.opCode) || !frame.payloadLength)
return result;
if (!m_deflater->addBytes(frame.payload, frame.payloadLength) || !m_deflater->finish()) {
@@ -196,7 +196,7 @@
frame.payloadLength = m_deflater->size();
return result;
#else
- return std::make_unique<DeflateResultHolder>(this);
+ return makeUnique<DeflateResultHolder>(this);
#endif
}
@@ -210,7 +210,7 @@
std::unique_ptr<InflateResultHolder> WebSocketDeflateFramer::inflate(WebSocketFrame& frame)
{
- auto result = std::make_unique<InflateResultHolder>(this);
+ auto result = makeUnique<InflateResultHolder>(this);
if (!enabled() && frame.compress) {
result->fail("Compressed bit must be 0 if no negotiated deflate-frame extension");
return result;
diff --git a/Source/WebCore/Modules/websockets/WebSocketDeflater.cpp b/Source/WebCore/Modules/websockets/WebSocketDeflater.cpp
index 1d6f178..4a4865f 100644
--- a/Source/WebCore/Modules/websockets/WebSocketDeflater.cpp
+++ b/Source/WebCore/Modules/websockets/WebSocketDeflater.cpp
@@ -52,7 +52,7 @@
{
ASSERT(m_windowBits >= 8);
ASSERT(m_windowBits <= 15);
- m_stream = std::make_unique<z_stream>();
+ m_stream = makeUniqueWithoutFastMallocCheck<z_stream>();
memset(m_stream.get(), 0, sizeof(z_stream));
}
@@ -124,7 +124,7 @@
WebSocketInflater::WebSocketInflater(int windowBits)
: m_windowBits(windowBits)
{
- m_stream = std::make_unique<z_stream>();
+ m_stream = makeUniqueWithoutFastMallocCheck<z_stream>();
memset(m_stream.get(), 0, sizeof(z_stream));
}
diff --git a/Source/WebCore/Modules/websockets/WorkerThreadableWebSocketChannel.cpp b/Source/WebCore/Modules/websockets/WorkerThreadableWebSocketChannel.cpp
index 994073e..dc6f660 100644
--- a/Source/WebCore/Modules/websockets/WorkerThreadableWebSocketChannel.cpp
+++ b/Source/WebCore/Modules/websockets/WorkerThreadableWebSocketChannel.cpp
@@ -361,7 +361,7 @@
bool sent = loaderProxy.postTaskForModeToWorkerGlobalScope({
ScriptExecutionContext::Task::CleanupTask,
- [clientWrapper = clientWrapper.copyRef(), &loaderProxy, peer = std::make_unique<Peer>(clientWrapper.copyRef(), loaderProxy, context, taskMode, WTFMove(provider))](ScriptExecutionContext& context) mutable {
+ [clientWrapper = clientWrapper.copyRef(), &loaderProxy, peer = makeUnique<Peer>(clientWrapper.copyRef(), loaderProxy, context, taskMode, WTFMove(provider))](ScriptExecutionContext& context) mutable {
ASSERT_UNUSED(context, context.isWorkerGlobalScope());
if (clientWrapper->failedWebSocketChannelCreation()) {
// If Bridge::initialize() quitted earlier, we need to kick mainThreadDestroy() to delete the peer.
diff --git a/Source/WebCore/Modules/webvr/NavigatorWebVR.cpp b/Source/WebCore/Modules/webvr/NavigatorWebVR.cpp
index d97b5c2..776c43a 100644
--- a/Source/WebCore/Modules/webvr/NavigatorWebVR.cpp
+++ b/Source/WebCore/Modules/webvr/NavigatorWebVR.cpp
@@ -94,7 +94,7 @@
{
NavigatorWebVR* supplement = static_cast<NavigatorWebVR*>(Supplement<Navigator>::from(navigator, supplementName()));
if (!supplement) {
- auto newSupplement = std::make_unique<NavigatorWebVR>();
+ auto newSupplement = makeUnique<NavigatorWebVR>();
supplement = newSupplement.get();
provideTo(navigator, supplementName(), WTFMove(newSupplement));
}
diff --git a/Source/WebCore/PAL/ChangeLog b/Source/WebCore/PAL/ChangeLog
index 60e7fb5..fbf04f2 100644
--- a/Source/WebCore/PAL/ChangeLog
+++ b/Source/WebCore/PAL/ChangeLog
@@ -1,3 +1,17 @@
+2019-08-18 Yusuke Suzuki <ysuzuki@apple.com>
+
+ [WTF] Add makeUnique<T>, which ensures T is fast-allocated, makeUnique / makeUniqueWithoutFastMallocCheck part
+ https://bugs.webkit.org/show_bug.cgi?id=200620
+
+ Reviewed by Geoffrey Garen.
+
+ * pal/crypto/openssl/CryptoDigestOpenSSL.cpp:
+ (PAL::CryptoDigestContextImpl::create):
+ * pal/system/ClockGeneric.cpp:
+ (PAL::Clock::create):
+ * pal/system/mac/ClockCM.mm:
+ (Clock::create):
+
2019-08-14 Keith Rollin <krollin@apple.com>
Remove support for macOS < 10.13
diff --git a/Source/WebCore/PAL/pal/crypto/openssl/CryptoDigestOpenSSL.cpp b/Source/WebCore/PAL/pal/crypto/openssl/CryptoDigestOpenSSL.cpp
index bc23d59..6ca67f3 100644
--- a/Source/WebCore/PAL/pal/crypto/openssl/CryptoDigestOpenSSL.cpp
+++ b/Source/WebCore/PAL/pal/crypto/openssl/CryptoDigestOpenSSL.cpp
@@ -79,7 +79,7 @@
static std::unique_ptr<CryptoDigestContext> create()
{
- return std::make_unique<CryptoDigestContextImpl>();
+ return makeUnique<CryptoDigestContextImpl>();
}
CryptoDigestContextImpl()
diff --git a/Source/WebCore/PAL/pal/system/ClockGeneric.cpp b/Source/WebCore/PAL/pal/system/ClockGeneric.cpp
index 3153168..e53e195 100644
--- a/Source/WebCore/PAL/pal/system/ClockGeneric.cpp
+++ b/Source/WebCore/PAL/pal/system/ClockGeneric.cpp
@@ -32,7 +32,7 @@
std::unique_ptr<Clock> Clock::create()
{
- return std::make_unique<ClockGeneric>();
+ return makeUnique<ClockGeneric>();
}
ClockGeneric::ClockGeneric()
diff --git a/Source/WebCore/PAL/pal/system/mac/ClockCM.mm b/Source/WebCore/PAL/pal/system/mac/ClockCM.mm
index c689321..9e071b7 100644
--- a/Source/WebCore/PAL/pal/system/mac/ClockCM.mm
+++ b/Source/WebCore/PAL/pal/system/mac/ClockCM.mm
@@ -39,7 +39,7 @@
std::unique_ptr<Clock> Clock::create()
{
- return std::make_unique<ClockCM>();
+ return makeUnique<ClockCM>();
}
ClockCM::ClockCM()
diff --git a/Source/WebCore/accessibility/AXObjectCache.cpp b/Source/WebCore/accessibility/AXObjectCache.cpp
index cacab85..b35fc15 100644
--- a/Source/WebCore/accessibility/AXObjectCache.cpp
+++ b/Source/WebCore/accessibility/AXObjectCache.cpp
@@ -1575,7 +1575,7 @@
void AXObjectCache::startCachingComputedObjectAttributesUntilTreeMutates()
{
if (!m_computedObjectAttributeCache)
- m_computedObjectAttributeCache = std::make_unique<AXComputedObjectAttributeCache>();
+ m_computedObjectAttributeCache = makeUnique<AXComputedObjectAttributeCache>();
}
void AXObjectCache::stopCachingComputedObjectAttributes()
diff --git a/Source/WebCore/animation/WebAnimation.cpp b/Source/WebCore/animation/WebAnimation.cpp
index edfdbb0..e6dea96 100644
--- a/Source/WebCore/animation/WebAnimation.cpp
+++ b/Source/WebCore/animation/WebAnimation.cpp
@@ -777,7 +777,7 @@
// Otherwise, if synchronously notify is false, queue a microtask to run finish notification steps for animation unless there
// is already a microtask queued to run those steps for animation.
m_finishNotificationStepsMicrotaskPending = true;
- MicrotaskQueue::mainThreadQueue().append(std::make_unique<VoidMicrotask>([this, protectedThis = makeRef(*this)] () {
+ MicrotaskQueue::mainThreadQueue().append(makeUnique<VoidMicrotask>([this, protectedThis = makeRef(*this)] () {
if (m_finishNotificationStepsMicrotaskPending) {
m_finishNotificationStepsMicrotaskPending = false;
finishNotificationSteps();
diff --git a/Source/WebCore/bindings/js/JSDOMWindowBase.cpp b/Source/WebCore/bindings/js/JSDOMWindowBase.cpp
index db0c1dc..c5c4706 100644
--- a/Source/WebCore/bindings/js/JSDOMWindowBase.cpp
+++ b/Source/WebCore/bindings/js/JSDOMWindowBase.cpp
@@ -210,7 +210,7 @@
JSDOMWindowBase& thisObject = static_cast<JSDOMWindowBase&>(object);
auto callback = JSMicrotaskCallback::create(thisObject, WTFMove(task));
- auto microtask = std::make_unique<ActiveDOMCallbackMicrotask>(MicrotaskQueue::mainThreadQueue(), *thisObject.scriptExecutionContext(), [callback = WTFMove(callback)]() mutable {
+ auto microtask = makeUnique<ActiveDOMCallbackMicrotask>(MicrotaskQueue::mainThreadQueue(), *thisObject.scriptExecutionContext(), [callback = WTFMove(callback)]() mutable {
callback->call();
});
diff --git a/Source/WebCore/bindings/js/JSEventTargetCustom.cpp b/Source/WebCore/bindings/js/JSEventTargetCustom.cpp
index 6295f58..db5e773 100644
--- a/Source/WebCore/bindings/js/JSEventTargetCustom.cpp
+++ b/Source/WebCore/bindings/js/JSEventTargetCustom.cpp
@@ -56,11 +56,11 @@
std::unique_ptr<JSEventTargetWrapper> jsEventTargetCast(VM& vm, JSValue thisValue)
{
if (auto* target = jsDynamicCast<JSEventTarget*>(vm, thisValue))
- return std::make_unique<JSEventTargetWrapper>(target->wrapped(), *target);
+ return makeUnique<JSEventTargetWrapper>(target->wrapped(), *target);
if (auto* window = toJSDOMWindow(vm, thisValue))
- return std::make_unique<JSEventTargetWrapper>(window->wrapped(), *window);
+ return makeUnique<JSEventTargetWrapper>(window->wrapped(), *window);
if (auto* scope = toJSWorkerGlobalScope(vm, thisValue))
- return std::make_unique<JSEventTargetWrapper>(scope->wrapped(), *scope);
+ return makeUnique<JSEventTargetWrapper>(scope->wrapped(), *scope);
return nullptr;
}
diff --git a/Source/WebCore/bindings/js/JSWorkerGlobalScopeBase.cpp b/Source/WebCore/bindings/js/JSWorkerGlobalScopeBase.cpp
index d831604..9bd6644 100644
--- a/Source/WebCore/bindings/js/JSWorkerGlobalScopeBase.cpp
+++ b/Source/WebCore/bindings/js/JSWorkerGlobalScopeBase.cpp
@@ -135,7 +135,7 @@
auto callback = JSMicrotaskCallback::create(thisObject, WTFMove(task));
auto& context = thisObject.wrapped();
- auto microtask = std::make_unique<ActiveDOMCallbackMicrotask>(context.microtaskQueue(), context, [callback = WTFMove(callback)]() mutable {
+ auto microtask = makeUnique<ActiveDOMCallbackMicrotask>(context.microtaskQueue(), context, [callback = WTFMove(callback)]() mutable {
callback->call();
});
diff --git a/Source/WebCore/bindings/js/SerializedScriptValue.cpp b/Source/WebCore/bindings/js/SerializedScriptValue.cpp
index 114ff3c..35ccd49 100644
--- a/Source/WebCore/bindings/js/SerializedScriptValue.cpp
+++ b/Source/WebCore/bindings/js/SerializedScriptValue.cpp
@@ -3300,7 +3300,7 @@
if (arrayBuffers.isEmpty())
return nullptr;
- auto contents = std::make_unique<ArrayBufferContentsArray>(arrayBuffers.size());
+ auto contents = makeUnique<ArrayBufferContentsArray>(arrayBuffers.size());
HashSet<JSC::ArrayBuffer*> visited;
for (size_t arrayBufferIndex = 0; arrayBufferIndex < arrayBuffers.size(); arrayBufferIndex++) {
@@ -3451,7 +3451,7 @@
#if ENABLE(WEBASSEMBLY)
WasmModuleArray wasmModules;
#endif
- std::unique_ptr<ArrayBufferContentsArray> sharedBuffers = std::make_unique<ArrayBufferContentsArray>();
+ std::unique_ptr<ArrayBufferContentsArray> sharedBuffers = makeUnique<ArrayBufferContentsArray>();
auto code = CloneSerializer::serialize(&state, value, messagePorts, arrayBuffers, imageBitmaps,
#if ENABLE(WEBASSEMBLY)
wasmModules,
@@ -3469,7 +3469,7 @@
return adoptRef(*new SerializedScriptValue(WTFMove(buffer), blobURLs, arrayBufferContentsArray.releaseReturnValue(), context == SerializationContext::WorkerPostMessage ? WTFMove(sharedBuffers) : nullptr, WTFMove(imageBuffers)
#if ENABLE(WEBASSEMBLY)
- , std::make_unique<WasmModuleArray>(wasmModules)
+ , makeUnique<WasmModuleArray>(wasmModules)
#endif
));
}
diff --git a/Source/WebCore/bindings/js/SerializedScriptValue.h b/Source/WebCore/bindings/js/SerializedScriptValue.h
index 5c46629..4f4b0cf 100644
--- a/Source/WebCore/bindings/js/SerializedScriptValue.h
+++ b/Source/WebCore/bindings/js/SerializedScriptValue.h
@@ -164,7 +164,7 @@
return nullptr;
ASSERT(arrayLength);
- auto arrayBufferContentsArray = std::make_unique<ArrayBufferContentsArray>();
+ auto arrayBufferContentsArray = makeUnique<ArrayBufferContentsArray>();
while (arrayLength--) {
unsigned bufferSize;
if (!decoder.decode(bufferSize))
diff --git a/Source/WebCore/bindings/js/WebCoreJSClientData.cpp b/Source/WebCore/bindings/js/WebCoreJSClientData.cpp
index 246f64a..3b11252 100644
--- a/Source/WebCore/bindings/js/WebCoreJSClientData.cpp
+++ b/Source/WebCore/bindings/js/WebCoreJSClientData.cpp
@@ -72,7 +72,7 @@
JSVMClientData* clientData = new JSVMClientData(*vm);
vm->clientData = clientData; // ~VM deletes this pointer.
- vm->heap.addMarkingConstraint(std::make_unique<DOMGCOutputConstraint>(*vm, *clientData));
+ vm->heap.addMarkingConstraint(makeUnique<DOMGCOutputConstraint>(*vm, *clientData));
clientData->m_normalWorld = DOMWrapperWorld::create(*vm, true);
vm->m_typedArrayController = adoptRef(new WebCoreTypedArrayController());
diff --git a/Source/WebCore/bindings/js/WorkerScriptController.cpp b/Source/WebCore/bindings/js/WorkerScriptController.cpp
index 16a76c4..d239857 100644
--- a/Source/WebCore/bindings/js/WorkerScriptController.cpp
+++ b/Source/WebCore/bindings/js/WorkerScriptController.cpp
@@ -121,7 +121,7 @@
ASSERT(m_workerGlobalScopeWrapper->globalObject() == m_workerGlobalScopeWrapper);
ASSERT(asObject(m_workerGlobalScopeWrapper->getPrototypeDirect(*m_vm))->globalObject() == m_workerGlobalScopeWrapper);
- m_consoleClient = std::make_unique<WorkerConsoleClient>(*m_workerGlobalScope);
+ m_consoleClient = makeUnique<WorkerConsoleClient>(*m_workerGlobalScope);
m_workerGlobalScopeWrapper->setConsoleClient(m_consoleClient.get());
}
diff --git a/Source/WebCore/bridge/c/c_class.cpp b/Source/WebCore/bridge/c/c_class.cpp
index 29c8186..aa56e2f 100644
--- a/Source/WebCore/bridge/c/c_class.cpp
+++ b/Source/WebCore/bridge/c/c_class.cpp
@@ -81,7 +81,7 @@
const CInstance* inst = static_cast<const CInstance*>(instance);
NPObject* obj = inst->getObject();
if (m_isa->hasMethod && m_isa->hasMethod(obj, ident)) {
- auto method = std::make_unique<CMethod>(ident);
+ auto method = makeUnique<CMethod>(ident);
CMethod* ret = method.get();
m_methods.set(name.impl(), WTFMove(method));
return ret;
@@ -103,7 +103,7 @@
const CInstance* inst = static_cast<const CInstance*>(instance);
NPObject* obj = inst->getObject();
if (m_isa->hasProperty && m_isa->hasProperty(obj, ident)) {
- auto field = std::make_unique<CField>(ident);
+ auto field = makeUnique<CField>(ident);
CField* ret = field.get();
m_fields.set(name.impl(), WTFMove(field));
return ret;
diff --git a/Source/WebCore/bridge/objc/objc_class.mm b/Source/WebCore/bridge/objc/objc_class.mm
index b86f751..a3d8d32 100644
--- a/Source/WebCore/bridge/objc/objc_class.mm
+++ b/Source/WebCore/bridge/objc/objc_class.mm
@@ -134,7 +134,7 @@
mappedName = [thisClass webScriptNameForSelector:objcMethodSelector];
if ((mappedName && [mappedName isEqual:(__bridge NSString*)methodName.get()]) || !strcmp(objcMethodSelectorName, buffer.data())) {
- auto method = std::make_unique<ObjcMethod>(thisClass, objcMethodSelector);
+ auto method = makeUnique<ObjcMethod>(thisClass, objcMethodSelector);
methodPtr = method.get();
m_methodCache.add(name.impl(), WTFMove(method));
break;
@@ -189,7 +189,7 @@
mappedName = [thisClass webScriptNameForKey:UTF8KeyName];
if ((mappedName && [mappedName isEqual:(__bridge NSString *)fieldName.get()]) || [keyName isEqual:(__bridge NSString *)fieldName.get()]) {
- auto newField = std::make_unique<ObjcField>((__bridge CFStringRef)keyName);
+ auto newField = makeUnique<ObjcField>((__bridge CFStringRef)keyName);
field = newField.get();
m_fieldCache.add(name.impl(), WTFMove(newField));
break;
@@ -220,7 +220,7 @@
mappedName = [thisClass webScriptNameForKey:objcIvarName];
if ((mappedName && [mappedName isEqual:(__bridge NSString *)fieldName.get()]) || !strcmp(objcIvarName, jsName.data())) {
- auto newField = std::make_unique<ObjcField>(objcIVar);
+ auto newField = makeUnique<ObjcField>(objcIVar);
field = newField.get();
m_fieldCache.add(name.impl(), WTFMove(newField));
break;
diff --git a/Source/WebCore/bridge/objc/objc_runtime.mm b/Source/WebCore/bridge/objc/objc_runtime.mm
index e08b048..3b93e18 100644
--- a/Source/WebCore/bridge/objc/objc_runtime.mm
+++ b/Source/WebCore/bridge/objc/objc_runtime.mm
@@ -267,7 +267,7 @@
if ([targetObject respondsToSelector:@selector(invokeUndefinedMethodFromWebScript:withArguments:)]){
ObjcClass* objcClass = static_cast<ObjcClass*>(objcInstance->getClass());
- std::unique_ptr<ObjcMethod> fallbackMethod(std::make_unique<ObjcMethod>(objcClass->isa(), @selector(invokeUndefinedMethodFromWebScript:withArguments:)));
+ std::unique_ptr<ObjcMethod> fallbackMethod(makeUnique<ObjcMethod>(objcClass->isa(), @selector(invokeUndefinedMethodFromWebScript:withArguments:)));
const String& nameIdentifier = static_cast<ObjcFallbackObjectImp*>(exec->jsCallee())->propertyName();
fallbackMethod->setJavaScriptName(nameIdentifier.createCFString().get());
result = objcInstance->invokeObjcMethod(exec, fallbackMethod.get());
diff --git a/Source/WebCore/contentextensions/CombinedURLFilters.cpp b/Source/WebCore/contentextensions/CombinedURLFilters.cpp
index 83d44e0..f171a58 100644
--- a/Source/WebCore/contentextensions/CombinedURLFilters.cpp
+++ b/Source/WebCore/contentextensions/CombinedURLFilters.cpp
@@ -135,7 +135,7 @@
#endif
CombinedURLFilters::CombinedURLFilters()
- : m_prefixTreeRoot(std::make_unique<PrefixTreeVertex>())
+ : m_prefixTreeRoot(makeUnique<PrefixTreeVertex>())
{
}
@@ -209,7 +209,7 @@
if (nextEntryIndex != WTF::notFound)
lastPrefixTree = lastPrefixTree->edges[nextEntryIndex].child.get();
else {
- lastPrefixTree->edges.append(PrefixTreeEdge({m_alphabet.interned(term), std::make_unique<PrefixTreeVertex>()}));
+ lastPrefixTree->edges.append(PrefixTreeEdge({m_alphabet.interned(term), makeUnique<PrefixTreeVertex>()}));
lastPrefixTree = lastPrefixTree->edges.last().child.get();
}
}
diff --git a/Source/WebCore/crypto/SubtleCrypto.cpp b/Source/WebCore/crypto/SubtleCrypto.cpp
index 96e2d634..b2a9a78 100644
--- a/Source/WebCore/crypto/SubtleCrypto.cpp
+++ b/Source/WebCore/crypto/SubtleCrypto.cpp
@@ -115,31 +115,31 @@
case Operations::Decrypt:
switch (*identifier) {
case CryptoAlgorithmIdentifier::RSAES_PKCS1_v1_5:
- result = std::make_unique<CryptoAlgorithmParameters>(params);
+ result = makeUnique<CryptoAlgorithmParameters>(params);
break;
case CryptoAlgorithmIdentifier::RSA_OAEP: {
auto params = convertDictionary<CryptoAlgorithmRsaOaepParams>(state, value.get());
RETURN_IF_EXCEPTION(scope, Exception { ExistingExceptionError });
- result = std::make_unique<CryptoAlgorithmRsaOaepParams>(params);
+ result = makeUnique<CryptoAlgorithmRsaOaepParams>(params);
break;
}
case CryptoAlgorithmIdentifier::AES_CBC:
case CryptoAlgorithmIdentifier::AES_CFB: {
auto params = convertDictionary<CryptoAlgorithmAesCbcCfbParams>(state, value.get());
RETURN_IF_EXCEPTION(scope, Exception { ExistingExceptionError });
- result = std::make_unique<CryptoAlgorithmAesCbcCfbParams>(params);
+ result = makeUnique<CryptoAlgorithmAesCbcCfbParams>(params);
break;
}
case CryptoAlgorithmIdentifier::AES_CTR: {
auto params = convertDictionary<CryptoAlgorithmAesCtrParams>(state, value.get());
RETURN_IF_EXCEPTION(scope, Exception { ExistingExceptionError });
- result = std::make_unique<CryptoAlgorithmAesCtrParams>(params);
+ result = makeUnique<CryptoAlgorithmAesCtrParams>(params);
break;
}
case CryptoAlgorithmIdentifier::AES_GCM: {
auto params = convertDictionary<CryptoAlgorithmAesGcmParams>(state, value.get());
RETURN_IF_EXCEPTION(scope, Exception { ExistingExceptionError });
- result = std::make_unique<CryptoAlgorithmAesGcmParams>(params);
+ result = makeUnique<CryptoAlgorithmAesGcmParams>(params);
break;
}
default:
@@ -151,7 +151,7 @@
switch (*identifier) {
case CryptoAlgorithmIdentifier::RSASSA_PKCS1_v1_5:
case CryptoAlgorithmIdentifier::HMAC:
- result = std::make_unique<CryptoAlgorithmParameters>(params);
+ result = makeUnique<CryptoAlgorithmParameters>(params);
break;
case CryptoAlgorithmIdentifier::ECDSA: {
auto params = convertDictionary<CryptoAlgorithmEcdsaParams>(state, value.get());
@@ -160,13 +160,13 @@
if (hashIdentifier.hasException())
return hashIdentifier.releaseException();
params.hashIdentifier = hashIdentifier.releaseReturnValue();
- result = std::make_unique<CryptoAlgorithmEcdsaParams>(params);
+ result = makeUnique<CryptoAlgorithmEcdsaParams>(params);
break;
}
case CryptoAlgorithmIdentifier::RSA_PSS: {
auto params = convertDictionary<CryptoAlgorithmRsaPssParams>(state, value.get());
RETURN_IF_EXCEPTION(scope, Exception { ExistingExceptionError });
- result = std::make_unique<CryptoAlgorithmRsaPssParams>(params);
+ result = makeUnique<CryptoAlgorithmRsaPssParams>(params);
break;
}
default:
@@ -180,7 +180,7 @@
case CryptoAlgorithmIdentifier::SHA_256:
case CryptoAlgorithmIdentifier::SHA_384:
case CryptoAlgorithmIdentifier::SHA_512:
- result = std::make_unique<CryptoAlgorithmParameters>(params);
+ result = makeUnique<CryptoAlgorithmParameters>(params);
break;
default:
return Exception { NotSupportedError };
@@ -191,7 +191,7 @@
case CryptoAlgorithmIdentifier::RSAES_PKCS1_v1_5: {
auto params = convertDictionary<CryptoAlgorithmRsaKeyGenParams>(state, value.get());
RETURN_IF_EXCEPTION(scope, Exception { ExistingExceptionError });
- result = std::make_unique<CryptoAlgorithmRsaKeyGenParams>(params);
+ result = makeUnique<CryptoAlgorithmRsaKeyGenParams>(params);
break;
}
case CryptoAlgorithmIdentifier::RSASSA_PKCS1_v1_5:
@@ -203,7 +203,7 @@
if (hashIdentifier.hasException())
return hashIdentifier.releaseException();
params.hashIdentifier = hashIdentifier.releaseReturnValue();
- result = std::make_unique<CryptoAlgorithmRsaHashedKeyGenParams>(params);
+ result = makeUnique<CryptoAlgorithmRsaHashedKeyGenParams>(params);
break;
}
case CryptoAlgorithmIdentifier::AES_CTR:
@@ -213,7 +213,7 @@
case CryptoAlgorithmIdentifier::AES_KW: {
auto params = convertDictionary<CryptoAlgorithmAesKeyParams>(state, value.get());
RETURN_IF_EXCEPTION(scope, Exception { ExistingExceptionError });
- result = std::make_unique<CryptoAlgorithmAesKeyParams>(params);
+ result = makeUnique<CryptoAlgorithmAesKeyParams>(params);
break;
}
case CryptoAlgorithmIdentifier::HMAC: {
@@ -223,14 +223,14 @@
if (hashIdentifier.hasException())
return hashIdentifier.releaseException();
params.hashIdentifier = hashIdentifier.releaseReturnValue();
- result = std::make_unique<CryptoAlgorithmHmacKeyParams>(params);
+ result = makeUnique<CryptoAlgorithmHmacKeyParams>(params);
break;
}
case CryptoAlgorithmIdentifier::ECDSA:
case CryptoAlgorithmIdentifier::ECDH: {
auto params = convertDictionary<CryptoAlgorithmEcKeyParams>(state, value.get());
RETURN_IF_EXCEPTION(scope, Exception { ExistingExceptionError });
- result = std::make_unique<CryptoAlgorithmEcKeyParams>(params);
+ result = makeUnique<CryptoAlgorithmEcKeyParams>(params);
break;
}
default:
@@ -249,7 +249,7 @@
auto params = convertDictionary<CryptoAlgorithmEcdhKeyDeriveParams>(state, newValue);
RETURN_IF_EXCEPTION(scope, Exception { ExistingExceptionError });
- result = std::make_unique<CryptoAlgorithmEcdhKeyDeriveParams>(params);
+ result = makeUnique<CryptoAlgorithmEcdhKeyDeriveParams>(params);
break;
}
case CryptoAlgorithmIdentifier::HKDF: {
@@ -259,7 +259,7 @@
if (hashIdentifier.hasException())
return hashIdentifier.releaseException();
params.hashIdentifier = hashIdentifier.releaseReturnValue();
- result = std::make_unique<CryptoAlgorithmHkdfParams>(params);
+ result = makeUnique<CryptoAlgorithmHkdfParams>(params);
break;
}
case CryptoAlgorithmIdentifier::PBKDF2: {
@@ -269,7 +269,7 @@
if (hashIdentifier.hasException())
return hashIdentifier.releaseException();
params.hashIdentifier = hashIdentifier.releaseReturnValue();
- result = std::make_unique<CryptoAlgorithmPbkdf2Params>(params);
+ result = makeUnique<CryptoAlgorithmPbkdf2Params>(params);
break;
}
default:
@@ -279,7 +279,7 @@
case Operations::ImportKey:
switch (*identifier) {
case CryptoAlgorithmIdentifier::RSAES_PKCS1_v1_5:
- result = std::make_unique<CryptoAlgorithmParameters>(params);
+ result = makeUnique<CryptoAlgorithmParameters>(params);
break;
case CryptoAlgorithmIdentifier::RSASSA_PKCS1_v1_5:
case CryptoAlgorithmIdentifier::RSA_PSS:
@@ -290,7 +290,7 @@
if (hashIdentifier.hasException())
return hashIdentifier.releaseException();
params.hashIdentifier = hashIdentifier.releaseReturnValue();
- result = std::make_unique<CryptoAlgorithmRsaHashedImportParams>(params);
+ result = makeUnique<CryptoAlgorithmRsaHashedImportParams>(params);
break;
}
case CryptoAlgorithmIdentifier::AES_CTR:
@@ -298,7 +298,7 @@
case CryptoAlgorithmIdentifier::AES_GCM:
case CryptoAlgorithmIdentifier::AES_CFB:
case CryptoAlgorithmIdentifier::AES_KW:
- result = std::make_unique<CryptoAlgorithmParameters>(params);
+ result = makeUnique<CryptoAlgorithmParameters>(params);
break;
case CryptoAlgorithmIdentifier::HMAC: {
auto params = convertDictionary<CryptoAlgorithmHmacKeyParams>(state, value.get());
@@ -307,19 +307,19 @@
if (hashIdentifier.hasException())
return hashIdentifier.releaseException();
params.hashIdentifier = hashIdentifier.releaseReturnValue();
- result = std::make_unique<CryptoAlgorithmHmacKeyParams>(params);
+ result = makeUnique<CryptoAlgorithmHmacKeyParams>(params);
break;
}
case CryptoAlgorithmIdentifier::ECDSA:
case CryptoAlgorithmIdentifier::ECDH: {
auto params = convertDictionary<CryptoAlgorithmEcKeyParams>(state, value.get());
RETURN_IF_EXCEPTION(scope, Exception { ExistingExceptionError });
- result = std::make_unique<CryptoAlgorithmEcKeyParams>(params);
+ result = makeUnique<CryptoAlgorithmEcKeyParams>(params);
break;
}
case CryptoAlgorithmIdentifier::HKDF:
case CryptoAlgorithmIdentifier::PBKDF2:
- result = std::make_unique<CryptoAlgorithmParameters>(params);
+ result = makeUnique<CryptoAlgorithmParameters>(params);
break;
default:
return Exception { NotSupportedError };
@@ -329,7 +329,7 @@
case Operations::UnwrapKey:
switch (*identifier) {
case CryptoAlgorithmIdentifier::AES_KW:
- result = std::make_unique<CryptoAlgorithmParameters>(params);
+ result = makeUnique<CryptoAlgorithmParameters>(params);
break;
default:
return Exception { NotSupportedError };
@@ -344,7 +344,7 @@
case CryptoAlgorithmIdentifier::AES_KW: {
auto params = convertDictionary<CryptoAlgorithmAesKeyParams>(state, value.get());
RETURN_IF_EXCEPTION(scope, Exception { ExistingExceptionError });
- result = std::make_unique<CryptoAlgorithmAesKeyParams>(params);
+ result = makeUnique<CryptoAlgorithmAesKeyParams>(params);
break;
}
case CryptoAlgorithmIdentifier::HMAC: {
@@ -354,12 +354,12 @@
if (hashIdentifier.hasException())
return hashIdentifier.releaseException();
params.hashIdentifier = hashIdentifier.releaseReturnValue();
- result = std::make_unique<CryptoAlgorithmHmacKeyParams>(params);
+ result = makeUnique<CryptoAlgorithmHmacKeyParams>(params);
break;
}
case CryptoAlgorithmIdentifier::HKDF:
case CryptoAlgorithmIdentifier::PBKDF2:
- result = std::make_unique<CryptoAlgorithmParameters>(params);
+ result = makeUnique<CryptoAlgorithmParameters>(params);
break;
default:
return Exception { NotSupportedError };
@@ -520,16 +520,16 @@
{
switch (importParams.parametersClass()) {
case CryptoAlgorithmParameters::Class::None: {
- auto result = std::make_unique<CryptoAlgorithmParameters>();
+ auto result = makeUnique<CryptoAlgorithmParameters>();
result->identifier = importParams.identifier;
return result;
}
case CryptoAlgorithmParameters::Class::EcKeyParams:
- return std::make_unique<CryptoAlgorithmEcKeyParams>(crossThreadCopy(downcast<CryptoAlgorithmEcKeyParams>(importParams)));
+ return makeUnique<CryptoAlgorithmEcKeyParams>(crossThreadCopy(downcast<CryptoAlgorithmEcKeyParams>(importParams)));
case CryptoAlgorithmParameters::Class::HmacKeyParams:
- return std::make_unique<CryptoAlgorithmHmacKeyParams>(crossThreadCopy(downcast<CryptoAlgorithmHmacKeyParams>(importParams)));
+ return makeUnique<CryptoAlgorithmHmacKeyParams>(crossThreadCopy(downcast<CryptoAlgorithmHmacKeyParams>(importParams)));
case CryptoAlgorithmParameters::Class::RsaHashedImportParams:
- return std::make_unique<CryptoAlgorithmRsaHashedImportParams>(crossThreadCopy(downcast<CryptoAlgorithmRsaHashedImportParams>(importParams)));
+ return makeUnique<CryptoAlgorithmRsaHashedImportParams>(crossThreadCopy(downcast<CryptoAlgorithmRsaHashedImportParams>(importParams)));
default:
ASSERT_NOT_REACHED();
return nullptr;
diff --git a/Source/WebCore/css/CSSCalculationValue.cpp b/Source/WebCore/css/CSSCalculationValue.cpp
index dbccc90..a42f564 100644
--- a/Source/WebCore/css/CSSCalculationValue.cpp
+++ b/Source/WebCore/css/CSSCalculationValue.cpp
@@ -217,12 +217,12 @@
{
switch (category()) {
case CalculationCategory::Number:
- return std::make_unique<CalcExpressionNumber>(m_value->floatValue());
+ return makeUnique<CalcExpressionNumber>(m_value->floatValue());
case CalculationCategory::Length:
- return std::make_unique<CalcExpressionLength>(Length(m_value->computeLength<float>(conversionData), WebCore::Fixed));
+ return makeUnique<CalcExpressionLength>(Length(m_value->computeLength<float>(conversionData), WebCore::Fixed));
case CalculationCategory::Percent:
case CalculationCategory::PercentLength: {
- return std::make_unique<CalcExpressionLength>(m_value->convertToLength<FixedFloatConversion | PercentConversion>(conversionData));
+ return makeUnique<CalcExpressionLength>(m_value->convertToLength<FixedFloatConversion | PercentConversion>(conversionData));
}
// Only types that could be part of a Length expression can be converted
// to a CalcExpressionNode. CalculationCategory::PercentNumber makes no sense as a Length.
@@ -520,7 +520,7 @@
return nullptr;
nodes.uncheckedAppend(WTFMove(node));
}
- return std::make_unique<CalcExpressionOperation>(WTFMove(nodes), m_operator);
+ return makeUnique<CalcExpressionOperation>(WTFMove(nodes), m_operator);
}
double doubleValue() const final
diff --git a/Source/WebCore/css/CSSDefaultStyleSheets.cpp b/Source/WebCore/css/CSSDefaultStyleSheets.cpp
index c44cebc..e5ae8b7 100644
--- a/Source/WebCore/css/CSSDefaultStyleSheets.cpp
+++ b/Source/WebCore/css/CSSDefaultStyleSheets.cpp
@@ -167,11 +167,11 @@
simpleDefaultStyleSheet = nullptr;
} else {
ASSERT(!defaultStyle);
- defaultQuirksStyle = std::make_unique<RuleSet>().release();
+ defaultQuirksStyle = makeUnique<RuleSet>().release();
}
- defaultStyle = std::make_unique<RuleSet>().release();
- defaultPrintStyle = std::make_unique<RuleSet>().release();
+ defaultStyle = makeUnique<RuleSet>().release();
+ defaultPrintStyle = makeUnique<RuleSet>().release();
mediaQueryStyleSheet = &StyleSheetContents::create(CSSParserContext(UASheetMode)).leakRef();
// Strict-mode rules.
@@ -190,10 +190,10 @@
ASSERT(!defaultStyle);
ASSERT(!simpleDefaultStyleSheet);
- defaultStyle = std::make_unique<RuleSet>().release();
+ defaultStyle = makeUnique<RuleSet>().release();
// There are no media-specific rules in the simple default style.
defaultPrintStyle = defaultStyle;
- defaultQuirksStyle = std::make_unique<RuleSet>().release();
+ defaultQuirksStyle = makeUnique<RuleSet>().release();
simpleDefaultStyleSheet = parseUASheet(simpleUserAgentStyleSheet, strlen(simpleUserAgentStyleSheet));
defaultStyle->addRulesFromSheet(*simpleDefaultStyleSheet, screenEval());
diff --git a/Source/WebCore/css/CSSFontFace.cpp b/Source/WebCore/css/CSSFontFace.cpp
index 7709b5d..646c14a 100644
--- a/Source/WebCore/css/CSSFontFace.cpp
+++ b/Source/WebCore/css/CSSFontFace.cpp
@@ -77,10 +77,10 @@
bool allowDownloading = foundSVGFont || (settings && settings->downloadableBinaryFontsEnabled());
if (allowDownloading && item.isSupportedFormat() && document) {
if (CachedFont* cachedFont = item.cachedFont(document, foundSVGFont, isInitiatingElementInUserAgentShadowTree))
- source = std::make_unique<CSSFontFaceSource>(fontFace, item.resource(), cachedFont);
+ source = makeUnique<CSSFontFaceSource>(fontFace, item.resource(), cachedFont);
}
} else
- source = std::make_unique<CSSFontFaceSource>(fontFace, item.resource(), nullptr, fontFaceElement);
+ source = makeUnique<CSSFontFaceSource>(fontFace, item.resource(), nullptr, fontFaceElement);
if (source)
fontFace.adoptSource(WTFMove(source));
diff --git a/Source/WebCore/css/CSSFontFaceSet.cpp b/Source/WebCore/css/CSSFontFaceSet.cpp
index 05e3a3f..18e834d 100644
--- a/Source/WebCore/css/CSSFontFaceSet.cpp
+++ b/Source/WebCore/css/CSSFontFaceSet.cpp
@@ -119,7 +119,7 @@
familyList->append(CSSValuePool::singleton().createFontFamilyValue(familyName));
face->setFamilies(familyList.get());
face->setFontSelectionCapabilities(item);
- face->adoptSource(std::make_unique<CSSFontFaceSource>(face.get(), familyName));
+ face->adoptSource(makeUnique<CSSFontFaceSource>(face.get(), familyName));
ASSERT(!face->computeFailureState());
faces.append(WTFMove(face));
}
diff --git a/Source/WebCore/css/CSSGroupingRule.cpp b/Source/WebCore/css/CSSGroupingRule.cpp
index de6f39d..c6c5c39 100644
--- a/Source/WebCore/css/CSSGroupingRule.cpp
+++ b/Source/WebCore/css/CSSGroupingRule.cpp
@@ -140,7 +140,7 @@
CSSRuleList& CSSGroupingRule::cssRules() const
{
if (!m_ruleListCSSOMWrapper)
- m_ruleListCSSOMWrapper = std::make_unique<LiveCSSRuleList<CSSGroupingRule>>(const_cast<CSSGroupingRule&>(*this));
+ m_ruleListCSSOMWrapper = makeUnique<LiveCSSRuleList<CSSGroupingRule>>(const_cast<CSSGroupingRule&>(*this));
return *m_ruleListCSSOMWrapper;
}
diff --git a/Source/WebCore/css/CSSImageGeneratorValue.cpp b/Source/WebCore/css/CSSImageGeneratorValue.cpp
index ffdd3d0..5551f2c 100644
--- a/Source/WebCore/css/CSSImageGeneratorValue.cpp
+++ b/Source/WebCore/css/CSSImageGeneratorValue.cpp
@@ -110,7 +110,7 @@
void CSSImageGeneratorValue::saveCachedImageForSize(FloatSize size, GeneratedImage& image)
{
ASSERT(!m_images.contains(size));
- m_images.add(size, std::make_unique<CachedGeneratedImage>(*this, size, image));
+ m_images.add(size, makeUnique<CachedGeneratedImage>(*this, size, image));
}
void CSSImageGeneratorValue::evictCachedGeneratedImage(FloatSize size)
diff --git a/Source/WebCore/css/CSSKeyframesRule.cpp b/Source/WebCore/css/CSSKeyframesRule.cpp
index c909832..6f1eb33 100644
--- a/Source/WebCore/css/CSSKeyframesRule.cpp
+++ b/Source/WebCore/css/CSSKeyframesRule.cpp
@@ -220,7 +220,7 @@
CSSRuleList& CSSKeyframesRule::cssRules()
{
if (!m_ruleListCSSOMWrapper)
- m_ruleListCSSOMWrapper = std::make_unique<LiveCSSRuleList<CSSKeyframesRule>>(*this);
+ m_ruleListCSSOMWrapper = makeUnique<LiveCSSRuleList<CSSKeyframesRule>>(*this);
return *m_ruleListCSSOMWrapper;
}
diff --git a/Source/WebCore/css/CSSStyleSheet.cpp b/Source/WebCore/css/CSSStyleSheet.cpp
index 480a898..c88d1ed 100644
--- a/Source/WebCore/css/CSSStyleSheet.cpp
+++ b/Source/WebCore/css/CSSStyleSheet.cpp
@@ -329,7 +329,7 @@
if (!canAccessRules())
return nullptr;
if (!m_ruleListCSSOMWrapper)
- m_ruleListCSSOMWrapper = std::make_unique<StyleSheetCSSRuleList>(this);
+ m_ruleListCSSOMWrapper = makeUnique<StyleSheetCSSRuleList>(this);
return m_ruleListCSSOMWrapper.get();
}
diff --git a/Source/WebCore/css/DOMCSSPaintWorklet.cpp b/Source/WebCore/css/DOMCSSPaintWorklet.cpp
index 65a2fdf..914bde4 100644
--- a/Source/WebCore/css/DOMCSSPaintWorklet.cpp
+++ b/Source/WebCore/css/DOMCSSPaintWorklet.cpp
@@ -45,7 +45,7 @@
{
auto* supplement = static_cast<DOMCSSPaintWorklet*>(Supplement<DOMCSSNamespace>::from(&css, supplementName()));
if (!supplement) {
- auto newSupplement = std::make_unique<DOMCSSPaintWorklet>(css);
+ auto newSupplement = makeUnique<DOMCSSPaintWorklet>(css);
supplement = newSupplement.get();
provideTo(&css, supplementName(), WTFMove(newSupplement));
}
diff --git a/Source/WebCore/css/DOMCSSRegisterCustomProperty.cpp b/Source/WebCore/css/DOMCSSRegisterCustomProperty.cpp
index 7ecd93d..0df6aae 100644
--- a/Source/WebCore/css/DOMCSSRegisterCustomProperty.cpp
+++ b/Source/WebCore/css/DOMCSSRegisterCustomProperty.cpp
@@ -84,7 +84,7 @@
{
auto* supplement = static_cast<DOMCSSRegisterCustomProperty*>(Supplement<DOMCSSNamespace>::from(&css, supplementName()));
if (!supplement) {
- auto newSupplement = std::make_unique<DOMCSSRegisterCustomProperty>(css);
+ auto newSupplement = makeUnique<DOMCSSRegisterCustomProperty>(css);
supplement = newSupplement.get();
provideTo(&css, supplementName(), WTFMove(newSupplement));
}
diff --git a/Source/WebCore/css/DocumentRuleSets.cpp b/Source/WebCore/css/DocumentRuleSets.cpp
index d8596fd..82b7fcc 100644
--- a/Source/WebCore/css/DocumentRuleSets.cpp
+++ b/Source/WebCore/css/DocumentRuleSets.cpp
@@ -43,7 +43,7 @@
DocumentRuleSets::DocumentRuleSets(StyleResolver& styleResolver)
: m_styleResolver(styleResolver)
{
- m_authorStyle = std::make_unique<RuleSet>();
+ m_authorStyle = makeUnique<RuleSet>();
m_authorStyle->disableAutoShrinkToFit();
}
@@ -78,7 +78,7 @@
// Media queries on user agent sheet need to evaluated in document context. They behave like author sheets in this respect.
auto& mediaQueryEvaluator = m_styleResolver.mediaQueryEvaluator();
- m_userAgentMediaQueryStyle = std::make_unique<RuleSet>();
+ m_userAgentMediaQueryStyle = makeUnique<RuleSet>();
m_userAgentMediaQueryStyle->addRulesFromSheet(*CSSDefaultStyleSheets::mediaQueryStyleSheet, mediaQueryEvaluator, &m_styleResolver);
// Viewport dependent queries are currently too inefficient to allow on UA sheet.
@@ -96,7 +96,7 @@
{
auto& extensionStyleSheets = m_styleResolver.document().extensionStyleSheets();
auto& mediaQueryEvaluator = m_styleResolver.mediaQueryEvaluator();
- auto tempUserStyle = std::make_unique<RuleSet>();
+ auto tempUserStyle = makeUnique<RuleSet>();
if (CSSStyleSheet* pageUserSheet = extensionStyleSheets.pageUserSheet())
tempUserStyle->addRulesFromSheet(pageUserSheet->contents(), mediaQueryEvaluator, &m_styleResolver);
collectRulesFromUserStyleSheets(extensionStyleSheets.injectedUserStyleSheets(), *tempUserStyle, mediaQueryEvaluator, m_styleResolver);
@@ -118,7 +118,7 @@
size_t size = rules.size();
if (!size)
return nullptr;
- auto ruleSet = std::make_unique<RuleSet>();
+ auto ruleSet = makeUnique<RuleSet>();
for (size_t i = 0; i < size; ++i)
ruleSet->addRule(rules[i].rule, rules[i].selectorIndex, rules[i].selectorListIndex);
ruleSet->shrinkToFit();
@@ -128,7 +128,7 @@
void DocumentRuleSets::resetAuthorStyle()
{
m_isAuthorStyleDefined = true;
- m_authorStyle = std::make_unique<RuleSet>();
+ m_authorStyle = makeUnique<RuleSet>();
m_authorStyle->disableAutoShrinkToFit();
}
@@ -195,12 +195,12 @@
auto arrayIndex = static_cast<unsigned>(*feature.matchElement);
auto& ruleSet = matchElementArray[arrayIndex];
if (!ruleSet)
- ruleSet = std::make_unique<RuleSet>();
+ ruleSet = makeUnique<RuleSet>();
ruleSet->addRule(feature.rule, feature.selectorIndex, feature.selectorListIndex);
if (feature.invalidationSelector)
invalidationSelectorArray[arrayIndex].append(feature.invalidationSelector);
}
- auto invalidationRuleSets = std::make_unique<Vector<InvalidationRuleSet>>();
+ auto invalidationRuleSets = makeUnique<Vector<InvalidationRuleSet>>();
for (unsigned i = 0; i < matchElementArray.size(); ++i) {
if (matchElementArray[i])
invalidationRuleSets->append({ static_cast<MatchElement>(i), WTFMove(matchElementArray[i]), WTFMove(invalidationSelectorArray[i]) });
diff --git a/Source/WebCore/css/ElementRuleCollector.cpp b/Source/WebCore/css/ElementRuleCollector.cpp
index 05d385a..05b457f 100644
--- a/Source/WebCore/css/ElementRuleCollector.cpp
+++ b/Source/WebCore/css/ElementRuleCollector.cpp
@@ -291,7 +291,7 @@
if (m_matchedRules.isEmpty())
return { };
- auto ruleDataVector = std::make_unique<RuleSet::RuleDataVector>();
+ auto ruleDataVector = makeUnique<RuleSet::RuleDataVector>();
ruleDataVector->reserveInitialCapacity(m_matchedRules.size());
for (auto& matchedRule : m_matchedRules)
ruleDataVector->uncheckedAppend(*matchedRule.ruleData);
diff --git a/Source/WebCore/css/FontFace.cpp b/Source/WebCore/css/FontFace.cpp
index 212245d..e1b1af2 100644
--- a/Source/WebCore/css/FontFace.cpp
+++ b/Source/WebCore/css/FontFace.cpp
@@ -49,7 +49,7 @@
static bool populateFontFaceWithArrayBuffer(CSSFontFace& fontFace, Ref<JSC::ArrayBufferView>&& arrayBufferView)
{
- auto source = std::make_unique<CSSFontFaceSource>(fontFace, String(), nullptr, nullptr, WTFMove(arrayBufferView));
+ auto source = makeUnique<CSSFontFaceSource>(fontFace, String(), nullptr, nullptr, WTFMove(arrayBufferView));
fontFace.adoptSource(WTFMove(source));
return false;
}
diff --git a/Source/WebCore/css/PropertySetCSSStyleDeclaration.cpp b/Source/WebCore/css/PropertySetCSSStyleDeclaration.cpp
index 3b20d41..e1e1d72 100644
--- a/Source/WebCore/css/PropertySetCSSStyleDeclaration.cpp
+++ b/Source/WebCore/css/PropertySetCSSStyleDeclaration.cpp
@@ -329,7 +329,7 @@
// The map is here to maintain the object identity of the CSSValues over multiple invocations.
// FIXME: It is likely that the identity is not important for web compatibility and this code should be removed.
if (!m_cssomValueWrappers)
- m_cssomValueWrappers = std::make_unique<HashMap<CSSValue*, WeakPtr<DeprecatedCSSOMValue>>>();
+ m_cssomValueWrappers = makeUnique<HashMap<CSSValue*, WeakPtr<DeprecatedCSSOMValue>>>();
auto& clonedValue = m_cssomValueWrappers->add(internalValue, WeakPtr<DeprecatedCSSOMValue>()).iterator->value;
if (clonedValue)
diff --git a/Source/WebCore/css/RuleFeature.cpp b/Source/WebCore/css/RuleFeature.cpp
index dffda6f..44eeb1d 100644
--- a/Source/WebCore/css/RuleFeature.cpp
+++ b/Source/WebCore/css/RuleFeature.cpp
@@ -174,7 +174,7 @@
for (auto& nameAndMatch : selectorFeatures.classes) {
classRules.ensure(nameAndMatch.first, [] {
- return std::make_unique<Vector<RuleFeature>>();
+ return makeUnique<Vector<RuleFeature>>();
}).iterator->value->append(RuleFeature(ruleData.rule(), ruleData.selectorIndex(), ruleData.selectorListIndex(), nameAndMatch.second));
if (nameAndMatch.second == MatchElement::Host)
classesAffectingHost.add(nameAndMatch.first);
@@ -183,7 +183,7 @@
auto* selector = selectorAndMatch.first;
auto matchElement = selectorAndMatch.second;
attributeRules.ensure(selector->attribute().localName().convertToASCIILowercase(), [] {
- return std::make_unique<Vector<RuleFeature>>();
+ return makeUnique<Vector<RuleFeature>>();
}).iterator->value->append(RuleFeature(ruleData.rule(), ruleData.selectorIndex(), ruleData.selectorListIndex(), matchElement, selector));
if (matchElement == MatchElement::Host)
attributesAffectingHost.add(selector->attribute().localName().convertToASCIILowercase());
@@ -201,14 +201,14 @@
uncommonAttributeRules.appendVector(other.uncommonAttributeRules);
for (auto& keyValuePair : other.classRules) {
classRules.ensure(keyValuePair.key, [] {
- return std::make_unique<Vector<RuleFeature>>();
+ return makeUnique<Vector<RuleFeature>>();
}).iterator->value->appendVector(*keyValuePair.value);
}
classesAffectingHost.add(other.classesAffectingHost.begin(), other.classesAffectingHost.end());
for (auto& keyValuePair : other.attributeRules) {
attributeRules.ensure(keyValuePair.key, [] {
- return std::make_unique<Vector<RuleFeature>>();
+ return makeUnique<Vector<RuleFeature>>();
}).iterator->value->appendVector(*keyValuePair.value);
}
attributesAffectingHost.add(other.attributesAffectingHost.begin(), other.attributesAffectingHost.end());
diff --git a/Source/WebCore/css/RuleSet.cpp b/Source/WebCore/css/RuleSet.cpp
index fa6b912..3bbbbfe 100644
--- a/Source/WebCore/css/RuleSet.cpp
+++ b/Source/WebCore/css/RuleSet.cpp
@@ -182,7 +182,7 @@
return;
auto& rules = map.add(key, nullptr).iterator->value;
if (!rules)
- rules = std::make_unique<RuleDataVector>();
+ rules = makeUnique<RuleDataVector>();
rules->append(ruleData);
}
diff --git a/Source/WebCore/css/StyleBuilderConverter.h b/Source/WebCore/css/StyleBuilderConverter.h
index 69af558..88775ad 100644
--- a/Source/WebCore/css/StyleBuilderConverter.h
+++ b/Source/WebCore/css/StyleBuilderConverter.h
@@ -348,9 +348,9 @@
// Turn this into a calc expression: calc(100% - length)
Vector<std::unique_ptr<CalcExpressionNode>> lengths;
lengths.reserveInitialCapacity(2);
- lengths.uncheckedAppend(std::make_unique<CalcExpressionLength>(Length(100, Percent)));
- lengths.uncheckedAppend(std::make_unique<CalcExpressionLength>(length));
- auto op = std::make_unique<CalcExpressionOperation>(WTFMove(lengths), CalcOperator::Subtract);
+ lengths.uncheckedAppend(makeUnique<CalcExpressionLength>(Length(100, Percent)));
+ lengths.uncheckedAppend(makeUnique<CalcExpressionLength>(length));
+ auto op = makeUnique<CalcExpressionOperation>(WTFMove(lengths), CalcOperator::Subtract);
return Length(CalculationValue::create(WTFMove(op), ValueRangeAll));
}
diff --git a/Source/WebCore/css/StyleBuilderCustom.h b/Source/WebCore/css/StyleBuilderCustom.h
index 9a191d1..c5c2bf5 100644
--- a/Source/WebCore/css/StyleBuilderCustom.h
+++ b/Source/WebCore/css/StyleBuilderCustom.h
@@ -813,7 +813,7 @@
color = styleResolver.colorFromPrimitiveValue(*shadowValue.color);
else
color = styleResolver.style()->color();
- auto shadowData = std::make_unique<ShadowData>(IntPoint(x, y), blur, spread, shadowStyle, property == CSSPropertyWebkitBoxShadow, color.isValid() ? color : Color::transparent);
+ auto shadowData = makeUnique<ShadowData>(IntPoint(x, y), blur, spread, shadowStyle, property == CSSPropertyWebkitBoxShadow, color.isValid() ? color : Color::transparent);
if (property == CSSPropertyTextShadow)
styleResolver.style()->setTextShadow(WTFMove(shadowData), !isFirstEntry); // add to the list if this is not the first entry
else
@@ -829,7 +829,7 @@
inline void StyleBuilderCustom::applyInheritTextShadow(StyleResolver& styleResolver)
{
- styleResolver.style()->setTextShadow(styleResolver.parentStyle()->textShadow() ? std::make_unique<ShadowData>(*styleResolver.parentStyle()->textShadow()) : nullptr);
+ styleResolver.style()->setTextShadow(styleResolver.parentStyle()->textShadow() ? makeUnique<ShadowData>(*styleResolver.parentStyle()->textShadow()) : nullptr);
}
inline void StyleBuilderCustom::applyValueTextShadow(StyleResolver& styleResolver, CSSValue& value)
@@ -844,7 +844,7 @@
inline void StyleBuilderCustom::applyInheritBoxShadow(StyleResolver& styleResolver)
{
- styleResolver.style()->setBoxShadow(styleResolver.parentStyle()->boxShadow() ? std::make_unique<ShadowData>(*styleResolver.parentStyle()->boxShadow()) : nullptr);
+ styleResolver.style()->setBoxShadow(styleResolver.parentStyle()->boxShadow() ? makeUnique<ShadowData>(*styleResolver.parentStyle()->boxShadow()) : nullptr);
}
inline void StyleBuilderCustom::applyValueBoxShadow(StyleResolver& styleResolver, CSSValue& value)
@@ -1359,7 +1359,7 @@
CSSValueID listStyleIdent = counterValue->listStyleIdent();
if (listStyleIdent != CSSValueNone)
listStyleType = static_cast<ListStyleType>(listStyleIdent - CSSValueDisc);
- auto counter = std::make_unique<CounterContent>(counterValue->identifier(), listStyleType, counterValue->separator());
+ auto counter = makeUnique<CounterContent>(counterValue->identifier(), listStyleType, counterValue->separator());
styleResolver.style()->setContent(WTFMove(counter), didSet);
didSet = true;
} else {
diff --git a/Source/WebCore/css/StyleProperties.cpp b/Source/WebCore/css/StyleProperties.cpp
index 4cf6c6f..19cb033 100644
--- a/Source/WebCore/css/StyleProperties.cpp
+++ b/Source/WebCore/css/StyleProperties.cpp
@@ -1530,7 +1530,7 @@
ASSERT(!m_cssomWrapper->parentElement());
return *m_cssomWrapper;
}
- m_cssomWrapper = std::make_unique<PropertySetCSSStyleDeclaration>(*this);
+ m_cssomWrapper = makeUnique<PropertySetCSSStyleDeclaration>(*this);
return *m_cssomWrapper;
}
@@ -1540,7 +1540,7 @@
ASSERT(m_cssomWrapper->parentElement() == &parentElement);
return *m_cssomWrapper;
}
- m_cssomWrapper = std::make_unique<InlineCSSStyleDeclaration>(*this, parentElement);
+ m_cssomWrapper = makeUnique<InlineCSSStyleDeclaration>(*this, parentElement);
return *m_cssomWrapper;
}
diff --git a/Source/WebCore/css/StyleResolver.cpp b/Source/WebCore/css/StyleResolver.cpp
index 3a52c36..de4da5f 100644
--- a/Source/WebCore/css/StyleResolver.cpp
+++ b/Source/WebCore/css/StyleResolver.cpp
@@ -1715,7 +1715,7 @@
if (authorRollback)
return authorRollback;
- auto newAuthorRollback(std::make_unique<CascadedProperties>(direction, writingMode));
+ auto newAuthorRollback(makeUnique<CascadedProperties>(direction, writingMode));
// This special rollback cascade contains UA rules and user rules but no author rules.
newAuthorRollback->addNormalMatches(matchResult, matchResult.ranges.firstUARule, matchResult.ranges.lastUARule, false);
@@ -1732,7 +1732,7 @@
if (userRollback)
return userRollback;
- auto newUserRollback(std::make_unique<CascadedProperties>(direction, writingMode));
+ auto newUserRollback(makeUnique<CascadedProperties>(direction, writingMode));
// This special rollback cascade contains only UA rules.
newUserRollback->addNormalMatches(matchResult, matchResult.ranges.firstUARule, matchResult.ranges.lastUARule, false);
diff --git a/Source/WebCore/css/makeprop.pl b/Source/WebCore/css/makeprop.pl
index 997c4c0..02a36ef 100755
--- a/Source/WebCore/css/makeprop.pl
+++ b/Source/WebCore/css/makeprop.pl
@@ -811,7 +811,7 @@
$setterContent .= $indent . "FillLayer* previousChild = nullptr;\n";
$setterContent .= $indent . "for (auto* parent = &styleResolver.parentStyle()->" . getLayersFunction($name) . "(); parent && parent->" . $testFunction . "(); parent = parent->next()) {\n";
$setterContent .= $indent . " if (!child) {\n";
- $setterContent .= $indent . " previousChild->setNext(std::make_unique<FillLayer>(" . getFillLayerType($name) . "));\n";
+ $setterContent .= $indent . " previousChild->setNext(makeUnique<FillLayer>(" . getFillLayerType($name) . "));\n";
$setterContent .= $indent . " child = previousChild->next();\n";
$setterContent .= $indent . " }\n";
$setterContent .= $indent . " child->" . $setter . "(parent->" . $getter . "());\n";
@@ -837,7 +837,7 @@
$setterContent .= $indent . " // Walk each value and put it into a layer, creating new layers as needed.\n";
$setterContent .= $indent . " for (auto& item : downcast<CSSValueList>(value)) {\n";
$setterContent .= $indent . " if (!child) {\n";
- $setterContent .= $indent . " previousChild->setNext(std::make_unique<FillLayer>(" . getFillLayerType($name) . "));\n";
+ $setterContent .= $indent . " previousChild->setNext(makeUnique<FillLayer>(" . getFillLayerType($name) . "));\n";
$setterContent .= $indent . " child = previousChild->next();\n";
$setterContent .= $indent . " }\n";
$setterContent .= $indent . " styleResolver.styleMap()->" . getFillLayerMapfunction($name) . "(" . $CSSPropertyId . ", *child, item);\n";
diff --git a/Source/WebCore/css/parser/CSSParserImpl.cpp b/Source/WebCore/css/parser/CSSParserImpl.cpp
index 67cfdf5..d75e4fc 100644
--- a/Source/WebCore/css/parser/CSSParserImpl.cpp
+++ b/Source/WebCore/css/parser/CSSParserImpl.cpp
@@ -77,7 +77,7 @@
, m_styleSheet(styleSheet)
, m_observerWrapper(wrapper)
{
- m_tokenizer = wrapper ? std::make_unique<CSSTokenizer>(string, *wrapper) : std::make_unique<CSSTokenizer>(string);
+ m_tokenizer = wrapper ? makeUnique<CSSTokenizer>(string, *wrapper) : makeUnique<CSSTokenizer>(string);
if (context.deferredCSSParserEnabled && !wrapper && styleSheet && ruleParsing == CSSParser::RuleParsing::Deferred)
m_deferredParser = CSSDeferredParser::create(context, string, *styleSheet);
}
@@ -282,9 +282,9 @@
std::unique_ptr<CSSParserSelector> selector;
if (!typeSelector.isNull() && pseudo.isNull())
- selector = std::make_unique<CSSParserSelector>(QualifiedName(nullAtom(), typeSelector, styleSheet->defaultNamespace()));
+ selector = makeUnique<CSSParserSelector>(QualifiedName(nullAtom(), typeSelector, styleSheet->defaultNamespace()));
else {
- selector = std::make_unique<CSSParserSelector>();
+ selector = makeUnique<CSSParserSelector>();
if (!pseudo.isNull()) {
selector = std::unique_ptr<CSSParserSelector>(CSSParserSelector::parsePagePseudoSelector(pseudo));
if (!selector || selector->match() != CSSSelector::PagePseudoClass)
@@ -535,7 +535,7 @@
RefPtr<StyleRuleMedia> CSSParserImpl::consumeMediaRule(CSSParserTokenRange prelude, CSSParserTokenRange block)
{
if (m_deferredParser)
- return StyleRuleMedia::create(MediaQueryParser::parseMediaQuerySet(prelude, MediaQueryParserContext(m_context)).releaseNonNull(), std::make_unique<DeferredStyleGroupRuleList>(block, *m_deferredParser));
+ return StyleRuleMedia::create(MediaQueryParser::parseMediaQuerySet(prelude, MediaQueryParserContext(m_context)).releaseNonNull(), makeUnique<DeferredStyleGroupRuleList>(block, *m_deferredParser));
Vector<RefPtr<StyleRuleBase>> rules;
@@ -563,7 +563,7 @@
return nullptr; // Parse error, invalid @supports condition
if (m_deferredParser)
- return StyleRuleSupports::create(prelude.serialize().stripWhiteSpace(), supported, std::make_unique<DeferredStyleGroupRuleList>(block, *m_deferredParser));
+ return StyleRuleSupports::create(prelude.serialize().stripWhiteSpace(), supported, makeUnique<DeferredStyleGroupRuleList>(block, *m_deferredParser));
if (m_observerWrapper) {
m_observerWrapper->observer().startRuleHeader(StyleRule::Supports, m_observerWrapper->startOffset(prelude));
@@ -635,7 +635,7 @@
return nullptr; // Parse error; expected ident token in @keyframes header
if (m_deferredParser)
- return StyleRuleKeyframes::create(name, std::make_unique<DeferredStyleGroupRuleList>(block, *m_deferredParser));
+ return StyleRuleKeyframes::create(name, makeUnique<DeferredStyleGroupRuleList>(block, *m_deferredParser));
if (m_observerWrapper) {
m_observerWrapper->observer().startRuleHeader(StyleRule::Keyframes, m_observerWrapper->startOffset(rangeCopy));
diff --git a/Source/WebCore/css/parser/CSSParserSelector.cpp b/Source/WebCore/css/parser/CSSParserSelector.cpp
index 4dbef40..a0870d3 100644
--- a/Source/WebCore/css/parser/CSSParserSelector.cpp
+++ b/Source/WebCore/css/parser/CSSParserSelector.cpp
@@ -44,7 +44,7 @@
else
return nullptr;
- auto selector = std::make_unique<CSSParserSelector>();
+ auto selector = makeUnique<CSSParserSelector>();
selector->m_selector->setMatch(CSSSelector::PagePseudoClass);
selector->m_selector->setPagePseudoType(pseudoType);
return selector;
@@ -63,7 +63,7 @@
return nullptr;
}
- auto selector = std::make_unique<CSSParserSelector>();
+ auto selector = makeUnique<CSSParserSelector>();
selector->m_selector->setMatch(CSSSelector::PseudoElement);
selector->m_selector->setPseudoElementType(pseudoType);
AtomString name;
@@ -84,13 +84,13 @@
{
auto pseudoType = parsePseudoClassAndCompatibilityElementString(pseudoTypeString);
if (pseudoType.pseudoClass != CSSSelector::PseudoClassUnknown) {
- auto selector = std::make_unique<CSSParserSelector>();
+ auto selector = makeUnique<CSSParserSelector>();
selector->m_selector->setMatch(CSSSelector::PseudoClass);
selector->m_selector->setPseudoClassType(pseudoType.pseudoClass);
return selector;
}
if (pseudoType.compatibilityPseudoElement != CSSSelector::PseudoElementUnknown) {
- auto selector = std::make_unique<CSSParserSelector>();
+ auto selector = makeUnique<CSSParserSelector>();
selector->m_selector->setMatch(CSSSelector::PseudoElement);
selector->m_selector->setPseudoElementType(pseudoType.compatibilityPseudoElement);
selector->m_selector->setValue(pseudoTypeString.convertToASCIILowercase());
@@ -100,12 +100,12 @@
}
CSSParserSelector::CSSParserSelector()
- : m_selector(std::make_unique<CSSSelector>())
+ : m_selector(makeUnique<CSSSelector>())
{
}
CSSParserSelector::CSSParserSelector(const QualifiedName& tagQName)
- : m_selector(std::make_unique<CSSSelector>(tagQName))
+ : m_selector(makeUnique<CSSSelector>(tagQName))
{
}
@@ -126,7 +126,7 @@
void CSSParserSelector::adoptSelectorVector(Vector<std::unique_ptr<CSSParserSelector>>&& selectorVector)
{
- m_selector->setSelectorList(std::make_unique<CSSSelectorList>(WTFMove(selectorVector)));
+ m_selector->setSelectorList(makeUnique<CSSSelectorList>(WTFMove(selectorVector)));
}
void CSSParserSelector::setLangArgumentList(std::unique_ptr<Vector<AtomString>> argumentList)
@@ -209,12 +209,12 @@
void CSSParserSelector::prependTagSelector(const QualifiedName& tagQName, bool tagIsForNamespaceRule)
{
- auto second = std::make_unique<CSSParserSelector>();
+ auto second = makeUnique<CSSParserSelector>();
second->m_selector = WTFMove(m_selector);
second->m_tagHistory = WTFMove(m_tagHistory);
m_tagHistory = WTFMove(second);
- m_selector = std::make_unique<CSSSelector>(tagQName, tagIsForNamespaceRule);
+ m_selector = makeUnique<CSSSelector>(tagQName, tagIsForNamespaceRule);
m_selector->setRelation(CSSSelector::Subselector);
}
diff --git a/Source/WebCore/css/parser/CSSPropertyParser.cpp b/Source/WebCore/css/parser/CSSPropertyParser.cpp
index 488e602..708ec77 100644
--- a/Source/WebCore/css/parser/CSSPropertyParser.cpp
+++ b/Source/WebCore/css/parser/CSSPropertyParser.cpp
@@ -2435,7 +2435,7 @@
if (args.peek().type() != StringToken)
return nullptr;
- auto byteStream = std::make_unique<SVGPathByteStream>();
+ auto byteStream = makeUnique<SVGPathByteStream>();
if (!buildSVGPathByteStreamFromString(args.consumeIncludingWhitespace().value().toString(), *byteStream, UnalteredParsing))
return nullptr;
diff --git a/Source/WebCore/css/parser/CSSSelectorParser.cpp b/Source/WebCore/css/parser/CSSSelectorParser.cpp
index 6b3acc8..f3323b2 100644
--- a/Source/WebCore/css/parser/CSSSelectorParser.cpp
+++ b/Source/WebCore/css/parser/CSSSelectorParser.cpp
@@ -564,7 +564,7 @@
}
case CSSSelector::PseudoClassLang: {
// FIXME: CSS Selectors Level 4 allows :lang(*-foo)
- auto argumentList = std::make_unique<Vector<AtomString>>();
+ auto argumentList = makeUnique<Vector<AtomString>>();
if (!consumeLangArgumentList(argumentList, block))
return nullptr;
selector->setLangArgumentList(WTFMove(argumentList));
diff --git a/Source/WebCore/dom/CustomElementReactionQueue.cpp b/Source/WebCore/dom/CustomElementReactionQueue.cpp
index 9eb5d7e..88117f1 100644
--- a/Source/WebCore/dom/CustomElementReactionQueue.cpp
+++ b/Source/WebCore/dom/CustomElementReactionQueue.cpp
@@ -334,7 +334,7 @@
{
if (!s_processingBackupElementQueue) {
s_processingBackupElementQueue = true;
- MicrotaskQueue::mainThreadQueue().append(std::make_unique<BackupElementQueueMicrotask>());
+ MicrotaskQueue::mainThreadQueue().append(makeUnique<BackupElementQueueMicrotask>());
}
return backupElementQueue();
}
diff --git a/Source/WebCore/dom/DataTransfer.cpp b/Source/WebCore/dom/DataTransfer.cpp
index e793f20..d3af70f 100644
--- a/Source/WebCore/dom/DataTransfer.cpp
+++ b/Source/WebCore/dom/DataTransfer.cpp
@@ -290,7 +290,7 @@
DataTransferItemList& DataTransfer::items()
{
if (!m_itemList)
- m_itemList = std::make_unique<DataTransferItemList>(*this);
+ m_itemList = makeUnique<DataTransferItemList>(*this);
return *m_itemList;
}
@@ -416,7 +416,7 @@
Ref<DataTransfer> DataTransfer::createForInputEvent(const Document& document, const String& plainText, const String& htmlText)
{
- auto pasteboard = std::make_unique<StaticPasteboard>();
+ auto pasteboard = makeUnique<StaticPasteboard>();
pasteboard->writeString("text/plain"_s, plainText);
pasteboard->writeString("text/html"_s, htmlText);
return adoptRef(*new DataTransfer(document, StoreMode::Readonly, WTFMove(pasteboard), Type::InputEvent));
@@ -471,7 +471,7 @@
Ref<DataTransfer> DataTransfer::createForDragStartEvent(const Document& document)
{
- auto dataTransfer = adoptRef(*new DataTransfer(document, StoreMode::ReadWrite, std::make_unique<StaticPasteboard>(), Type::DragAndDropData));
+ auto dataTransfer = adoptRef(*new DataTransfer(document, StoreMode::ReadWrite, makeUnique<StaticPasteboard>(), Type::DragAndDropData));
dataTransfer->m_originIdentifier = document.originIdentifierForPasteboard();
return dataTransfer;
}
@@ -508,7 +508,7 @@
m_dragImage = image;
if (m_dragImage) {
if (!m_dragImageLoader)
- m_dragImageLoader = std::make_unique<DragImageLoader>(this);
+ m_dragImageLoader = makeUnique<DragImageLoader>(this);
m_dragImageLoader->startLoading(m_dragImage);
}
diff --git a/Source/WebCore/dom/DeviceOrientationController.cpp b/Source/WebCore/dom/DeviceOrientationController.cpp
index 3362231..f21131f 100644
--- a/Source/WebCore/dom/DeviceOrientationController.cpp
+++ b/Source/WebCore/dom/DeviceOrientationController.cpp
@@ -100,7 +100,7 @@
void provideDeviceOrientationTo(Page& page, DeviceOrientationClient& client)
{
- DeviceOrientationController::provideTo(&page, DeviceOrientationController::supplementName(), std::make_unique<DeviceOrientationController>(client));
+ DeviceOrientationController::provideTo(&page, DeviceOrientationController::supplementName(), makeUnique<DeviceOrientationController>(client));
}
} // namespace WebCore
diff --git a/Source/WebCore/dom/Document.cpp b/Source/WebCore/dom/Document.cpp
index 43c7eed..d2c662c 100644
--- a/Source/WebCore/dom/Document.cpp
+++ b/Source/WebCore/dom/Document.cpp
@@ -521,19 +521,19 @@
, m_quirks(makeUniqueRef<Quirks>(*this))
, m_cachedResourceLoader(m_frame ? Ref<CachedResourceLoader>(m_frame->loader().activeDocumentLoader()->cachedResourceLoader()) : CachedResourceLoader::create(nullptr))
, m_domTreeVersion(++s_globalTreeVersion)
- , m_styleScope(std::make_unique<Style::Scope>(*this))
- , m_extensionStyleSheets(std::make_unique<ExtensionStyleSheets>(*this))
- , m_visitedLinkState(std::make_unique<VisitedLinkState>(*this))
- , m_markers(std::make_unique<DocumentMarkerController>(*this))
+ , m_styleScope(makeUnique<Style::Scope>(*this))
+ , m_extensionStyleSheets(makeUnique<ExtensionStyleSheets>(*this))
+ , m_visitedLinkState(makeUnique<VisitedLinkState>(*this))
+ , m_markers(makeUnique<DocumentMarkerController>(*this))
, m_styleRecalcTimer([this] { updateStyleIfNeeded(); })
, m_documentCreationTime(MonotonicTime::now())
- , m_scriptRunner(std::make_unique<ScriptRunner>(*this))
- , m_moduleLoader(std::make_unique<ScriptModuleLoader>(*this))
+ , m_scriptRunner(makeUnique<ScriptRunner>(*this))
+ , m_moduleLoader(makeUnique<ScriptModuleLoader>(*this))
#if ENABLE(XSLT)
, m_applyPendingXSLTransformsTimer(*this, &Document::applyPendingXSLTransformsTimerFired)
#endif
, m_xmlVersion("1.0"_s)
- , m_constantPropertyMap(std::make_unique<ConstantPropertyMap>(*this))
+ , m_constantPropertyMap(makeUnique<ConstantPropertyMap>(*this))
, m_documentClasses(documentClasses)
, m_eventQueue(*this)
#if ENABLE(FULLSCREEN_API)
@@ -545,10 +545,10 @@
#endif
, m_loadEventDelayTimer(*this, &Document::loadEventDelayTimerFired)
#if PLATFORM(IOS_FAMILY) && ENABLE(DEVICE_ORIENTATION)
- , m_deviceMotionClient(std::make_unique<DeviceMotionClientIOS>())
- , m_deviceMotionController(std::make_unique<DeviceMotionController>(*m_deviceMotionClient))
- , m_deviceOrientationClient(std::make_unique<DeviceOrientationClientIOS>())
- , m_deviceOrientationController(std::make_unique<DeviceOrientationController>(*m_deviceOrientationClient))
+ , m_deviceMotionClient(makeUnique<DeviceMotionClientIOS>())
+ , m_deviceMotionController(makeUnique<DeviceMotionController>(*m_deviceMotionClient))
+ , m_deviceOrientationClient(makeUnique<DeviceOrientationClientIOS>())
+ , m_deviceOrientationController(makeUnique<DeviceOrientationController>(*m_deviceOrientationClient))
#endif
, m_pendingTasksTimer(*this, &Document::pendingTasksTimerFired)
, m_visualUpdatesSuppressionTimer(*this, &Document::visualUpdatesSuppressionTimerFired)
@@ -765,7 +765,7 @@
void Document::buildAccessKeyCache()
{
- m_accessKeyCache = std::make_unique<HashMap<String, Element*, ASCIICaseInsensitiveHash>>([this] {
+ m_accessKeyCache = makeUnique<HashMap<String, Element*, ASCIICaseInsensitiveHash>>([this] {
HashMap<String, Element*, ASCIICaseInsensitiveHash> map;
for (auto& node : composedTreeDescendants(*this)) {
if (!is<Element>(node))
@@ -790,7 +790,7 @@
if (selectorString.isEmpty())
return Exception { SyntaxError };
if (!m_selectorQueryCache)
- m_selectorQueryCache = std::make_unique<SelectorQueryCache>();
+ m_selectorQueryCache = makeUnique<SelectorQueryCache>();
return m_selectorQueryCache->add(selectorString, *this);
}
@@ -855,7 +855,7 @@
DOMImplementation& Document::implementation()
{
if (!m_implementation)
- m_implementation = std::make_unique<DOMImplementation>(*this);
+ m_implementation = makeUnique<DOMImplementation>(*this);
return *m_implementation;
}
@@ -1770,7 +1770,7 @@
FormController& Document::formController()
{
if (!m_formController)
- m_formController = std::make_unique<FormController>();
+ m_formController = makeUnique<FormController>();
return *m_formController;
}
@@ -1995,7 +1995,7 @@
ASSERT(!m_inRenderTreeUpdate);
SetForScope<bool> inRenderTreeUpdate(m_inRenderTreeUpdate, true);
- auto textUpdate = std::make_unique<Style::Update>(*this);
+ auto textUpdate = makeUnique<Style::Update>(*this);
textUpdate->addText(text, { offsetOfReplacedText, lengthOfReplacedText, WTF::nullopt });
RenderTreeUpdater renderTreeUpdater(*this);
@@ -2277,7 +2277,7 @@
StyleResolver& Document::userAgentShadowTreeStyleResolver()
{
if (!m_userAgentShadowTreeStyleResolver)
- m_userAgentShadowTreeStyleResolver = std::make_unique<StyleResolver>(*this);
+ m_userAgentShadowTreeStyleResolver = makeUnique<StyleResolver>(*this);
return *m_userAgentShadowTreeStyleResolver;
}
@@ -2680,7 +2680,7 @@
ASSERT(&topDocument == this || !m_axObjectCache);
if (!topDocument.m_axObjectCache) {
- topDocument.m_axObjectCache = std::make_unique<AXObjectCache>(topDocument);
+ topDocument.m_axObjectCache = makeUnique<AXObjectCache>(topDocument);
hasEverCreatedAnAXObjectCache = true;
}
return topDocument.m_axObjectCache.get();
@@ -3044,7 +3044,7 @@
m_bParsing = b;
if (m_bParsing && !m_sharedObjectPool)
- m_sharedObjectPool = std::make_unique<DocumentSharedObjectPool>();
+ m_sharedObjectPool = makeUnique<DocumentSharedObjectPool>();
if (!m_bParsing && view() && !view()->needsLayout())
view()->fireLayoutRelatedMilestonesIfNeeded();
@@ -5574,7 +5574,7 @@
SVGDocumentExtensions& Document::accessSVGExtensions()
{
if (!m_svgExtensions)
- m_svgExtensions = std::make_unique<SVGDocumentExtensions>(*this);
+ m_svgExtensions = makeUnique<SVGDocumentExtensions>(*this);
return *m_svgExtensions;
}
@@ -5779,7 +5779,7 @@
// This can occur via document.implementation.createDocument().
setCookieURL(URL({ }, emptyString()));
setSecurityOriginPolicy(SecurityOriginPolicy::create(SecurityOrigin::createUnique()));
- setContentSecurityPolicy(std::make_unique<ContentSecurityPolicy>(URL { { }, emptyString() }, *this));
+ setContentSecurityPolicy(makeUnique<ContentSecurityPolicy>(URL { { }, emptyString() }, *this));
return;
}
@@ -5798,7 +5798,7 @@
isSecurityOriginUnique = documentLoader && documentLoader->response().tainting() == ResourceResponse::Tainting::Opaque;
setSecurityOriginPolicy(SecurityOriginPolicy::create(isSecurityOriginUnique ? SecurityOrigin::createUnique() : SecurityOrigin::create(m_url)));
- setContentSecurityPolicy(std::make_unique<ContentSecurityPolicy>(URL { m_url }, *this));
+ setContentSecurityPolicy(makeUnique<ContentSecurityPolicy>(URL { m_url }, *this));
String overrideContentSecurityPolicy = m_frame->loader().client().overrideContentSecurityPolicy();
if (!overrideContentSecurityPolicy.isNull())
@@ -6036,7 +6036,7 @@
TextAutoSizing& Document::textAutoSizing()
{
if (!m_textAutoSizing)
- m_textAutoSizing = std::make_unique<TextAutoSizing>();
+ m_textAutoSizing = makeUnique<TextAutoSizing>();
return *m_textAutoSizing;
}
#endif // ENABLE(TEXT_AUTOSIZING)
@@ -6403,7 +6403,7 @@
void Document::didAddWheelEventHandler(Node& node)
{
if (!m_wheelEventTargets)
- m_wheelEventTargets = std::make_unique<EventTargetSet>();
+ m_wheelEventTargets = makeUnique<EventTargetSet>();
m_wheelEventTargets->add(&node);
@@ -6463,7 +6463,7 @@
{
#if ENABLE(TOUCH_EVENTS)
if (!m_touchEventTargets)
- m_touchEventTargets = std::make_unique<EventTargetSet>();
+ m_touchEventTargets = makeUnique<EventTargetSet>();
m_touchEventTargets->add(&handler);
@@ -8052,7 +8052,7 @@
return;
auto messageLevel = messageLevelFromWTFLogLevel(level);
- auto message = std::make_unique<Inspector::ConsoleMessage>(messageSource, MessageType::Log, messageLevel, WTFMove(logMessages), mainWorldExecState(frame()));
+ auto message = makeUnique<Inspector::ConsoleMessage>(messageSource, MessageType::Log, messageLevel, WTFMove(logMessages), mainWorldExecState(frame()));
addConsoleMessage(WTFMove(message));
});
@@ -8087,7 +8087,7 @@
bool Document::registerCSSProperty(CSSRegisteredCustomProperty&& prop)
{
- return m_CSSRegisteredPropertySet.add(prop.name, std::make_unique<CSSRegisteredCustomProperty>(WTFMove(prop))).isNewEntry;
+ return m_CSSRegisteredPropertySet.add(prop.name, makeUnique<CSSRegisteredCustomProperty>(WTFMove(prop))).isNewEntry;
}
void Document::detachFromFrame()
@@ -8181,7 +8181,7 @@
return topDocument().deviceOrientationAndMotionAccessController();
if (!m_deviceOrientationAndMotionAccessController)
- m_deviceOrientationAndMotionAccessController = std::make_unique<DeviceOrientationAndMotionAccessController>(*this);
+ m_deviceOrientationAndMotionAccessController = makeUnique<DeviceOrientationAndMotionAccessController>(*this);
return *m_deviceOrientationAndMotionAccessController;
}
@@ -8212,7 +8212,7 @@
ContentChangeObserver& Document::contentChangeObserver()
{
if (!m_contentChangeObserver)
- m_contentChangeObserver = std::make_unique<ContentChangeObserver>(*this);
+ m_contentChangeObserver = makeUnique<ContentChangeObserver>(*this);
return *m_contentChangeObserver;
}
@@ -8220,7 +8220,7 @@
{
if (m_domTimerHoldingTank)
return *m_domTimerHoldingTank;
- m_domTimerHoldingTank = std::make_unique<DOMTimerHoldingTank>();
+ m_domTimerHoldingTank = makeUnique<DOMTimerHoldingTank>();
return *m_domTimerHoldingTank;
}
diff --git a/Source/WebCore/dom/Document.h b/Source/WebCore/dom/Document.h
index 98590c1..1612e42 100644
--- a/Source/WebCore/dom/Document.h
+++ b/Source/WebCore/dom/Document.h
@@ -1284,7 +1284,7 @@
std::unique_ptr<DocumentParserYieldToken> createParserYieldToken()
{
- return std::make_unique<DocumentParserYieldToken>(*this);
+ return makeUnique<DocumentParserYieldToken>(*this);
}
bool hasActiveParserYieldToken() const { return m_parserYieldTokenCount; }
diff --git a/Source/WebCore/dom/DocumentEventQueue.cpp b/Source/WebCore/dom/DocumentEventQueue.cpp
index 01c7f96..03703b6 100644
--- a/Source/WebCore/dom/DocumentEventQueue.cpp
+++ b/Source/WebCore/dom/DocumentEventQueue.cpp
@@ -59,7 +59,7 @@
DocumentEventQueue::DocumentEventQueue(Document& document)
: m_document(document)
- , m_pendingEventTimer(std::make_unique<Timer>(*this))
+ , m_pendingEventTimer(makeUnique<Timer>(*this))
, m_isClosed(false)
{
m_pendingEventTimer->suspendIfNeeded();
diff --git a/Source/WebCore/dom/DocumentMarkerController.cpp b/Source/WebCore/dom/DocumentMarkerController.cpp
index 7291d4a..e7641af 100644
--- a/Source/WebCore/dom/DocumentMarkerController.cpp
+++ b/Source/WebCore/dom/DocumentMarkerController.cpp
@@ -364,7 +364,7 @@
std::unique_ptr<MarkerList>& list = m_markers.add(&node, nullptr).iterator->value;
if (!list) {
- list = std::make_unique<MarkerList>();
+ list = makeUnique<MarkerList>();
list->append(RenderedDocumentMarker(newMarker));
} else if (shouldInsertAsSeparateMarker(newMarker)) {
// We don't merge dictation markers.
diff --git a/Source/WebCore/dom/DocumentStorageAccess.cpp b/Source/WebCore/dom/DocumentStorageAccess.cpp
index 81efb10..855a2a0 100644
--- a/Source/WebCore/dom/DocumentStorageAccess.cpp
+++ b/Source/WebCore/dom/DocumentStorageAccess.cpp
@@ -48,7 +48,7 @@
{
auto* supplement = static_cast<DocumentStorageAccess*>(Supplement<Document>::from(&document, supplementName()));
if (!supplement) {
- auto newSupplement = std::make_unique<DocumentStorageAccess>(document);
+ auto newSupplement = makeUnique<DocumentStorageAccess>(document);
supplement = newSupplement.get();
provideTo(&document, supplementName(), WTFMove(newSupplement));
}
@@ -183,7 +183,7 @@
bool shouldPreserveUserGesture = wasGranted == StorageAccessWasGranted::Yes || promptWasShown == StorageAccessPromptWasShown::No;
if (shouldPreserveUserGesture) {
- MicrotaskQueue::mainThreadQueue().append(std::make_unique<VoidMicrotask>([documentReference = makeWeakPtr(*document)] () {
+ MicrotaskQueue::mainThreadQueue().append(makeUnique<VoidMicrotask>([documentReference = makeWeakPtr(*document)] () {
if (auto* document = documentReference.get())
document->enableTemporaryTimeUserGesture();
}));
@@ -199,7 +199,7 @@
}
if (shouldPreserveUserGesture) {
- MicrotaskQueue::mainThreadQueue().append(std::make_unique<VoidMicrotask>([documentReference = WTFMove(documentReference)] () {
+ MicrotaskQueue::mainThreadQueue().append(makeUnique<VoidMicrotask>([documentReference = WTFMove(documentReference)] () {
if (auto* document = documentReference.get())
document->consumeTemporaryTimeUserGesture();
}));
@@ -209,7 +209,7 @@
void DocumentStorageAccess::enableTemporaryTimeUserGesture()
{
- m_temporaryUserGesture = std::make_unique<UserGestureIndicator>(ProcessingUserGesture, &m_document);
+ m_temporaryUserGesture = makeUnique<UserGestureIndicator>(ProcessingUserGesture, &m_document);
}
void DocumentStorageAccess::consumeTemporaryTimeUserGesture()
diff --git a/Source/WebCore/dom/Element.cpp b/Source/WebCore/dom/Element.cpp
index 193e8b8..ccc25ad 100644
--- a/Source/WebCore/dom/Element.cpp
+++ b/Source/WebCore/dom/Element.cpp
@@ -489,7 +489,7 @@
if (NamedNodeMap* attributeMap = rareData.attributeMap())
return *attributeMap;
- rareData.setAttributeMap(std::make_unique<NamedNodeMap>(const_cast<Element&>(*this)));
+ rareData.setAttributeMap(makeUnique<NamedNodeMap>(const_cast<Element&>(*this)));
return *rareData.attributeMap();
}
@@ -2319,7 +2319,7 @@
setFlag(IsCustomElement);
auto& data = ensureElementRareData();
if (!data.customElementReactionQueue())
- data.setCustomElementReactionQueue(std::make_unique<CustomElementReactionQueue>(elementInterface));
+ data.setCustomElementReactionQueue(makeUnique<CustomElementReactionQueue>(elementInterface));
invalidateStyleForSubtree();
InspectorInstrumentation::didChangeCustomElementState(*this);
}
@@ -2356,7 +2356,7 @@
auto& data = ensureElementRareData();
bool alreadyScheduledToUpgrade = data.customElementReactionQueue();
if (!alreadyScheduledToUpgrade)
- data.setCustomElementReactionQueue(std::make_unique<CustomElementReactionQueue>(elementInterface));
+ data.setCustomElementReactionQueue(makeUnique<CustomElementReactionQueue>(elementInterface));
data.customElementReactionQueue()->enqueueElementUpgrade(*this, alreadyScheduledToUpgrade);
}
@@ -3391,7 +3391,7 @@
{
ElementRareData& data = ensureElementRareData();
if (!data.classList())
- data.setClassList(std::make_unique<DOMTokenList>(*this, HTMLNames::classAttr));
+ data.setClassList(makeUnique<DOMTokenList>(*this, HTMLNames::classAttr));
return *data.classList();
}
@@ -3399,7 +3399,7 @@
{
ElementRareData& data = ensureElementRareData();
if (!data.dataset())
- data.setDataset(std::make_unique<DatasetDOMStringMap>(*this));
+ data.setDataset(makeUnique<DatasetDOMStringMap>(*this));
return *data.dataset();
}
@@ -3543,7 +3543,7 @@
{
auto& rareData = ensureElementRareData();
if (!rareData.intersectionObserverData())
- rareData.setIntersectionObserverData(std::make_unique<IntersectionObserverData>());
+ rareData.setIntersectionObserverData(makeUnique<IntersectionObserverData>());
return *rareData.intersectionObserverData();
}
@@ -3569,7 +3569,7 @@
{
auto& rareData = ensureElementRareData();
if (!rareData.resizeObserverData())
- rareData.setResizeObserverData(std::make_unique<ResizeObserverData>());
+ rareData.setResizeObserverData(makeUnique<ResizeObserverData>());
return *rareData.resizeObserverData();
}
diff --git a/Source/WebCore/dom/EventListenerMap.cpp b/Source/WebCore/dom/EventListenerMap.cpp
index d9e6634..0b09d08 100644
--- a/Source/WebCore/dom/EventListenerMap.cpp
+++ b/Source/WebCore/dom/EventListenerMap.cpp
@@ -142,7 +142,7 @@
return true;
}
- auto listeners = std::make_unique<EventListenerVector>();
+ auto listeners = makeUnique<EventListenerVector>();
listeners->uncheckedAppend(RegisteredEventListener::create(WTFMove(listener), options));
m_entries.append({ eventType, WTFMove(listeners) });
return true;
diff --git a/Source/WebCore/dom/EventNames.h b/Source/WebCore/dom/EventNames.h
index 9e9308b..5b6ab68 100644
--- a/Source/WebCore/dom/EventNames.h
+++ b/Source/WebCore/dom/EventNames.h
@@ -339,13 +339,13 @@
DOM_EVENT_NAMES_FOR_EACH(DOM_EVENT_NAMES_DECLARE)
#undef DOM_EVENT_NAMES_DECLARE
- // FIXME: The friend declaration to std::make_unique below does not work in windows port.
+ // FIXME: The friend declaration to makeUnique below does not work in windows port.
//
// template<class T, class... Args>
- // friend typename std::_Unique_if<T>::_Single_object std::make_unique(Args&&...);
+ // friend typename std::_Unique_if<T>::_Single_object makeUnique(Args&&...);
//
// This create function should be deleted later and is only for keeping EventNames as private.
- // std::make_unique should be used instead.
+ // makeUnique should be used instead.
//
template<class... Args>
static std::unique_ptr<EventNames> create(Args&&... args)
diff --git a/Source/WebCore/dom/EventPath.cpp b/Source/WebCore/dom/EventPath.cpp
index db1428d..a0ad0ad 100644
--- a/Source/WebCore/dom/EventPath.cpp
+++ b/Source/WebCore/dom/EventPath.cpp
@@ -115,17 +115,17 @@
{
using MakeEventContext = std::unique_ptr<EventContext> (*)(Node&, EventTarget*, EventTarget*, int closedShadowDepth);
MakeEventContext makeEventContext = [] (Node& node, EventTarget* currentTarget, EventTarget* target, int closedShadowDepth) {
- return std::make_unique<EventContext>(&node, currentTarget, target, closedShadowDepth);
+ return makeUnique<EventContext>(&node, currentTarget, target, closedShadowDepth);
};
if (is<MouseEvent>(event) || event.isFocusEvent()) {
makeEventContext = [] (Node& node, EventTarget* currentTarget, EventTarget* target, int closedShadowDepth) -> std::unique_ptr<EventContext> {
- return std::make_unique<MouseOrFocusEventContext>(node, currentTarget, target, closedShadowDepth);
+ return makeUnique<MouseOrFocusEventContext>(node, currentTarget, target, closedShadowDepth);
};
}
#if ENABLE(TOUCH_EVENTS)
if (is<TouchEvent>(event)) {
makeEventContext = [] (Node& node, EventTarget* currentTarget, EventTarget* target, int closedShadowDepth) -> std::unique_ptr<EventContext> {
- return std::make_unique<TouchEventContext>(node, currentTarget, target, closedShadowDepth);
+ return makeUnique<TouchEventContext>(node, currentTarget, target, closedShadowDepth);
};
}
#endif
@@ -149,7 +149,7 @@
ASSERT(target);
if (target) {
if (auto* window = downcast<Document>(*node).domWindow())
- m_path.append(std::make_unique<WindowEventContext>(*node, *window, *target, closedShadowDepth));
+ m_path.append(makeUnique<WindowEventContext>(*node, *window, *target, closedShadowDepth));
}
}
return;
@@ -308,7 +308,7 @@
ASSERT(target);
Node* origin = *targets.begin();
if (!target->isClosedShadowHidden(*origin))
- m_path.append(std::make_unique<EventContext>(target, target, origin, 0));
+ m_path.append(makeUnique<EventContext>(target, target, origin, 0));
}
}
@@ -317,7 +317,7 @@
for (auto* target : targets) {
ASSERT(target);
ASSERT(!is<Node>(target));
- m_path.append(std::make_unique<EventContext>(nullptr, target, *targets.begin(), 0));
+ m_path.append(makeUnique<EventContext>(nullptr, target, *targets.begin(), 0));
}
}
diff --git a/Source/WebCore/dom/IdTargetObserverRegistry.cpp b/Source/WebCore/dom/IdTargetObserverRegistry.cpp
index b3a06e4..940efca 100644
--- a/Source/WebCore/dom/IdTargetObserverRegistry.cpp
+++ b/Source/WebCore/dom/IdTargetObserverRegistry.cpp
@@ -37,7 +37,7 @@
IdToObserverSetMap::AddResult result = m_registry.add(id.impl(), nullptr);
if (result.isNewEntry)
- result.iterator->value = std::make_unique<ObserverSet>();
+ result.iterator->value = makeUnique<ObserverSet>();
result.iterator->value->add(observer);
}
diff --git a/Source/WebCore/dom/KeyboardEvent.cpp b/Source/WebCore/dom/KeyboardEvent.cpp
index 7e7a347..ce856bb 100644
--- a/Source/WebCore/dom/KeyboardEvent.cpp
+++ b/Source/WebCore/dom/KeyboardEvent.cpp
@@ -96,7 +96,7 @@
inline KeyboardEvent::KeyboardEvent(const PlatformKeyboardEvent& key, RefPtr<WindowProxy>&& view)
: UIEventWithKeyState(eventTypeForKeyboardEventType(key.type()), CanBubble::Yes, IsCancelable::Yes, IsComposed::Yes,
key.timestamp().approximateMonotonicTime(), view.copyRef(), 0, key.modifiers(), IsTrusted::Yes)
- , m_underlyingPlatformEvent(std::make_unique<PlatformKeyboardEvent>(key))
+ , m_underlyingPlatformEvent(makeUnique<PlatformKeyboardEvent>(key))
#if ENABLE(KEYBOARD_KEY_ATTRIBUTE)
, m_key(key.key())
#endif
diff --git a/Source/WebCore/dom/MutationObserver.cpp b/Source/WebCore/dom/MutationObserver.cpp
index 66c5ea0..193f278 100644
--- a/Source/WebCore/dom/MutationObserver.cpp
+++ b/Source/WebCore/dom/MutationObserver.cpp
@@ -175,7 +175,7 @@
if (mutationObserverCompoundMicrotaskQueuedFlag)
return;
mutationObserverCompoundMicrotaskQueuedFlag = true;
- MicrotaskQueue::mainThreadQueue().append(std::make_unique<MutationObserverMicrotask>());
+ MicrotaskQueue::mainThreadQueue().append(makeUnique<MutationObserverMicrotask>());
}
void MutationObserver::enqueueMutationRecord(Ref<MutationRecord>&& mutation)
diff --git a/Source/WebCore/dom/MutationObserverInterestGroup.cpp b/Source/WebCore/dom/MutationObserverInterestGroup.cpp
index 52da61f..0276e42 100644
--- a/Source/WebCore/dom/MutationObserverInterestGroup.cpp
+++ b/Source/WebCore/dom/MutationObserverInterestGroup.cpp
@@ -51,7 +51,7 @@
if (observers.isEmpty())
return nullptr;
- return std::make_unique<MutationObserverInterestGroup>(WTFMove(observers), oldValueFlag);
+ return makeUnique<MutationObserverInterestGroup>(WTFMove(observers), oldValueFlag);
}
bool MutationObserverInterestGroup::isOldValueRequested() const
diff --git a/Source/WebCore/dom/MutationObserverRegistration.cpp b/Source/WebCore/dom/MutationObserverRegistration.cpp
index c8fc010..e5c6dd1 100644
--- a/Source/WebCore/dom/MutationObserverRegistration.cpp
+++ b/Source/WebCore/dom/MutationObserverRegistration.cpp
@@ -68,7 +68,7 @@
m_observer->setHasTransientRegistration();
if (!m_transientRegistrationNodes) {
- m_transientRegistrationNodes = std::make_unique<HashSet<GCReachableRef<Node>>>();
+ m_transientRegistrationNodes = makeUnique<HashSet<GCReachableRef<Node>>>();
ASSERT(!m_nodeKeptAlive);
m_nodeKeptAlive = &m_node; // Balanced in takeTransientRegistrations.
diff --git a/Source/WebCore/dom/Node.cpp b/Source/WebCore/dom/Node.cpp
index 71c0514..0accf2e 100644
--- a/Source/WebCore/dom/Node.cpp
+++ b/Source/WebCore/dom/Node.cpp
@@ -395,9 +395,9 @@
void Node::materializeRareData()
{
if (is<Element>(*this))
- m_rareData = std::make_unique<ElementRareData>();
+ m_rareData = makeUnique<ElementRareData>();
else
- m_rareData = std::make_unique<NodeRareData>();
+ m_rareData = makeUnique<NodeRareData>();
}
void Node::clearRareData()
@@ -2202,7 +2202,7 @@
auto locker = holdLock(s_eventTargetDataMapLock);
setHasEventTargetData(true);
- return *eventTargetDataMap().add(this, std::make_unique<EventTargetData>()).iterator->value;
+ return *eventTargetDataMap().add(this, makeUnique<EventTargetData>()).iterator->value;
}
void Node::clearEventTargetData()
@@ -2274,7 +2274,7 @@
}
if (!registration) {
- registry.append(std::make_unique<MutationObserverRegistration>(observer, *this, options, attributeFilter));
+ registry.append(makeUnique<MutationObserverRegistration>(observer, *this, options, attributeFilter));
registration = registry.last().get();
}
diff --git a/Source/WebCore/dom/NodeRareData.h b/Source/WebCore/dom/NodeRareData.h
index 19b22c9..8a61141 100644
--- a/Source/WebCore/dom/NodeRareData.h
+++ b/Source/WebCore/dom/NodeRareData.h
@@ -278,7 +278,7 @@
NodeListsNodeData& ensureNodeLists()
{
if (!m_nodeLists)
- m_nodeLists = std::make_unique<NodeListsNodeData>();
+ m_nodeLists = makeUnique<NodeListsNodeData>();
return *m_nodeLists;
}
@@ -286,7 +286,7 @@
NodeMutationObserverData& ensureMutationObserverData()
{
if (!m_mutationObserverData)
- m_mutationObserverData = std::make_unique<NodeMutationObserverData>();
+ m_mutationObserverData = makeUnique<NodeMutationObserverData>();
return *m_mutationObserverData;
}
diff --git a/Source/WebCore/dom/RadioButtonGroups.cpp b/Source/WebCore/dom/RadioButtonGroups.cpp
index 5337c58..61bbc4e 100644
--- a/Source/WebCore/dom/RadioButtonGroups.cpp
+++ b/Source/WebCore/dom/RadioButtonGroups.cpp
@@ -198,11 +198,11 @@
return;
if (!m_nameToGroupMap)
- m_nameToGroupMap = std::make_unique<NameToGroupMap>();
+ m_nameToGroupMap = makeUnique<NameToGroupMap>();
auto& group = m_nameToGroupMap->add(element.name().impl(), nullptr).iterator->value;
if (!group)
- group = std::make_unique<RadioButtonGroup>();
+ group = makeUnique<RadioButtonGroup>();
group->add(element);
}
diff --git a/Source/WebCore/dom/ScriptExecutionContext.cpp b/Source/WebCore/dom/ScriptExecutionContext.cpp
index c825a7e..04afe9d 100644
--- a/Source/WebCore/dom/ScriptExecutionContext.cpp
+++ b/Source/WebCore/dom/ScriptExecutionContext.cpp
@@ -379,8 +379,8 @@
{
if (m_inDispatchErrorEvent) {
if (!m_pendingExceptions)
- m_pendingExceptions = std::make_unique<Vector<std::unique_ptr<PendingException>>>();
- m_pendingExceptions->append(std::make_unique<PendingException>(errorMessage, lineNumber, columnNumber, sourceURL, WTFMove(callStack)));
+ m_pendingExceptions = makeUnique<Vector<std::unique_ptr<PendingException>>>();
+ m_pendingExceptions->append(makeUnique<PendingException>(errorMessage, lineNumber, columnNumber, sourceURL, WTFMove(callStack)));
return;
}
@@ -414,9 +414,9 @@
String errorMessage = makeString("Unhandled Promise Rejection: ", resultMessage);
std::unique_ptr<Inspector::ConsoleMessage> message;
if (callStack)
- message = std::make_unique<Inspector::ConsoleMessage>(MessageSource::JS, MessageType::Log, MessageLevel::Error, errorMessage, callStack.releaseNonNull());
+ message = makeUnique<Inspector::ConsoleMessage>(MessageSource::JS, MessageType::Log, MessageLevel::Error, errorMessage, callStack.releaseNonNull());
else
- message = std::make_unique<Inspector::ConsoleMessage>(MessageSource::JS, MessageType::Log, MessageLevel::Error, errorMessage);
+ message = makeUnique<Inspector::ConsoleMessage>(MessageSource::JS, MessageType::Log, MessageLevel::Error, errorMessage);
addConsoleMessage(WTFMove(message));
}
@@ -509,7 +509,7 @@
// When initializing ScriptExecutionContext, vm() is not ready.
ASSERT(!m_rejectedPromiseTracker);
- m_rejectedPromiseTracker = std::make_unique<RejectedPromiseTracker>(*this, vm());
+ m_rejectedPromiseTracker = makeUnique<RejectedPromiseTracker>(*this, vm());
return *m_rejectedPromiseTracker.get();
}
diff --git a/Source/WebCore/dom/SelectorQuery.cpp b/Source/WebCore/dom/SelectorQuery.cpp
index 55dc2c8..2109ce4 100644
--- a/Source/WebCore/dom/SelectorQuery.cpp
+++ b/Source/WebCore/dom/SelectorQuery.cpp
@@ -633,7 +633,7 @@
if (m_entries.size() == maximumSelectorQueryCacheSize)
m_entries.remove(m_entries.random());
- return *m_entries.add(selectors, std::make_unique<SelectorQuery>(WTFMove(selectorList))).iterator->value;
+ return *m_entries.add(selectors, makeUnique<SelectorQuery>(WTFMove(selectorList))).iterator->value;
}
}
diff --git a/Source/WebCore/dom/ShadowRoot.cpp b/Source/WebCore/dom/ShadowRoot.cpp
index 6963b68..6786c0d 100644
--- a/Source/WebCore/dom/ShadowRoot.cpp
+++ b/Source/WebCore/dom/ShadowRoot.cpp
@@ -58,7 +58,7 @@
: DocumentFragment(document, CreateShadowRoot)
, TreeScope(*this, document)
, m_type(type)
- , m_styleScope(std::make_unique<Style::Scope>(*this))
+ , m_styleScope(makeUnique<Style::Scope>(*this))
{
}
@@ -67,7 +67,7 @@
: DocumentFragment(document, CreateShadowRoot)
, TreeScope(*this, document)
, m_type(ShadowRootMode::UserAgent)
- , m_styleScope(std::make_unique<Style::Scope>(*this))
+ , m_styleScope(makeUnique<Style::Scope>(*this))
, m_slotAssignment(WTFMove(slotAssignment))
{
}
@@ -147,7 +147,7 @@
RELEASE_ASSERT_WITH_SECURITY_IMPLICATION(!parentTreeScope() || &parentTreeScope()->documentScope() == &newDocument);
// Style scopes are document specific.
- m_styleScope = std::make_unique<Style::Scope>(*this);
+ m_styleScope = makeUnique<Style::Scope>(*this);
RELEASE_ASSERT_WITH_SECURITY_IMPLICATION(&m_styleScope->document() == &newDocument);
}
@@ -228,7 +228,7 @@
{
ASSERT(&slot.rootNode() == this);
if (!m_slotAssignment)
- m_slotAssignment = std::make_unique<SlotAssignment>();
+ m_slotAssignment = makeUnique<SlotAssignment>();
return m_slotAssignment->addSlotElementByName(name, slot, *this);
}
diff --git a/Source/WebCore/dom/SlotAssignment.cpp b/Source/WebCore/dom/SlotAssignment.cpp
index a419dda..45c08ea 100644
--- a/Source/WebCore/dom/SlotAssignment.cpp
+++ b/Source/WebCore/dom/SlotAssignment.cpp
@@ -120,7 +120,7 @@
// to avoid always having a vector of all child nodes of a shadow host.
if (slotName == defaultSlotName())
m_slotAssignmentsIsValid = false;
- return std::make_unique<Slot>();
+ return makeUnique<Slot>();
});
auto& slot = *addResult.iterator->value;
bool needsSlotchangeEvent = shadowRoot.shouldFireSlotchangeEvent() && hasAssignedNodes(shadowRoot, slot);
@@ -410,7 +410,7 @@
}
auto addResult = m_slots.ensure(slotName, [] {
- return std::make_unique<Slot>();
+ return makeUnique<Slot>();
});
addResult.iterator->value->assignedNodes.append(&child);
}
diff --git a/Source/WebCore/dom/TreeScope.cpp b/Source/WebCore/dom/TreeScope.cpp
index 2f2870d..531acdf 100644
--- a/Source/WebCore/dom/TreeScope.cpp
+++ b/Source/WebCore/dom/TreeScope.cpp
@@ -64,7 +64,7 @@
: m_rootNode(shadowRoot)
, m_documentScope(document)
, m_parentTreeScope(&document)
- , m_idTargetObserverRegistry(std::make_unique<IdTargetObserverRegistry>())
+ , m_idTargetObserverRegistry(makeUnique<IdTargetObserverRegistry>())
{
shadowRoot.setTreeScope(*this);
}
@@ -73,7 +73,7 @@
: m_rootNode(document)
, m_documentScope(document)
, m_parentTreeScope(nullptr)
- , m_idTargetObserverRegistry(std::make_unique<IdTargetObserverRegistry>())
+ , m_idTargetObserverRegistry(makeUnique<IdTargetObserverRegistry>())
{
document.setTreeScope(*this);
}
@@ -141,7 +141,7 @@
void TreeScope::addElementById(const AtomStringImpl& elementId, Element& element, bool notifyObservers)
{
if (!m_elementsById)
- m_elementsById = std::make_unique<TreeScopeOrderedMap>();
+ m_elementsById = makeUnique<TreeScopeOrderedMap>();
m_elementsById->add(elementId, element, *this);
if (notifyObservers)
m_idTargetObserverRegistry->notifyObservers(elementId);
@@ -168,7 +168,7 @@
void TreeScope::addElementByName(const AtomStringImpl& name, Element& element)
{
if (!m_elementsByName)
- m_elementsByName = std::make_unique<TreeScopeOrderedMap>();
+ m_elementsByName = makeUnique<TreeScopeOrderedMap>();
m_elementsByName->add(name, element, *this);
}
@@ -239,7 +239,7 @@
if (!name)
return;
if (!m_imageMapsByName)
- m_imageMapsByName = std::make_unique<TreeScopeOrderedMap>();
+ m_imageMapsByName = makeUnique<TreeScopeOrderedMap>();
m_imageMapsByName->add(*name, imageMap, *this);
}
@@ -263,7 +263,7 @@
void TreeScope::addImageElementByUsemap(const AtomStringImpl& name, HTMLImageElement& element)
{
if (!m_imagesByUsemap)
- m_imagesByUsemap = std::make_unique<TreeScopeOrderedMap>();
+ m_imagesByUsemap = makeUnique<TreeScopeOrderedMap>();
return m_imagesByUsemap->add(name, element, *this);
}
@@ -300,7 +300,7 @@
if (!m_labelsByForAttribute) {
// Populate the map on first access.
- m_labelsByForAttribute = std::make_unique<TreeScopeOrderedMap>();
+ m_labelsByForAttribute = makeUnique<TreeScopeOrderedMap>();
for (auto& label : descendantsOfType<HTMLLabelElement>(m_rootNode)) {
const AtomString& forValue = label.attributeWithoutSynchronization(forAttr);
diff --git a/Source/WebCore/editing/Editor.cpp b/Source/WebCore/editing/Editor.cpp
index 79342c4..891c128 100644
--- a/Source/WebCore/editing/Editor.cpp
+++ b/Source/WebCore/editing/Editor.cpp
@@ -380,12 +380,12 @@
switch (kind) {
case ClipboardEventKind::Copy:
case ClipboardEventKind::Cut:
- return DataTransfer::createForCopyAndPaste(document, DataTransfer::StoreMode::ReadWrite, std::make_unique<StaticPasteboard>());
+ return DataTransfer::createForCopyAndPaste(document, DataTransfer::StoreMode::ReadWrite, makeUnique<StaticPasteboard>());
case ClipboardEventKind::PasteAsPlainText:
if (RuntimeEnabledFeatures::sharedFeatures().customPasteboardDataEnabled()) {
auto plainTextType = "text/plain"_s;
auto plainText = Pasteboard::createForCopyAndPaste()->readString(plainTextType);
- auto pasteboard = std::make_unique<StaticPasteboard>();
+ auto pasteboard = makeUnique<StaticPasteboard>();
pasteboard->writeString(plainTextType, plainText);
return DataTransfer::createForCopyAndPaste(document, DataTransfer::StoreMode::Readonly, WTFMove(pasteboard));
}
@@ -396,10 +396,10 @@
case ClipboardEventKind::BeforeCopy:
case ClipboardEventKind::BeforeCut:
case ClipboardEventKind::BeforePaste:
- return DataTransfer::createForCopyAndPaste(document, DataTransfer::StoreMode::Invalid, std::make_unique<StaticPasteboard>());
+ return DataTransfer::createForCopyAndPaste(document, DataTransfer::StoreMode::Invalid, makeUnique<StaticPasteboard>());
}
ASSERT_NOT_REACHED();
- return DataTransfer::createForCopyAndPaste(document, DataTransfer::StoreMode::Invalid, std::make_unique<StaticPasteboard>());
+ return DataTransfer::createForCopyAndPaste(document, DataTransfer::StoreMode::Invalid, makeUnique<StaticPasteboard>());
}
// Returns whether caller should continue with "the default processing", which is the same as
@@ -1183,9 +1183,9 @@
Editor::Editor(Frame& frame)
: m_frame(frame)
- , m_killRing(std::make_unique<PAL::KillRing>())
- , m_spellChecker(std::make_unique<SpellChecker>(frame))
- , m_alternativeTextController(std::make_unique<AlternativeTextController>(frame))
+ , m_killRing(makeUnique<PAL::KillRing>())
+ , m_spellChecker(makeUnique<SpellChecker>(frame))
+ , m_alternativeTextController(makeUnique<AlternativeTextController>(frame))
, m_editorUIUpdateTimer(*this, &Editor::editorUIUpdateTimerFired)
#if ENABLE(TELEPHONE_NUMBER_DETECTION) && !PLATFORM(IOS_FAMILY)
, m_telephoneNumberDetectionUpdateTimer(*this, &Editor::scanSelectionForTelephoneNumbers)
diff --git a/Source/WebCore/editing/ReplaceSelectionCommand.cpp b/Source/WebCore/editing/ReplaceSelectionCommand.cpp
index 0ddc15b..2c2028c 100644
--- a/Source/WebCore/editing/ReplaceSelectionCommand.cpp
+++ b/Source/WebCore/editing/ReplaceSelectionCommand.cpp
@@ -1631,7 +1631,7 @@
ReplacementFragment* ReplaceSelectionCommand::ensureReplacementFragment()
{
if (!m_replacementFragment)
- m_replacementFragment = std::make_unique<ReplacementFragment>(m_documentFragment.get(), endingSelection());
+ m_replacementFragment = makeUnique<ReplacementFragment>(m_documentFragment.get(), endingSelection());
return m_replacementFragment.get();
}
diff --git a/Source/WebCore/editing/SelectionRectGatherer.cpp b/Source/WebCore/editing/SelectionRectGatherer.cpp
index 3b40688..f9b64c5 100644
--- a/Source/WebCore/editing/SelectionRectGatherer.cpp
+++ b/Source/WebCore/editing/SelectionRectGatherer.cpp
@@ -81,7 +81,7 @@
m_gapRects.clear();
m_isTextOnly = true;
- return std::make_unique<Notifier>(*this);
+ return makeUnique<Notifier>(*this);
}
} // namespace WebCore
diff --git a/Source/WebCore/editing/TextIterator.cpp b/Source/WebCore/editing/TextIterator.cpp
index 63a4e8e..bb0c9a2 100644
--- a/Source/WebCore/editing/TextIterator.cpp
+++ b/Source/WebCore/editing/TextIterator.cpp
@@ -650,7 +650,7 @@
unsigned endPosition = (m_node == m_endContainer) ? static_cast<unsigned>(m_endOffset) : rendererText.length();
if (!m_flowRunResolverCache || &m_flowRunResolverCache->flow() != &blockFlow) {
m_accumulatedSimpleTextLengthInFlow = m_flowRunResolverCache ? 0 : textNodeOffsetInFlow(textNode);
- m_flowRunResolverCache = std::make_unique<SimpleLineLayout::RunResolver>(blockFlow, *layout);
+ m_flowRunResolverCache = makeUnique<SimpleLineLayout::RunResolver>(blockFlow, *layout);
}
// Skip to m_offset position.
auto range = m_flowRunResolverCache->rangeForRenderer(renderer);
diff --git a/Source/WebCore/editing/cocoa/HTMLConverter.mm b/Source/WebCore/editing/cocoa/HTMLConverter.mm
index 0a83ac0..9cf86a4 100644
--- a/Source/WebCore/editing/cocoa/HTMLConverter.mm
+++ b/Source/WebCore/editing/cocoa/HTMLConverter.mm
@@ -380,7 +380,7 @@
_flags.reachedStart = false;
_flags.reachedEnd = false;
- _caches = std::make_unique<HTMLConverterCaches>();
+ _caches = makeUnique<HTMLConverterCaches>();
}
HTMLConverter::~HTMLConverter()
@@ -551,7 +551,7 @@
auto result = m_computedStyles.add(&element, nullptr);
if (result.isNewEntry)
- result.iterator->value = std::make_unique<ComputedStyleExtractor>(&element, true);
+ result.iterator->value = makeUnique<ComputedStyleExtractor>(&element, true);
ComputedStyleExtractor& computedStyle = *result.iterator->value;
return computedStyle.propertyValue(propertyId);
}
diff --git a/Source/WebCore/editing/markup.cpp b/Source/WebCore/editing/markup.cpp
index fb43716..c3c8f8b 100644
--- a/Source/WebCore/editing/markup.cpp
+++ b/Source/WebCore/editing/markup.cpp
@@ -178,7 +178,7 @@
{
auto pageConfiguration = pageConfigurationWithEmptyClients();
- auto page = std::make_unique<Page>(WTFMove(pageConfiguration));
+ auto page = makeUnique<Page>(WTFMove(pageConfiguration));
page->setIsForSanitizingWebContent();
page->settings().setMediaEnabled(false);
page->settings().setScriptEnabled(false);
diff --git a/Source/WebCore/fileapi/AsyncFileStream.cpp b/Source/WebCore/fileapi/AsyncFileStream.cpp
index a095eea..d58112f 100644
--- a/Source/WebCore/fileapi/AsyncFileStream.cpp
+++ b/Source/WebCore/fileapi/AsyncFileStream.cpp
@@ -94,11 +94,11 @@
});
});
- queue.get().append(std::make_unique<Function<void ()>>(WTFMove(function)));
+ queue.get().append(makeUnique<Function<void ()>>(WTFMove(function)));
}
AsyncFileStream::AsyncFileStream(FileStreamClient& client)
- : m_internals(std::make_unique<Internals>(client))
+ : m_internals(makeUnique<Internals>(client))
{
ASSERT(isMainThread());
}
diff --git a/Source/WebCore/fileapi/FileReader.cpp b/Source/WebCore/fileapi/FileReader.cpp
index 9ad3da9..99a7b5c 100644
--- a/Source/WebCore/fileapi/FileReader.cpp
+++ b/Source/WebCore/fileapi/FileReader.cpp
@@ -139,7 +139,7 @@
m_state = LOADING;
m_error = nullptr;
- m_loader = std::make_unique<FileReaderLoader>(m_readType, static_cast<FileReaderLoaderClient*>(this));
+ m_loader = makeUnique<FileReaderLoader>(m_readType, static_cast<FileReaderLoaderClient*>(this));
m_loader->setEncoding(m_encoding);
m_loader->setDataType(m_blob->type());
m_loader->start(scriptExecutionContext(), blob);
diff --git a/Source/WebCore/history/CachedFrame.cpp b/Source/WebCore/history/CachedFrame.cpp
index 6ae552c..5c8f18e 100644
--- a/Source/WebCore/history/CachedFrame.cpp
+++ b/Source/WebCore/history/CachedFrame.cpp
@@ -163,7 +163,7 @@
// Create the CachedFrames for all Frames in the FrameTree.
for (Frame* child = frame.tree().firstChild(); child; child = child->tree().nextSibling())
- m_childFrames.append(std::make_unique<CachedFrame>(*child));
+ m_childFrames.append(makeUnique<CachedFrame>(*child));
RELEASE_ASSERT(m_document->domWindow());
RELEASE_ASSERT(m_document->frame());
@@ -172,7 +172,7 @@
// Active DOM objects must be suspended before we cache the frame script data.
m_document->suspend(ReasonForSuspension::PageCache);
- m_cachedFrameScriptData = std::make_unique<ScriptCachedFrameData>(frame);
+ m_cachedFrameScriptData = makeUnique<ScriptCachedFrameData>(frame);
m_document->domWindow()->suspendForPageCache();
diff --git a/Source/WebCore/history/CachedPage.cpp b/Source/WebCore/history/CachedPage.cpp
index 0686ae8..9747a40 100644
--- a/Source/WebCore/history/CachedPage.cpp
+++ b/Source/WebCore/history/CachedPage.cpp
@@ -56,7 +56,7 @@
CachedPage::CachedPage(Page& page)
: m_page(page)
, m_expirationTime(MonotonicTime::now() + Seconds(page.settings().backForwardCacheExpirationInterval()))
- , m_cachedMainFrame(std::make_unique<CachedFrame>(page.mainFrame()))
+ , m_cachedMainFrame(makeUnique<CachedFrame>(page.mainFrame()))
{
#ifndef NDEBUG
cachedPageCounter.increment();
diff --git a/Source/WebCore/history/PageCache.cpp b/Source/WebCore/history/PageCache.cpp
index 0029655..3ba24b9 100644
--- a/Source/WebCore/history/PageCache.cpp
+++ b/Source/WebCore/history/PageCache.cpp
@@ -478,7 +478,7 @@
// Make sure we don't fire any JS events in this scope.
ScriptDisallowedScope::InMainThread scriptDisallowedScope;
- item.m_cachedPage = std::make_unique<CachedPage>(*page);
+ item.m_cachedPage = makeUnique<CachedPage>(*page);
item.m_pruningReason = PruningReason::None;
m_items.add(&item);
}
diff --git a/Source/WebCore/html/FileInputType.cpp b/Source/WebCore/html/FileInputType.cpp
index 7a991f1..b14d310 100644
--- a/Source/WebCore/html/FileInputType.cpp
+++ b/Source/WebCore/html/FileInputType.cpp
@@ -332,7 +332,7 @@
m_fileIconLoader->invalidate();
FileIconLoaderClient& client = *this;
- m_fileIconLoader = std::make_unique<FileIconLoader>(client);
+ m_fileIconLoader = makeUnique<FileIconLoader>(client);
chrome->loadIconForFiles(paths, *m_fileIconLoader);
}
diff --git a/Source/WebCore/html/FormAssociatedElement.cpp b/Source/WebCore/html/FormAssociatedElement.cpp
index 806e5f3..17c027c 100644
--- a/Source/WebCore/html/FormAssociatedElement.cpp
+++ b/Source/WebCore/html/FormAssociatedElement.cpp
@@ -279,7 +279,7 @@
void FormAssociatedElement::resetFormAttributeTargetObserver()
{
ASSERT_WITH_SECURITY_IMPLICATION(asHTMLElement().isConnected());
- m_formAttributeTargetObserver = std::make_unique<FormAttributeTargetObserver>(asHTMLElement().attributeWithoutSynchronization(formAttr), *this);
+ m_formAttributeTargetObserver = makeUnique<FormAttributeTargetObserver>(asHTMLElement().attributeWithoutSynchronization(formAttr), *this);
}
void FormAssociatedElement::formAttributeTargetChanged()
diff --git a/Source/WebCore/html/FormController.cpp b/Source/WebCore/html/FormController.cpp
index ea5b09a..d0e03f5 100644
--- a/Source/WebCore/html/FormController.cpp
+++ b/Source/WebCore/html/FormController.cpp
@@ -200,7 +200,7 @@
size_t itemCount = stateVector[index++].toUInt();
if (!itemCount)
return nullptr;
- auto savedFormState = std::make_unique<SavedFormState>();
+ auto savedFormState = makeUnique<SavedFormState>();
while (itemCount--) {
if (index + 1 >= stateVector.size())
return nullptr;
@@ -365,13 +365,13 @@
std::unique_ptr<FormController::SavedFormStateMap> FormController::createSavedFormStateMap(const FormElementListHashSet& controlList)
{
FormKeyGenerator keyGenerator;
- auto stateMap = std::make_unique<SavedFormStateMap>();
+ auto stateMap = makeUnique<SavedFormStateMap>();
for (auto& control : controlList) {
if (!control->shouldSaveAndRestoreFormControlState())
continue;
auto& formState = stateMap->add(keyGenerator.formKey(*control).impl(), nullptr).iterator->value;
if (!formState)
- formState = std::make_unique<SavedFormState>();
+ formState = makeUnique<SavedFormState>();
formState->appendControlState(control->name(), control->type(), control->saveFormControlState());
}
return stateMap;
@@ -403,7 +403,7 @@
if (m_savedFormStateMap.isEmpty())
return FormControlState();
if (!m_formKeyGenerator)
- m_formKeyGenerator = std::make_unique<FormKeyGenerator>();
+ m_formKeyGenerator = makeUnique<FormKeyGenerator>();
SavedFormStateMap::iterator it = m_savedFormStateMap.find(m_formKeyGenerator->formKey(control).impl());
if (it == m_savedFormStateMap.end())
return FormControlState();
diff --git a/Source/WebCore/html/HTMLAnchorElement.cpp b/Source/WebCore/html/HTMLAnchorElement.cpp
index 5f478f2..3ef198c 100644
--- a/Source/WebCore/html/HTMLAnchorElement.cpp
+++ b/Source/WebCore/html/HTMLAnchorElement.cpp
@@ -314,7 +314,7 @@
DOMTokenList& HTMLAnchorElement::relList() const
{
if (!m_relList) {
- m_relList = std::make_unique<DOMTokenList>(const_cast<HTMLAnchorElement&>(*this), HTMLNames::relAttr, [](Document&, StringView token) {
+ m_relList = makeUnique<DOMTokenList>(const_cast<HTMLAnchorElement&>(*this), HTMLNames::relAttr, [](Document&, StringView token) {
#if USE(SYSTEM_PREVIEW)
return equalIgnoringASCIICase(token, "noreferrer") || equalIgnoringASCIICase(token, "noopener") || equalIgnoringASCIICase(token, "ar");
#else
diff --git a/Source/WebCore/html/HTMLAreaElement.cpp b/Source/WebCore/html/HTMLAreaElement.cpp
index 58fc702..5114b20 100644
--- a/Source/WebCore/html/HTMLAreaElement.cpp
+++ b/Source/WebCore/html/HTMLAreaElement.cpp
@@ -83,7 +83,7 @@
bool HTMLAreaElement::mapMouseEvent(LayoutPoint location, const LayoutSize& size, HitTestResult& result)
{
if (m_lastSize != size) {
- m_region = std::make_unique<Path>(getRegion(size));
+ m_region = makeUnique<Path>(getRegion(size));
m_lastSize = size;
}
diff --git a/Source/WebCore/html/HTMLCanvasElement.cpp b/Source/WebCore/html/HTMLCanvasElement.cpp
index 07715cb..2014efe 100644
--- a/Source/WebCore/html/HTMLCanvasElement.cpp
+++ b/Source/WebCore/html/HTMLCanvasElement.cpp
@@ -952,7 +952,7 @@
m_imageBuffer->context().setShadowsIgnoreTransforms(true);
m_imageBuffer->context().setImageInterpolationQuality(defaultInterpolationQuality);
m_imageBuffer->context().setStrokeThickness(1);
- m_contextStateSaver = std::make_unique<GraphicsContextStateSaver>(m_imageBuffer->context());
+ m_contextStateSaver = makeUnique<GraphicsContextStateSaver>(m_imageBuffer->context());
JSC::JSLockHolder lock(HTMLElement::scriptExecutionContext()->vm());
HTMLElement::scriptExecutionContext()->vm().heap.reportExtraMemoryAllocated(memoryCost());
diff --git a/Source/WebCore/html/HTMLCollection.cpp b/Source/WebCore/html/HTMLCollection.cpp
index 976c8e0..328176b 100644
--- a/Source/WebCore/html/HTMLCollection.cpp
+++ b/Source/WebCore/html/HTMLCollection.cpp
@@ -205,7 +205,7 @@
if (hasNamedElementCache())
return;
- auto cache = std::make_unique<CollectionNamedElementCache>();
+ auto cache = makeUnique<CollectionNamedElementCache>();
unsigned size = length();
for (unsigned i = 0; i < size; ++i) {
diff --git a/Source/WebCore/html/HTMLDetailsElement.cpp b/Source/WebCore/html/HTMLDetailsElement.cpp
index f157874..60dd1fb 100644
--- a/Source/WebCore/html/HTMLDetailsElement.cpp
+++ b/Source/WebCore/html/HTMLDetailsElement.cpp
@@ -88,7 +88,7 @@
Ref<HTMLDetailsElement> HTMLDetailsElement::create(const QualifiedName& tagName, Document& document)
{
auto details = adoptRef(*new HTMLDetailsElement(tagName, document));
- details->addShadowRoot(ShadowRoot::create(document, std::make_unique<DetailsSlotAssignment>()));
+ details->addShadowRoot(ShadowRoot::create(document, makeUnique<DetailsSlotAssignment>()));
return details;
}
diff --git a/Source/WebCore/html/HTMLFormControlElement.cpp b/Source/WebCore/html/HTMLFormControlElement.cpp
index 0cd75bc..79f3d39 100644
--- a/Source/WebCore/html/HTMLFormControlElement.cpp
+++ b/Source/WebCore/html/HTMLFormControlElement.cpp
@@ -479,7 +479,7 @@
if (renderer() && willValidate())
message = validationMessage().stripWhiteSpace();
if (!m_validationMessage)
- m_validationMessage = std::make_unique<ValidationMessage>(this);
+ m_validationMessage = makeUnique<ValidationMessage>(this);
m_validationMessage->updateValidationMessage(message);
}
diff --git a/Source/WebCore/html/HTMLFormControlsCollection.cpp b/Source/WebCore/html/HTMLFormControlsCollection.cpp
index 6ec22d7..a2b00e8 100644
--- a/Source/WebCore/html/HTMLFormControlsCollection.cpp
+++ b/Source/WebCore/html/HTMLFormControlsCollection.cpp
@@ -119,7 +119,7 @@
if (hasNamedElementCache())
return;
- auto cache = std::make_unique<CollectionNamedElementCache>();
+ auto cache = makeUnique<CollectionNamedElementCache>();
HashSet<AtomStringImpl*> foundInputElements;
diff --git a/Source/WebCore/html/HTMLFormElement.cpp b/Source/WebCore/html/HTMLFormElement.cpp
index c76d493..435d951 100644
--- a/Source/WebCore/html/HTMLFormElement.cpp
+++ b/Source/WebCore/html/HTMLFormElement.cpp
@@ -791,7 +791,7 @@
if (pastName.isEmpty())
return;
if (!m_pastNamesMap)
- m_pastNamesMap = std::make_unique<PastNamesMap>();
+ m_pastNamesMap = makeUnique<PastNamesMap>();
m_pastNamesMap->set(pastName.impl(), item);
}
diff --git a/Source/WebCore/html/HTMLIFrameElement.cpp b/Source/WebCore/html/HTMLIFrameElement.cpp
index 02d7d4e..b1c821d 100644
--- a/Source/WebCore/html/HTMLIFrameElement.cpp
+++ b/Source/WebCore/html/HTMLIFrameElement.cpp
@@ -54,7 +54,7 @@
DOMTokenList& HTMLIFrameElement::sandbox()
{
if (!m_sandbox) {
- m_sandbox = std::make_unique<DOMTokenList>(*this, sandboxAttr, [](Document&, StringView token) {
+ m_sandbox = makeUnique<DOMTokenList>(*this, sandboxAttr, [](Document&, StringView token) {
return SecurityContext::isSupportedSandboxPolicy(token);
});
}
diff --git a/Source/WebCore/html/HTMLInputElement.cpp b/Source/WebCore/html/HTMLInputElement.cpp
index 0c25cdd..376c521 100644
--- a/Source/WebCore/html/HTMLInputElement.cpp
+++ b/Source/WebCore/html/HTMLInputElement.cpp
@@ -148,7 +148,7 @@
HTMLImageLoader& HTMLInputElement::ensureImageLoader()
{
if (!m_imageLoader)
- m_imageLoader = std::make_unique<HTMLImageLoader>(*this);
+ m_imageLoader = makeUnique<HTMLImageLoader>(*this);
return *m_imageLoader;
}
@@ -1641,7 +1641,7 @@
void HTMLInputElement::resetListAttributeTargetObserver()
{
if (isConnected())
- m_listAttributeTargetObserver = std::make_unique<ListAttributeTargetObserver>(attributeWithoutSynchronization(listAttr), this);
+ m_listAttributeTargetObserver = makeUnique<ListAttributeTargetObserver>(attributeWithoutSynchronization(listAttr), this);
else
m_listAttributeTargetObserver = nullptr;
}
diff --git a/Source/WebCore/html/HTMLLinkElement.cpp b/Source/WebCore/html/HTMLLinkElement.cpp
index b8634ca..f6a7bc8 100644
--- a/Source/WebCore/html/HTMLLinkElement.cpp
+++ b/Source/WebCore/html/HTMLLinkElement.cpp
@@ -481,7 +481,7 @@
DOMTokenList& HTMLLinkElement::sizes()
{
if (!m_sizes)
- m_sizes = std::make_unique<DOMTokenList>(*this, sizesAttr);
+ m_sizes = makeUnique<DOMTokenList>(*this, sizesAttr);
return *m_sizes;
}
@@ -522,7 +522,7 @@
DOMTokenList& HTMLLinkElement::relList()
{
if (!m_relList)
- m_relList = std::make_unique<DOMTokenList>(*this, HTMLNames::relAttr, [](Document& document, StringView token) {
+ m_relList = makeUnique<DOMTokenList>(*this, HTMLNames::relAttr, [](Document& document, StringView token) {
return LinkRelAttribute::isSupported(document, token);
});
return *m_relList;
diff --git a/Source/WebCore/html/HTMLMediaElement.cpp b/Source/WebCore/html/HTMLMediaElement.cpp
index b55c469..f64fe92 100644
--- a/Source/WebCore/html/HTMLMediaElement.cpp
+++ b/Source/WebCore/html/HTMLMediaElement.cpp
@@ -481,7 +481,7 @@
void HTMLMediaElement::finishInitialization()
{
- m_mediaSession = std::make_unique<MediaElementSession>(*this);
+ m_mediaSession = makeUnique<MediaElementSession>(*this);
m_mediaSession->addBehaviorRestriction(MediaElementSession::RequireUserGestureForFullscreen);
m_mediaSession->addBehaviorRestriction(MediaElementSession::RequirePageConsentToLoadMedia);
@@ -3027,7 +3027,7 @@
// 5 - If the seek was in response to a DOM method call or setting of an IDL attribute, then continue
// the script. The remainder of these steps must be run asynchronously.
- m_pendingSeek = std::make_unique<PendingSeek>(now, time, negativeTolerance, positiveTolerance);
+ m_pendingSeek = makeUnique<PendingSeek>(now, time, negativeTolerance, positiveTolerance);
if (fromDOM) {
INFO_LOG(LOGIDENTIFIER, "enqueuing seek from ", now, " to ", time);
m_seekTaskQueue.scheduleTask(std::bind(&HTMLMediaElement::seekTask, this));
diff --git a/Source/WebCore/html/HTMLOutputElement.cpp b/Source/WebCore/html/HTMLOutputElement.cpp
index dd4fa2d..56b7206 100644
--- a/Source/WebCore/html/HTMLOutputElement.cpp
+++ b/Source/WebCore/html/HTMLOutputElement.cpp
@@ -132,7 +132,7 @@
DOMTokenList& HTMLOutputElement::htmlFor()
{
if (!m_tokens)
- m_tokens = std::make_unique<DOMTokenList>(*this, forAttr);
+ m_tokens = makeUnique<DOMTokenList>(*this, forAttr);
return *m_tokens;
}
diff --git a/Source/WebCore/html/HTMLPlugInImageElement.cpp b/Source/WebCore/html/HTMLPlugInImageElement.cpp
index dda9449..5b99d55 100644
--- a/Source/WebCore/html/HTMLPlugInImageElement.cpp
+++ b/Source/WebCore/html/HTMLPlugInImageElement.cpp
@@ -287,7 +287,7 @@
if (renderer() && !useFallbackContent()) {
if (isImageType()) {
if (!m_imageLoader)
- m_imageLoader = std::make_unique<HTMLImageLoader>(*this);
+ m_imageLoader = makeUnique<HTMLImageLoader>(*this);
if (m_needsImageReload)
m_imageLoader->updateFromElementIgnoringPreviousError();
else
diff --git a/Source/WebCore/html/HTMLSummaryElement.cpp b/Source/WebCore/html/HTMLSummaryElement.cpp
index 10bc09ff..b04939b 100644
--- a/Source/WebCore/html/HTMLSummaryElement.cpp
+++ b/Source/WebCore/html/HTMLSummaryElement.cpp
@@ -53,7 +53,7 @@
Ref<HTMLSummaryElement> HTMLSummaryElement::create(const QualifiedName& tagName, Document& document)
{
Ref<HTMLSummaryElement> summary = adoptRef(*new HTMLSummaryElement(tagName, document));
- summary->addShadowRoot(ShadowRoot::create(document, std::make_unique<SummarySlotElement>()));
+ summary->addShadowRoot(ShadowRoot::create(document, makeUnique<SummarySlotElement>()));
return summary;
}
diff --git a/Source/WebCore/html/HTMLVideoElement.cpp b/Source/WebCore/html/HTMLVideoElement.cpp
index a5e75aa..67ff212 100644
--- a/Source/WebCore/html/HTMLVideoElement.cpp
+++ b/Source/WebCore/html/HTMLVideoElement.cpp
@@ -94,7 +94,7 @@
updateDisplayState();
if (shouldDisplayPosterImage()) {
if (!m_imageLoader)
- m_imageLoader = std::make_unique<HTMLImageLoader>(*this);
+ m_imageLoader = makeUnique<HTMLImageLoader>(*this);
m_imageLoader->updateFromElement();
if (auto* renderer = this->renderer())
renderer->imageResource().setCachedImage(m_imageLoader->image());
@@ -127,7 +127,7 @@
if (shouldDisplayPosterImage()) {
if (!m_imageLoader)
- m_imageLoader = std::make_unique<HTMLImageLoader>(*this);
+ m_imageLoader = makeUnique<HTMLImageLoader>(*this);
m_imageLoader->updateFromElementIgnoringPreviousError();
} else {
if (auto* renderer = this->renderer())
diff --git a/Source/WebCore/html/PublicURLManager.cpp b/Source/WebCore/html/PublicURLManager.cpp
index 7bebc7a..b668da1 100644
--- a/Source/WebCore/html/PublicURLManager.cpp
+++ b/Source/WebCore/html/PublicURLManager.cpp
@@ -35,7 +35,7 @@
std::unique_ptr<PublicURLManager> PublicURLManager::create(ScriptExecutionContext* context)
{
- auto publicURLManager = std::make_unique<PublicURLManager>(context);
+ auto publicURLManager = makeUnique<PublicURLManager>(context);
publicURLManager->suspendIfNeeded();
return publicURLManager;
}
diff --git a/Source/WebCore/html/ValidationMessage.cpp b/Source/WebCore/html/ValidationMessage.cpp
index 8af73a8..f5dab0f 100644
--- a/Source/WebCore/html/ValidationMessage.cpp
+++ b/Source/WebCore/html/ValidationMessage.cpp
@@ -115,9 +115,9 @@
ASSERT(!message.isEmpty());
m_message = message;
if (!m_bubble)
- m_timer = std::make_unique<Timer>(*this, &ValidationMessage::buildBubbleTree);
+ m_timer = makeUnique<Timer>(*this, &ValidationMessage::buildBubbleTree);
else
- m_timer = std::make_unique<Timer>(*this, &ValidationMessage::setMessageDOMAndStartTimer);
+ m_timer = makeUnique<Timer>(*this, &ValidationMessage::setMessageDOMAndStartTimer);
m_timer->startOneShot(0_s);
}
@@ -143,7 +143,7 @@
if (magnification <= 0)
m_timer = nullptr;
else {
- m_timer = std::make_unique<Timer>(*this, &ValidationMessage::deleteBubbleTree);
+ m_timer = makeUnique<Timer>(*this, &ValidationMessage::deleteBubbleTree);
m_timer->startOneShot(std::max(5_s, 1_ms * static_cast<double>(m_message.length()) * magnification));
}
}
@@ -234,7 +234,7 @@
}
// We must not modify the DOM tree in this context by the same reason as setMessage().
- m_timer = std::make_unique<Timer>(*this, &ValidationMessage::deleteBubbleTree);
+ m_timer = makeUnique<Timer>(*this, &ValidationMessage::deleteBubbleTree);
m_timer->startOneShot(0_s);
}
diff --git a/Source/WebCore/html/canvas/CanvasRenderingContext2DBase.cpp b/Source/WebCore/html/canvas/CanvasRenderingContext2DBase.cpp
index b167784..53c9c56 100644
--- a/Source/WebCore/html/canvas/CanvasRenderingContext2DBase.cpp
+++ b/Source/WebCore/html/canvas/CanvasRenderingContext2DBase.cpp
@@ -99,7 +99,7 @@
DisplayListDrawingContext(const GraphicsContextState& state, const FloatRect& clip)
: context([&](GraphicsContext& displayListContext) {
- return std::make_unique<DisplayList::Recorder>(displayListContext, displayList, state, clip, AffineTransform());
+ return makeUnique<DisplayList::Recorder>(displayListContext, displayList, state, clip, AffineTransform());
})
{
}
@@ -2118,7 +2118,7 @@
{
if (UNLIKELY(m_usesDisplayListDrawing)) {
if (!m_recordingContext)
- m_recordingContext = std::make_unique<DisplayListDrawingContext>(GraphicsContextState(), FloatRect(FloatPoint::zero(), canvasBase().size()));
+ m_recordingContext = makeUnique<DisplayListDrawingContext>(GraphicsContextState(), FloatRect(FloatPoint::zero(), canvasBase().size()));
return &m_recordingContext->context;
}
diff --git a/Source/WebCore/html/canvas/WebGL2RenderingContext.cpp b/Source/WebCore/html/canvas/WebGL2RenderingContext.cpp
index 6311917..cd47212 100644
--- a/Source/WebCore/html/canvas/WebGL2RenderingContext.cpp
+++ b/Source/WebCore/html/canvas/WebGL2RenderingContext.cpp
@@ -1359,7 +1359,7 @@
#define ENABLE_IF_REQUESTED(type, variable, nameLiteral, canEnable) \
if (equalIgnoringASCIICase(name, nameLiteral)) { \
if (!variable) { \
- variable = (canEnable) ? std::make_unique<type>(*this) : nullptr; \
+ variable = (canEnable) ? makeUnique<type>(*this) : nullptr; \
if (variable != nullptr) \
InspectorInstrumentation::didEnableExtension(*this, name); \
} \
diff --git a/Source/WebCore/html/canvas/WebGLRenderingContext.cpp b/Source/WebCore/html/canvas/WebGLRenderingContext.cpp
index e06bf99..e5fde70 100644
--- a/Source/WebCore/html/canvas/WebGLRenderingContext.cpp
+++ b/Source/WebCore/html/canvas/WebGLRenderingContext.cpp
@@ -116,7 +116,7 @@
#define ENABLE_IF_REQUESTED(type, variable, nameLiteral, canEnable) \
if (equalIgnoringASCIICase(name, nameLiteral)) { \
if (!variable) { \
- variable = (canEnable) ? std::make_unique<type>(*this) : nullptr; \
+ variable = (canEnable) ? makeUnique<type>(*this) : nullptr; \
if (variable != nullptr) \
InspectorInstrumentation::didEnableExtension(*this, name); \
} \
@@ -132,7 +132,7 @@
m_extShaderTextureLOD = nullptr;
else {
m_context->getExtensions().ensureEnabled("GL_EXT_shader_texture_lod"_s);
- m_extShaderTextureLOD = std::make_unique<EXTShaderTextureLOD>(*this);
+ m_extShaderTextureLOD = makeUnique<EXTShaderTextureLOD>(*this);
InspectorInstrumentation::didEnableExtension(*this, name);
}
}
@@ -159,7 +159,7 @@
m_webglDrawBuffers = nullptr;
else {
m_context->getExtensions().ensureEnabled("GL_EXT_draw_buffers"_s);
- m_webglDrawBuffers = std::make_unique<WebGLDrawBuffers>(*this);
+ m_webglDrawBuffers = makeUnique<WebGLDrawBuffers>(*this);
InspectorInstrumentation::didEnableExtension(*this, name);
}
}
@@ -171,7 +171,7 @@
m_angleInstancedArrays = nullptr;
else {
m_context->getExtensions().ensureEnabled("GL_ANGLE_instanced_arrays"_s);
- m_angleInstancedArrays = std::make_unique<ANGLEInstancedArrays>(*this);
+ m_angleInstancedArrays = makeUnique<ANGLEInstancedArrays>(*this);
InspectorInstrumentation::didEnableExtension(*this, name);
}
}
diff --git a/Source/WebCore/html/canvas/WebGLRenderingContextBase.cpp b/Source/WebCore/html/canvas/WebGLRenderingContextBase.cpp
index 3ece7ee..d166fb2 100644
--- a/Source/WebCore/html/canvas/WebGLRenderingContextBase.cpp
+++ b/Source/WebCore/html/canvas/WebGLRenderingContextBase.cpp
@@ -799,8 +799,8 @@
m_context->viewport(0, 0, canvasSize.width(), canvasSize.height());
m_context->scissor(0, 0, canvasSize.width(), canvasSize.height());
- m_context->setContextLostCallback(std::make_unique<WebGLRenderingContextLostCallback>(this));
- m_context->setErrorMessageCallback(std::make_unique<WebGLRenderingContextErrorMessageCallback>(this));
+ m_context->setContextLostCallback(makeUnique<WebGLRenderingContextLostCallback>(this));
+ m_context->setErrorMessageCallback(makeUnique<WebGLRenderingContextErrorMessageCallback>(this));
}
void WebGLRenderingContextBase::setupFlags()
@@ -1579,7 +1579,7 @@
Ref<Inspector::ScriptCallStack> stackTrace = Inspector::createScriptCallStack(JSExecState::currentState());
for (auto& error : getShaderInfoLog(shader).split('\n'))
- canvas->document().addConsoleMessage(std::make_unique<Inspector::ConsoleMessage>(MessageSource::Rendering, MessageType::Log, MessageLevel::Error, "WebGL: " + error, stackTrace.copyRef()));
+ canvas->document().addConsoleMessage(makeUnique<Inspector::ConsoleMessage>(MessageSource::Rendering, MessageType::Log, MessageLevel::Error, "WebGL: " + error, stackTrace.copyRef()));
}
}
@@ -5808,9 +5808,9 @@
// Error messages can occur during function calls, so show stack traces for them.
if (level == MessageLevel::Error) {
Ref<Inspector::ScriptCallStack> stackTrace = Inspector::createScriptCallStack(JSExecState::currentState());
- consoleMessage = std::make_unique<Inspector::ConsoleMessage>(MessageSource::Rendering, MessageType::Log, level, message, WTFMove(stackTrace));
+ consoleMessage = makeUnique<Inspector::ConsoleMessage>(MessageSource::Rendering, MessageType::Log, level, message, WTFMove(stackTrace));
} else
- consoleMessage = std::make_unique<Inspector::ConsoleMessage>(MessageSource::Rendering, MessageType::Log, level, message);
+ consoleMessage = makeUnique<Inspector::ConsoleMessage>(MessageSource::Rendering, MessageType::Log, level, message);
auto* canvas = htmlCanvas();
if (canvas)
diff --git a/Source/WebCore/html/parser/CSSPreloadScanner.cpp b/Source/WebCore/html/parser/CSSPreloadScanner.cpp
index e8590cc..aefe457 100644
--- a/Source/WebCore/html/parser/CSSPreloadScanner.cpp
+++ b/Source/WebCore/html/parser/CSSPreloadScanner.cpp
@@ -201,7 +201,7 @@
if (!url.isEmpty()) {
URL baseElementURL; // FIXME: This should be passed in from the HTMLPreloadScanner via scan(): without it we will get relative URLs wrong.
// FIXME: Should this be including the charset in the preload request?
- m_requests->append(std::make_unique<PreloadRequest>("css", url, baseElementURL, CachedResource::Type::CSSStyleSheet, String(), PreloadRequest::ModuleScript::No, ReferrerPolicy::EmptyString));
+ m_requests->append(makeUnique<PreloadRequest>("css", url, baseElementURL, CachedResource::Type::CSSStyleSheet, String(), PreloadRequest::ModuleScript::No, ReferrerPolicy::EmptyString));
}
m_state = Initial;
} else if (equalLettersIgnoringASCIICase(rule, "charset"))
diff --git a/Source/WebCore/html/parser/HTMLConstructionSite.cpp b/Source/WebCore/html/parser/HTMLConstructionSite.cpp
index 51bae4c..9ac444e 100644
--- a/Source/WebCore/html/parser/HTMLConstructionSite.cpp
+++ b/Source/WebCore/html/parser/HTMLConstructionSite.cpp
@@ -503,7 +503,7 @@
JSCustomElementInterface* elementInterface = nullptr;
RefPtr<Element> element = createHTMLElementOrFindCustomElementInterface(token, &elementInterface);
if (UNLIKELY(elementInterface))
- return std::make_unique<CustomElementConstructionData>(*elementInterface, token.name(), WTFMove(token.attributes()));
+ return makeUnique<CustomElementConstructionData>(*elementInterface, token.name(), WTFMove(token.attributes()));
attachLater(currentNode(), *element);
m_openElements.push(HTMLStackItem::create(element.releaseNonNull(), WTFMove(token)));
return nullptr;
diff --git a/Source/WebCore/html/parser/HTMLDocumentParser.cpp b/Source/WebCore/html/parser/HTMLDocumentParser.cpp
index 4ff4e2b..dd9ea04 100644
--- a/Source/WebCore/html/parser/HTMLDocumentParser.cpp
+++ b/Source/WebCore/html/parser/HTMLDocumentParser.cpp
@@ -53,11 +53,11 @@
: ScriptableDocumentParser(document)
, m_options(document)
, m_tokenizer(m_options)
- , m_scriptRunner(std::make_unique<HTMLScriptRunner>(document, static_cast<HTMLScriptRunnerHost&>(*this)))
- , m_treeBuilder(std::make_unique<HTMLTreeBuilder>(*this, document, parserContentPolicy(), m_options))
- , m_parserScheduler(std::make_unique<HTMLParserScheduler>(*this))
+ , m_scriptRunner(makeUnique<HTMLScriptRunner>(document, static_cast<HTMLScriptRunnerHost&>(*this)))
+ , m_treeBuilder(makeUnique<HTMLTreeBuilder>(*this, document, parserContentPolicy(), m_options))
+ , m_parserScheduler(makeUnique<HTMLParserScheduler>(*this))
, m_xssAuditorDelegate(document)
- , m_preloader(std::make_unique<HTMLResourcePreloader>(document))
+ , m_preloader(makeUnique<HTMLResourcePreloader>(document))
{
}
@@ -70,7 +70,7 @@
: ScriptableDocumentParser(fragment.document(), rawPolicy)
, m_options(fragment.document())
, m_tokenizer(m_options)
- , m_treeBuilder(std::make_unique<HTMLTreeBuilder>(*this, fragment, contextElement, parserContentPolicy(), m_options))
+ , m_treeBuilder(makeUnique<HTMLTreeBuilder>(*this, fragment, contextElement, parserContentPolicy(), m_options))
, m_xssAuditorDelegate(fragment.document())
{
// https://html.spec.whatwg.org/multipage/syntax.html#parsing-html-fragments
@@ -315,7 +315,7 @@
if (isWaitingForScripts()) {
ASSERT(m_tokenizer.isInDataState());
if (!m_preloadScanner) {
- m_preloadScanner = std::make_unique<HTMLPreloadScanner>(m_options, document()->url(), document()->deviceScaleFactor());
+ m_preloadScanner = makeUnique<HTMLPreloadScanner>(m_options, document()->url(), document()->deviceScaleFactor());
m_preloadScanner->appendToEnd(m_input.current());
}
m_preloadScanner->scan(*m_preloader, *document());
@@ -374,7 +374,7 @@
// Check the document.write() output with a separate preload scanner as
// the main scanner can't deal with insertions.
if (!m_insertionPreloadScanner)
- m_insertionPreloadScanner = std::make_unique<HTMLPreloadScanner>(m_options, document()->url(), document()->deviceScaleFactor());
+ m_insertionPreloadScanner = makeUnique<HTMLPreloadScanner>(m_options, document()->url(), document()->deviceScaleFactor());
m_insertionPreloadScanner->appendToEnd(source);
m_insertionPreloadScanner->scan(*m_preloader, *document());
}
diff --git a/Source/WebCore/html/parser/HTMLElementStack.cpp b/Source/WebCore/html/parser/HTMLElementStack.cpp
index 30c5b46..6ef1712 100644
--- a/Source/WebCore/html/parser/HTMLElementStack.cpp
+++ b/Source/WebCore/html/parser/HTMLElementStack.cpp
@@ -339,7 +339,7 @@
continue;
++m_stackDepth;
- recordAbove->setNext(std::make_unique<ElementRecord>(WTFMove(item), recordAbove->releaseNext()));
+ recordAbove->setNext(makeUnique<ElementRecord>(WTFMove(item), recordAbove->releaseNext()));
recordAbove->next()->element().beginParsingChildren();
return;
}
@@ -533,7 +533,7 @@
ASSERT(m_rootNode);
++m_stackDepth;
- m_top = std::make_unique<ElementRecord>(WTFMove(item), WTFMove(m_top));
+ m_top = makeUnique<ElementRecord>(WTFMove(item), WTFMove(m_top));
}
void HTMLElementStack::popCommon()
diff --git a/Source/WebCore/html/parser/HTMLPreloadScanner.cpp b/Source/WebCore/html/parser/HTMLPreloadScanner.cpp
index 53a172d..33d7b3b 100644
--- a/Source/WebCore/html/parser/HTMLPreloadScanner.cpp
+++ b/Source/WebCore/html/parser/HTMLPreloadScanner.cpp
@@ -161,7 +161,7 @@
if (!LinkLoader::isSupportedType(type.value(), m_typeAttribute))
return nullptr;
- auto request = std::make_unique<PreloadRequest>(initiatorFor(m_tagId), m_urlToLoad, predictedBaseURL, type.value(), m_mediaAttribute, m_moduleScript, m_referrerPolicy);
+ auto request = makeUnique<PreloadRequest>(initiatorFor(m_tagId), m_urlToLoad, predictedBaseURL, type.value(), m_mediaAttribute, m_moduleScript, m_referrerPolicy);
request->setCrossOriginMode(m_crossOriginMode);
request->setNonce(m_nonceAttribute);
diff --git a/Source/WebCore/html/parser/HTMLToken.h b/Source/WebCore/html/parser/HTMLToken.h
index f71b21d..3f746dc 100644
--- a/Source/WebCore/html/parser/HTMLToken.h
+++ b/Source/WebCore/html/parser/HTMLToken.h
@@ -209,7 +209,7 @@
{
ASSERT(m_type == Uninitialized);
m_type = DOCTYPE;
- m_doctypeData = std::make_unique<DoctypeData>();
+ m_doctypeData = makeUnique<DoctypeData>();
}
inline void HTMLToken::beginDOCTYPE(UChar character)
diff --git a/Source/WebCore/html/parser/XSSAuditor.cpp b/Source/WebCore/html/parser/XSSAuditor.cpp
index ac6e7944..061d956 100644
--- a/Source/WebCore/html/parser/XSSAuditor.cpp
+++ b/Source/WebCore/html/parser/XSSAuditor.cpp
@@ -376,7 +376,7 @@
return nullptr;
bool didBlockEntirePage = m_xssProtection == XSSProtectionDisposition::BlockEnabled;
- return std::make_unique<XSSInfo>(m_documentURL, didBlockEntirePage, m_didSendValidXSSProtectionHeader);
+ return makeUnique<XSSInfo>(m_documentURL, didBlockEntirePage, m_didSendValidXSSProtectionHeader);
}
bool XSSAuditor::filterStartToken(const FilterTokenRequest& request)
@@ -712,7 +712,7 @@
const unsigned suffixTreeDepth = 5;
if (!m_decodedHTTPBodySuffixTree && m_decodedHTTPBody.length() >= minimumLengthForSuffixTree)
- m_decodedHTTPBodySuffixTree = std::make_unique<SuffixTree<ASCIICodebook>>(m_decodedHTTPBody, suffixTreeDepth);
+ m_decodedHTTPBodySuffixTree = makeUnique<SuffixTree<ASCIICodebook>>(m_decodedHTTPBody, suffixTreeDepth);
return m_decodedHTTPBodySuffixTree.get();
}
diff --git a/Source/WebCore/html/shadow/TextControlInnerElements.cpp b/Source/WebCore/html/shadow/TextControlInnerElements.cpp
index 3a637da..d566bcc 100644
--- a/Source/WebCore/html/shadow/TextControlInnerElements.cpp
+++ b/Source/WebCore/html/shadow/TextControlInnerElements.cpp
@@ -174,7 +174,7 @@
Optional<ElementStyle> TextControlInnerTextElement::resolveCustomStyle(const RenderStyle&, const RenderStyle* shadowHostStyle)
{
auto style = downcast<HTMLTextFormControlElement>(*shadowHost()).createInnerTextStyle(*shadowHostStyle);
- return ElementStyle(std::make_unique<RenderStyle>(WTFMove(style)));
+ return ElementStyle(makeUnique<RenderStyle>(WTFMove(style)));
}
// MARK: TextControlPlaceholderElement
diff --git a/Source/WebCore/html/track/InbandGenericTextTrack.cpp b/Source/WebCore/html/track/InbandGenericTextTrack.cpp
index e40200a..4934d729 100644
--- a/Source/WebCore/html/track/InbandGenericTextTrack.cpp
+++ b/Source/WebCore/html/track/InbandGenericTextTrack.cpp
@@ -174,7 +174,7 @@
WebVTTParser& InbandGenericTextTrack::parser()
{
if (!m_webVTTParser)
- m_webVTTParser = std::make_unique<WebVTTParser>(static_cast<WebVTTParserClient*>(this), scriptExecutionContext());
+ m_webVTTParser = makeUnique<WebVTTParser>(static_cast<WebVTTParserClient*>(this), scriptExecutionContext());
return *m_webVTTParser;
}
diff --git a/Source/WebCore/html/track/InbandWebVTTTextTrack.cpp b/Source/WebCore/html/track/InbandWebVTTTextTrack.cpp
index 855bb23..10faa12 100644
--- a/Source/WebCore/html/track/InbandWebVTTTextTrack.cpp
+++ b/Source/WebCore/html/track/InbandWebVTTTextTrack.cpp
@@ -54,7 +54,7 @@
WebVTTParser& InbandWebVTTTextTrack::parser()
{
if (!m_webVTTParser)
- m_webVTTParser = std::make_unique<WebVTTParser>(static_cast<WebVTTParserClient*>(this), scriptExecutionContext());
+ m_webVTTParser = makeUnique<WebVTTParser>(static_cast<WebVTTParserClient*>(this), scriptExecutionContext());
return *m_webVTTParser;
}
diff --git a/Source/WebCore/html/track/LoadableTextTrack.cpp b/Source/WebCore/html/track/LoadableTextTrack.cpp
index 8f29c7f..7a1e1bc 100644
--- a/Source/WebCore/html/track/LoadableTextTrack.cpp
+++ b/Source/WebCore/html/track/LoadableTextTrack.cpp
@@ -84,7 +84,7 @@
// 4. Download: If URL is not the empty string, perform a potentially CORS-enabled fetch of URL, with the
// mode being the state of the media element's crossorigin content attribute, the origin being the
// origin of the media element's Document, and the default origin behaviour set to fail.
- m_loader = std::make_unique<TextTrackLoader>(static_cast<TextTrackLoaderClient&>(*this), static_cast<ScriptExecutionContext*>(&m_trackElement->document()));
+ m_loader = makeUnique<TextTrackLoader>(static_cast<TextTrackLoaderClient&>(*this), static_cast<ScriptExecutionContext*>(&m_trackElement->document()));
if (!m_loader->load(m_url, *m_trackElement))
m_trackElement->didCompleteLoad(HTMLTrackElement::Failure);
}
diff --git a/Source/WebCore/inspector/CommandLineAPIHost.cpp b/Source/WebCore/inspector/CommandLineAPIHost.cpp
index 031080e..9029b92 100644
--- a/Source/WebCore/inspector/CommandLineAPIHost.cpp
+++ b/Source/WebCore/inspector/CommandLineAPIHost.cpp
@@ -61,7 +61,7 @@
}
CommandLineAPIHost::CommandLineAPIHost()
- : m_inspectedObject(std::make_unique<InspectableObject>())
+ : m_inspectedObject(makeUnique<InspectableObject>())
{
}
@@ -196,7 +196,7 @@
void CommandLineAPIHost::clearAllWrappers()
{
m_wrappers.clearAllWrappers();
- m_inspectedObject = std::make_unique<InspectableObject>();
+ m_inspectedObject = makeUnique<InspectableObject>();
}
} // namespace WebCore
diff --git a/Source/WebCore/inspector/DOMEditor.cpp b/Source/WebCore/inspector/DOMEditor.cpp
index 6c31e49..838908d 100644
--- a/Source/WebCore/inspector/DOMEditor.cpp
+++ b/Source/WebCore/inspector/DOMEditor.cpp
@@ -89,7 +89,7 @@
ExceptionOr<void> perform() final
{
if (m_node->parentNode()) {
- m_removeChildAction = std::make_unique<RemoveChildAction>(*m_node->parentNode(), m_node);
+ m_removeChildAction = makeUnique<RemoveChildAction>(*m_node->parentNode(), m_node);
auto result = m_removeChildAction->perform();
if (result.hasException())
return result.releaseException();
@@ -385,27 +385,27 @@
ExceptionOr<void> DOMEditor::insertBefore(Node& parentNode, Ref<Node>&& node, Node* anchorNode)
{
- return m_history.perform(std::make_unique<InsertBeforeAction>(parentNode, WTFMove(node), anchorNode));
+ return m_history.perform(makeUnique<InsertBeforeAction>(parentNode, WTFMove(node), anchorNode));
}
ExceptionOr<void> DOMEditor::removeChild(Node& parentNode, Node& node)
{
- return m_history.perform(std::make_unique<RemoveChildAction>(parentNode, node));
+ return m_history.perform(makeUnique<RemoveChildAction>(parentNode, node));
}
ExceptionOr<void> DOMEditor::setAttribute(Element& element, const String& name, const String& value)
{
- return m_history.perform(std::make_unique<SetAttributeAction>(element, name, value));
+ return m_history.perform(makeUnique<SetAttributeAction>(element, name, value));
}
ExceptionOr<void> DOMEditor::removeAttribute(Element& element, const String& name)
{
- return m_history.perform(std::make_unique<RemoveAttributeAction>(element, name));
+ return m_history.perform(makeUnique<RemoveAttributeAction>(element, name));
}
ExceptionOr<void> DOMEditor::setOuterHTML(Node& node, const String& html, Node*& newNode)
{
- auto action = std::make_unique<SetOuterHTMLAction>(node, html);
+ auto action = makeUnique<SetOuterHTMLAction>(node, html);
auto& rawAction = *action;
auto result = m_history.perform(WTFMove(action));
if (!result.hasException())
@@ -415,22 +415,22 @@
ExceptionOr<void> DOMEditor::insertAdjacentHTML(Element& element, const String& where, const String& html)
{
- return m_history.perform(std::make_unique<InsertAdjacentHTMLAction>(element, where, html));
+ return m_history.perform(makeUnique<InsertAdjacentHTMLAction>(element, where, html));
}
ExceptionOr<void> DOMEditor::replaceWholeText(Text& textNode, const String& text)
{
- return m_history.perform(std::make_unique<ReplaceWholeTextAction>(textNode, text));
+ return m_history.perform(makeUnique<ReplaceWholeTextAction>(textNode, text));
}
ExceptionOr<void> DOMEditor::replaceChild(Node& parentNode, Ref<Node>&& newNode, Node& oldNode)
{
- return m_history.perform(std::make_unique<ReplaceChildNodeAction>(parentNode, WTFMove(newNode), oldNode));
+ return m_history.perform(makeUnique<ReplaceChildNodeAction>(parentNode, WTFMove(newNode), oldNode));
}
ExceptionOr<void> DOMEditor::setNodeValue(Node& node, const String& value)
{
- return m_history.perform(std::make_unique<SetNodeValueAction>(node, value));
+ return m_history.perform(makeUnique<SetNodeValueAction>(node, value));
}
static bool populateErrorString(ExceptionOr<void>&& result, ErrorString& errorString)
diff --git a/Source/WebCore/inspector/DOMPatchSupport.cpp b/Source/WebCore/inspector/DOMPatchSupport.cpp
index cc5e123..f2e586f 100644
--- a/Source/WebCore/inspector/DOMPatchSupport.cpp
+++ b/Source/WebCore/inspector/DOMPatchSupport.cpp
@@ -402,7 +402,7 @@
std::unique_ptr<DOMPatchSupport::Digest> DOMPatchSupport::createDigest(Node& node, UnusedNodesMap* unusedNodesMap)
{
- auto digest = std::make_unique<Digest>();
+ auto digest = makeUnique<Digest>();
digest->node = &node;
SHA1 sha1;
diff --git a/Source/WebCore/inspector/InspectorController.cpp b/Source/WebCore/inspector/InspectorController.cpp
index 5203706..63ff3ab 100644
--- a/Source/WebCore/inspector/InspectorController.cpp
+++ b/Source/WebCore/inspector/InspectorController.cpp
@@ -93,10 +93,10 @@
InspectorController::InspectorController(Page& page, InspectorClient* inspectorClient)
: m_instrumentingAgents(InstrumentingAgents::create(*this))
- , m_injectedScriptManager(std::make_unique<WebInjectedScriptManager>(*this, WebInjectedScriptHost::create()))
+ , m_injectedScriptManager(makeUnique<WebInjectedScriptManager>(*this, WebInjectedScriptHost::create()))
, m_frontendRouter(FrontendRouter::create())
, m_backendDispatcher(BackendDispatcher::create(m_frontendRouter.copyRef()))
- , m_overlay(std::make_unique<InspectorOverlay>(page, inspectorClient))
+ , m_overlay(makeUnique<InspectorOverlay>(page, inspectorClient))
, m_executionStopwatch(Stopwatch::create())
, m_scriptDebugServer(page)
, m_page(page)
@@ -106,7 +106,7 @@
auto pageContext = pageAgentContext();
- auto consoleAgent = std::make_unique<PageConsoleAgent>(pageContext);
+ auto consoleAgent = makeUnique<PageConsoleAgent>(pageContext);
m_instrumentingAgents->setWebConsoleAgent(consoleAgent.get());
m_agents.append(WTFMove(consoleAgent));
}
@@ -153,37 +153,37 @@
ensureInspectorAgent();
ensurePageAgent();
- m_agents.append(std::make_unique<PageRuntimeAgent>(pageContext));
+ m_agents.append(makeUnique<PageRuntimeAgent>(pageContext));
- auto debuggerAgent = std::make_unique<PageDebuggerAgent>(pageContext);
+ auto debuggerAgent = makeUnique<PageDebuggerAgent>(pageContext);
auto debuggerAgentPtr = debuggerAgent.get();
m_agents.append(WTFMove(debuggerAgent));
- m_agents.append(std::make_unique<PageNetworkAgent>(pageContext));
- m_agents.append(std::make_unique<InspectorCSSAgent>(pageContext));
+ m_agents.append(makeUnique<PageNetworkAgent>(pageContext));
+ m_agents.append(makeUnique<InspectorCSSAgent>(pageContext));
ensureDOMAgent();
- m_agents.append(std::make_unique<InspectorDOMDebuggerAgent>(pageContext, debuggerAgentPtr));
- m_agents.append(std::make_unique<InspectorApplicationCacheAgent>(pageContext));
- m_agents.append(std::make_unique<InspectorLayerTreeAgent>(pageContext));
- m_agents.append(std::make_unique<InspectorWorkerAgent>(pageContext));
- m_agents.append(std::make_unique<InspectorDOMStorageAgent>(pageContext));
- m_agents.append(std::make_unique<InspectorDatabaseAgent>(pageContext));
+ m_agents.append(makeUnique<InspectorDOMDebuggerAgent>(pageContext, debuggerAgentPtr));
+ m_agents.append(makeUnique<InspectorApplicationCacheAgent>(pageContext));
+ m_agents.append(makeUnique<InspectorLayerTreeAgent>(pageContext));
+ m_agents.append(makeUnique<InspectorWorkerAgent>(pageContext));
+ m_agents.append(makeUnique<InspectorDOMStorageAgent>(pageContext));
+ m_agents.append(makeUnique<InspectorDatabaseAgent>(pageContext));
#if ENABLE(INDEXED_DATABASE)
- m_agents.append(std::make_unique<InspectorIndexedDBAgent>(pageContext));
+ m_agents.append(makeUnique<InspectorIndexedDBAgent>(pageContext));
#endif
- auto scriptProfilerAgentPtr = std::make_unique<InspectorScriptProfilerAgent>(pageContext);
+ auto scriptProfilerAgentPtr = makeUnique<InspectorScriptProfilerAgent>(pageContext);
m_instrumentingAgents->setInspectorScriptProfilerAgent(scriptProfilerAgentPtr.get());
m_agents.append(WTFMove(scriptProfilerAgentPtr));
#if ENABLE(RESOURCE_USAGE)
- m_agents.append(std::make_unique<InspectorCPUProfilerAgent>(pageContext));
- m_agents.append(std::make_unique<InspectorMemoryAgent>(pageContext));
+ m_agents.append(makeUnique<InspectorCPUProfilerAgent>(pageContext));
+ m_agents.append(makeUnique<InspectorMemoryAgent>(pageContext));
#endif
- m_agents.append(std::make_unique<PageHeapAgent>(pageContext));
- m_agents.append(std::make_unique<PageAuditAgent>(pageContext));
- m_agents.append(std::make_unique<InspectorCanvasAgent>(pageContext));
- m_agents.append(std::make_unique<InspectorTimelineAgent>(pageContext));
+ m_agents.append(makeUnique<PageHeapAgent>(pageContext));
+ m_agents.append(makeUnique<PageAuditAgent>(pageContext));
+ m_agents.append(makeUnique<InspectorCanvasAgent>(pageContext));
+ m_agents.append(makeUnique<InspectorTimelineAgent>(pageContext));
if (auto& commandLineAPIHost = m_injectedScriptManager->commandLineAPIHost())
commandLineAPIHost->init(m_instrumentingAgents.copyRef());
@@ -421,7 +421,7 @@
{
if (!m_inspectorAgent) {
auto pageContext = pageAgentContext();
- auto inspectorAgent = std::make_unique<InspectorAgent>(pageContext);
+ auto inspectorAgent = makeUnique<InspectorAgent>(pageContext);
m_inspectorAgent = inspectorAgent.get();
m_instrumentingAgents->setInspectorAgent(m_inspectorAgent);
m_agents.append(WTFMove(inspectorAgent));
@@ -433,7 +433,7 @@
{
if (!m_inspectorDOMAgent) {
auto pageContext = pageAgentContext();
- auto domAgent = std::make_unique<InspectorDOMAgent>(pageContext, m_overlay.get());
+ auto domAgent = makeUnique<InspectorDOMAgent>(pageContext, m_overlay.get());
m_inspectorDOMAgent = domAgent.get();
m_agents.append(WTFMove(domAgent));
}
@@ -444,7 +444,7 @@
{
if (!m_inspectorPageAgent) {
auto pageContext = pageAgentContext();
- auto pageAgent = std::make_unique<InspectorPageAgent>(pageContext, m_inspectorClient, m_overlay.get());
+ auto pageAgent = makeUnique<InspectorPageAgent>(pageContext, m_inspectorClient, m_overlay.get());
m_inspectorPageAgent = pageAgent.get();
m_agents.append(WTFMove(pageAgent));
}
diff --git a/Source/WebCore/inspector/InspectorHistory.cpp b/Source/WebCore/inspector/InspectorHistory.cpp
index 00d5f18..c8103dd 100644
--- a/Source/WebCore/inspector/InspectorHistory.cpp
+++ b/Source/WebCore/inspector/InspectorHistory.cpp
@@ -61,7 +61,7 @@
void InspectorHistory::markUndoableState()
{
- perform(std::make_unique<UndoableStateMark>());
+ perform(makeUnique<UndoableStateMark>());
}
ExceptionOr<void> InspectorHistory::undo()
diff --git a/Source/WebCore/inspector/InspectorStyleSheet.cpp b/Source/WebCore/inspector/InspectorStyleSheet.cpp
index 1495f39..dbe5553 100644
--- a/Source/WebCore/inspector/InspectorStyleSheet.cpp
+++ b/Source/WebCore/inspector/InspectorStyleSheet.cpp
@@ -117,7 +117,7 @@
return;
}
- m_sourceData = std::make_unique<RuleSourceDataList>();
+ m_sourceData = makeUnique<RuleSourceDataList>();
// FIXME: This is a temporary solution to retain the original flat sourceData structure
// containing only style rules, even though CSSParser now provides the full rule source data tree.
@@ -1320,7 +1320,7 @@
return false;
auto newStyleSheet = StyleSheetContents::create();
- auto ruleSourceDataResult = std::make_unique<RuleSourceDataList>();
+ auto ruleSourceDataResult = makeUnique<RuleSourceDataList>();
CSSParserContext context(parserContextForDocument(m_pageStyleSheet->ownerDocument()));
StyleSheetHandler handler(m_parsedStyleSheet->text(), m_pageStyleSheet->ownerDocument(), ruleSourceDataResult.get());
diff --git a/Source/WebCore/inspector/NetworkResourcesData.cpp b/Source/WebCore/inspector/NetworkResourcesData.cpp
index d3b759f..fd7cad3 100644
--- a/Source/WebCore/inspector/NetworkResourcesData.cpp
+++ b/Source/WebCore/inspector/NetworkResourcesData.cpp
@@ -136,7 +136,7 @@
{
ensureNoDataForRequestId(requestId);
- auto resourceData = std::make_unique<ResourceData>(requestId, loaderId);
+ auto resourceData = makeUnique<ResourceData>(requestId, loaderId);
resourceData->setType(type);
m_requestIdToResourceDataMap.set(requestId, WTFMove(resourceData));
}
@@ -145,7 +145,7 @@
{
ensureNoDataForRequestId(requestId);
- auto resourceData = std::make_unique<ResourceData>(requestId, loaderId);
+ auto resourceData = makeUnique<ResourceData>(requestId, loaderId);
resourceData->setCachedResource(&cachedResource);
m_requestIdToResourceDataMap.set(requestId, WTFMove(resourceData));
}
diff --git a/Source/WebCore/inspector/WorkerInspectorController.cpp b/Source/WebCore/inspector/WorkerInspectorController.cpp
index 4351e87..364aea7 100644
--- a/Source/WebCore/inspector/WorkerInspectorController.cpp
+++ b/Source/WebCore/inspector/WorkerInspectorController.cpp
@@ -58,7 +58,7 @@
WorkerInspectorController::WorkerInspectorController(WorkerGlobalScope& workerGlobalScope)
: m_instrumentingAgents(InstrumentingAgents::create(*this))
- , m_injectedScriptManager(std::make_unique<WebInjectedScriptManager>(*this, WebInjectedScriptHost::create()))
+ , m_injectedScriptManager(makeUnique<WebInjectedScriptManager>(*this, WebInjectedScriptHost::create()))
, m_frontendRouter(FrontendRouter::create())
, m_backendDispatcher(BackendDispatcher::create(m_frontendRouter.copyRef()))
, m_executionStopwatch(Stopwatch::create())
@@ -69,7 +69,7 @@
auto workerContext = workerAgentContext();
- auto consoleAgent = std::make_unique<WorkerConsoleAgent>(workerContext);
+ auto consoleAgent = makeUnique<WorkerConsoleAgent>(workerContext);
m_instrumentingAgents->setWebConsoleAgent(consoleAgent.get());
m_agents.append(WTFMove(consoleAgent));
}
@@ -105,7 +105,7 @@
m_executionStopwatch->reset();
m_executionStopwatch->start();
- m_forwardingChannel = std::make_unique<WorkerToPageFrontendChannel>(m_workerGlobalScope);
+ m_forwardingChannel = makeUnique<WorkerToPageFrontendChannel>(m_workerGlobalScope);
m_frontendRouter->connectFrontend(*m_forwardingChannel.get());
m_agents.didCreateFrontendAndBackend(&m_frontendRouter.get(), &m_backendDispatcher.get());
}
@@ -164,18 +164,18 @@
auto workerContext = workerAgentContext();
- m_agents.append(std::make_unique<WorkerRuntimeAgent>(workerContext));
+ m_agents.append(makeUnique<WorkerRuntimeAgent>(workerContext));
#if ENABLE(SERVICE_WORKER)
if (is<ServiceWorkerGlobalScope>(m_workerGlobalScope)) {
- m_agents.append(std::make_unique<ServiceWorkerAgent>(workerContext));
- m_agents.append(std::make_unique<WorkerNetworkAgent>(workerContext));
+ m_agents.append(makeUnique<ServiceWorkerAgent>(workerContext));
+ m_agents.append(makeUnique<WorkerNetworkAgent>(workerContext));
}
#endif
- m_agents.append(std::make_unique<WebHeapAgent>(workerContext));
- m_agents.append(std::make_unique<WorkerDebuggerAgent>(workerContext));
- m_agents.append(std::make_unique<WorkerAuditAgent>(workerContext));
+ m_agents.append(makeUnique<WebHeapAgent>(workerContext));
+ m_agents.append(makeUnique<WorkerDebuggerAgent>(workerContext));
+ m_agents.append(makeUnique<WorkerAuditAgent>(workerContext));
if (auto& commandLineAPIHost = m_injectedScriptManager->commandLineAPIHost())
commandLineAPIHost->init(m_instrumentingAgents.copyRef());
diff --git a/Source/WebCore/inspector/agents/InspectorApplicationCacheAgent.cpp b/Source/WebCore/inspector/agents/InspectorApplicationCacheAgent.cpp
index a8d3c89..fdf044c 100644
--- a/Source/WebCore/inspector/agents/InspectorApplicationCacheAgent.cpp
+++ b/Source/WebCore/inspector/agents/InspectorApplicationCacheAgent.cpp
@@ -44,7 +44,7 @@
InspectorApplicationCacheAgent::InspectorApplicationCacheAgent(PageAgentContext& context)
: InspectorAgentBase("ApplicationCache"_s, context)
- , m_frontendDispatcher(std::make_unique<Inspector::ApplicationCacheFrontendDispatcher>(context.frontendRouter))
+ , m_frontendDispatcher(makeUnique<Inspector::ApplicationCacheFrontendDispatcher>(context.frontendRouter))
, m_backendDispatcher(Inspector::ApplicationCacheBackendDispatcher::create(context.backendDispatcher, this))
, m_inspectedPage(context.inspectedPage)
{
diff --git a/Source/WebCore/inspector/agents/InspectorCPUProfilerAgent.cpp b/Source/WebCore/inspector/agents/InspectorCPUProfilerAgent.cpp
index cf94ca8..11624e2 100644
--- a/Source/WebCore/inspector/agents/InspectorCPUProfilerAgent.cpp
+++ b/Source/WebCore/inspector/agents/InspectorCPUProfilerAgent.cpp
@@ -39,7 +39,7 @@
InspectorCPUProfilerAgent::InspectorCPUProfilerAgent(PageAgentContext& context)
: InspectorAgentBase("CPUProfiler"_s, context)
- , m_frontendDispatcher(std::make_unique<Inspector::CPUProfilerFrontendDispatcher>(context.frontendRouter))
+ , m_frontendDispatcher(makeUnique<Inspector::CPUProfilerFrontendDispatcher>(context.frontendRouter))
, m_backendDispatcher(Inspector::CPUProfilerBackendDispatcher::create(context.backendDispatcher, this))
{
}
diff --git a/Source/WebCore/inspector/agents/InspectorCSSAgent.cpp b/Source/WebCore/inspector/agents/InspectorCSSAgent.cpp
index 4b69945..44e9c5a 100644
--- a/Source/WebCore/inspector/agents/InspectorCSSAgent.cpp
+++ b/Source/WebCore/inspector/agents/InspectorCSSAgent.cpp
@@ -297,7 +297,7 @@
InspectorCSSAgent::InspectorCSSAgent(WebAgentContext& context)
: InspectorAgentBase("CSS"_s, context)
- , m_frontendDispatcher(std::make_unique<CSSFrontendDispatcher>(context.frontendRouter))
+ , m_frontendDispatcher(makeUnique<CSSFrontendDispatcher>(context.frontendRouter))
, m_backendDispatcher(CSSBackendDispatcher::create(context.backendDispatcher, this))
{
}
@@ -626,7 +626,7 @@
return;
}
- auto result = domAgent->history()->perform(std::make_unique<SetStyleSheetTextAction>(inspectorStyleSheet, text));
+ auto result = domAgent->history()->perform(makeUnique<SetStyleSheetTextAction>(inspectorStyleSheet, text));
if (result.hasException())
errorString = InspectorDOMAgent::toErrorString(result.releaseException());
}
@@ -646,7 +646,7 @@
return;
}
- auto performResult = domAgent->history()->perform(std::make_unique<SetStyleTextAction>(inspectorStyleSheet, compoundId, text));
+ auto performResult = domAgent->history()->perform(makeUnique<SetStyleTextAction>(inspectorStyleSheet, compoundId, text));
if (performResult.hasException()) {
errorString = InspectorDOMAgent::toErrorString(performResult.releaseException());
return;
@@ -670,7 +670,7 @@
return;
}
- auto performResult = domAgent->history()->perform(std::make_unique<SetRuleSelectorAction>(inspectorStyleSheet, compoundId, selector));
+ auto performResult = domAgent->history()->perform(makeUnique<SetRuleSelectorAction>(inspectorStyleSheet, compoundId, selector));
if (performResult.hasException()) {
errorString = InspectorDOMAgent::toErrorString(performResult.releaseException());
return;
@@ -757,7 +757,7 @@
return;
}
- auto action = std::make_unique<AddRuleAction>(inspectorStyleSheet, selector);
+ auto action = makeUnique<AddRuleAction>(inspectorStyleSheet, selector);
auto& rawAction = *action;
auto performResult = domAgent->history()->perform(WTFMove(action));
if (performResult.hasException()) {
diff --git a/Source/WebCore/inspector/agents/InspectorCanvasAgent.cpp b/Source/WebCore/inspector/agents/InspectorCanvasAgent.cpp
index 9be0611..0e50c75 100644
--- a/Source/WebCore/inspector/agents/InspectorCanvasAgent.cpp
+++ b/Source/WebCore/inspector/agents/InspectorCanvasAgent.cpp
@@ -71,7 +71,7 @@
InspectorCanvasAgent::InspectorCanvasAgent(PageAgentContext& context)
: InspectorAgentBase("Canvas"_s, context)
- , m_frontendDispatcher(std::make_unique<Inspector::CanvasFrontendDispatcher>(context.frontendRouter))
+ , m_frontendDispatcher(makeUnique<Inspector::CanvasFrontendDispatcher>(context.frontendRouter))
, m_backendDispatcher(Inspector::CanvasBackendDispatcher::create(context.backendDispatcher, this))
, m_injectedScriptManager(context.injectedScriptManager)
, m_inspectedPage(context.inspectedPage)
@@ -436,7 +436,7 @@
if (!inspectorCanvas->currentFrameHasData()) {
if (auto* scriptExecutionContext = inspectorCanvas->context().canvasBase().scriptExecutionContext()) {
auto& queue = MicrotaskQueue::mainThreadQueue();
- queue.append(std::make_unique<ActiveDOMCallbackMicrotask>(queue, *scriptExecutionContext, [&, protectedInspectorCanvas = inspectorCanvas.copyRef()] {
+ queue.append(makeUnique<ActiveDOMCallbackMicrotask>(queue, *scriptExecutionContext, [&, protectedInspectorCanvas = inspectorCanvas.copyRef()] {
if (auto* canvasElement = protectedInspectorCanvas->canvasElement()) {
if (canvasElement->isDescendantOf(canvasElement->document()))
return;
diff --git a/Source/WebCore/inspector/agents/InspectorDOMAgent.cpp b/Source/WebCore/inspector/agents/InspectorDOMAgent.cpp
index 6c196e0..f0a28c1 100644
--- a/Source/WebCore/inspector/agents/InspectorDOMAgent.cpp
+++ b/Source/WebCore/inspector/agents/InspectorDOMAgent.cpp
@@ -283,7 +283,7 @@
InspectorDOMAgent::InspectorDOMAgent(PageAgentContext& context, InspectorOverlay* overlay)
: InspectorAgentBase("DOM"_s, context)
, m_injectedScriptManager(context.injectedScriptManager)
- , m_frontendDispatcher(std::make_unique<Inspector::DOMFrontendDispatcher>(context.frontendRouter))
+ , m_frontendDispatcher(makeUnique<Inspector::DOMFrontendDispatcher>(context.frontendRouter))
, m_backendDispatcher(Inspector::DOMBackendDispatcher::create(context.backendDispatcher, this))
, m_inspectedPage(context.inspectedPage)
, m_overlay(overlay)
@@ -301,8 +301,8 @@
void InspectorDOMAgent::didCreateFrontendAndBackend(Inspector::FrontendRouter*, Inspector::BackendDispatcher*)
{
- m_history = std::make_unique<InspectorHistory>();
- m_domEditor = std::make_unique<DOMEditor>(*m_history);
+ m_history = makeUnique<InspectorHistory>();
+ m_domEditor = makeUnique<DOMEditor>(*m_history);
m_instrumentingAgents.setInspectorDOMAgent(this);
m_document = m_inspectedPage.mainFrame().document();
@@ -653,7 +653,7 @@
Node* parent = innerParentNode(node);
if (!parent) {
// Node being pushed is detached -> push subtree root.
- auto newMap = std::make_unique<NodeToIdMap>();
+ auto newMap = makeUnique<NodeToIdMap>();
danglingMap = newMap.get();
m_danglingNodeToIdMaps.append(newMap.release());
auto children = JSON::ArrayOf<Inspector::Protocol::DOM::Node>::create();
@@ -1177,7 +1177,7 @@
return nullptr;
}
- auto highlightConfig = std::make_unique<HighlightConfig>();
+ auto highlightConfig = makeUnique<HighlightConfig>();
bool showInfo = false; // Default: false (do not show a tooltip).
highlightInspectorObject->getBoolean("showInfo", showInfo);
highlightConfig->showInfo = showInfo;
@@ -1196,13 +1196,13 @@
void InspectorDOMAgent::highlightRect(ErrorString&, int x, int y, int width, int height, const JSON::Object* color, const JSON::Object* outlineColor, const bool* usePageCoordinates)
{
- auto quad = std::make_unique<FloatQuad>(FloatRect(x, y, width, height));
+ auto quad = makeUnique<FloatQuad>(FloatRect(x, y, width, height));
innerHighlightQuad(WTFMove(quad), color, outlineColor, usePageCoordinates);
}
void InspectorDOMAgent::highlightQuad(ErrorString& errorString, const JSON::Array& quadArray, const JSON::Object* color, const JSON::Object* outlineColor, const bool* usePageCoordinates)
{
- auto quad = std::make_unique<FloatQuad>();
+ auto quad = makeUnique<FloatQuad>();
if (!parseQuad(quadArray, quad.get())) {
errorString = "Invalid Quad format"_s;
return;
@@ -1212,7 +1212,7 @@
void InspectorDOMAgent::innerHighlightQuad(std::unique_ptr<FloatQuad> quad, const JSON::Object* color, const JSON::Object* outlineColor, const bool* usePageCoordinates)
{
- auto highlightConfig = std::make_unique<HighlightConfig>();
+ auto highlightConfig = makeUnique<HighlightConfig>();
highlightConfig->content = parseColor(color);
highlightConfig->contentOutline = parseColor(outlineColor);
highlightConfig->usePageCoordinates = usePageCoordinates ? *usePageCoordinates : false;
@@ -1316,7 +1316,7 @@
return;
if (frame->ownerElement()) {
- auto highlightConfig = std::make_unique<HighlightConfig>();
+ auto highlightConfig = makeUnique<HighlightConfig>();
highlightConfig->showInfo = true; // Always show tooltips for frames.
highlightConfig->content = parseColor(color);
highlightConfig->contentOutline = parseColor(outlineColor);
@@ -1398,7 +1398,7 @@
m_inspectedNode = node;
if (auto& commandLineAPIHost = static_cast<WebInjectedScriptManager&>(m_injectedScriptManager).commandLineAPIHost())
- commandLineAPIHost->addInspectedObject(std::make_unique<InspectableNode>(node));
+ commandLineAPIHost->addInspectedObject(makeUnique<InspectableNode>(node));
m_suppressEventListenerChangedEvent = false;
}
@@ -2314,7 +2314,7 @@
return;
if (!m_revalidateStyleAttrTask)
- m_revalidateStyleAttrTask = std::make_unique<RevalidateStyleAttributeTask>(this);
+ m_revalidateStyleAttrTask = makeUnique<RevalidateStyleAttributeTask>(this);
m_revalidateStyleAttrTask->scheduleFor(&element);
}
diff --git a/Source/WebCore/inspector/agents/InspectorDOMStorageAgent.cpp b/Source/WebCore/inspector/agents/InspectorDOMStorageAgent.cpp
index e971a99..81f14dc 100644
--- a/Source/WebCore/inspector/agents/InspectorDOMStorageAgent.cpp
+++ b/Source/WebCore/inspector/agents/InspectorDOMStorageAgent.cpp
@@ -56,7 +56,7 @@
InspectorDOMStorageAgent::InspectorDOMStorageAgent(PageAgentContext& context)
: InspectorAgentBase("DOMStorage"_s, context)
- , m_frontendDispatcher(std::make_unique<Inspector::DOMStorageFrontendDispatcher>(context.frontendRouter))
+ , m_frontendDispatcher(makeUnique<Inspector::DOMStorageFrontendDispatcher>(context.frontendRouter))
, m_backendDispatcher(Inspector::DOMStorageBackendDispatcher::create(context.backendDispatcher, this))
, m_inspectedPage(context.inspectedPage)
{
diff --git a/Source/WebCore/inspector/agents/InspectorDatabaseAgent.cpp b/Source/WebCore/inspector/agents/InspectorDatabaseAgent.cpp
index b37a560..358a856 100644
--- a/Source/WebCore/inspector/agents/InspectorDatabaseAgent.cpp
+++ b/Source/WebCore/inspector/agents/InspectorDatabaseAgent.cpp
@@ -217,7 +217,7 @@
InspectorDatabaseAgent::InspectorDatabaseAgent(WebAgentContext& context)
: InspectorAgentBase("Database"_s, context)
- , m_frontendDispatcher(std::make_unique<Inspector::DatabaseFrontendDispatcher>(context.frontendRouter))
+ , m_frontendDispatcher(makeUnique<Inspector::DatabaseFrontendDispatcher>(context.frontendRouter))
, m_backendDispatcher(Inspector::DatabaseBackendDispatcher::create(context.backendDispatcher, this))
{
}
diff --git a/Source/WebCore/inspector/agents/InspectorLayerTreeAgent.cpp b/Source/WebCore/inspector/agents/InspectorLayerTreeAgent.cpp
index e1e082e..b5982ce 100644
--- a/Source/WebCore/inspector/agents/InspectorLayerTreeAgent.cpp
+++ b/Source/WebCore/inspector/agents/InspectorLayerTreeAgent.cpp
@@ -48,7 +48,7 @@
InspectorLayerTreeAgent::InspectorLayerTreeAgent(WebAgentContext& context)
: InspectorAgentBase("LayerTree"_s, context)
- , m_frontendDispatcher(std::make_unique<Inspector::LayerTreeFrontendDispatcher>(context.frontendRouter))
+ , m_frontendDispatcher(makeUnique<Inspector::LayerTreeFrontendDispatcher>(context.frontendRouter))
, m_backendDispatcher(Inspector::LayerTreeBackendDispatcher::create(context.backendDispatcher, this))
{
}
diff --git a/Source/WebCore/inspector/agents/InspectorMemoryAgent.cpp b/Source/WebCore/inspector/agents/InspectorMemoryAgent.cpp
index 29c76d0..2832951 100644
--- a/Source/WebCore/inspector/agents/InspectorMemoryAgent.cpp
+++ b/Source/WebCore/inspector/agents/InspectorMemoryAgent.cpp
@@ -40,7 +40,7 @@
InspectorMemoryAgent::InspectorMemoryAgent(PageAgentContext& context)
: InspectorAgentBase("Memory"_s, context)
- , m_frontendDispatcher(std::make_unique<Inspector::MemoryFrontendDispatcher>(context.frontendRouter))
+ , m_frontendDispatcher(makeUnique<Inspector::MemoryFrontendDispatcher>(context.frontendRouter))
, m_backendDispatcher(Inspector::MemoryBackendDispatcher::create(context.backendDispatcher, this))
{
}
diff --git a/Source/WebCore/inspector/agents/InspectorNetworkAgent.cpp b/Source/WebCore/inspector/agents/InspectorNetworkAgent.cpp
index 3e4e96e..5d08163 100644
--- a/Source/WebCore/inspector/agents/InspectorNetworkAgent.cpp
+++ b/Source/WebCore/inspector/agents/InspectorNetworkAgent.cpp
@@ -172,10 +172,10 @@
InspectorNetworkAgent::InspectorNetworkAgent(WebAgentContext& context)
: InspectorAgentBase("Network"_s, context)
- , m_frontendDispatcher(std::make_unique<Inspector::NetworkFrontendDispatcher>(context.frontendRouter))
+ , m_frontendDispatcher(makeUnique<Inspector::NetworkFrontendDispatcher>(context.frontendRouter))
, m_backendDispatcher(Inspector::NetworkBackendDispatcher::create(context.backendDispatcher, this))
, m_injectedScriptManager(context.injectedScriptManager)
- , m_resourcesData(std::make_unique<NetworkResourcesData>())
+ , m_resourcesData(makeUnique<NetworkResourcesData>())
{
}
diff --git a/Source/WebCore/inspector/agents/InspectorPageAgent.cpp b/Source/WebCore/inspector/agents/InspectorPageAgent.cpp
index 329e1b0..c641a6a 100644
--- a/Source/WebCore/inspector/agents/InspectorPageAgent.cpp
+++ b/Source/WebCore/inspector/agents/InspectorPageAgent.cpp
@@ -333,7 +333,7 @@
InspectorPageAgent::InspectorPageAgent(PageAgentContext& context, InspectorClient* client, InspectorOverlay* overlay)
: InspectorAgentBase("Page"_s, context)
- , m_frontendDispatcher(std::make_unique<Inspector::PageFrontendDispatcher>(context.frontendRouter))
+ , m_frontendDispatcher(makeUnique<Inspector::PageFrontendDispatcher>(context.frontendRouter))
, m_backendDispatcher(Inspector::PageBackendDispatcher::create(context.backendDispatcher, this))
, m_inspectedPage(context.inspectedPage)
, m_client(client)
diff --git a/Source/WebCore/inspector/agents/InspectorTimelineAgent.cpp b/Source/WebCore/inspector/agents/InspectorTimelineAgent.cpp
index 3a361e9..30d86c7 100644
--- a/Source/WebCore/inspector/agents/InspectorTimelineAgent.cpp
+++ b/Source/WebCore/inspector/agents/InspectorTimelineAgent.cpp
@@ -87,7 +87,7 @@
InspectorTimelineAgent::InspectorTimelineAgent(PageAgentContext& context)
: InspectorAgentBase("Timeline"_s, context)
- , m_frontendDispatcher(std::make_unique<Inspector::TimelineFrontendDispatcher>(context.frontendRouter))
+ , m_frontendDispatcher(makeUnique<Inspector::TimelineFrontendDispatcher>(context.frontendRouter))
, m_backendDispatcher(Inspector::TimelineBackendDispatcher::create(context.backendDispatcher, this))
, m_inspectedPage(context.inspectedPage)
{
@@ -193,7 +193,7 @@
// FIXME: Abstract away platform-specific code once https://bugs.webkit.org/show_bug.cgi?id=142748 is fixed.
#if PLATFORM(COCOA)
- m_frameStartObserver = std::make_unique<RunLoopObserver>(static_cast<CFIndex>(RunLoopObserver::WellKnownRunLoopOrders::InspectorFrameBegin), [this]() {
+ m_frameStartObserver = makeUnique<RunLoopObserver>(static_cast<CFIndex>(RunLoopObserver::WellKnownRunLoopOrders::InspectorFrameBegin), [this]() {
if (!m_tracking || m_environment.scriptDebugServer().isPaused())
return;
@@ -202,7 +202,7 @@
m_runLoopNestingLevel++;
});
- m_frameStopObserver = std::make_unique<RunLoopObserver>(static_cast<CFIndex>(RunLoopObserver::WellKnownRunLoopOrders::InspectorFrameEnd), [this]() {
+ m_frameStopObserver = makeUnique<RunLoopObserver>(static_cast<CFIndex>(RunLoopObserver::WellKnownRunLoopOrders::InspectorFrameEnd), [this]() {
if (!m_tracking || m_environment.scriptDebugServer().isPaused())
return;
@@ -280,7 +280,7 @@
if (WebConsoleAgent* consoleAgent = m_instrumentingAgents.webConsoleAgent()) {
// FIXME: Send an enum to the frontend for localization?
String warning = title.isEmpty() ? "Unnamed Profile already exists"_s : makeString("Profile \"", title, "\" already exists");
- consoleAgent->addMessageToConsole(std::make_unique<ConsoleMessage>(MessageSource::ConsoleAPI, MessageType::Profile, MessageLevel::Warning, warning));
+ consoleAgent->addMessageToConsole(makeUnique<ConsoleMessage>(MessageSource::ConsoleAPI, MessageType::Profile, MessageLevel::Warning, warning));
}
return;
}
@@ -316,7 +316,7 @@
if (WebConsoleAgent* consoleAgent = m_instrumentingAgents.webConsoleAgent()) {
// FIXME: Send an enum to the frontend for localization?
String warning = title.isEmpty() ? "No profiles exist"_s : makeString("Profile \"", title, "\" does not exist");
- consoleAgent->addMessageToConsole(std::make_unique<ConsoleMessage>(MessageSource::ConsoleAPI, MessageType::ProfileEnd, MessageLevel::Warning, warning));
+ consoleAgent->addMessageToConsole(makeUnique<ConsoleMessage>(MessageSource::ConsoleAPI, MessageType::ProfileEnd, MessageLevel::Warning, warning));
}
}
diff --git a/Source/WebCore/inspector/agents/InspectorWorkerAgent.cpp b/Source/WebCore/inspector/agents/InspectorWorkerAgent.cpp
index 9161d84..1e398ed 100644
--- a/Source/WebCore/inspector/agents/InspectorWorkerAgent.cpp
+++ b/Source/WebCore/inspector/agents/InspectorWorkerAgent.cpp
@@ -36,7 +36,7 @@
InspectorWorkerAgent::InspectorWorkerAgent(PageAgentContext& context)
: InspectorAgentBase("Worker"_s, context)
- , m_frontendDispatcher(std::make_unique<Inspector::WorkerFrontendDispatcher>(context.frontendRouter))
+ , m_frontendDispatcher(makeUnique<Inspector::WorkerFrontendDispatcher>(context.frontendRouter))
, m_backendDispatcher(Inspector::WorkerBackendDispatcher::create(context.backendDispatcher, this))
, m_page(context.inspectedPage)
{
diff --git a/Source/WebCore/inspector/agents/WebConsoleAgent.cpp b/Source/WebCore/inspector/agents/WebConsoleAgent.cpp
index 2eed1ce..c2094b9 100644
--- a/Source/WebCore/inspector/agents/WebConsoleAgent.cpp
+++ b/Source/WebCore/inspector/agents/WebConsoleAgent.cpp
@@ -72,7 +72,7 @@
if (response.httpStatusCode() >= 400) {
String message = makeString("Failed to load resource: the server responded with a status of ", response.httpStatusCode(), " (", response.httpStatusText(), ')');
- addMessageToConsole(std::make_unique<ConsoleMessage>(MessageSource::Network, MessageType::Log, MessageLevel::Error, message, response.url().string(), 0, 0, nullptr, requestIdentifier));
+ addMessageToConsole(makeUnique<ConsoleMessage>(MessageSource::Network, MessageType::Log, MessageLevel::Error, message, response.url().string(), 0, 0, nullptr, requestIdentifier));
}
}
@@ -92,7 +92,7 @@
message.append(error.localizedDescription());
}
- addMessageToConsole(std::make_unique<ConsoleMessage>(MessageSource::Network, MessageType::Log, MessageLevel::Error, message.toString(), error.failingURL(), 0, 0, nullptr, requestIdentifier));
+ addMessageToConsole(makeUnique<ConsoleMessage>(MessageSource::Network, MessageType::Log, MessageLevel::Error, message.toString(), error.failingURL(), 0, 0, nullptr, requestIdentifier));
}
} // namespace WebCore
diff --git a/Source/WebCore/inspector/agents/WebHeapAgent.cpp b/Source/WebCore/inspector/agents/WebHeapAgent.cpp
index cafeab9..865bbd0 100644
--- a/Source/WebCore/inspector/agents/WebHeapAgent.cpp
+++ b/Source/WebCore/inspector/agents/WebHeapAgent.cpp
@@ -97,7 +97,7 @@
WebHeapAgent::WebHeapAgent(WebAgentContext& context)
: InspectorHeapAgent(context)
, m_instrumentingAgents(context.instrumentingAgents)
- , m_sendGarbageCollectionEventsTask(std::make_unique<SendGarbageCollectionEventsTask>(*this))
+ , m_sendGarbageCollectionEventsTask(makeUnique<SendGarbageCollectionEventsTask>(*this))
{
}
diff --git a/Source/WebCore/inspector/agents/page/PageRuntimeAgent.cpp b/Source/WebCore/inspector/agents/page/PageRuntimeAgent.cpp
index 5eafb6a..8985bc9 100644
--- a/Source/WebCore/inspector/agents/page/PageRuntimeAgent.cpp
+++ b/Source/WebCore/inspector/agents/page/PageRuntimeAgent.cpp
@@ -57,7 +57,7 @@
PageRuntimeAgent::PageRuntimeAgent(PageAgentContext& context)
: InspectorRuntimeAgent(context)
- , m_frontendDispatcher(std::make_unique<Inspector::RuntimeFrontendDispatcher>(context.frontendRouter))
+ , m_frontendDispatcher(makeUnique<Inspector::RuntimeFrontendDispatcher>(context.frontendRouter))
, m_backendDispatcher(Inspector::RuntimeBackendDispatcher::create(context.backendDispatcher, this))
, m_instrumentingAgents(context.instrumentingAgents)
, m_inspectedPage(context.inspectedPage)
diff --git a/Source/WebCore/inspector/agents/worker/WorkerDebuggerAgent.cpp b/Source/WebCore/inspector/agents/worker/WorkerDebuggerAgent.cpp
index b20cbbc..8082ee3 100644
--- a/Source/WebCore/inspector/agents/worker/WorkerDebuggerAgent.cpp
+++ b/Source/WebCore/inspector/agents/worker/WorkerDebuggerAgent.cpp
@@ -50,7 +50,7 @@
void WorkerDebuggerAgent::breakpointActionLog(ExecState& state, const String& message)
{
- m_workerGlobalScope.addConsoleMessage(std::make_unique<ConsoleMessage>(MessageSource::JS, MessageType::Log, MessageLevel::Log, message, createScriptCallStack(&state)));
+ m_workerGlobalScope.addConsoleMessage(makeUnique<ConsoleMessage>(MessageSource::JS, MessageType::Log, MessageLevel::Log, message, createScriptCallStack(&state)));
}
InjectedScript WorkerDebuggerAgent::injectedScriptForEval(ErrorString& errorString, const int* executionContextId)
diff --git a/Source/WebCore/layout/LayoutState.cpp b/Source/WebCore/layout/LayoutState.cpp
index bd9d4ca..1f3faba 100644
--- a/Source/WebCore/layout/LayoutState.cpp
+++ b/Source/WebCore/layout/LayoutState.cpp
@@ -91,7 +91,7 @@
Display::Box& LayoutState::displayBoxForLayoutBox(const Box& layoutBox) const
{
return *m_layoutToDisplayBox.ensure(&layoutBox, [&layoutBox] {
- return std::make_unique<Display::Box>(layoutBox.style());
+ return makeUnique<Display::Box>(layoutBox.style());
}).iterator->value;
}
@@ -140,13 +140,13 @@
// should not interfere with the content inside.
// <div style="float: left"></div><div style="overflow: hidden"> <- is a non-intrusive float, because overflow: hidden triggers new block formatting context.</div>
if (formattingRoot.establishesBlockFormattingContext())
- return std::make_unique<InlineFormattingState>(FloatingState::create(*this, formattingRoot), *this);
+ return makeUnique<InlineFormattingState>(FloatingState::create(*this, formattingRoot), *this);
// Otherwise, the formatting context inherits the floats from the parent formatting context.
// Find the formatting state in which this formatting root lives, not the one it creates and use its floating state.
auto& parentFormattingState = createFormattingStateForFormattingRootIfNeeded(formattingRoot.formattingContextRoot());
auto& parentFloatingState = parentFormattingState.floatingState();
- return std::make_unique<InlineFormattingState>(parentFloatingState, *this);
+ return makeUnique<InlineFormattingState>(parentFloatingState, *this);
}).iterator->value;
}
@@ -154,7 +154,7 @@
return *m_formattingStates.ensure(&formattingRoot, [&] {
// Block formatting context always establishes a new floating state.
- return std::make_unique<BlockFormattingState>(FloatingState::create(*this, formattingRoot), *this);
+ return makeUnique<BlockFormattingState>(FloatingState::create(*this, formattingRoot), *this);
}).iterator->value;
}
@@ -162,7 +162,7 @@
return *m_formattingStates.ensure(&formattingRoot, [&] {
// Table formatting context always establishes a new floating state -and it stays empty.
- return std::make_unique<TableFormattingState>(FloatingState::create(*this, formattingRoot), *this);
+ return makeUnique<TableFormattingState>(FloatingState::create(*this, formattingRoot), *this);
}).iterator->value;
}
@@ -174,18 +174,18 @@
ASSERT(formattingContextRoot.establishesFormattingContext());
if (formattingContextRoot.establishesInlineFormattingContext()) {
auto& inlineFormattingState = downcast<InlineFormattingState>(createFormattingStateForFormattingRootIfNeeded(formattingContextRoot));
- return std::make_unique<InlineFormattingContext>(formattingContextRoot, inlineFormattingState);
+ return makeUnique<InlineFormattingContext>(formattingContextRoot, inlineFormattingState);
}
if (formattingContextRoot.establishesBlockFormattingContext()) {
ASSERT(formattingContextRoot.establishesBlockFormattingContextOnly());
auto& blockFormattingState = downcast<BlockFormattingState>(createFormattingStateForFormattingRootIfNeeded(formattingContextRoot));
- return std::make_unique<BlockFormattingContext>(formattingContextRoot, blockFormattingState);
+ return makeUnique<BlockFormattingContext>(formattingContextRoot, blockFormattingState);
}
if (formattingContextRoot.establishesTableFormattingContext()) {
auto& tableFormattingState = downcast<TableFormattingState>(createFormattingStateForFormattingRootIfNeeded(formattingContextRoot));
- return std::make_unique<TableFormattingContext>(formattingContextRoot, tableFormattingState);
+ return makeUnique<TableFormattingContext>(formattingContextRoot, tableFormattingState);
}
CRASH();
diff --git a/Source/WebCore/layout/inlineformatting/InlineFormattingContext.cpp b/Source/WebCore/layout/inlineformatting/InlineFormattingContext.cpp
index a1cd6d6..508d661 100644
--- a/Source/WebCore/layout/inlineformatting/InlineFormattingContext.cpp
+++ b/Source/WebCore/layout/inlineformatting/InlineFormattingContext.cpp
@@ -281,7 +281,7 @@
if (!treatAsInlineContainer(layoutBox))
break;
// This is the start of an inline container (e.g. <span>).
- formattingState.addInlineItem(std::make_unique<InlineItem>(layoutBox, InlineItem::Type::ContainerStart));
+ formattingState.addInlineItem(makeUnique<InlineItem>(layoutBox, InlineItem::Type::ContainerStart));
auto& container = downcast<Container>(layoutBox);
if (!container.hasInFlowOrFloatingChild())
break;
@@ -292,17 +292,17 @@
auto& layoutBox = *layoutQueue.takeLast();
// This is the end of an inline container (e.g. </span>).
if (treatAsInlineContainer(layoutBox))
- formattingState.addInlineItem(std::make_unique<InlineItem>(layoutBox, InlineItem::Type::ContainerEnd));
+ formattingState.addInlineItem(makeUnique<InlineItem>(layoutBox, InlineItem::Type::ContainerEnd));
else if (layoutBox.isLineBreakBox())
- formattingState.addInlineItem(std::make_unique<InlineItem>(layoutBox, InlineItem::Type::HardLineBreak));
+ formattingState.addInlineItem(makeUnique<InlineItem>(layoutBox, InlineItem::Type::HardLineBreak));
else if (layoutBox.isFloatingPositioned())
- formattingState.addInlineItem(std::make_unique<InlineItem>(layoutBox, InlineItem::Type::Float));
+ formattingState.addInlineItem(makeUnique<InlineItem>(layoutBox, InlineItem::Type::Float));
else {
ASSERT(layoutBox.isInlineLevelBox());
if (layoutBox.hasTextContent())
InlineTextItem::createAndAppendTextItems(formattingState.inlineItems(), layoutBox);
else
- formattingState.addInlineItem(std::make_unique<InlineItem>(layoutBox, InlineItem::Type::Box));
+ formattingState.addInlineItem(makeUnique<InlineItem>(layoutBox, InlineItem::Type::Box));
}
if (auto* nextSibling = layoutBox.nextInFlowOrFloatingSibling()) {
diff --git a/Source/WebCore/layout/inlineformatting/InlineFormattingContextLineLayout.cpp b/Source/WebCore/layout/inlineformatting/InlineFormattingContextLineLayout.cpp
index f741de4..0a21302 100644
--- a/Source/WebCore/layout/inlineformatting/InlineFormattingContextLineLayout.cpp
+++ b/Source/WebCore/layout/inlineformatting/InlineFormattingContextLineLayout.cpp
@@ -396,7 +396,7 @@
displayBox.setTopLeft(logicalRect.topLeft());
displayBox.setContentBoxWidth(logicalRect.width());
displayBox.setContentBoxHeight(logicalRect.height());
- formattingState.addInlineRun(std::make_unique<Display::Run>(logicalRect));
+ formattingState.addInlineRun(makeUnique<Display::Run>(logicalRect));
continue;
}
@@ -407,7 +407,7 @@
topLeft += Geometry::inFlowPositionedPositionOffset(layoutState(), layoutBox);
displayBox.setTopLeft(topLeft);
lineBoxRect.expandHorizontally(logicalRect.width());
- formattingState.addInlineRun(std::make_unique<Display::Run>(logicalRect));
+ formattingState.addInlineRun(makeUnique<Display::Run>(logicalRect));
continue;
}
@@ -442,7 +442,7 @@
auto previousRunCanBeExtended = previousLineRun && previousLineRun->textContext() ? previousLineRun->textContext()->canBeExtended : false;
auto requiresNewRun = !index || !previousRunCanBeExtended || &layoutBox != &previousLineRun->layoutBox();
if (requiresNewRun)
- formattingState.addInlineRun(std::make_unique<Display::Run>(logicalRect, Display::Run::TextContext { textContext->start, textContext->length }));
+ formattingState.addInlineRun(makeUnique<Display::Run>(logicalRect, Display::Run::TextContext { textContext->start, textContext->length }));
else {
auto& lastDisplayRun = formattingState.inlineRuns().last();
lastDisplayRun->expandHorizontally(logicalRect.width());
diff --git a/Source/WebCore/layout/inlineformatting/InlineLine.cpp b/Source/WebCore/layout/inlineformatting/InlineLine.cpp
index 4f20a6f..ed65205 100644
--- a/Source/WebCore/layout/inlineformatting/InlineLine.cpp
+++ b/Source/WebCore/layout/inlineformatting/InlineLine.cpp
@@ -54,7 +54,7 @@
Line::Line(const LayoutState& layoutState, const InitialConstraints& initialConstraints, SkipVerticalAligment skipVerticalAligment)
: m_layoutState(layoutState)
- , m_content(std::make_unique<Line::Content>())
+ , m_content(makeUnique<Line::Content>())
, m_logicalTopLeft(initialConstraints.logicalTopLeft)
, m_baseline({ initialConstraints.heightAndBaseline.baselineOffset, initialConstraints.heightAndBaseline.height - initialConstraints.heightAndBaseline.baselineOffset })
, m_initialStrut(initialConstraints.heightAndBaseline.strut)
@@ -213,7 +213,7 @@
void Line::appendNonBreakableSpace(const InlineItem& inlineItem, const Display::Rect& logicalRect)
{
- m_content->runs().append(std::make_unique<Content::Run>(inlineItem, logicalRect));
+ m_content->runs().append(makeUnique<Content::Run>(inlineItem, logicalRect));
m_contentLogicalWidth += logicalRect.width();
}
@@ -282,7 +282,7 @@
}
auto textContext = Content::Run::TextContext { inlineItem.start(), inlineItem.isCollapsed() ? 1 : inlineItem.length(), isCompletelyCollapsed, inlineItem.isWhitespace(), canBeExtended };
- auto lineItem = std::make_unique<Content::Run>(inlineItem, textContext, logicalRect);
+ auto lineItem = makeUnique<Content::Run>(inlineItem, textContext, logicalRect);
if (isTrimmable && !isCompletelyCollapsed)
m_trimmableContent.add(lineItem.get());
@@ -303,7 +303,7 @@
logicalRect.setHeight(inlineItemContentHeight(inlineItem));
}
- m_content->runs().append(std::make_unique<Content::Run>(inlineItem, logicalRect));
+ m_content->runs().append(makeUnique<Content::Run>(inlineItem, logicalRect));
m_contentLogicalWidth += (logicalWidth + horizontalMargin.start + horizontalMargin.end);
m_trimmableContent.clear();
}
@@ -323,7 +323,7 @@
adjustBaselineAndLineHeight(inlineItem, { });
logicalRect.setHeight(logicalHeight());
}
- m_content->runs().append(std::make_unique<Content::Run>(inlineItem, logicalRect));
+ m_content->runs().append(makeUnique<Content::Run>(inlineItem, logicalRect));
}
void Line::adjustBaselineAndLineHeight(const InlineItem& inlineItem, LayoutUnit runHeight)
diff --git a/Source/WebCore/layout/inlineformatting/InlineTextItem.cpp b/Source/WebCore/layout/inlineformatting/InlineTextItem.cpp
index f13089a..5e6c256 100644
--- a/Source/WebCore/layout/inlineformatting/InlineTextItem.cpp
+++ b/Source/WebCore/layout/inlineformatting/InlineTextItem.cpp
@@ -89,7 +89,7 @@
{
auto text = inlineBox.textContent();
if (!text.length())
- return inlineContent.append(std::make_unique<InlineTextItem>(inlineBox, 0, 0, false, false));
+ return inlineContent.append(makeUnique<InlineTextItem>(inlineBox, 0, 0, false, false));
auto& style = inlineBox.style();
auto preserveNewline = style.preserveNewline();
@@ -99,20 +99,20 @@
while (currentPosition < text.length()) {
// Soft linebreak?
if (isSoftLineBreak(text[currentPosition], preserveNewline)) {
- inlineContent.append(std::make_unique<InlineTextItem>(inlineBox, currentPosition, 1, true, false));
+ inlineContent.append(makeUnique<InlineTextItem>(inlineBox, currentPosition, 1, true, false));
++currentPosition;
continue;
}
if (isWhitespaceCharacter(text[currentPosition], preserveNewline)) {
auto length = moveToNextNonWhitespacePosition(text, currentPosition, preserveNewline);
auto isCollapsed = collapseWhiteSpace && length > 1;
- inlineContent.append(std::make_unique<InlineTextItem>(inlineBox, currentPosition, length, true, isCollapsed));
+ inlineContent.append(makeUnique<InlineTextItem>(inlineBox, currentPosition, length, true, isCollapsed));
currentPosition += length;
continue;
}
auto length = moveToNextBreakablePosition(currentPosition, lineBreakIterator, style);
- inlineContent.append(std::make_unique<InlineTextItem>(inlineBox, currentPosition, length, false, false));
+ inlineContent.append(makeUnique<InlineTextItem>(inlineBox, currentPosition, length, false, false));
currentPosition += length;
}
}
@@ -130,7 +130,7 @@
{
RELEASE_ASSERT(splitPosition >= this->start());
RELEASE_ASSERT(splitPosition + length <= end());
- return std::make_unique<InlineTextItem>(layoutBox(), splitPosition, length, isWhitespace(), isCollapsed());
+ return makeUnique<InlineTextItem>(layoutBox(), splitPosition, length, isWhitespace(), isCollapsed());
}
}
diff --git a/Source/WebCore/layout/layouttree/LayoutBox.cpp b/Source/WebCore/layout/layouttree/LayoutBox.cpp
index 8084e2b..3baf9ea 100644
--- a/Source/WebCore/layout/layouttree/LayoutBox.cpp
+++ b/Source/WebCore/layout/layouttree/LayoutBox.cpp
@@ -45,7 +45,7 @@
, m_hasRareData(false)
{
if (isReplaced())
- ensureRareData().replaced = std::make_unique<Replaced>(*this);
+ ensureRareData().replaced = makeUnique<Replaced>(*this);
}
Box::Box(Optional<ElementAttributes> attributes, RenderStyle&& style)
@@ -447,7 +447,7 @@
Box::BoxRareData& Box::ensureRareData()
{
setHasRareData(true);
- return *rareDataMap().ensure(this, [] { return std::make_unique<BoxRareData>(); }).iterator->value;
+ return *rareDataMap().ensure(this, [] { return makeUnique<BoxRareData>(); }).iterator->value;
}
void Box::removeRareData()
diff --git a/Source/WebCore/layout/layouttree/LayoutTreeBuilder.cpp b/Source/WebCore/layout/layouttree/LayoutTreeBuilder.cpp
index ab284ea..f2afcabd 100644
--- a/Source/WebCore/layout/layouttree/LayoutTreeBuilder.cpp
+++ b/Source/WebCore/layout/layouttree/LayoutTreeBuilder.cpp
@@ -130,25 +130,25 @@
if (is<RenderText>(childRenderer)) {
// FIXME: Clearly there must be a helper function for this.
if (parentRenderer.style().display() == DisplayType::Inline)
- childLayoutBox = std::make_unique<Box>(downcast<RenderText>(childRenderer).originalText(), RenderStyle::clone(parentRenderer.style()));
+ childLayoutBox = makeUnique<Box>(downcast<RenderText>(childRenderer).originalText(), RenderStyle::clone(parentRenderer.style()));
else
- childLayoutBox = std::make_unique<Box>(downcast<RenderText>(childRenderer).originalText(), RenderStyle::createAnonymousStyleWithDisplay(parentRenderer.style(), DisplayType::Inline));
+ childLayoutBox = makeUnique<Box>(downcast<RenderText>(childRenderer).originalText(), RenderStyle::createAnonymousStyleWithDisplay(parentRenderer.style(), DisplayType::Inline));
return childLayoutBox;
}
auto& renderer = downcast<RenderElement>(childRenderer);
auto displayType = renderer.style().display();
if (is<RenderLineBreak>(renderer))
- return std::make_unique<Box>(elementAttributes(renderer), RenderStyle::clone(renderer.style()));
+ return makeUnique<Box>(elementAttributes(renderer), RenderStyle::clone(renderer.style()));
if (is<RenderTable>(renderer)) {
// Construct the principal table wrapper box (and not the table box itself).
- childLayoutBox = std::make_unique<Container>(Box::ElementAttributes { Box::ElementType::TableWrapperBox }, RenderStyle::clone(renderer.style()));
+ childLayoutBox = makeUnique<Container>(Box::ElementAttributes { Box::ElementType::TableWrapperBox }, RenderStyle::clone(renderer.style()));
} else if (is<RenderReplaced>(renderer)) {
if (displayType == DisplayType::Block)
- childLayoutBox = std::make_unique<Box>(elementAttributes(renderer), RenderStyle::clone(renderer.style()));
+ childLayoutBox = makeUnique<Box>(elementAttributes(renderer), RenderStyle::clone(renderer.style()));
else
- childLayoutBox = std::make_unique<Box>(elementAttributes(renderer), RenderStyle::clone(renderer.style()));
+ childLayoutBox = makeUnique<Box>(elementAttributes(renderer), RenderStyle::clone(renderer.style()));
// FIXME: We don't yet support all replaced elements and this is temporary anyway.
if (childLayoutBox->replaced())
childLayoutBox->replaced()->setIntrinsicSize(downcast<RenderReplaced>(renderer).intrinsicSize());
@@ -163,18 +163,18 @@
auto style = RenderStyle::clonePtr(renderer.style());
style->setTop({ offset->height(), Fixed });
style->setLeft({ offset->width(), Fixed });
- childLayoutBox = std::make_unique<Container>(elementAttributes(renderer), WTFMove(*style));
+ childLayoutBox = makeUnique<Container>(elementAttributes(renderer), WTFMove(*style));
} else
- childLayoutBox = std::make_unique<Container>(elementAttributes(renderer), RenderStyle::clone(renderer.style()));
+ childLayoutBox = makeUnique<Container>(elementAttributes(renderer), RenderStyle::clone(renderer.style()));
} else if (displayType == DisplayType::Inline)
- childLayoutBox = std::make_unique<Container>(elementAttributes(renderer), RenderStyle::clone(renderer.style()));
+ childLayoutBox = makeUnique<Container>(elementAttributes(renderer), RenderStyle::clone(renderer.style()));
else if (displayType == DisplayType::InlineBlock)
- childLayoutBox = std::make_unique<Container>(elementAttributes(renderer), RenderStyle::clone(renderer.style()));
+ childLayoutBox = makeUnique<Container>(elementAttributes(renderer), RenderStyle::clone(renderer.style()));
else if (displayType == DisplayType::TableCaption || displayType == DisplayType::TableCell) {
- childLayoutBox = std::make_unique<Container>(elementAttributes(renderer), RenderStyle::clone(renderer.style()));
+ childLayoutBox = makeUnique<Container>(elementAttributes(renderer), RenderStyle::clone(renderer.style()));
} else if (displayType == DisplayType::TableRowGroup || displayType == DisplayType::TableHeaderGroup || displayType == DisplayType::TableFooterGroup
|| displayType == DisplayType::TableRow || displayType == DisplayType::TableColumnGroup || displayType == DisplayType::TableColumn) {
- childLayoutBox = std::make_unique<Container>(elementAttributes(renderer), RenderStyle::clone(renderer.style()));
+ childLayoutBox = makeUnique<Container>(elementAttributes(renderer), RenderStyle::clone(renderer.style()));
} else {
ASSERT_NOT_IMPLEMENTED_YET();
return { };
@@ -210,7 +210,7 @@
tableChild = tableChild->nextSibling();
}
- auto tableBox = std::make_unique<Container>(Box::ElementAttributes { Box::ElementType::TableBox }, RenderStyle::clone(tableRenderer.style()));
+ auto tableBox = makeUnique<Container>(Box::ElementAttributes { Box::ElementType::TableBox }, RenderStyle::clone(tableRenderer.style()));
appendChild(tableWrapperBox, *tableBox);
while (tableChild) {
TreeBuilder::createSubTree(downcast<RenderElement>(*tableChild), *tableBox);
@@ -361,7 +361,7 @@
// FIXME: Need to find a way to output geometry without layout context.
auto& renderView = *document->renderView();
auto initialContainingBlock = TreeBuilder::createLayoutTree(renderView);
- auto layoutState = std::make_unique<Layout::LayoutState>(*initialContainingBlock);
+ auto layoutState = makeUnique<Layout::LayoutState>(*initialContainingBlock);
layoutState->setQuirksMode(renderView.document().inLimitedQuirksMode() ? LayoutState::QuirksMode::Limited : (renderView.document().inQuirksMode() ? LayoutState::QuirksMode::Yes : LayoutState::QuirksMode::No));
layoutState->updateLayout();
showLayoutTree(*initialContainingBlock, layoutState.get());
diff --git a/Source/WebCore/layout/tableformatting/TableGrid.cpp b/Source/WebCore/layout/tableformatting/TableGrid.cpp
index 9e085fd..3e6bdf3 100644
--- a/Source/WebCore/layout/tableformatting/TableGrid.cpp
+++ b/Source/WebCore/layout/tableformatting/TableGrid.cpp
@@ -118,13 +118,13 @@
initialSlotPosition.move(1, 0);
}
}
- auto cellInfo = std::make_unique<CellInfo>(tableCellBox, initialSlotPosition, CellSize { rowSpan, columnSpan });
+ auto cellInfo = makeUnique<CellInfo>(tableCellBox, initialSlotPosition, CellSize { rowSpan, columnSpan });
// Row and column spanners create additional slots.
for (int row = 1; row <= rowSpan; ++row) {
for (int column = 1; column <= columnSpan; ++column) {
auto position = SlotPosition { initialSlotPosition.x() + row - 1, initialSlotPosition.y() + column - 1 };
ASSERT(!m_slotMap.contains(position));
- m_slotMap.add(position, std::make_unique<SlotInfo>(*cellInfo));
+ m_slotMap.add(position, makeUnique<SlotInfo>(*cellInfo));
}
}
// Initialize columns/rows if needed.
diff --git a/Source/WebCore/loader/ContentFilter.cpp b/Source/WebCore/loader/ContentFilter.cpp
index 51d77e4..b498a22 100644
--- a/Source/WebCore/loader/ContentFilter.cpp
+++ b/Source/WebCore/loader/ContentFilter.cpp
@@ -78,7 +78,7 @@
if (filters.isEmpty())
return nullptr;
- return std::make_unique<ContentFilter>(WTFMove(filters), documentLoader);
+ return makeUnique<ContentFilter>(WTFMove(filters), documentLoader);
}
ContentFilter::ContentFilter(Container&& contentFilters, DocumentLoader& documentLoader)
diff --git a/Source/WebCore/loader/CrossOriginAccessControl.cpp b/Source/WebCore/loader/CrossOriginAccessControl.cpp
index d0d54b9..c4ce5f5 100644
--- a/Source/WebCore/loader/CrossOriginAccessControl.cpp
+++ b/Source/WebCore/loader/CrossOriginAccessControl.cpp
@@ -205,7 +205,7 @@
if (!passesAccessControlCheck(response, storedCredentialsPolicy, securityOrigin, errorDescription))
return false;
- auto result = std::make_unique<CrossOriginPreflightResultCacheItem>(storedCredentialsPolicy);
+ auto result = makeUnique<CrossOriginPreflightResultCacheItem>(storedCredentialsPolicy);
if (!result->parse(response)
|| !result->allowsCrossOriginMethod(request.httpMethod(), storedCredentialsPolicy, errorDescription)
|| !result->allowsCrossOriginHeaders(request.httpHeaderFields(), storedCredentialsPolicy, errorDescription)) {
diff --git a/Source/WebCore/loader/DocumentLoader.cpp b/Source/WebCore/loader/DocumentLoader.cpp
index de09e70..0455caf 100644
--- a/Source/WebCore/loader/DocumentLoader.cpp
+++ b/Source/WebCore/loader/DocumentLoader.cpp
@@ -189,7 +189,7 @@
, m_originalSubstituteDataWasValid(substituteData.isValid())
, m_substituteResourceDeliveryTimer(*this, &DocumentLoader::substituteResourceDeliveryTimerFired)
, m_dataLoadTimer(*this, &DocumentLoader::handleSubstituteDataLoadNow)
- , m_applicationCacheHost(std::make_unique<ApplicationCacheHost>(*this))
+ , m_applicationCacheHost(makeUnique<ApplicationCacheHost>(*this))
{
}
@@ -1336,7 +1336,7 @@
if (manifestURL.isEmpty() || !manifestURL.isValid())
return 0;
- auto manifestLoader = std::make_unique<ApplicationManifestLoader>(*this, manifestURL, useCredentials);
+ auto manifestLoader = makeUnique<ApplicationManifestLoader>(*this, manifestURL, useCredentials);
auto* rawManifestLoader = manifestLoader.get();
auto callbackID = nextCallbackID++;
m_applicationManifestLoaders.set(WTFMove(manifestLoader), callbackID);
@@ -1427,7 +1427,7 @@
void DocumentLoader::addAllArchiveResources(Archive& archive)
{
if (!m_archiveResourceCollection)
- m_archiveResourceCollection = std::make_unique<ArchiveResourceCollection>();
+ m_archiveResourceCollection = makeUnique<ArchiveResourceCollection>();
m_archiveResourceCollection->addAllResources(archive);
}
@@ -1436,7 +1436,7 @@
void DocumentLoader::addArchiveResource(Ref<ArchiveResource>&& resource)
{
if (!m_archiveResourceCollection)
- m_archiveResourceCollection = std::make_unique<ArchiveResourceCollection>();
+ m_archiveResourceCollection = makeUnique<ArchiveResourceCollection>();
m_archiveResourceCollection->addResource(WTFMove(resource));
}
@@ -1963,7 +1963,7 @@
// If the load was aborted by clearing m_request, it's possible the ApplicationCacheHost
// is now in a state where starting an empty load will be inconsistent. Replace it with
// a new ApplicationCacheHost.
- m_applicationCacheHost = std::make_unique<ApplicationCacheHost>(*this);
+ m_applicationCacheHost = makeUnique<ApplicationCacheHost>(*this);
maybeLoadEmpty();
return;
}
@@ -2122,7 +2122,7 @@
return;
}
- auto iconLoader = std::make_unique<IconLoader>(*this, icon.url);
+ auto iconLoader = makeUnique<IconLoader>(*this, icon.url);
auto* rawIconLoader = iconLoader.get();
m_iconLoaders.set(WTFMove(iconLoader), newCallbackID);
diff --git a/Source/WebCore/loader/EmptyClients.cpp b/Source/WebCore/loader/EmptyClients.cpp
index 0453d7e..938342d 100644
--- a/Source/WebCore/loader/EmptyClients.cpp
+++ b/Source/WebCore/loader/EmptyClients.cpp
@@ -578,7 +578,7 @@
static NeverDestroyed<EmptyProgressTrackerClient> dummyProgressTrackerClient;
pageConfiguration.progressTrackerClient = &dummyProgressTrackerClient.get();
- pageConfiguration.diagnosticLoggingClient = std::make_unique<EmptyDiagnosticLoggingClient>();
+ pageConfiguration.diagnosticLoggingClient = makeUnique<EmptyDiagnosticLoggingClient>();
pageConfiguration.applicationCacheStorage = ApplicationCacheStorage::create({ }, { });
pageConfiguration.databaseProvider = adoptRef(*new EmptyDatabaseProvider);
diff --git a/Source/WebCore/loader/FrameLoader.cpp b/Source/WebCore/loader/FrameLoader.cpp
index e0f4614..83beb27 100644
--- a/Source/WebCore/loader/FrameLoader.cpp
+++ b/Source/WebCore/loader/FrameLoader.cpp
@@ -270,10 +270,10 @@
FrameLoader::FrameLoader(Frame& frame, FrameLoaderClient& client)
: m_frame(frame)
, m_client(client)
- , m_policyChecker(std::make_unique<PolicyChecker>(frame))
- , m_history(std::make_unique<HistoryController>(frame))
+ , m_policyChecker(makeUnique<PolicyChecker>(frame))
+ , m_history(makeUnique<HistoryController>(frame))
, m_notifier(frame)
- , m_subframeLoader(std::make_unique<SubframeLoader>(frame))
+ , m_subframeLoader(makeUnique<SubframeLoader>(frame))
, m_mixedContentChecker(frame)
, m_state(FrameStateProvisional)
, m_loadType(FrameLoadType::Standard)
@@ -321,7 +321,7 @@
m_stateMachine.advanceTo(FrameLoaderStateMachine::DisplayingInitialEmptyDocument);
m_networkingContext = m_client.createNetworkingContext();
- m_progressTracker = std::make_unique<FrameProgressTracker>(m_frame);
+ m_progressTracker = makeUnique<FrameProgressTracker>(m_frame);
}
void FrameLoader::initForSynthesizedDocument(const URL&)
@@ -346,7 +346,7 @@
m_needsClear = true;
m_networkingContext = m_client.createNetworkingContext();
- m_progressTracker = std::make_unique<FrameProgressTracker>(m_frame);
+ m_progressTracker = makeUnique<FrameProgressTracker>(m_frame);
}
void FrameLoader::setDefersLoading(bool defers)
@@ -2678,7 +2678,7 @@
// https://html.spec.whatwg.org/multipage/browsing-the-web.html#navigate
std::unique_ptr<NavigationDisabler> navigationDisabler;
if (m_frame.isMainFrame())
- navigationDisabler = std::make_unique<NavigationDisabler>(&m_frame);
+ navigationDisabler = makeUnique<NavigationDisabler>(&m_frame);
// Any subframe inserted by unload event handlers executed in the loop below will not get unloaded
// because we create a copy of the subframes list before looping. Therefore, it would be unsafe to
diff --git a/Source/WebCore/loader/LinkLoader.cpp b/Source/WebCore/loader/LinkLoader.cpp
index cdf6495..408c536 100644
--- a/Source/WebCore/loader/LinkLoader.cpp
+++ b/Source/WebCore/loader/LinkLoader.cpp
@@ -142,22 +142,22 @@
{
switch (resource.type()) {
case CachedResource::Type::ImageResource:
- return std::make_unique<LinkPreloadImageResourceClient>(loader, downcast<CachedImage>(resource));
+ return makeUnique<LinkPreloadImageResourceClient>(loader, downcast<CachedImage>(resource));
case CachedResource::Type::Script:
- return std::make_unique<LinkPreloadDefaultResourceClient>(loader, downcast<CachedScript>(resource));
+ return makeUnique<LinkPreloadDefaultResourceClient>(loader, downcast<CachedScript>(resource));
case CachedResource::Type::CSSStyleSheet:
- return std::make_unique<LinkPreloadStyleResourceClient>(loader, downcast<CachedCSSStyleSheet>(resource));
+ return makeUnique<LinkPreloadStyleResourceClient>(loader, downcast<CachedCSSStyleSheet>(resource));
case CachedResource::Type::FontResource:
- return std::make_unique<LinkPreloadFontResourceClient>(loader, downcast<CachedFont>(resource));
+ return makeUnique<LinkPreloadFontResourceClient>(loader, downcast<CachedFont>(resource));
#if ENABLE(VIDEO_TRACK)
case CachedResource::Type::TextTrackResource:
- return std::make_unique<LinkPreloadDefaultResourceClient>(loader, downcast<CachedTextTrack>(resource));
+ return makeUnique<LinkPreloadDefaultResourceClient>(loader, downcast<CachedTextTrack>(resource));
#endif
case CachedResource::Type::MediaResource:
ASSERT(RuntimeEnabledFeatures::sharedFeatures().mediaPreloadingEnabled());
FALLTHROUGH;
case CachedResource::Type::RawResource:
- return std::make_unique<LinkPreloadRawResourceClient>(loader, downcast<CachedRawResource>(resource));
+ return makeUnique<LinkPreloadRawResourceClient>(loader, downcast<CachedRawResource>(resource));
case CachedResource::Type::MainResource:
case CachedResource::Type::Icon:
#if ENABLE(SVG_FONTS)
diff --git a/Source/WebCore/loader/NavigationScheduler.cpp b/Source/WebCore/loader/NavigationScheduler.cpp
index 558c780..3c2c252 100644
--- a/Source/WebCore/loader/NavigationScheduler.cpp
+++ b/Source/WebCore/loader/NavigationScheduler.cpp
@@ -397,7 +397,7 @@
// We want a new back/forward list item if the refresh timeout is > 1 second.
if (!m_redirect || delay <= m_redirect->delay()) {
auto lockBackForwardList = delay <= 1 ? LockBackForwardList::Yes : LockBackForwardList::No;
- schedule(std::make_unique<ScheduledRedirect>(initiatingDocument, delay, &m_frame.document()->securityOrigin(), url, LockHistory::Yes, lockBackForwardList));
+ schedule(makeUnique<ScheduledRedirect>(initiatingDocument, delay, &m_frame.document()->securityOrigin(), url, LockHistory::Yes, lockBackForwardList));
}
}
@@ -445,7 +445,7 @@
// This may happen when a frame changes the location of another frame.
bool duringLoad = !loader.stateMachine().committedFirstRealDocumentLoad();
- schedule(std::make_unique<ScheduledLocationChange>(initiatingDocument, &securityOrigin, url, referrer, lockHistory, lockBackForwardList, duringLoad, WTFMove(completionHandler)));
+ schedule(makeUnique<ScheduledLocationChange>(initiatingDocument, &securityOrigin, url, referrer, lockHistory, lockBackForwardList, duringLoad, WTFMove(completionHandler)));
}
void NavigationScheduler::scheduleFormSubmission(Ref<FormSubmission>&& submission)
@@ -468,7 +468,7 @@
lockBackForwardList = LockBackForwardList::Yes;
}
- schedule(std::make_unique<ScheduledFormSubmission>(WTFMove(submission), lockBackForwardList, duringLoad));
+ schedule(makeUnique<ScheduledFormSubmission>(WTFMove(submission), lockBackForwardList, duringLoad));
}
void NavigationScheduler::scheduleRefresh(Document& initiatingDocument)
@@ -479,7 +479,7 @@
if (url.isEmpty())
return;
- schedule(std::make_unique<ScheduledRefresh>(initiatingDocument, &m_frame.document()->securityOrigin(), url, m_frame.loader().outgoingReferrer()));
+ schedule(makeUnique<ScheduledRefresh>(initiatingDocument, &m_frame.document()->securityOrigin(), url, m_frame.loader().outgoingReferrer()));
}
void NavigationScheduler::scheduleHistoryNavigation(int steps)
@@ -498,13 +498,13 @@
}
// In all other cases, schedule the history traversal to occur asynchronously.
- schedule(std::make_unique<ScheduledHistoryNavigation>(steps));
+ schedule(makeUnique<ScheduledHistoryNavigation>(steps));
}
void NavigationScheduler::schedulePageBlock(Document& originDocument)
{
if (shouldScheduleNavigation())
- schedule(std::make_unique<ScheduledPageBlock>(originDocument));
+ schedule(makeUnique<ScheduledPageBlock>(originDocument));
}
void NavigationScheduler::timerFired()
diff --git a/Source/WebCore/loader/ProgressTracker.cpp b/Source/WebCore/loader/ProgressTracker.cpp
index e17a9dc..2817a76 100644
--- a/Source/WebCore/loader/ProgressTracker.cpp
+++ b/Source/WebCore/loader/ProgressTracker.cpp
@@ -201,7 +201,7 @@
auto& item = m_progressItems.add(identifier, nullptr).iterator->value;
if (!item) {
- item = std::make_unique<ProgressItem>(estimatedLength);
+ item = makeUnique<ProgressItem>(estimatedLength);
return;
}
diff --git a/Source/WebCore/loader/TextResourceDecoder.cpp b/Source/WebCore/loader/TextResourceDecoder.cpp
index ea5dbfb..8246bb0 100644
--- a/Source/WebCore/loader/TextResourceDecoder.cpp
+++ b/Source/WebCore/loader/TextResourceDecoder.cpp
@@ -535,7 +535,7 @@
if (m_contentType == XML)
return true;
- m_charsetParser = std::make_unique<HTMLMetaCharsetParser>();
+ m_charsetParser = makeUnique<HTMLMetaCharsetParser>();
return checkForMetaCharset(data, len);
}
diff --git a/Source/WebCore/loader/TextTrackLoader.cpp b/Source/WebCore/loader/TextTrackLoader.cpp
index ca9e6c4..fa926ea 100644
--- a/Source/WebCore/loader/TextTrackLoader.cpp
+++ b/Source/WebCore/loader/TextTrackLoader.cpp
@@ -92,7 +92,7 @@
return;
if (!m_cueParser)
- m_cueParser = std::make_unique<WebVTTParser>(static_cast<WebVTTParserClient*>(this), m_scriptExecutionContext);
+ m_cueParser = makeUnique<WebVTTParser>(static_cast<WebVTTParserClient*>(this), m_scriptExecutionContext);
while (m_parseOffset < buffer->size()) {
auto data = buffer->getSomeData(m_parseOffset);
diff --git a/Source/WebCore/loader/WorkerThreadableLoader.cpp b/Source/WebCore/loader/WorkerThreadableLoader.cpp
index a1263e2..77532f8 100644
--- a/Source/WebCore/loader/WorkerThreadableLoader.cpp
+++ b/Source/WebCore/loader/WorkerThreadableLoader.cpp
@@ -115,11 +115,11 @@
ASSERT(contentSecurityPolicy);
auto securityOriginCopy = securityOrigin->isolatedCopy();
- auto contentSecurityPolicyCopy = std::make_unique<ContentSecurityPolicy>(globalScope.url().isolatedCopy());
+ auto contentSecurityPolicyCopy = makeUnique<ContentSecurityPolicy>(globalScope.url().isolatedCopy());
contentSecurityPolicyCopy->copyStateFrom(contentSecurityPolicy);
contentSecurityPolicyCopy->copyUpgradeInsecureRequestStateFrom(*contentSecurityPolicy);
- auto optionsCopy = std::make_unique<LoaderTaskOptions>(options, request.httpReferrer().isNull() ? outgoingReferrer : request.httpReferrer(), WTFMove(securityOriginCopy));
+ auto optionsCopy = makeUnique<LoaderTaskOptions>(options, request.httpReferrer().isNull() ? outgoingReferrer : request.httpReferrer(), WTFMove(securityOriginCopy));
// All loads start out as Document. Inside WorkerThreadableLoader we upgrade this to a Worker load.
ASSERT(optionsCopy->options.initiatorContext == InitiatorContext::Document);
diff --git a/Source/WebCore/loader/archive/cf/LegacyWebArchive.cpp b/Source/WebCore/loader/archive/cf/LegacyWebArchive.cpp
index f97eb00..bba9104 100644
--- a/Source/WebCore/loader/archive/cf/LegacyWebArchive.cpp
+++ b/Source/WebCore/loader/archive/cf/LegacyWebArchive.cpp
@@ -423,7 +423,7 @@
// but we can approximate that by checking if scripting is enabled right now.
std::unique_ptr<Vector<QualifiedName>> tagNamesToFilter;
if (frame->page() && frame->page()->settings().isScriptEnabled()) {
- tagNamesToFilter = std::make_unique<Vector<QualifiedName>>();
+ tagNamesToFilter = makeUnique<Vector<QualifiedName>>();
tagNamesToFilter->append(HTMLNames::noscriptTag);
}
diff --git a/Source/WebCore/loader/cache/CachedImage.cpp b/Source/WebCore/loader/cache/CachedImage.cpp
index 8368a95..ef93b35 100644
--- a/Source/WebCore/loader/cache/CachedImage.cpp
+++ b/Source/WebCore/loader/cache/CachedImage.cpp
@@ -105,7 +105,7 @@
m_imageObserver->cachedImages().add(this);
if (m_image && is<SVGImage>(*m_image))
- m_svgImageCache = std::make_unique<SVGImageCache>(&downcast<SVGImage>(*m_image));
+ m_svgImageCache = makeUnique<SVGImageCache>(&downcast<SVGImage>(*m_image));
}
void CachedImage::didAddClient(CachedResourceClient& client)
@@ -357,7 +357,7 @@
if (m_image) {
if (is<SVGImage>(*m_image))
- m_svgImageCache = std::make_unique<SVGImageCache>(&downcast<SVGImage>(*m_image));
+ m_svgImageCache = makeUnique<SVGImageCache>(&downcast<SVGImage>(*m_image));
// Send queued container size requests.
if (m_image->usesContainerSize()) {
diff --git a/Source/WebCore/loader/cache/CachedRawResource.cpp b/Source/WebCore/loader/cache/CachedRawResource.cpp
index be6183a..f9a75f3 100644
--- a/Source/WebCore/loader/cache/CachedRawResource.cpp
+++ b/Source/WebCore/loader/cache/CachedRawResource.cpp
@@ -208,7 +208,7 @@
CachedResource::redirectReceived(WTFMove(request), response, WTFMove(completionHandler));
else {
m_redirectChain.append(RedirectPair(request, response));
- iterateClients(CachedResourceClientWalker<CachedRawResourceClient>(m_clients), CachedResourceHandle<CachedRawResource>(this), WTFMove(request), std::make_unique<ResourceResponse>(response), [this, protectedThis = CachedResourceHandle<CachedRawResource>(this), completionHandler = WTFMove(completionHandler), response] (ResourceRequest&& request) mutable {
+ iterateClients(CachedResourceClientWalker<CachedRawResourceClient>(m_clients), CachedResourceHandle<CachedRawResource>(this), WTFMove(request), makeUnique<ResourceResponse>(response), [this, protectedThis = CachedResourceHandle<CachedRawResource>(this), completionHandler = WTFMove(completionHandler), response] (ResourceRequest&& request) mutable {
CachedResource::redirectReceived(WTFMove(request), response, WTFMove(completionHandler));
});
}
diff --git a/Source/WebCore/loader/cache/CachedResource.cpp b/Source/WebCore/loader/cache/CachedResource.cpp
index e430e44..0567d1d 100644
--- a/Source/WebCore/loader/cache/CachedResource.cpp
+++ b/Source/WebCore/loader/cache/CachedResource.cpp
@@ -546,7 +546,7 @@
// Therefore, rather than immediately sending callbacks on a cache hit like other CachedResources,
// we schedule the callbacks and ensure we never finish synchronously.
ASSERT(!m_clientsAwaitingCallback.contains(&client));
- m_clientsAwaitingCallback.add(&client, std::make_unique<Callback>(*this, client));
+ m_clientsAwaitingCallback.add(&client, makeUnique<Callback>(*this, client));
return false;
}
diff --git a/Source/WebCore/loader/cache/CachedResourceLoader.cpp b/Source/WebCore/loader/cache/CachedResourceLoader.cpp
index 843a9d1..b34b8fd 100644
--- a/Source/WebCore/loader/cache/CachedResourceLoader.cpp
+++ b/Source/WebCore/loader/cache/CachedResourceLoader.cpp
@@ -791,7 +791,7 @@
// Entry point to https://fetch.spec.whatwg.org/#main-fetch.
std::unique_ptr<ResourceRequest> originalRequest;
if (CachedResource::shouldUsePingLoad(type) || request.options().destination == FetchOptions::Destination::EmptyString) {
- originalRequest = std::make_unique<ResourceRequest>(request.resourceRequest());
+ originalRequest = makeUnique<ResourceRequest>(request.resourceRequest());
originalRequest->clearHTTPReferrer();
originalRequest->clearHTTPOrigin();
}
@@ -1391,7 +1391,7 @@
resourceValue->increasePreloadCount();
if (!m_preloads)
- m_preloads = std::make_unique<ListHashSet<CachedResource*>>();
+ m_preloads = makeUnique<ListHashSet<CachedResource*>>();
m_preloads->add(resourceValue.get());
}
return resource;
@@ -1433,7 +1433,7 @@
ASSERT(resource);
if (mode == ClearPreloadsMode::ClearSpeculativePreloads && resource->isLinkPreload()) {
if (!remainingLinkPreloads)
- remainingLinkPreloads = std::make_unique<ListHashSet<CachedResource*>>();
+ remainingLinkPreloads = makeUnique<ListHashSet<CachedResource*>>();
remainingLinkPreloads->add(resource);
continue;
}
diff --git a/Source/WebCore/loader/cache/MemoryCache.cpp b/Source/WebCore/loader/cache/MemoryCache.cpp
index d3b8051..3dead46 100644
--- a/Source/WebCore/loader/cache/MemoryCache.cpp
+++ b/Source/WebCore/loader/cache/MemoryCache.cpp
@@ -86,7 +86,7 @@
ASSERT(sessionID.isValid());
auto& map = m_sessionResources.add(sessionID, nullptr).iterator->value;
if (!map)
- map = std::make_unique<CachedResourceMap>();
+ map = makeUnique<CachedResourceMap>();
return *map;
}
@@ -216,7 +216,7 @@
removeImageFromCache(url, domainForCachePartition); // Remove cache entry if it already exists.
auto bitmapImage = BitmapImage::create(WTFMove(image), nullptr);
- auto cachedImage = std::make_unique<CachedImage>(url, bitmapImage.ptr(), sessionID, cookieJar, domainForCachePartition);
+ auto cachedImage = makeUnique<CachedImage>(url, bitmapImage.ptr(), sessionID, cookieJar, domainForCachePartition);
cachedImage->addClient(dummyCachedImageClient());
cachedImage->setDecodedSize(bitmapImage->decodedSize());
@@ -473,7 +473,7 @@
m_allResources.reserveCapacity(queueIndex + 1);
while (m_allResources.size() <= queueIndex)
- m_allResources.uncheckedAppend(std::make_unique<LRUList>());
+ m_allResources.uncheckedAppend(makeUnique<LRUList>());
return *m_allResources[queueIndex];
}
diff --git a/Source/WebCore/loader/ios/PreviewLoader.mm b/Source/WebCore/loader/ios/PreviewLoader.mm
index f6b8221..c5ca5c2 100644
--- a/Source/WebCore/loader/ios/PreviewLoader.mm
+++ b/Source/WebCore/loader/ios/PreviewLoader.mm
@@ -86,7 +86,7 @@
_resourceLoader = makeWeakPtr(resourceLoader);
_response = resourceResponse;
- _converter = std::make_unique<PreviewConverter>(self, _response);
+ _converter = makeUnique<PreviewConverter>(self, _response);
_bufferedDataArray = adoptNS([[NSMutableArray alloc] init]);
_shouldDecidePolicyBeforeLoading = resourceLoader.frame()->settings().shouldDecidePolicyBeforeLoadingQuickLookPreview();
@@ -246,7 +246,7 @@
}
_client->didRequestPassword([self, retainedSelf = retainPtr(self)] (const String& password) {
- _converter = std::make_unique<PreviewConverter>(self, _response, password);
+ _converter = makeUnique<PreviewConverter>(self, _response, password);
[_converter->platformConverter() appendDataArray:_bufferedDataArray.get()];
[_converter->platformConverter() finishedAppendingData];
});
@@ -268,7 +268,7 @@
std::unique_ptr<PreviewLoader> PreviewLoader::create(ResourceLoader& loader, const ResourceResponse& response)
{
ASSERT(PreviewConverter::supportsMIMEType(response.mimeType()));
- return std::make_unique<PreviewLoader>(loader, response);
+ return makeUnique<PreviewLoader>(loader, response);
}
bool PreviewLoader::didReceiveResponse(const ResourceResponse&)
diff --git a/Source/WebCore/page/ContextMenuController.cpp b/Source/WebCore/page/ContextMenuController.cpp
index c479ca1..4ccdab0 100644
--- a/Source/WebCore/page/ContextMenuController.cpp
+++ b/Source/WebCore/page/ContextMenuController.cpp
@@ -180,7 +180,7 @@
}
#endif
- return std::make_unique<ContextMenu>();
+ return makeUnique<ContextMenu>();
}
void ContextMenuController::showContextMenu(Event& event)
diff --git a/Source/WebCore/page/DebugPageOverlays.cpp b/Source/WebCore/page/DebugPageOverlays.cpp
index f63daa7..cdc74f6 100644
--- a/Source/WebCore/page/DebugPageOverlays.cpp
+++ b/Source/WebCore/page/DebugPageOverlays.cpp
@@ -88,7 +88,7 @@
bool MouseWheelRegionOverlay::updateRegion()
{
- auto region = std::make_unique<Region>();
+ auto region = makeUnique<Region>();
for (const Frame* frame = &m_page.mainFrame(); frame; frame = frame->tree().traverseNext()) {
if (!frame->view() || !frame->document())
diff --git a/Source/WebCore/page/EventHandler.cpp b/Source/WebCore/page/EventHandler.cpp
index 48c0734..d20b98c 100644
--- a/Source/WebCore/page/EventHandler.cpp
+++ b/Source/WebCore/page/EventHandler.cpp
@@ -385,7 +385,7 @@
#if PLATFORM(MAC)
, m_pendingMomentumWheelEventsTimer(*this, &EventHandler::clearLatchedState)
#endif
- , m_autoscrollController(std::make_unique<AutoscrollController>())
+ , m_autoscrollController(makeUnique<AutoscrollController>())
#if !ENABLE(IOS_TOUCH_EVENTS)
, m_fakeMouseMoveEventTimer(*this, &EventHandler::fakeMouseMoveEventTimerFired)
#endif
diff --git a/Source/WebCore/page/FrameView.cpp b/Source/WebCore/page/FrameView.cpp
index 2337294..a5e5ede 100644
--- a/Source/WebCore/page/FrameView.cpp
+++ b/Source/WebCore/page/FrameView.cpp
@@ -1291,7 +1291,7 @@
void FrameView::addEmbeddedObjectToUpdate(RenderEmbeddedObject& embeddedObject)
{
if (!m_embeddedObjectsToUpdate)
- m_embeddedObjectsToUpdate = std::make_unique<ListHashSet<RenderEmbeddedObject*>>();
+ m_embeddedObjectsToUpdate = makeUnique<ListHashSet<RenderEmbeddedObject*>>();
HTMLFrameOwnerElement& element = embeddedObject.frameOwnerElement();
if (is<HTMLObjectElement>(element) || is<HTMLEmbedElement>(element)) {
@@ -1427,7 +1427,7 @@
bool hadSlowRepaintObjects = hasSlowRepaintObjects();
if (!m_slowRepaintObjects)
- m_slowRepaintObjects = std::make_unique<HashSet<const RenderElement*>>();
+ m_slowRepaintObjects = makeUnique<HashSet<const RenderElement*>>();
m_slowRepaintObjects->add(&renderer);
if (hadSlowRepaintObjects)
@@ -1462,7 +1462,7 @@
void FrameView::addViewportConstrainedObject(RenderLayerModelObject* object)
{
if (!m_viewportConstrainedObjects)
- m_viewportConstrainedObjects = std::make_unique<ViewportConstrainedObjectSet>();
+ m_viewportConstrainedObjects = makeUnique<ViewportConstrainedObjectSet>();
if (!m_viewportConstrainedObjects->contains(object)) {
m_viewportConstrainedObjects->add(object);
@@ -4866,7 +4866,7 @@
bool FrameView::addScrollableArea(ScrollableArea* scrollableArea)
{
if (!m_scrollableAreas)
- m_scrollableAreas = std::make_unique<ScrollableAreaSet>();
+ m_scrollableAreas = makeUnique<ScrollableAreaSet>();
if (m_scrollableAreas->add(scrollableArea).isNewEntry) {
scrollableAreaSetChanged();
diff --git a/Source/WebCore/page/FrameViewLayoutContext.cpp b/Source/WebCore/page/FrameViewLayoutContext.cpp
index 73098f1..e858c92 100644
--- a/Source/WebCore/page/FrameViewLayoutContext.cpp
+++ b/Source/WebCore/page/FrameViewLayoutContext.cpp
@@ -596,14 +596,14 @@
ASSERT(!m_paintOffsetCacheDisableCount);
ASSERT(!layoutState());
- m_layoutStateStack.append(std::make_unique<RenderLayoutState>(root));
+ m_layoutStateStack.append(makeUnique<RenderLayoutState>(root));
}
bool FrameViewLayoutContext::pushLayoutStateForPaginationIfNeeded(RenderBlockFlow& layoutRoot)
{
if (layoutState())
return false;
- m_layoutStateStack.append(std::make_unique<RenderLayoutState>(layoutRoot, RenderLayoutState::IsPaginated::Yes));
+ m_layoutStateStack.append(makeUnique<RenderLayoutState>(layoutRoot, RenderLayoutState::IsPaginated::Yes));
return true;
}
@@ -613,7 +613,7 @@
auto* layoutState = this->layoutState();
if (!layoutState || !needsFullRepaint() || layoutState->isPaginated() || renderer.enclosingFragmentedFlow()
|| layoutState->lineGrid() || (renderer.style().lineGrid() != RenderStyle::initialLineGrid() && renderer.isRenderBlockFlow())) {
- m_layoutStateStack.append(std::make_unique<RenderLayoutState>(m_layoutStateStack, renderer, offset, pageHeight, pageHeightChanged));
+ m_layoutStateStack.append(makeUnique<RenderLayoutState>(m_layoutStateStack, renderer, offset, pageHeight, pageHeightChanged));
return true;
}
return false;
diff --git a/Source/WebCore/page/NavigatorBase.cpp b/Source/WebCore/page/NavigatorBase.cpp
index 8c3c52a..5227e42 100644
--- a/Source/WebCore/page/NavigatorBase.cpp
+++ b/Source/WebCore/page/NavigatorBase.cpp
@@ -149,7 +149,7 @@
{
ASSERT(RuntimeEnabledFeatures::sharedFeatures().serviceWorkerEnabled());
if (!m_serviceWorkerContainer)
- m_serviceWorkerContainer = std::make_unique<ServiceWorkerContainer>(scriptExecutionContext(), *this);
+ m_serviceWorkerContainer = makeUnique<ServiceWorkerContainer>(scriptExecutionContext(), *this);
return *m_serviceWorkerContainer;
}
diff --git a/Source/WebCore/page/Page.cpp b/Source/WebCore/page/Page.cpp
index 395d2f0..3f58183 100644
--- a/Source/WebCore/page/Page.cpp
+++ b/Source/WebCore/page/Page.cpp
@@ -211,26 +211,26 @@
}
Page::Page(PageConfiguration&& pageConfiguration)
- : m_chrome(std::make_unique<Chrome>(*this, *pageConfiguration.chromeClient))
- , m_dragCaretController(std::make_unique<DragCaretController>())
+ : m_chrome(makeUnique<Chrome>(*this, *pageConfiguration.chromeClient))
+ , m_dragCaretController(makeUnique<DragCaretController>())
#if ENABLE(DRAG_SUPPORT)
- , m_dragController(std::make_unique<DragController>(*this, *pageConfiguration.dragClient))
+ , m_dragController(makeUnique<DragController>(*this, *pageConfiguration.dragClient))
#endif
- , m_focusController(std::make_unique<FocusController>(*this, pageInitialActivityState()))
+ , m_focusController(makeUnique<FocusController>(*this, pageInitialActivityState()))
#if ENABLE(CONTEXT_MENUS)
- , m_contextMenuController(std::make_unique<ContextMenuController>(*this, *pageConfiguration.contextMenuClient))
+ , m_contextMenuController(makeUnique<ContextMenuController>(*this, *pageConfiguration.contextMenuClient))
#endif
- , m_userInputBridge(std::make_unique<UserInputBridge>(*this))
- , m_inspectorController(std::make_unique<InspectorController>(*this, pageConfiguration.inspectorClient))
+ , m_userInputBridge(makeUnique<UserInputBridge>(*this))
+ , m_inspectorController(makeUnique<InspectorController>(*this, pageConfiguration.inspectorClient))
#if ENABLE(POINTER_EVENTS)
- , m_pointerCaptureController(std::make_unique<PointerCaptureController>(*this))
+ , m_pointerCaptureController(makeUnique<PointerCaptureController>(*this))
#endif
#if ENABLE(POINTER_LOCK)
- , m_pointerLockController(std::make_unique<PointerLockController>(*this))
+ , m_pointerLockController(makeUnique<PointerLockController>(*this))
#endif
, m_settings(Settings::create(this))
- , m_progress(std::make_unique<ProgressTracker>(*pageConfiguration.progressTrackerClient))
- , m_backForwardController(std::make_unique<BackForwardController>(*this, WTFMove(pageConfiguration.backForwardClient)))
+ , m_progress(makeUnique<ProgressTracker>(*pageConfiguration.progressTrackerClient))
+ , m_backForwardController(makeUnique<BackForwardController>(*this, WTFMove(pageConfiguration.backForwardClient)))
, m_mainFrame(Frame::create(this, nullptr, pageConfiguration.loaderClientForMainFrame))
, m_editorClient(WTFMove(pageConfiguration.editorClient))
, m_plugInClient(pageConfiguration.plugInClient)
@@ -250,9 +250,9 @@
, m_domTimerAlignmentIntervalIncreaseTimer(*this, &Page::domTimerAlignmentIntervalIncreaseTimerFired)
, m_activityState(pageInitialActivityState())
, m_alternativeTextClient(pageConfiguration.alternativeTextClient)
- , m_consoleClient(std::make_unique<PageConsoleClient>(*this))
+ , m_consoleClient(makeUnique<PageConsoleClient>(*this))
#if ENABLE(REMOTE_INSPECTOR)
- , m_inspectorDebuggable(std::make_unique<PageDebuggable>(*this))
+ , m_inspectorDebuggable(makeUnique<PageDebuggable>(*this))
#endif
, m_socketProvider(WTFMove(pageConfiguration.socketProvider))
, m_cookieJar(WTFMove(pageConfiguration.cookieJar))
@@ -268,16 +268,16 @@
, m_playbackControlsManagerUpdateTimer(*this, &Page::playbackControlsManagerUpdateTimerFired)
#endif
, m_isUtilityPage(isUtilityPageChromeClient(chrome().client()))
- , m_performanceMonitor(isUtilityPage() ? nullptr : std::make_unique<PerformanceMonitor>(*this))
- , m_lowPowerModeNotifier(std::make_unique<LowPowerModeNotifier>([this](bool isLowPowerModeEnabled) { handleLowModePowerChange(isLowPowerModeEnabled); }))
- , m_performanceLogging(std::make_unique<PerformanceLogging>(*this))
+ , m_performanceMonitor(isUtilityPage() ? nullptr : makeUnique<PerformanceMonitor>(*this))
+ , m_lowPowerModeNotifier(makeUnique<LowPowerModeNotifier>([this](bool isLowPowerModeEnabled) { handleLowModePowerChange(isLowPowerModeEnabled); }))
+ , m_performanceLogging(makeUnique<PerformanceLogging>(*this))
#if PLATFORM(MAC) && (ENABLE(SERVICE_CONTROLS) || ENABLE(TELEPHONE_NUMBER_DETECTION))
- , m_servicesOverlayController(std::make_unique<ServicesOverlayController>(*this))
+ , m_servicesOverlayController(makeUnique<ServicesOverlayController>(*this))
#endif
, m_recentWheelEventDeltaFilter(WheelEventDeltaFilter::create())
- , m_pageOverlayController(std::make_unique<PageOverlayController>(*this))
+ , m_pageOverlayController(makeUnique<PageOverlayController>(*this))
#if ENABLE(APPLE_PAY)
- , m_paymentCoordinator(std::make_unique<PaymentCoordinator>(*pageConfiguration.paymentCoordinatorClient))
+ , m_paymentCoordinator(makeUnique<PaymentCoordinator>(*pageConfiguration.paymentCoordinatorClient))
#endif
#if ENABLE(WEB_AUTHN)
, m_authenticatorCoordinator(makeUniqueRef<AuthenticatorCoordinator>(WTFMove(pageConfiguration.authenticatorCoordinatorClient)))
@@ -559,7 +559,7 @@
{
ASSERT(!m_singlePageGroup);
ASSERT(!m_group);
- m_singlePageGroup = std::make_unique<PageGroup>(*this);
+ m_singlePageGroup = makeUnique<PageGroup>(*this);
m_group = m_singlePageGroup.get();
}
@@ -2633,7 +2633,7 @@
}
if (!m_resourceUsageOverlay && m_settings->acceleratedCompositingEnabled())
- m_resourceUsageOverlay = std::make_unique<ResourceUsageOverlay>(*this);
+ m_resourceUsageOverlay = makeUnique<ResourceUsageOverlay>(*this);
}
#endif
diff --git a/Source/WebCore/page/PageConsoleClient.cpp b/Source/WebCore/page/PageConsoleClient.cpp
index 8246adc..83a2403 100644
--- a/Source/WebCore/page/PageConsoleClient.cpp
+++ b/Source/WebCore/page/PageConsoleClient.cpp
@@ -161,9 +161,9 @@
std::unique_ptr<Inspector::ConsoleMessage> message;
if (callStack)
- message = std::make_unique<Inspector::ConsoleMessage>(source, MessageType::Log, level, messageText, callStack.releaseNonNull(), requestIdentifier);
+ message = makeUnique<Inspector::ConsoleMessage>(source, MessageType::Log, level, messageText, callStack.releaseNonNull(), requestIdentifier);
else
- message = std::make_unique<Inspector::ConsoleMessage>(source, MessageType::Log, level, messageText, suggestedURL, suggestedLineNumber, suggestedColumnNumber, state, requestIdentifier);
+ message = makeUnique<Inspector::ConsoleMessage>(source, MessageType::Log, level, messageText, suggestedURL, suggestedLineNumber, suggestedColumnNumber, state, requestIdentifier);
addMessage(WTFMove(message));
}
@@ -174,7 +174,7 @@
String messageText;
bool gotMessage = arguments->getFirstArgumentAsString(messageText);
- auto message = std::make_unique<Inspector::ConsoleMessage>(MessageSource::ConsoleAPI, type, level, messageText, arguments.copyRef(), exec);
+ auto message = makeUnique<Inspector::ConsoleMessage>(MessageSource::ConsoleAPI, type, level, messageText, arguments.copyRef(), exec);
String url = message->url();
unsigned lineNumber = message->line();
@@ -406,7 +406,7 @@
}
if (dataURL.isEmpty()) {
- addMessage(std::make_unique<Inspector::ConsoleMessage>(MessageSource::ConsoleAPI, MessageType::Image, MessageLevel::Error, "Could not capture screenshot"_s, WTFMove(arguments)));
+ addMessage(makeUnique<Inspector::ConsoleMessage>(MessageSource::ConsoleAPI, MessageType::Image, MessageLevel::Error, "Could not capture screenshot"_s, WTFMove(arguments)));
return;
}
}
@@ -416,7 +416,7 @@
for (size_t i = (!target ? 0 : 1); i < arguments->argumentCount(); ++i)
adjustedArguments.append({ state->vm(), arguments->argumentAt(i) });
arguments = ScriptArguments::create(*state, WTFMove(adjustedArguments));
- addMessage(std::make_unique<Inspector::ConsoleMessage>(MessageSource::ConsoleAPI, MessageType::Image, MessageLevel::Log, dataURL, WTFMove(arguments)));
+ addMessage(makeUnique<Inspector::ConsoleMessage>(MessageSource::ConsoleAPI, MessageType::Image, MessageLevel::Log, dataURL, WTFMove(arguments)));
}
} // namespace WebCore
diff --git a/Source/WebCore/page/PageGroup.cpp b/Source/WebCore/page/PageGroup.cpp
index 9193604..128c18f 100644
--- a/Source/WebCore/page/PageGroup.cpp
+++ b/Source/WebCore/page/PageGroup.cpp
@@ -116,9 +116,9 @@
{
if (!m_captionPreferences) {
#if PLATFORM(MAC) || HAVE(MEDIA_ACCESSIBILITY_FRAMEWORK)
- m_captionPreferences = std::make_unique<CaptionUserPreferencesMediaAF>(*this);
+ m_captionPreferences = makeUnique<CaptionUserPreferencesMediaAF>(*this);
#else
- m_captionPreferences = std::make_unique<CaptionUserPreferences>(*this);
+ m_captionPreferences = makeUnique<CaptionUserPreferences>(*this);
#endif
}
diff --git a/Source/WebCore/page/Performance.cpp b/Source/WebCore/page/Performance.cpp
index 6c15b3f..cbbac21 100644
--- a/Source/WebCore/page/Performance.cpp
+++ b/Source/WebCore/page/Performance.cpp
@@ -265,7 +265,7 @@
ExceptionOr<void> Performance::mark(const String& markName)
{
if (!m_userTiming)
- m_userTiming = std::make_unique<UserTiming>(*this);
+ m_userTiming = makeUnique<UserTiming>(*this);
auto result = m_userTiming->mark(markName);
if (result.hasException())
@@ -279,14 +279,14 @@
void Performance::clearMarks(const String& markName)
{
if (!m_userTiming)
- m_userTiming = std::make_unique<UserTiming>(*this);
+ m_userTiming = makeUnique<UserTiming>(*this);
m_userTiming->clearMarks(markName);
}
ExceptionOr<void> Performance::measure(const String& measureName, const String& startMark, const String& endMark)
{
if (!m_userTiming)
- m_userTiming = std::make_unique<UserTiming>(*this);
+ m_userTiming = makeUnique<UserTiming>(*this);
auto result = m_userTiming->measure(measureName, startMark, endMark);
if (result.hasException())
@@ -300,7 +300,7 @@
void Performance::clearMeasures(const String& measureName)
{
if (!m_userTiming)
- m_userTiming = std::make_unique<UserTiming>(*this);
+ m_userTiming = makeUnique<UserTiming>(*this);
m_userTiming->clearMeasures(measureName);
}
diff --git a/Source/WebCore/page/PrintContext.cpp b/Source/WebCore/page/PrintContext.cpp
index 0370f28..44291ae 100644
--- a/Source/WebCore/page/PrintContext.cpp
+++ b/Source/WebCore/page/PrintContext.cpp
@@ -321,7 +321,7 @@
return;
if (!m_linkedDestinations) {
- m_linkedDestinations = std::make_unique<HashMap<String, Ref<Element>>>();
+ m_linkedDestinations = makeUnique<HashMap<String, Ref<Element>>>();
collectLinkedDestinations(document);
}
diff --git a/Source/WebCore/page/RenderingUpdateScheduler.cpp b/Source/WebCore/page/RenderingUpdateScheduler.cpp
index 56a011c..3b881df 100644
--- a/Source/WebCore/page/RenderingUpdateScheduler.cpp
+++ b/Source/WebCore/page/RenderingUpdateScheduler.cpp
@@ -72,7 +72,7 @@
void RenderingUpdateScheduler::startTimer(Seconds delay)
{
ASSERT(!isScheduled());
- m_refreshTimer = std::make_unique<Timer>(*this, &RenderingUpdateScheduler::displayRefreshFired);
+ m_refreshTimer = makeUnique<Timer>(*this, &RenderingUpdateScheduler::displayRefreshFired);
m_refreshTimer->startOneShot(delay);
}
diff --git a/Source/WebCore/page/RenderingUpdateScheduler.h b/Source/WebCore/page/RenderingUpdateScheduler.h
index fade62f..6f06081 100644
--- a/Source/WebCore/page/RenderingUpdateScheduler.h
+++ b/Source/WebCore/page/RenderingUpdateScheduler.h
@@ -42,7 +42,7 @@
public:
static std::unique_ptr<RenderingUpdateScheduler> create(Page& page)
{
- return std::make_unique<RenderingUpdateScheduler>(page);
+ return makeUnique<RenderingUpdateScheduler>(page);
}
RenderingUpdateScheduler(Page&);
diff --git a/Source/WebCore/page/SecurityPolicy.cpp b/Source/WebCore/page/SecurityPolicy.cpp
index 4234182..0deb064 100644
--- a/Source/WebCore/page/SecurityPolicy.cpp
+++ b/Source/WebCore/page/SecurityPolicy.cpp
@@ -189,7 +189,7 @@
Locker<Lock> locker(originAccessMapLock);
OriginAccessMap::AddResult result = originAccessMap().add(sourceString, nullptr);
if (result.isNewEntry)
- result.iterator->value = std::make_unique<OriginAccessWhiteList>();
+ result.iterator->value = makeUnique<OriginAccessWhiteList>();
OriginAccessWhiteList* list = result.iterator->value.get();
list->append(OriginAccessEntry(destinationProtocol, destinationDomain, allowDestinationSubdomains ? OriginAccessEntry::AllowSubdomains : OriginAccessEntry::DisallowSubdomains, OriginAccessEntry::TreatIPAddressAsIPAddress));
diff --git a/Source/WebCore/page/SettingsBase.cpp b/Source/WebCore/page/SettingsBase.cpp
index b684896..27eea6c 100644
--- a/Source/WebCore/page/SettingsBase.cpp
+++ b/Source/WebCore/page/SettingsBase.cpp
@@ -68,7 +68,7 @@
SettingsBase::SettingsBase(Page* page)
: m_page(nullptr)
- , m_fontGenericFamilies(std::make_unique<FontGenericFamilies>())
+ , m_fontGenericFamilies(makeUnique<FontGenericFamilies>())
, m_layoutInterval(layoutScheduleThreshold)
, m_minimumDOMTimerInterval(DOMTimer::defaultMinimumInterval())
, m_setImageLoadingSettingsTimer(*this, &SettingsBase::imageLoadingSettingsTimerFired)
diff --git a/Source/WebCore/page/UserContentController.cpp b/Source/WebCore/page/UserContentController.cpp
index b9ce98c..652311d 100644
--- a/Source/WebCore/page/UserContentController.cpp
+++ b/Source/WebCore/page/UserContentController.cpp
@@ -73,7 +73,7 @@
void UserContentController::addUserScript(DOMWrapperWorld& world, std::unique_ptr<UserScript> userScript)
{
- auto& scriptsInWorld = m_userScripts.ensure(&world, [&] { return std::make_unique<UserScriptVector>(); }).iterator->value;
+ auto& scriptsInWorld = m_userScripts.ensure(&world, [&] { return makeUnique<UserScriptVector>(); }).iterator->value;
scriptsInWorld->append(WTFMove(userScript));
}
@@ -100,7 +100,7 @@
void UserContentController::addUserStyleSheet(DOMWrapperWorld& world, std::unique_ptr<UserStyleSheet> userStyleSheet, UserStyleInjectionTime injectionTime)
{
- auto& styleSheetsInWorld = m_userStyleSheets.ensure(&world, [&] { return std::make_unique<UserStyleSheetVector>(); }).iterator->value;
+ auto& styleSheetsInWorld = m_userStyleSheets.ensure(&world, [&] { return makeUnique<UserStyleSheetVector>(); }).iterator->value;
styleSheetsInWorld->append(WTFMove(userStyleSheet));
if (injectionTime == InjectInExistingDocuments)
diff --git a/Source/WebCore/page/WheelEventDeltaFilter.cpp b/Source/WebCore/page/WheelEventDeltaFilter.cpp
index f259aeb..304d94a 100644
--- a/Source/WebCore/page/WheelEventDeltaFilter.cpp
+++ b/Source/WebCore/page/WheelEventDeltaFilter.cpp
@@ -43,9 +43,9 @@
std::unique_ptr<WheelEventDeltaFilter> WheelEventDeltaFilter::create()
{
#if PLATFORM(MAC)
- return std::make_unique<WheelEventDeltaFilterMac>();
+ return makeUnique<WheelEventDeltaFilterMac>();
#else
- return std::make_unique<BasicWheelEventDeltaFilter>();
+ return makeUnique<BasicWheelEventDeltaFilter>();
#endif
}
diff --git a/Source/WebCore/page/animation/CSSAnimationController.cpp b/Source/WebCore/page/animation/CSSAnimationController.cpp
index 144663c..13c31f5 100644
--- a/Source/WebCore/page/animation/CSSAnimationController.cpp
+++ b/Source/WebCore/page/animation/CSSAnimationController.cpp
@@ -596,7 +596,7 @@
}
CSSAnimationController::CSSAnimationController(Frame& frame)
- : m_data(std::make_unique<CSSAnimationControllerPrivate>(frame))
+ : m_data(makeUnique<CSSAnimationControllerPrivate>(frame))
{
}
diff --git a/Source/WebCore/page/animation/CSSPropertyAnimation.cpp b/Source/WebCore/page/animation/CSSPropertyAnimation.cpp
index 74eedc9..baeb247 100644
--- a/Source/WebCore/page/animation/CSSPropertyAnimation.cpp
+++ b/Source/WebCore/page/animation/CSSPropertyAnimation.cpp
@@ -117,9 +117,9 @@
{
ASSERT(from && to);
if (from->style() != to->style())
- return std::make_unique<ShadowData>(*to);
+ return makeUnique<ShadowData>(*to);
- return std::make_unique<ShadowData>(blend(from->location(), to->location(), progress),
+ return makeUnique<ShadowData>(blend(from->location(), to->location(), progress),
blend(from->radius(), to->radius(), progress),
blend(from->spread(), to->spread(), progress),
blendFunc(anim, from->style(), to->style(), progress),
@@ -974,15 +974,15 @@
PropertyWrapperVisitedAffectedColor(CSSPropertyID prop, const Color& (RenderStyle::*getter)() const, void (RenderStyle::*setter)(const Color&),
const Color& (RenderStyle::*visitedGetter)() const, void (RenderStyle::*visitedSetter)(const Color&))
: AnimationPropertyWrapperBase(prop)
- , m_wrapper(std::make_unique<PropertyWrapperColor>(prop, getter, setter))
- , m_visitedWrapper(std::make_unique<PropertyWrapperColor>(prop, visitedGetter, visitedSetter))
+ , m_wrapper(makeUnique<PropertyWrapperColor>(prop, getter, setter))
+ , m_visitedWrapper(makeUnique<PropertyWrapperColor>(prop, visitedGetter, visitedSetter))
{
}
PropertyWrapperVisitedAffectedColor(CSSPropertyID prop, MaybeInvalidColorTag, const Color& (RenderStyle::*getter)() const, void (RenderStyle::*setter)(const Color&),
const Color& (RenderStyle::*visitedGetter)() const, void (RenderStyle::*visitedSetter)(const Color&))
: AnimationPropertyWrapperBase(prop)
- , m_wrapper(std::make_unique<PropertyWrapperMaybeInvalidColor>(prop, getter, setter))
- , m_visitedWrapper(std::make_unique<PropertyWrapperMaybeInvalidColor>(prop, visitedGetter, visitedSetter))
+ , m_wrapper(makeUnique<PropertyWrapperMaybeInvalidColor>(prop, getter, setter))
+ , m_visitedWrapper(makeUnique<PropertyWrapperMaybeInvalidColor>(prop, visitedGetter, visitedSetter))
{
}
bool equals(const RenderStyle* a, const RenderStyle* b) const override
@@ -1229,19 +1229,19 @@
switch (property) {
case CSSPropertyBackgroundPositionX:
case CSSPropertyWebkitMaskPositionX:
- m_fillLayerPropertyWrapper = std::make_unique<FillLayerPositionPropertyWrapper>(property, &FillLayer::xPosition, &FillLayer::setXPosition, &FillLayer::backgroundXOrigin, &FillLayer::setBackgroundXOrigin, Edge::Right);
+ m_fillLayerPropertyWrapper = makeUnique<FillLayerPositionPropertyWrapper>(property, &FillLayer::xPosition, &FillLayer::setXPosition, &FillLayer::backgroundXOrigin, &FillLayer::setBackgroundXOrigin, Edge::Right);
break;
case CSSPropertyBackgroundPositionY:
case CSSPropertyWebkitMaskPositionY:
- m_fillLayerPropertyWrapper = std::make_unique<FillLayerPositionPropertyWrapper>(property, &FillLayer::yPosition, &FillLayer::setYPosition, &FillLayer::backgroundYOrigin, &FillLayer::setBackgroundYOrigin, Edge::Bottom);
+ m_fillLayerPropertyWrapper = makeUnique<FillLayerPositionPropertyWrapper>(property, &FillLayer::yPosition, &FillLayer::setYPosition, &FillLayer::backgroundYOrigin, &FillLayer::setBackgroundYOrigin, Edge::Bottom);
break;
case CSSPropertyBackgroundSize:
case CSSPropertyWebkitBackgroundSize:
case CSSPropertyWebkitMaskSize:
- m_fillLayerPropertyWrapper = std::make_unique<FillLayerPropertyWrapper<LengthSize>>(property, &FillLayer::sizeLength, &FillLayer::setSizeLength);
+ m_fillLayerPropertyWrapper = makeUnique<FillLayerPropertyWrapper<LengthSize>>(property, &FillLayer::sizeLength, &FillLayer::setSizeLength);
break;
case CSSPropertyBackgroundImage:
- m_fillLayerPropertyWrapper = std::make_unique<FillLayerStyleImagePropertyWrapper>(property, &FillLayer::image, &FillLayer::setImage);
+ m_fillLayerPropertyWrapper = makeUnique<FillLayerStyleImagePropertyWrapper>(property, &FillLayer::image, &FillLayer::setImage);
break;
default:
break;
@@ -1770,7 +1770,7 @@
longhandWrappers.uncheckedAppend(m_propertyWrappers[wrapperIndex].get());
}
- m_propertyWrappers.uncheckedAppend(std::make_unique<ShorthandPropertyWrapper>(propertyID, WTFMove(longhandWrappers)));
+ m_propertyWrappers.uncheckedAppend(makeUnique<ShorthandPropertyWrapper>(propertyID, WTFMove(longhandWrappers)));
indexFromPropertyID(propertyID) = animatableLonghandPropertiesCount + i;
}
}
diff --git a/Source/WebCore/page/csp/ContentSecurityPolicy.cpp b/Source/WebCore/page/csp/ContentSecurityPolicy.cpp
index 7047e83..8f0f6bf 100644
--- a/Source/WebCore/page/csp/ContentSecurityPolicy.cpp
+++ b/Source/WebCore/page/csp/ContentSecurityPolicy.cpp
@@ -238,7 +238,7 @@
void ContentSecurityPolicy::updateSourceSelf(const SecurityOrigin& securityOrigin)
{
m_selfSourceProtocol = securityOrigin.protocol();
- m_selfSource = std::make_unique<ContentSecurityPolicySource>(*this, m_selfSourceProtocol, securityOrigin.host(), securityOrigin.port(), emptyString(), false, false);
+ m_selfSource = makeUnique<ContentSecurityPolicySource>(*this, m_selfSourceProtocol, securityOrigin.host(), securityOrigin.port(), emptyString(), false, false);
}
void ContentSecurityPolicy::applyPolicyToScriptExecutionContext()
diff --git a/Source/WebCore/page/csp/ContentSecurityPolicyDirectiveList.cpp b/Source/WebCore/page/csp/ContentSecurityPolicyDirectiveList.cpp
index ddbd8cd..c0156dd 100644
--- a/Source/WebCore/page/csp/ContentSecurityPolicyDirectiveList.cpp
+++ b/Source/WebCore/page/csp/ContentSecurityPolicyDirectiveList.cpp
@@ -123,7 +123,7 @@
std::unique_ptr<ContentSecurityPolicyDirectiveList> ContentSecurityPolicyDirectiveList::create(ContentSecurityPolicy& policy, const String& header, ContentSecurityPolicyHeaderType type, ContentSecurityPolicy::PolicyFrom from)
{
- auto directives = std::make_unique<ContentSecurityPolicyDirectiveList>(policy, type);
+ auto directives = makeUnique<ContentSecurityPolicyDirectiveList>(policy, type);
directives->parse(header, from);
if (!checkEval(directives->operativeDirective(directives->m_scriptSrc.get()))) {
@@ -452,7 +452,7 @@
m_policy.reportDuplicateDirective(name);
return;
}
- directive = std::make_unique<CSPDirectiveType>(*this, name, value);
+ directive = makeUnique<CSPDirectiveType>(*this, name, value);
}
void ContentSecurityPolicyDirectiveList::applySandboxPolicy(const String& name, const String& sandboxPolicy)
diff --git a/Source/WebCore/page/linux/ResourceUsageOverlayLinux.cpp b/Source/WebCore/page/linux/ResourceUsageOverlayLinux.cpp
index 8b87bca..c07b127 100644
--- a/Source/WebCore/page/linux/ResourceUsageOverlayLinux.cpp
+++ b/Source/WebCore/page/linux/ResourceUsageOverlayLinux.cpp
@@ -133,7 +133,7 @@
void ResourceUsageOverlay::platformInitialize()
{
- m_overlayPainter = std::make_unique<ResourceUsageOverlayPainter>(*this);
+ m_overlayPainter = makeUnique<ResourceUsageOverlayPainter>(*this);
m_paintLayer = GraphicsLayer::create(overlay().page()->chrome().client().graphicsLayerFactory(), *m_overlayPainter);
m_paintLayer->setAnchorPoint(FloatPoint3D());
m_paintLayer->setSize({ normalWidth, normalHeight });
diff --git a/Source/WebCore/page/mac/PageMac.mm b/Source/WebCore/page/mac/PageMac.mm
index d7adffd..0863ad2 100644
--- a/Source/WebCore/page/mac/PageMac.mm
+++ b/Source/WebCore/page/mac/PageMac.mm
@@ -90,7 +90,7 @@
void Page::addSchedulePair(Ref<SchedulePair>&& pair)
{
if (!m_scheduledRunLoopPairs)
- m_scheduledRunLoopPairs = std::make_unique<SchedulePairHashSet>();
+ m_scheduledRunLoopPairs = makeUnique<SchedulePairHashSet>();
m_scheduledRunLoopPairs->add(pair.ptr());
for (Frame* frame = &m_mainFrame.get(); frame; frame = frame->tree().traverseNext()) {
diff --git a/Source/WebCore/page/scrolling/AsyncScrollingCoordinator.cpp b/Source/WebCore/page/scrolling/AsyncScrollingCoordinator.cpp
index 306cfed..00af394 100644
--- a/Source/WebCore/page/scrolling/AsyncScrollingCoordinator.cpp
+++ b/Source/WebCore/page/scrolling/AsyncScrollingCoordinator.cpp
@@ -59,7 +59,7 @@
AsyncScrollingCoordinator::AsyncScrollingCoordinator(Page* page)
: ScrollingCoordinator(page)
, m_updateNodeScrollPositionTimer(*this, &AsyncScrollingCoordinator::updateScrollPositionAfterAsyncScrollTimerFired)
- , m_scrollingStateTree(std::make_unique<ScrollingStateTree>(this))
+ , m_scrollingStateTree(makeUnique<ScrollingStateTree>(this))
{
}
diff --git a/Source/WebCore/page/scrolling/ScrollingMomentumCalculator.cpp b/Source/WebCore/page/scrolling/ScrollingMomentumCalculator.cpp
index 7640d55..c890f9e 100644
--- a/Source/WebCore/page/scrolling/ScrollingMomentumCalculator.cpp
+++ b/Source/WebCore/page/scrolling/ScrollingMomentumCalculator.cpp
@@ -71,7 +71,7 @@
std::unique_ptr<ScrollingMomentumCalculator> ScrollingMomentumCalculator::create(const FloatSize& viewportSize, const FloatSize& contentSize, const FloatPoint& initialOffset, const FloatSize& initialDelta, const FloatSize& initialVelocity)
{
- return std::make_unique<BasicScrollingMomentumCalculator>(viewportSize, contentSize, initialOffset, initialDelta, initialVelocity);
+ return makeUnique<BasicScrollingMomentumCalculator>(viewportSize, contentSize, initialOffset, initialDelta, initialVelocity);
}
void ScrollingMomentumCalculator::setPlatformMomentumScrollingPredictionEnabled(bool)
diff --git a/Source/WebCore/page/scrolling/ScrollingStateNode.cpp b/Source/WebCore/page/scrolling/ScrollingStateNode.cpp
index 9682d2c..be57c9b 100644
--- a/Source/WebCore/page/scrolling/ScrollingStateNode.cpp
+++ b/Source/WebCore/page/scrolling/ScrollingStateNode.cpp
@@ -101,7 +101,7 @@
childNode->setParent(this);
if (!m_children)
- m_children = std::make_unique<Vector<RefPtr<ScrollingStateNode>>>();
+ m_children = makeUnique<Vector<RefPtr<ScrollingStateNode>>>();
m_children->append(WTFMove(childNode));
setPropertyChanged(ChildNodes);
}
@@ -112,7 +112,7 @@
if (!m_children) {
ASSERT(!index);
- m_children = std::make_unique<Vector<RefPtr<ScrollingStateNode>>>();
+ m_children = makeUnique<Vector<RefPtr<ScrollingStateNode>>>();
}
if (index > m_children->size()) {
diff --git a/Source/WebCore/page/scrolling/ScrollingStateTree.cpp b/Source/WebCore/page/scrolling/ScrollingStateTree.cpp
index f61e28e0..7157e16 100644
--- a/Source/WebCore/page/scrolling/ScrollingStateTree.cpp
+++ b/Source/WebCore/page/scrolling/ScrollingStateTree.cpp
@@ -293,7 +293,7 @@
}
// This function clones and resets the current state tree, but leaves the tree structure intact.
- std::unique_ptr<ScrollingStateTree> treeStateClone = std::make_unique<ScrollingStateTree>();
+ std::unique_ptr<ScrollingStateTree> treeStateClone = makeUnique<ScrollingStateTree>();
treeStateClone->setPreferredLayerRepresentation(preferredLayerRepresentation);
if (m_rootStateNode)
diff --git a/Source/WebCore/page/scrolling/ScrollingTreeNode.cpp b/Source/WebCore/page/scrolling/ScrollingTreeNode.cpp
index ea74e2c..729615a 100644
--- a/Source/WebCore/page/scrolling/ScrollingTreeNode.cpp
+++ b/Source/WebCore/page/scrolling/ScrollingTreeNode.cpp
@@ -50,7 +50,7 @@
childNode->setParent(this);
if (!m_children)
- m_children = std::make_unique<Vector<RefPtr<ScrollingTreeNode>>>();
+ m_children = makeUnique<Vector<RefPtr<ScrollingTreeNode>>>();
m_children->append(WTFMove(childNode));
}
diff --git a/Source/WebCore/page/scrolling/mac/ScrollingMomentumCalculatorMac.mm b/Source/WebCore/page/scrolling/mac/ScrollingMomentumCalculatorMac.mm
index 1c7ab76..b43ea99 100644
--- a/Source/WebCore/page/scrolling/mac/ScrollingMomentumCalculatorMac.mm
+++ b/Source/WebCore/page/scrolling/mac/ScrollingMomentumCalculatorMac.mm
@@ -36,7 +36,7 @@
std::unique_ptr<ScrollingMomentumCalculator> ScrollingMomentumCalculator::create(const FloatSize& viewportSize, const FloatSize& contentSize, const FloatPoint& initialOffset, const FloatSize& initialDelta, const FloatSize& initialVelocity)
{
- return std::make_unique<ScrollingMomentumCalculatorMac>(viewportSize, contentSize, initialOffset, initialDelta, initialVelocity);
+ return makeUnique<ScrollingMomentumCalculatorMac>(viewportSize, contentSize, initialOffset, initialDelta, initialVelocity);
}
void ScrollingMomentumCalculator::setPlatformMomentumScrollingPredictionEnabled(bool enabled)
diff --git a/Source/WebCore/platform/Length.cpp b/Source/WebCore/platform/Length.cpp
index 4ff9804..3fc431a 100644
--- a/Source/WebCore/platform/Length.cpp
+++ b/Source/WebCore/platform/Length.cpp
@@ -288,9 +288,9 @@
// Turn this into a calc expression: calc(100% - length)
Vector<std::unique_ptr<CalcExpressionNode>> lengths;
lengths.reserveInitialCapacity(2);
- lengths.uncheckedAppend(std::make_unique<CalcExpressionLength>(Length(100, Percent)));
- lengths.uncheckedAppend(std::make_unique<CalcExpressionLength>(length));
- auto op = std::make_unique<CalcExpressionOperation>(WTFMove(lengths), CalcOperator::Subtract);
+ lengths.uncheckedAppend(makeUnique<CalcExpressionLength>(Length(100, Percent)));
+ lengths.uncheckedAppend(makeUnique<CalcExpressionLength>(length));
+ auto op = makeUnique<CalcExpressionOperation>(WTFMove(lengths), CalcOperator::Subtract);
return Length(CalculationValue::create(WTFMove(op), ValueRangeAll));
}
@@ -302,7 +302,7 @@
if (progress >= 1.0)
return to;
- auto blend = std::make_unique<CalcExpressionBlendLength>(from, to, progress);
+ auto blend = makeUnique<CalcExpressionBlendLength>(from, to, progress);
return Length(CalculationValue::create(WTFMove(blend), ValueRangeAll));
}
diff --git a/Source/WebCore/platform/RemoteCommandListener.cpp b/Source/WebCore/platform/RemoteCommandListener.cpp
index 552b12f..8e35e30 100644
--- a/Source/WebCore/platform/RemoteCommandListener.cpp
+++ b/Source/WebCore/platform/RemoteCommandListener.cpp
@@ -31,7 +31,7 @@
#if (!PLATFORM(IOS_FAMILY) && !PLATFORM(MAC)) || !HAVE(MEDIA_PLAYER)
std::unique_ptr<RemoteCommandListener> RemoteCommandListener::create(RemoteCommandListenerClient& client)
{
- return std::make_unique<RemoteCommandListener>(client);
+ return makeUnique<RemoteCommandListener>(client);
}
#endif
diff --git a/Source/WebCore/platform/ScrollAnimator.cpp b/Source/WebCore/platform/ScrollAnimator.cpp
index d9154d9..f8edc88 100644
--- a/Source/WebCore/platform/ScrollAnimator.cpp
+++ b/Source/WebCore/platform/ScrollAnimator.cpp
@@ -43,7 +43,7 @@
#if !ENABLE(SMOOTH_SCROLLING) && !PLATFORM(IOS_FAMILY) && !PLATFORM(MAC)
std::unique_ptr<ScrollAnimator> ScrollAnimator::create(ScrollableArea& scrollableArea)
{
- return std::make_unique<ScrollAnimator>(scrollableArea);
+ return makeUnique<ScrollAnimator>(scrollableArea);
}
#endif
diff --git a/Source/WebCore/platform/ScrollableArea.cpp b/Source/WebCore/platform/ScrollableArea.cpp
index c62ad834..96d0f30 100644
--- a/Source/WebCore/platform/ScrollableArea.cpp
+++ b/Source/WebCore/platform/ScrollableArea.cpp
@@ -80,7 +80,7 @@
{
if (!m_scrollAnimator) {
if (usesMockScrollAnimator()) {
- m_scrollAnimator = std::make_unique<ScrollAnimatorMock>(const_cast<ScrollableArea&>(*this), [this](const String& message) {
+ m_scrollAnimator = makeUnique<ScrollAnimatorMock>(const_cast<ScrollableArea&>(*this), [this](const String& message) {
logMockScrollAnimatorMessage(message);
});
} else
@@ -435,7 +435,7 @@
ScrollSnapOffsetsInfo<LayoutUnit>& ScrollableArea::ensureSnapOffsetsInfo()
{
if (!m_snapOffsetsInfo)
- m_snapOffsetsInfo = std::make_unique<ScrollSnapOffsetsInfo<LayoutUnit>>();
+ m_snapOffsetsInfo = makeUnique<ScrollSnapOffsetsInfo<LayoutUnit>>();
return *m_snapOffsetsInfo;
}
diff --git a/Source/WebCore/platform/ThreadGlobalData.cpp b/Source/WebCore/platform/ThreadGlobalData.cpp
index a28010e..27a7364 100644
--- a/Source/WebCore/platform/ThreadGlobalData.cpp
+++ b/Source/WebCore/platform/ThreadGlobalData.cpp
@@ -40,14 +40,14 @@
namespace WebCore {
ThreadGlobalData::ThreadGlobalData()
- : m_cachedResourceRequestInitiators(std::make_unique<CachedResourceRequestInitiators>())
+ : m_cachedResourceRequestInitiators(makeUnique<CachedResourceRequestInitiators>())
, m_eventNames(EventNames::create())
- , m_threadTimers(std::make_unique<ThreadTimers>())
- , m_qualifiedNameCache(std::make_unique<QualifiedNameCache>())
+ , m_threadTimers(makeUnique<ThreadTimers>())
+ , m_qualifiedNameCache(makeUnique<QualifiedNameCache>())
#ifndef NDEBUG
, m_isMainThread(isMainThread())
#endif
- , m_cachedConverterICU(std::make_unique<ICUConverterWrapper>())
+ , m_cachedConverterICU(makeUnique<ICUConverterWrapper>())
{
// This constructor will have been called on the main thread before being called on
// any other thread, and is only called once per thread - this makes this a convenient
diff --git a/Source/WebCore/platform/audio/AudioBus.cpp b/Source/WebCore/platform/audio/AudioBus.cpp
index 2f892d6..e70d46d 100644
--- a/Source/WebCore/platform/audio/AudioBus.cpp
+++ b/Source/WebCore/platform/audio/AudioBus.cpp
@@ -64,7 +64,7 @@
m_channels.reserveInitialCapacity(numberOfChannels);
for (unsigned i = 0; i < numberOfChannels; ++i) {
- auto channel = allocate ? std::make_unique<AudioChannel>(length) : std::make_unique<AudioChannel>(nullptr, length);
+ auto channel = allocate ? makeUnique<AudioChannel>(length) : makeUnique<AudioChannel>(nullptr, length);
m_channels.uncheckedAppend(WTFMove(channel));
}
@@ -489,7 +489,7 @@
if (framesToDezipper) {
if (!m_dezipperGainValues.get() || m_dezipperGainValues->size() < framesToDezipper)
- m_dezipperGainValues = std::make_unique<AudioFloatArray>(framesToDezipper);
+ m_dezipperGainValues = makeUnique<AudioFloatArray>(framesToDezipper);
float* gainValues = m_dezipperGainValues->data();
for (unsigned i = 0; i < framesToDezipper; ++i) {
diff --git a/Source/WebCore/platform/audio/AudioChannel.h b/Source/WebCore/platform/audio/AudioChannel.h
index 847e52a..7b9893d 100644
--- a/Source/WebCore/platform/audio/AudioChannel.h
+++ b/Source/WebCore/platform/audio/AudioChannel.h
@@ -57,7 +57,7 @@
, m_rawPointer(0)
, m_silent(true)
{
- m_memBuffer = std::make_unique<AudioFloatArray>(length);
+ m_memBuffer = makeUnique<AudioFloatArray>(length);
}
// A "blank" audio channel -- must call set() before it's useful...
diff --git a/Source/WebCore/platform/audio/AudioResampler.cpp b/Source/WebCore/platform/audio/AudioResampler.cpp
index 86906ba..284c054 100644
--- a/Source/WebCore/platform/audio/AudioResampler.cpp
+++ b/Source/WebCore/platform/audio/AudioResampler.cpp
@@ -39,7 +39,7 @@
AudioResampler::AudioResampler()
: m_rate(1.0)
{
- m_kernels.append(std::make_unique<AudioResamplerKernel>(this));
+ m_kernels.append(makeUnique<AudioResamplerKernel>(this));
m_sourceBus = AudioBus::create(1, 0, false);
}
@@ -47,7 +47,7 @@
: m_rate(1.0)
{
for (unsigned i = 0; i < numberOfChannels; ++i)
- m_kernels.append(std::make_unique<AudioResamplerKernel>(this));
+ m_kernels.append(makeUnique<AudioResamplerKernel>(this));
m_sourceBus = AudioBus::create(numberOfChannels, 0, false);
}
@@ -61,7 +61,7 @@
// First deal with adding or removing kernels.
if (numberOfChannels > currentSize) {
for (unsigned i = currentSize; i < numberOfChannels; ++i)
- m_kernels.append(std::make_unique<AudioResamplerKernel>(this));
+ m_kernels.append(makeUnique<AudioResamplerKernel>(this));
} else
m_kernels.resize(numberOfChannels);
diff --git a/Source/WebCore/platform/audio/DynamicsCompressor.cpp b/Source/WebCore/platform/audio/DynamicsCompressor.cpp
index b25518d..513799a 100644
--- a/Source/WebCore/platform/audio/DynamicsCompressor.cpp
+++ b/Source/WebCore/platform/audio/DynamicsCompressor.cpp
@@ -271,8 +271,8 @@
m_preFilterPacks.clear();
m_postFilterPacks.clear();
for (unsigned i = 0; i < numberOfChannels; ++i) {
- m_preFilterPacks.append(std::make_unique<ZeroPoleFilterPack4>());
- m_postFilterPacks.append(std::make_unique<ZeroPoleFilterPack4>());
+ m_preFilterPacks.append(makeUnique<ZeroPoleFilterPack4>());
+ m_postFilterPacks.append(makeUnique<ZeroPoleFilterPack4>());
}
m_sourceChannels = makeUniqueArray<const float*>(numberOfChannels);
diff --git a/Source/WebCore/platform/audio/DynamicsCompressorKernel.cpp b/Source/WebCore/platform/audio/DynamicsCompressorKernel.cpp
index 734b066..afedb7b 100644
--- a/Source/WebCore/platform/audio/DynamicsCompressorKernel.cpp
+++ b/Source/WebCore/platform/audio/DynamicsCompressorKernel.cpp
@@ -76,7 +76,7 @@
m_preDelayBuffers.clear();
for (unsigned i = 0; i < numberOfChannels; ++i)
- m_preDelayBuffers.append(std::make_unique<AudioFloatArray>(MaxPreDelayFrames));
+ m_preDelayBuffers.append(makeUnique<AudioFloatArray>(MaxPreDelayFrames));
}
void DynamicsCompressorKernel::setPreDelayTime(float preDelayTime)
diff --git a/Source/WebCore/platform/audio/FFTFrame.cpp b/Source/WebCore/platform/audio/FFTFrame.cpp
index 4c02b69..4c15206 100644
--- a/Source/WebCore/platform/audio/FFTFrame.cpp
+++ b/Source/WebCore/platform/audio/FFTFrame.cpp
@@ -54,7 +54,7 @@
std::unique_ptr<FFTFrame> FFTFrame::createInterpolatedFrame(const FFTFrame& frame1, const FFTFrame& frame2, double x)
{
- auto newFrame = std::make_unique<FFTFrame>(frame1.fftSize());
+ auto newFrame = makeUnique<FFTFrame>(frame1.fftSize());
newFrame->interpolateFrequencyComponents(frame1, frame2, x);
diff --git a/Source/WebCore/platform/audio/HRTFDatabaseLoader.cpp b/Source/WebCore/platform/audio/HRTFDatabaseLoader.cpp
index f45be84..a474a70 100644
--- a/Source/WebCore/platform/audio/HRTFDatabaseLoader.cpp
+++ b/Source/WebCore/platform/audio/HRTFDatabaseLoader.cpp
@@ -85,7 +85,7 @@
ASSERT(!isMainThread());
if (!m_hrtfDatabase.get()) {
// Load the default HRTF database.
- m_hrtfDatabase = std::make_unique<HRTFDatabase>(m_databaseSampleRate);
+ m_hrtfDatabase = makeUnique<HRTFDatabase>(m_databaseSampleRate);
}
}
diff --git a/Source/WebCore/platform/audio/HRTFElevation.cpp b/Source/WebCore/platform/audio/HRTFElevation.cpp
index c84ab97..605232c 100644
--- a/Source/WebCore/platform/audio/HRTFElevation.cpp
+++ b/Source/WebCore/platform/audio/HRTFElevation.cpp
@@ -244,8 +244,8 @@
if (!isElevationGood)
return nullptr;
- auto kernelListL = std::make_unique<HRTFKernelList>(NumberOfTotalAzimuths);
- auto kernelListR = std::make_unique<HRTFKernelList>(NumberOfTotalAzimuths);
+ auto kernelListL = makeUnique<HRTFKernelList>(NumberOfTotalAzimuths);
+ auto kernelListR = makeUnique<HRTFKernelList>(NumberOfTotalAzimuths);
// Load convolution kernels from HRTF files.
int interpolatedIndex = 0;
@@ -274,7 +274,7 @@
}
}
- return std::make_unique<HRTFElevation>(WTFMove(kernelListL), WTFMove(kernelListR), elevation, sampleRate);
+ return makeUnique<HRTFElevation>(WTFMove(kernelListL), WTFMove(kernelListR), elevation, sampleRate);
}
std::unique_ptr<HRTFElevation> HRTFElevation::createByInterpolatingSlices(HRTFElevation* hrtfElevation1, HRTFElevation* hrtfElevation2, float x, float sampleRate)
@@ -285,8 +285,8 @@
ASSERT(x >= 0.0 && x < 1.0);
- auto kernelListL = std::make_unique<HRTFKernelList>(NumberOfTotalAzimuths);
- auto kernelListR = std::make_unique<HRTFKernelList>(NumberOfTotalAzimuths);
+ auto kernelListL = makeUnique<HRTFKernelList>(NumberOfTotalAzimuths);
+ auto kernelListR = makeUnique<HRTFKernelList>(NumberOfTotalAzimuths);
HRTFKernelList* kernelListL1 = hrtfElevation1->kernelListL();
HRTFKernelList* kernelListR1 = hrtfElevation1->kernelListR();
@@ -302,7 +302,7 @@
// Interpolate elevation angle.
double angle = (1.0 - x) * hrtfElevation1->elevationAngle() + x * hrtfElevation2->elevationAngle();
- return std::make_unique<HRTFElevation>(WTFMove(kernelListL), WTFMove(kernelListR), static_cast<int>(angle), sampleRate);
+ return makeUnique<HRTFElevation>(WTFMove(kernelListL), WTFMove(kernelListR), static_cast<int>(angle), sampleRate);
}
void HRTFElevation::getKernelsFromAzimuth(double azimuthBlend, unsigned azimuthIndex, HRTFKernel* &kernelL, HRTFKernel* &kernelR, double& frameDelayL, double& frameDelayR)
diff --git a/Source/WebCore/platform/audio/HRTFKernel.cpp b/Source/WebCore/platform/audio/HRTFKernel.cpp
index edf6c60..3755216 100644
--- a/Source/WebCore/platform/audio/HRTFKernel.cpp
+++ b/Source/WebCore/platform/audio/HRTFKernel.cpp
@@ -92,7 +92,7 @@
}
}
- m_fftFrame = std::make_unique<FFTFrame>(fftSize);
+ m_fftFrame = makeUnique<FFTFrame>(fftSize);
m_fftFrame->doPaddedFFT(impulseResponse, truncatedResponseLength);
}
@@ -103,7 +103,7 @@
std::unique_ptr<AudioChannel> HRTFKernel::createImpulseResponse()
{
- auto channel = std::make_unique<AudioChannel>(fftSize());
+ auto channel = makeUnique<AudioChannel>(fftSize());
FFTFrame fftFrame(*m_fftFrame);
// Add leading delay back in.
diff --git a/Source/WebCore/platform/audio/MultiChannelResampler.cpp b/Source/WebCore/platform/audio/MultiChannelResampler.cpp
index bbbf164..5bf9ab9 100644
--- a/Source/WebCore/platform/audio/MultiChannelResampler.cpp
+++ b/Source/WebCore/platform/audio/MultiChannelResampler.cpp
@@ -97,7 +97,7 @@
{
// Create each channel's resampler.
for (unsigned channelIndex = 0; channelIndex < numberOfChannels; ++channelIndex)
- m_kernels.append(std::make_unique<SincResampler>(scaleFactor));
+ m_kernels.append(makeUnique<SincResampler>(scaleFactor));
}
void MultiChannelResampler::process(AudioSourceProvider* provider, AudioBus* destination, size_t framesToProcess)
diff --git a/Source/WebCore/platform/audio/Panner.cpp b/Source/WebCore/platform/audio/Panner.cpp
index ac7286a..40b9d01 100644
--- a/Source/WebCore/platform/audio/Panner.cpp
+++ b/Source/WebCore/platform/audio/Panner.cpp
@@ -43,11 +43,11 @@
switch (model) {
case PanningModelType::Equalpower:
- panner = std::make_unique<EqualPowerPanner>(sampleRate);
+ panner = makeUnique<EqualPowerPanner>(sampleRate);
break;
case PanningModelType::HRTF:
- panner = std::make_unique<HRTFPanner>(sampleRate, databaseLoader);
+ panner = makeUnique<HRTFPanner>(sampleRate, databaseLoader);
break;
}
diff --git a/Source/WebCore/platform/audio/PlatformMediaSession.cpp b/Source/WebCore/platform/audio/PlatformMediaSession.cpp
index e02394a..c8bd64a 100644
--- a/Source/WebCore/platform/audio/PlatformMediaSession.cpp
+++ b/Source/WebCore/platform/audio/PlatformMediaSession.cpp
@@ -109,7 +109,7 @@
std::unique_ptr<PlatformMediaSession> PlatformMediaSession::create(PlatformMediaSessionClient& client)
{
- return std::make_unique<PlatformMediaSession>(client);
+ return makeUnique<PlatformMediaSession>(client);
}
PlatformMediaSession::PlatformMediaSession(PlatformMediaSessionClient& client)
diff --git a/Source/WebCore/platform/audio/Reverb.cpp b/Source/WebCore/platform/audio/Reverb.cpp
index 3043fc8..8a6755c 100644
--- a/Source/WebCore/platform/audio/Reverb.cpp
+++ b/Source/WebCore/platform/audio/Reverb.cpp
@@ -117,7 +117,7 @@
for (size_t i = 0; i < numResponseChannels; ++i) {
AudioChannel* channel = impulseResponseBuffer->channel(i);
- m_convolvers.append(std::make_unique<ReverbConvolver>(channel, renderSliceSize, maxFFTSize, convolverRenderPhase, useBackgroundThreads));
+ m_convolvers.append(makeUnique<ReverbConvolver>(channel, renderSliceSize, maxFFTSize, convolverRenderPhase, useBackgroundThreads));
convolverRenderPhase += renderSliceSize;
}
diff --git a/Source/WebCore/platform/audio/ReverbConvolver.cpp b/Source/WebCore/platform/audio/ReverbConvolver.cpp
index 145df81..a9c935c 100644
--- a/Source/WebCore/platform/audio/ReverbConvolver.cpp
+++ b/Source/WebCore/platform/audio/ReverbConvolver.cpp
@@ -94,7 +94,7 @@
bool useDirectConvolver = !stageOffset;
- auto stage = std::make_unique<ReverbConvolverStage>(response, totalResponseLength, reverbTotalLatency, stageOffset, stageSize, fftSize, renderPhase, renderSliceSize, &m_accumulationBuffer, useDirectConvolver);
+ auto stage = makeUnique<ReverbConvolverStage>(response, totalResponseLength, reverbTotalLatency, stageOffset, stageSize, fftSize, renderPhase, renderSliceSize, &m_accumulationBuffer, useDirectConvolver);
bool isBackgroundStage = false;
diff --git a/Source/WebCore/platform/audio/ReverbConvolverStage.cpp b/Source/WebCore/platform/audio/ReverbConvolverStage.cpp
index 0fde421..4ff953b 100644
--- a/Source/WebCore/platform/audio/ReverbConvolverStage.cpp
+++ b/Source/WebCore/platform/audio/ReverbConvolverStage.cpp
@@ -55,16 +55,16 @@
ASSERT(accumulationBuffer);
if (!m_directMode) {
- m_fftKernel = std::make_unique<FFTFrame>(fftSize);
+ m_fftKernel = makeUnique<FFTFrame>(fftSize);
m_fftKernel->doPaddedFFT(impulseResponse + stageOffset, stageLength);
- m_fftConvolver = std::make_unique<FFTConvolver>(fftSize);
+ m_fftConvolver = makeUnique<FFTConvolver>(fftSize);
} else {
ASSERT(!stageOffset);
ASSERT(stageLength <= fftSize / 2);
- m_directKernel = std::make_unique<AudioFloatArray>(fftSize / 2);
+ m_directKernel = makeUnique<AudioFloatArray>(fftSize / 2);
m_directKernel->copyToRange(impulseResponse, 0, stageLength);
- m_directConvolver = std::make_unique<DirectConvolver>(renderSliceSize);
+ m_directConvolver = makeUnique<DirectConvolver>(renderSliceSize);
}
m_temporaryBuffer.allocate(renderSliceSize);
diff --git a/Source/WebCore/platform/audio/gstreamer/AudioDestinationGStreamer.cpp b/Source/WebCore/platform/audio/gstreamer/AudioDestinationGStreamer.cpp
index 5bf8fda..1a5495f 100644
--- a/Source/WebCore/platform/audio/gstreamer/AudioDestinationGStreamer.cpp
+++ b/Source/WebCore/platform/audio/gstreamer/AudioDestinationGStreamer.cpp
@@ -62,7 +62,7 @@
if (numberOfOutputChannels != 2)
LOG(Media, "AudioDestination::create(%u, %u, %f) - unhandled output channels", numberOfInputChannels, numberOfOutputChannels, sampleRate);
- return std::make_unique<AudioDestinationGStreamer>(callback, sampleRate);
+ return makeUnique<AudioDestinationGStreamer>(callback, sampleRate);
}
float AudioDestination::hardwareSampleRate()
diff --git a/Source/WebCore/platform/audio/ios/AudioDestinationIOS.cpp b/Source/WebCore/platform/audio/ios/AudioDestinationIOS.cpp
index 8af877e..4bde7e4 100644
--- a/Source/WebCore/platform/audio/ios/AudioDestinationIOS.cpp
+++ b/Source/WebCore/platform/audio/ios/AudioDestinationIOS.cpp
@@ -80,7 +80,7 @@
if (numberOfOutputChannels != 2)
LOG(Media, "AudioDestination::create(%u, %u, %f) - unhandled output channels", numberOfInputChannels, numberOfOutputChannels, sampleRate);
- return std::make_unique<AudioDestinationIOS>(callback, sampleRate);
+ return makeUnique<AudioDestinationIOS>(callback, sampleRate);
}
float AudioDestination::hardwareSampleRate()
diff --git a/Source/WebCore/platform/audio/ios/AudioSessionIOS.mm b/Source/WebCore/platform/audio/ios/AudioSessionIOS.mm
index 4e2a888..6398240 100644
--- a/Source/WebCore/platform/audio/ios/AudioSessionIOS.mm
+++ b/Source/WebCore/platform/audio/ios/AudioSessionIOS.mm
@@ -72,7 +72,7 @@
}
AudioSession::AudioSession()
- : m_private(std::make_unique<AudioSessionPrivate>(this))
+ : m_private(makeUnique<AudioSessionPrivate>(this))
{
}
diff --git a/Source/WebCore/platform/audio/mac/AudioDestinationMac.cpp b/Source/WebCore/platform/audio/mac/AudioDestinationMac.cpp
index 764a347..9fe64ba 100644
--- a/Source/WebCore/platform/audio/mac/AudioDestinationMac.cpp
+++ b/Source/WebCore/platform/audio/mac/AudioDestinationMac.cpp
@@ -61,7 +61,7 @@
if (numberOfOutputChannels != 2)
LOG(Media, "AudioDestination::create(%u, %u, %f) - unhandled output channels", numberOfInputChannels, numberOfOutputChannels, sampleRate);
- return std::make_unique<AudioDestinationMac>(callback, sampleRate);
+ return makeUnique<AudioDestinationMac>(callback, sampleRate);
}
float AudioDestination::hardwareSampleRate()
diff --git a/Source/WebCore/platform/audio/mac/AudioSampleDataSource.mm b/Source/WebCore/platform/audio/mac/AudioSampleDataSource.mm
index 77d4316..41afe39 100644
--- a/Source/WebCore/platform/audio/mac/AudioSampleDataSource.mm
+++ b/Source/WebCore/platform/audio/mac/AudioSampleDataSource.mm
@@ -108,7 +108,7 @@
{
ASSERT(format.sampleRate() >= 0);
- m_inputDescription = std::make_unique<CAAudioStreamDescription>(format);
+ m_inputDescription = makeUnique<CAAudioStreamDescription>(format);
if (m_outputDescription)
return setupConverter();
@@ -120,9 +120,9 @@
ASSERT(m_inputDescription);
ASSERT(format.sampleRate() >= 0);
- m_outputDescription = std::make_unique<CAAudioStreamDescription>(format);
+ m_outputDescription = makeUnique<CAAudioStreamDescription>(format);
if (!m_ringBuffer)
- m_ringBuffer = std::make_unique<CARingBuffer>();
+ m_ringBuffer = makeUnique<CARingBuffer>();
m_ringBuffer->allocate(format, static_cast<size_t>(m_maximumSampleCount));
m_scratchBuffer = AudioSampleBufferList::create(m_outputDescription->streamDescription(), m_maximumSampleCount);
diff --git a/Source/WebCore/platform/audio/mac/AudioSessionMac.cpp b/Source/WebCore/platform/audio/mac/AudioSessionMac.cpp
index 7f6ef9d..cc04f0b 100644
--- a/Source/WebCore/platform/audio/mac/AudioSessionMac.cpp
+++ b/Source/WebCore/platform/audio/mac/AudioSessionMac.cpp
@@ -62,7 +62,7 @@
};
AudioSession::AudioSession()
- : m_private(std::make_unique<AudioSessionPrivate>(isMuted()))
+ : m_private(makeUnique<AudioSessionPrivate>(isMuted()))
{
}
diff --git a/Source/WebCore/platform/cf/KeyedDecoderCF.cpp b/Source/WebCore/platform/cf/KeyedDecoderCF.cpp
index b9803bf..7a47f56 100644
--- a/Source/WebCore/platform/cf/KeyedDecoderCF.cpp
+++ b/Source/WebCore/platform/cf/KeyedDecoderCF.cpp
@@ -33,7 +33,7 @@
std::unique_ptr<KeyedDecoder> KeyedDecoder::decoder(const uint8_t* data, size_t size)
{
- return std::make_unique<KeyedDecoderCF>(data, size);
+ return makeUnique<KeyedDecoderCF>(data, size);
}
KeyedDecoderCF::KeyedDecoderCF(const uint8_t* data, size_t size)
diff --git a/Source/WebCore/platform/cf/KeyedEncoderCF.cpp b/Source/WebCore/platform/cf/KeyedEncoderCF.cpp
index 1a627ea..4473ec2 100644
--- a/Source/WebCore/platform/cf/KeyedEncoderCF.cpp
+++ b/Source/WebCore/platform/cf/KeyedEncoderCF.cpp
@@ -34,7 +34,7 @@
std::unique_ptr<KeyedEncoder> KeyedEncoder::encoder()
{
- return std::make_unique<KeyedEncoderCF>();
+ return makeUnique<KeyedEncoderCF>();
}
static RetainPtr<CFMutableDictionaryRef> createDictionary()
diff --git a/Source/WebCore/platform/cf/MainThreadSharedTimerCF.cpp b/Source/WebCore/platform/cf/MainThreadSharedTimerCF.cpp
index b689228..07a45ca 100644
--- a/Source/WebCore/platform/cf/MainThreadSharedTimerCF.cpp
+++ b/Source/WebCore/platform/cf/MainThreadSharedTimerCF.cpp
@@ -57,7 +57,7 @@
#if PLATFORM(MAC)
static PowerObserver* powerObserver;
if (!powerObserver)
- powerObserver = std::make_unique<PowerObserver>(restartSharedTimer).release();
+ powerObserver = makeUnique<PowerObserver>(restartSharedTimer).release();
#elif PLATFORM(IOS_FAMILY)
static bool registeredForApplicationNotification = false;
if (!registeredForApplicationNotification) {
diff --git a/Source/WebCore/platform/cocoa/NetworkExtensionContentFilter.mm b/Source/WebCore/platform/cocoa/NetworkExtensionContentFilter.mm
index 12ab321..05c5524 100644
--- a/Source/WebCore/platform/cocoa/NetworkExtensionContentFilter.mm
+++ b/Source/WebCore/platform/cocoa/NetworkExtensionContentFilter.mm
@@ -65,7 +65,7 @@
std::unique_ptr<NetworkExtensionContentFilter> NetworkExtensionContentFilter::create()
{
- return std::make_unique<NetworkExtensionContentFilter>();
+ return makeUnique<NetworkExtensionContentFilter>();
}
void NetworkExtensionContentFilter::initialize(const URL* url)
diff --git a/Source/WebCore/platform/cocoa/ParentalControlsContentFilter.mm b/Source/WebCore/platform/cocoa/ParentalControlsContentFilter.mm
index ae0bd20..0d2a621 100644
--- a/Source/WebCore/platform/cocoa/ParentalControlsContentFilter.mm
+++ b/Source/WebCore/platform/cocoa/ParentalControlsContentFilter.mm
@@ -50,7 +50,7 @@
std::unique_ptr<ParentalControlsContentFilter> ParentalControlsContentFilter::create()
{
- return std::make_unique<ParentalControlsContentFilter>();
+ return makeUnique<ParentalControlsContentFilter>();
}
static inline bool canHandleResponse(const ResourceResponse& response)
diff --git a/Source/WebCore/platform/cocoa/ScrollController.mm b/Source/WebCore/platform/cocoa/ScrollController.mm
index e8369c6..8fe38ad 100644
--- a/Source/WebCore/platform/cocoa/ScrollController.mm
+++ b/Source/WebCore/platform/cocoa/ScrollController.mm
@@ -620,7 +620,7 @@
if (snapPoints.isEmpty())
return;
- m_scrollSnapState = std::make_unique<ScrollSnapAnimatorState>();
+ m_scrollSnapState = makeUnique<ScrollSnapAnimatorState>();
}
if (snapPoints.isEmpty() && m_scrollSnapState->snapOffsetsForAxis(otherScrollEventAxis(axis)).isEmpty())
diff --git a/Source/WebCore/platform/encryptedmedia/clearkey/CDMClearKey.cpp b/Source/WebCore/platform/encryptedmedia/clearkey/CDMClearKey.cpp
index 503f97b..96c8512 100644
--- a/Source/WebCore/platform/encryptedmedia/clearkey/CDMClearKey.cpp
+++ b/Source/WebCore/platform/encryptedmedia/clearkey/CDMClearKey.cpp
@@ -303,7 +303,7 @@
#else
ASSERT(supportsKeySystem(keySystem));
#endif
- return std::make_unique<CDMPrivateClearKey>();
+ return makeUnique<CDMPrivateClearKey>();
}
bool CDMFactoryClearKey::supportsKeySystem(const String& keySystem)
diff --git a/Source/WebCore/platform/gamepad/cocoa/GameControllerGamepadProvider.mm b/Source/WebCore/platform/gamepad/cocoa/GameControllerGamepadProvider.mm
index f720cfd..5a6eb40 100644
--- a/Source/WebCore/platform/gamepad/cocoa/GameControllerGamepadProvider.mm
+++ b/Source/WebCore/platform/gamepad/cocoa/GameControllerGamepadProvider.mm
@@ -61,7 +61,7 @@
LOG(Gamepad, "GameControllerGamepadProvider controller %p added", controller);
unsigned index = indexForNewlyConnectedDevice();
- auto gamepad = std::make_unique<GameControllerGamepad>(controller, index);
+ auto gamepad = makeUnique<GameControllerGamepad>(controller, index);
if (m_gamepadVector.size() <= index)
m_gamepadVector.grow(index + 1);
diff --git a/Source/WebCore/platform/gamepad/mac/HIDGamepadProvider.cpp b/Source/WebCore/platform/gamepad/mac/HIDGamepadProvider.cpp
index 574391b..6d14b6b 100644
--- a/Source/WebCore/platform/gamepad/mac/HIDGamepadProvider.cpp
+++ b/Source/WebCore/platform/gamepad/mac/HIDGamepadProvider.cpp
@@ -187,7 +187,7 @@
LOG(Gamepad, "HIDGamepadProvider device %p added", device);
unsigned index = indexForNewlyConnectedDevice();
- std::unique_ptr<HIDGamepad> gamepad = std::make_unique<HIDGamepad>(device, index);
+ std::unique_ptr<HIDGamepad> gamepad = makeUnique<HIDGamepad>(device, index);
if (m_gamepadVector.size() <= index)
m_gamepadVector.grow(index + 1);
diff --git a/Source/WebCore/platform/generic/KeyedDecoderGeneric.cpp b/Source/WebCore/platform/generic/KeyedDecoderGeneric.cpp
index a4a30b5..0e59723 100644
--- a/Source/WebCore/platform/generic/KeyedDecoderGeneric.cpp
+++ b/Source/WebCore/platform/generic/KeyedDecoderGeneric.cpp
@@ -41,7 +41,7 @@
using Node = Variant<Vector<uint8_t>, bool, uint32_t, uint64_t, int32_t, int64_t, float, double, String, std::unique_ptr<Dictionary>, std::unique_ptr<Array>>;
template <typename T>
- void add(const String& key, T&& value) { m_map.add(key, std::make_unique<Node>(std::forward<T>(value))); }
+ void add(const String& key, T&& value) { m_map.add(key, makeUnique<Node>(std::forward<T>(value))); }
Node& get(const String& key) { return *m_map.get(key); }
private:
@@ -77,7 +77,7 @@
std::unique_ptr<KeyedDecoder> KeyedDecoder::decoder(const uint8_t* data, size_t size)
{
- return std::make_unique<KeyedDecoderGeneric>(data, size);
+ return makeUnique<KeyedDecoderGeneric>(data, size);
}
KeyedDecoderGeneric::KeyedDecoderGeneric(const uint8_t* data, size_t size)
@@ -86,7 +86,7 @@
KeyedEncoderGeneric::Type type;
String key;
- m_rootDictionary = std::make_unique<Dictionary>();
+ m_rootDictionary = makeUnique<Dictionary>();
m_dictionaryStack.append(m_rootDictionary.get());
bool ok = true;
@@ -144,7 +144,7 @@
if (!ok)
break;
auto* currentDictinary = m_dictionaryStack.last();
- auto newDictionary = std::make_unique<Dictionary>();
+ auto newDictionary = makeUnique<Dictionary>();
m_dictionaryStack.append(newDictionary.get());
currentDictinary->add(key, WTFMove(newDictionary));
break;
@@ -156,13 +156,13 @@
ok = readString(decoder, key);
if (!ok)
break;
- auto newArray = std::make_unique<Array>();
+ auto newArray = makeUnique<Array>();
m_arrayStack.append(newArray.get());
m_dictionaryStack.last()->add(key, WTFMove(newArray));
break;
}
case KeyedEncoderGeneric::Type::BeginArrayElement: {
- auto newDictionary = std::make_unique<Dictionary>();
+ auto newDictionary = makeUnique<Dictionary>();
m_dictionaryStack.append(newDictionary.get());
m_arrayStack.last()->append(WTFMove(newDictionary));
break;
diff --git a/Source/WebCore/platform/generic/KeyedEncoderGeneric.cpp b/Source/WebCore/platform/generic/KeyedEncoderGeneric.cpp
index 2f84104..21cc1eb 100644
--- a/Source/WebCore/platform/generic/KeyedEncoderGeneric.cpp
+++ b/Source/WebCore/platform/generic/KeyedEncoderGeneric.cpp
@@ -33,7 +33,7 @@
std::unique_ptr<KeyedEncoder> KeyedEncoder::encoder()
{
- return std::make_unique<KeyedEncoderGeneric>();
+ return makeUnique<KeyedEncoderGeneric>();
}
void KeyedEncoderGeneric::encodeString(const String& key)
diff --git a/Source/WebCore/platform/generic/ScrollAnimatorGeneric.cpp b/Source/WebCore/platform/generic/ScrollAnimatorGeneric.cpp
index 7ae65c5..208af7b 100644
--- a/Source/WebCore/platform/generic/ScrollAnimatorGeneric.cpp
+++ b/Source/WebCore/platform/generic/ScrollAnimatorGeneric.cpp
@@ -44,14 +44,14 @@
std::unique_ptr<ScrollAnimator> ScrollAnimator::create(ScrollableArea& scrollableArea)
{
- return std::make_unique<ScrollAnimatorGeneric>(scrollableArea);
+ return makeUnique<ScrollAnimatorGeneric>(scrollableArea);
}
ScrollAnimatorGeneric::ScrollAnimatorGeneric(ScrollableArea& scrollableArea)
: ScrollAnimator(scrollableArea)
, m_overlayScrollbarAnimationTimer(*this, &ScrollAnimatorGeneric::overlayScrollbarAnimationTimerFired)
{
- m_kineticAnimation = std::make_unique<ScrollAnimationKinetic>(m_scrollableArea, [this](FloatPoint&& position) {
+ m_kineticAnimation = makeUnique<ScrollAnimationKinetic>(m_scrollableArea, [this](FloatPoint&& position) {
#if ENABLE(SMOOTH_SCROLLING)
if (m_smoothAnimation)
m_smoothAnimation->setCurrentPosition(position);
@@ -73,7 +73,7 @@
if (m_smoothAnimation)
return;
- m_smoothAnimation = std::make_unique<ScrollAnimationSmooth>(m_scrollableArea, m_currentPosition, [this](FloatPoint&& position) {
+ m_smoothAnimation = makeUnique<ScrollAnimationSmooth>(m_scrollableArea, m_currentPosition, [this](FloatPoint&& position) {
updatePosition(WTFMove(position));
});
}
diff --git a/Source/WebCore/platform/glib/KeyedDecoderGlib.cpp b/Source/WebCore/platform/glib/KeyedDecoderGlib.cpp
index e7dd1914..361e9df 100644
--- a/Source/WebCore/platform/glib/KeyedDecoderGlib.cpp
+++ b/Source/WebCore/platform/glib/KeyedDecoderGlib.cpp
@@ -32,7 +32,7 @@
std::unique_ptr<KeyedDecoder> KeyedDecoder::decoder(const uint8_t* data, size_t size)
{
- return std::make_unique<KeyedDecoderGlib>(data, size);
+ return makeUnique<KeyedDecoderGlib>(data, size);
}
KeyedDecoderGlib::KeyedDecoderGlib(const uint8_t* data, size_t size)
diff --git a/Source/WebCore/platform/glib/KeyedEncoderGlib.cpp b/Source/WebCore/platform/glib/KeyedEncoderGlib.cpp
index 7404bcb..70d24c1 100644
--- a/Source/WebCore/platform/glib/KeyedEncoderGlib.cpp
+++ b/Source/WebCore/platform/glib/KeyedEncoderGlib.cpp
@@ -33,7 +33,7 @@
std::unique_ptr<KeyedEncoder> KeyedEncoder::encoder()
{
- return std::make_unique<KeyedEncoderGlib>();
+ return makeUnique<KeyedEncoderGlib>();
}
KeyedEncoderGlib::KeyedEncoderGlib()
diff --git a/Source/WebCore/platform/graphics/BitmapImage.cpp b/Source/WebCore/platform/graphics/BitmapImage.cpp
index f1c90e5..b2bd47c 100644
--- a/Source/WebCore/platform/graphics/BitmapImage.cpp
+++ b/Source/WebCore/platform/graphics/BitmapImage.cpp
@@ -347,7 +347,7 @@
void BitmapImage::startTimer(Seconds delay)
{
ASSERT(!m_frameTimer);
- m_frameTimer = std::make_unique<Timer>(*this, &BitmapImage::advanceAnimation);
+ m_frameTimer = makeUnique<Timer>(*this, &BitmapImage::advanceAnimation);
m_frameTimer->startOneShot(delay);
}
@@ -519,7 +519,7 @@
void BitmapImage::decode(WTF::Function<void()>&& callback)
{
if (!m_decodingCallbacks)
- m_decodingCallbacks = std::make_unique<Vector<Function<void()>, 1>>();
+ m_decodingCallbacks = makeUnique<Vector<Function<void()>, 1>>();
m_decodingCallbacks->append(WTFMove(callback));
diff --git a/Source/WebCore/platform/graphics/ComplexTextController.cpp b/Source/WebCore/platform/graphics/ComplexTextController.cpp
index 0d35561..353fca6 100644
--- a/Source/WebCore/platform/graphics/ComplexTextController.cpp
+++ b/Source/WebCore/platform/graphics/ComplexTextController.cpp
@@ -77,7 +77,7 @@
TextLayout(RenderText& text, const FontCascade& font, float xPos)
: m_font(font)
, m_run(constructTextRun(text, xPos))
- , m_controller(std::make_unique<ComplexTextController>(m_font, m_run, true))
+ , m_controller(makeUnique<ComplexTextController>(m_font, m_run, true))
{
}
diff --git a/Source/WebCore/platform/graphics/Font.cpp b/Source/WebCore/platform/graphics/Font.cpp
index c441e55..a29231e 100644
--- a/Source/WebCore/platform/graphics/Font.cpp
+++ b/Source/WebCore/platform/graphics/Font.cpp
@@ -390,7 +390,7 @@
auto Font::ensureDerivedFontData() const -> DerivedFonts&
{
if (!m_derivedFontData)
- m_derivedFontData = std::make_unique<DerivedFonts>();
+ m_derivedFontData = makeUnique<DerivedFonts>();
return *m_derivedFontData;
}
diff --git a/Source/WebCore/platform/graphics/Font.h b/Source/WebCore/platform/graphics/Font.h
index 6e84e6a..f8b8233 100644
--- a/Source/WebCore/platform/graphics/Font.h
+++ b/Source/WebCore/platform/graphics/Font.h
@@ -338,7 +338,7 @@
bounds = platformBoundsForGlyph(glyph);
if (!m_glyphToBoundsMap)
- m_glyphToBoundsMap = std::make_unique<GlyphMetricsMap<FloatRect>>();
+ m_glyphToBoundsMap = makeUnique<GlyphMetricsMap<FloatRect>>();
m_glyphToBoundsMap->setMetricsForGlyph(glyph, bounds);
return bounds;
}
diff --git a/Source/WebCore/platform/graphics/FontCache.cpp b/Source/WebCore/platform/graphics/FontCache.cpp
index 07a10875..82f0b61 100644
--- a/Source/WebCore/platform/graphics/FontCache.cpp
+++ b/Source/WebCore/platform/graphics/FontCache.cpp
@@ -240,7 +240,7 @@
it = fontPlatformDataCache().find(key);
ASSERT(it != fontPlatformDataCache().end());
if (fontPlatformDataForAlternateName)
- it->value = std::make_unique<FontPlatformData>(*fontPlatformDataForAlternateName);
+ it->value = makeUnique<FontPlatformData>(*fontPlatformDataForAlternateName);
}
}
}
diff --git a/Source/WebCore/platform/graphics/FontCascade.cpp b/Source/WebCore/platform/graphics/FontCascade.cpp
index 7274db0..64818f4 100644
--- a/Source/WebCore/platform/graphics/FontCascade.cpp
+++ b/Source/WebCore/platform/graphics/FontCascade.cpp
@@ -254,7 +254,7 @@
return addResult.iterator->value->fonts.get();
auto& newEntry = addResult.iterator->value;
- newEntry = std::make_unique<FontCascadeCacheEntry>(WTFMove(key), FontCascadeFonts::create(WTFMove(fontSelector)));
+ newEntry = makeUnique<FontCascadeCacheEntry>(WTFMove(key), FontCascadeFonts::create(WTFMove(fontSelector)));
Ref<FontCascadeFonts> glyphs = newEntry->fonts.get();
static const unsigned unreferencedPruneInterval = 50;
@@ -326,9 +326,9 @@
if (glyphBuffer.isEmpty())
return nullptr;
- std::unique_ptr<DisplayList::DisplayList> displayList = std::make_unique<DisplayList::DisplayList>();
+ std::unique_ptr<DisplayList::DisplayList> displayList = makeUnique<DisplayList::DisplayList>();
GraphicsContext recordingContext([&](GraphicsContext& displayListContext) {
- return std::make_unique<DisplayList::Recorder>(displayListContext, *displayList, context.state(), FloatRect(), AffineTransform());
+ return makeUnique<DisplayList::Recorder>(displayListContext, *displayList, context.state(), FloatRect(), AffineTransform());
});
FloatPoint startPoint(startX, 0);
diff --git a/Source/WebCore/platform/graphics/FontCascadeFonts.cpp b/Source/WebCore/platform/graphics/FontCascadeFonts.cpp
index db74302e..12ac837 100644
--- a/Source/WebCore/platform/graphics/FontCascadeFonts.cpp
+++ b/Source/WebCore/platform/graphics/FontCascadeFonts.cpp
@@ -84,7 +84,7 @@
{
ASSERT(!glyphDataForCharacter(character).glyph);
if (!m_mixedFont) {
- m_mixedFont = std::make_unique<MixedFontGlyphPage>(m_singleFont.get());
+ m_mixedFont = makeUnique<MixedFontGlyphPage>(m_singleFont.get());
m_singleFont = nullptr;
}
m_mixedFont->setGlyphDataForCharacter(character, glyphData);
diff --git a/Source/WebCore/platform/graphics/GlyphMetricsMap.h b/Source/WebCore/platform/graphics/GlyphMetricsMap.h
index 259e975..79e2f53 100644
--- a/Source/WebCore/platform/graphics/GlyphMetricsMap.h
+++ b/Source/WebCore/platform/graphics/GlyphMetricsMap.h
@@ -130,10 +130,10 @@
}
if (!m_pages)
- m_pages = std::make_unique<HashMap<int, std::unique_ptr<GlyphMetricsPage>>>();
+ m_pages = makeUnique<HashMap<int, std::unique_ptr<GlyphMetricsPage>>>();
auto& page = m_pages->ensure(pageNumber, [] {
- return std::make_unique<GlyphMetricsPage>(unknownMetrics());
+ return makeUnique<GlyphMetricsPage>(unknownMetrics());
}).iterator->value;
return *page;
}
diff --git a/Source/WebCore/platform/graphics/GraphicsLayer.cpp b/Source/WebCore/platform/graphics/GraphicsLayer.cpp
index aae3a30..6cd00c2 100644
--- a/Source/WebCore/platform/graphics/GraphicsLayer.cpp
+++ b/Source/WebCore/platform/graphics/GraphicsLayer.cpp
@@ -343,7 +343,7 @@
if (m_transform)
*m_transform = matrix;
else
- m_transform = std::make_unique<TransformationMatrix>(matrix);
+ m_transform = makeUnique<TransformationMatrix>(matrix);
}
const TransformationMatrix& GraphicsLayer::childrenTransform() const
@@ -356,7 +356,7 @@
if (m_childrenTransform)
*m_childrenTransform = matrix;
else
- m_childrenTransform = std::make_unique<TransformationMatrix>(matrix);
+ m_childrenTransform = makeUnique<TransformationMatrix>(matrix);
}
void GraphicsLayer::setMaskLayer(RefPtr<GraphicsLayer>&& layer)
diff --git a/Source/WebCore/platform/graphics/GraphicsLayer.h b/Source/WebCore/platform/graphics/GraphicsLayer.h
index 009d486..7a1feaa 100644
--- a/Source/WebCore/platform/graphics/GraphicsLayer.h
+++ b/Source/WebCore/platform/graphics/GraphicsLayer.h
@@ -111,7 +111,7 @@
std::unique_ptr<AnimationValue> clone() const override
{
- return std::make_unique<FloatAnimationValue>(*this);
+ return makeUnique<FloatAnimationValue>(*this);
}
float value() const { return m_value; }
@@ -132,7 +132,7 @@
std::unique_ptr<AnimationValue> clone() const override
{
- return std::make_unique<TransformAnimationValue>(*this);
+ return makeUnique<TransformAnimationValue>(*this);
}
TransformAnimationValue(const TransformAnimationValue& other)
@@ -163,7 +163,7 @@
std::unique_ptr<AnimationValue> clone() const override
{
- return std::make_unique<FilterAnimationValue>(*this);
+ return makeUnique<FilterAnimationValue>(*this);
}
FilterAnimationValue(const FilterAnimationValue& other)
diff --git a/Source/WebCore/platform/graphics/Image.cpp b/Source/WebCore/platform/graphics/Image.cpp
index 8ecf33f..3999672 100644
--- a/Source/WebCore/platform/graphics/Image.cpp
+++ b/Source/WebCore/platform/graphics/Image.cpp
@@ -349,7 +349,7 @@
void Image::startAnimationAsynchronously()
{
if (!m_animationStartTimer)
- m_animationStartTimer = std::make_unique<Timer>(*this, &Image::startAnimation);
+ m_animationStartTimer = makeUnique<Timer>(*this, &Image::startAnimation);
if (m_animationStartTimer->isActive())
return;
m_animationStartTimer->startOneShot(0_s);
diff --git a/Source/WebCore/platform/graphics/MediaPlayer.cpp b/Source/WebCore/platform/graphics/MediaPlayer.cpp
index 757f095..abe86941 100644
--- a/Source/WebCore/platform/graphics/MediaPlayer.cpp
+++ b/Source/WebCore/platform/graphics/MediaPlayer.cpp
@@ -148,7 +148,7 @@
float maxTimeSeekable() const final { return 0; }
double minTimeSeekable() const final { return 0; }
- std::unique_ptr<PlatformTimeRanges> buffered() const final { return std::make_unique<PlatformTimeRanges>(); }
+ std::unique_ptr<PlatformTimeRanges> buffered() const final { return makeUnique<PlatformTimeRanges>(); }
double seekableTimeRangesLastModifiedTime() const final { return 0; }
double liveUpdateInterval() const final { return 0; }
@@ -355,7 +355,7 @@
MediaPlayer::MediaPlayer(MediaPlayerClient& client)
: m_client(&client)
, m_reloadTimer(*this, &MediaPlayer::reloadTimerFired)
- , m_private(std::make_unique<NullMediaPlayerPrivate>(this))
+ , m_private(makeUnique<NullMediaPlayerPrivate>(this))
{
}
@@ -511,7 +511,7 @@
#endif
m_private->load(m_url.string());
} else {
- m_private = std::make_unique<NullMediaPlayerPrivate>(this);
+ m_private = makeUnique<NullMediaPlayerPrivate>(this);
client().mediaPlayerEngineUpdated(this);
client().mediaPlayerResourceNotSupported(this);
}
diff --git a/Source/WebCore/platform/graphics/MediaPlayerPrivate.h b/Source/WebCore/platform/graphics/MediaPlayerPrivate.h
index 00d85a4..1d2fc00 100644
--- a/Source/WebCore/platform/graphics/MediaPlayerPrivate.h
+++ b/Source/WebCore/platform/graphics/MediaPlayerPrivate.h
@@ -129,7 +129,7 @@
virtual MediaPlayer::NetworkState networkState() const = 0;
virtual MediaPlayer::ReadyState readyState() const = 0;
- virtual std::unique_ptr<PlatformTimeRanges> seekable() const { return maxMediaTimeSeekable() == MediaTime::zeroTime() ? std::make_unique<PlatformTimeRanges>() : std::make_unique<PlatformTimeRanges>(minMediaTimeSeekable(), maxMediaTimeSeekable()); }
+ virtual std::unique_ptr<PlatformTimeRanges> seekable() const { return maxMediaTimeSeekable() == MediaTime::zeroTime() ? makeUnique<PlatformTimeRanges>() : makeUnique<PlatformTimeRanges>(minMediaTimeSeekable(), maxMediaTimeSeekable()); }
virtual float maxTimeSeekable() const { return 0; }
virtual MediaTime maxMediaTimeSeekable() const { return MediaTime::createWithDouble(maxTimeSeekable()); }
virtual double minTimeSeekable() const { return 0; }
diff --git a/Source/WebCore/platform/graphics/PathUtilities.cpp b/Source/WebCore/platform/graphics/PathUtilities.cpp
index 3e68805..5ad9334 100644
--- a/Source/WebCore/platform/graphics/PathUtilities.cpp
+++ b/Source/WebCore/platform/graphics/PathUtilities.cpp
@@ -89,7 +89,7 @@
return testNode.get();
}
- m_allNodes.append(std::make_unique<FloatPointGraph::Node>(point));
+ m_allNodes.append(makeUnique<FloatPointGraph::Node>(point));
return m_allNodes.last().get();
}
diff --git a/Source/WebCore/platform/graphics/Region.cpp b/Source/WebCore/platform/graphics/Region.cpp
index 9dcee87..6a701c1 100644
--- a/Source/WebCore/platform/graphics/Region.cpp
+++ b/Source/WebCore/platform/graphics/Region.cpp
@@ -646,7 +646,7 @@
}
if (!m_shape)
- m_shape = std::make_unique<Shape>(WTFMove(shape));
+ m_shape = makeUnique<Shape>(WTFMove(shape));
else
*m_shape = WTFMove(shape);
}
diff --git a/Source/WebCore/platform/graphics/Region.h b/Source/WebCore/platform/graphics/Region.h
index 40f96bf..bc39c30 100644
--- a/Source/WebCore/platform/graphics/Region.h
+++ b/Source/WebCore/platform/graphics/Region.h
@@ -149,7 +149,7 @@
friend bool operator==(const Shape&, const Shape&);
};
- std::unique_ptr<Shape> copyShape() const { return m_shape ? std::make_unique<Shape>(*m_shape) : nullptr; }
+ std::unique_ptr<Shape> copyShape() const { return m_shape ? makeUnique<Shape>(*m_shape) : nullptr; }
void setShape(Shape&&);
IntRect m_bounds;
@@ -290,7 +290,7 @@
decoder >> shape;
if (!shape)
return WTF::nullopt;
- region.m_shape = std::make_unique<Shape>(WTFMove(*shape));
+ region.m_shape = makeUnique<Shape>(WTFMove(*shape));
}
return { region };
diff --git a/Source/WebCore/platform/graphics/TextTrackRepresentation.cpp b/Source/WebCore/platform/graphics/TextTrackRepresentation.cpp
index 1e4e7fa..6939f91 100644
--- a/Source/WebCore/platform/graphics/TextTrackRepresentation.cpp
+++ b/Source/WebCore/platform/graphics/TextTrackRepresentation.cpp
@@ -46,7 +46,7 @@
std::unique_ptr<TextTrackRepresentation> TextTrackRepresentation::create(TextTrackRepresentationClient&)
{
- return std::make_unique<NullTextTrackRepresentation>();
+ return makeUnique<NullTextTrackRepresentation>();
}
#endif
diff --git a/Source/WebCore/platform/graphics/angle/GraphicsContext3DANGLE.cpp b/Source/WebCore/platform/graphics/angle/GraphicsContext3DANGLE.cpp
index 77a3e18..61260e9 100644
--- a/Source/WebCore/platform/graphics/angle/GraphicsContext3DANGLE.cpp
+++ b/Source/WebCore/platform/graphics/angle/GraphicsContext3DANGLE.cpp
@@ -362,7 +362,7 @@
Extensions3D& GraphicsContext3D::getExtensions()
{
if (!m_extensions)
- m_extensions = std::make_unique<Extensions3DANGLE>(this, isGLES2Compliant());
+ m_extensions = makeUnique<Extensions3DANGLE>(this, isGLES2Compliant());
return *m_extensions;
}
diff --git a/Source/WebCore/platform/graphics/avfoundation/AudioSourceProviderAVFObjC.mm b/Source/WebCore/platform/graphics/avfoundation/AudioSourceProviderAVFObjC.mm
index 5cd7772..6b3c922 100644
--- a/Source/WebCore/platform/graphics/avfoundation/AudioSourceProviderAVFObjC.mm
+++ b/Source/WebCore/platform/graphics/avfoundation/AudioSourceProviderAVFObjC.mm
@@ -313,12 +313,12 @@
{
ASSERT(maxFrames >= 0);
- m_tapDescription = std::make_unique<AudioStreamBasicDescription>(*processingFormat);
+ m_tapDescription = makeUniqueWithoutFastMallocCheck<AudioStreamBasicDescription>(*processingFormat);
int numberOfChannels = processingFormat->mChannelsPerFrame;
double sampleRate = processingFormat->mSampleRate;
ASSERT(sampleRate >= 0);
- m_outputDescription = std::make_unique<AudioStreamBasicDescription>();
+ m_outputDescription = makeUniqueWithoutFastMallocCheck<AudioStreamBasicDescription>();
m_outputDescription->mSampleRate = sampleRate;
m_outputDescription->mFormatID = kAudioFormatLinearPCM;
m_outputDescription->mFormatFlags = kAudioFormatFlagsNativeFloatPacked;
@@ -338,7 +338,7 @@
// Make the ringbuffer large enough to store at least two callbacks worth of audio, or 1s, whichever is larger.
size_t capacity = std::max(static_cast<size_t>(2 * maxFrames), static_cast<size_t>(kRingBufferDuration * sampleRate));
- m_ringBuffer = std::make_unique<CARingBuffer>();
+ m_ringBuffer = makeUnique<CARingBuffer>();
m_ringBuffer->allocate(CAAudioStreamDescription(*processingFormat), capacity);
// AudioBufferList is a variable-length struct, so create on the heap with a generic new() operator
diff --git a/Source/WebCore/platform/graphics/avfoundation/CDMFairPlayStreaming.cpp b/Source/WebCore/platform/graphics/avfoundation/CDMFairPlayStreaming.cpp
index 361a992..4fc6787 100644
--- a/Source/WebCore/platform/graphics/avfoundation/CDMFairPlayStreaming.cpp
+++ b/Source/WebCore/platform/graphics/avfoundation/CDMFairPlayStreaming.cpp
@@ -234,7 +234,7 @@
if (!supportsKeySystem(keySystem))
return nullptr;
- return std::make_unique<CDMPrivateFairPlayStreaming>();
+ return makeUnique<CDMPrivateFairPlayStreaming>();
}
bool CDMFactoryFairPlayStreaming::supportsKeySystem(const String& keySystem)
diff --git a/Source/WebCore/platform/graphics/avfoundation/CDMPrivateMediaSourceAVFObjC.mm b/Source/WebCore/platform/graphics/avfoundation/CDMPrivateMediaSourceAVFObjC.mm
index 2cc08a9..0cd0129 100644
--- a/Source/WebCore/platform/graphics/avfoundation/CDMPrivateMediaSourceAVFObjC.mm
+++ b/Source/WebCore/platform/graphics/avfoundation/CDMPrivateMediaSourceAVFObjC.mm
@@ -147,10 +147,10 @@
#endif
if (shouldUseAVContentKeySession && CDMSessionAVContentKeySession::isAvailable())
- session = std::make_unique<CDMSessionAVContentKeySession>(WTFMove(parameters.value().protocols), parameters.value().version, *this, client);
+ session = makeUnique<CDMSessionAVContentKeySession>(WTFMove(parameters.value().protocols), parameters.value().version, *this, client);
else
#if HAVE(AVSTREAMSESSION)
- session = std::make_unique<CDMSessionAVStreamSession>(WTFMove(parameters.value().protocols), *this, client);
+ session = makeUnique<CDMSessionAVStreamSession>(WTFMove(parameters.value().protocols), *this, client);
#else
return nullptr;
#endif
diff --git a/Source/WebCore/platform/graphics/avfoundation/MediaPlayerPrivateAVFoundation.cpp b/Source/WebCore/platform/graphics/avfoundation/MediaPlayerPrivateAVFoundation.cpp
index 857f31f..59cf8ba 100644
--- a/Source/WebCore/platform/graphics/avfoundation/MediaPlayerPrivateAVFoundation.cpp
+++ b/Source/WebCore/platform/graphics/avfoundation/MediaPlayerPrivateAVFoundation.cpp
@@ -384,7 +384,7 @@
if (!m_cachedLoadedTimeRanges)
m_cachedLoadedTimeRanges = platformBufferedTimeRanges();
- return std::make_unique<PlatformTimeRanges>(*m_cachedLoadedTimeRanges);
+ return makeUnique<PlatformTimeRanges>(*m_cachedLoadedTimeRanges);
}
MediaTime MediaPlayerPrivateAVFoundation::maxMediaTimeSeekable() const
diff --git a/Source/WebCore/platform/graphics/avfoundation/WebMediaSessionManagerMac.cpp b/Source/WebCore/platform/graphics/avfoundation/WebMediaSessionManagerMac.cpp
index 395ce78..5f5b6f6 100644
--- a/Source/WebCore/platform/graphics/avfoundation/WebMediaSessionManagerMac.cpp
+++ b/Source/WebCore/platform/graphics/avfoundation/WebMediaSessionManagerMac.cpp
@@ -49,7 +49,7 @@
WebCore::MediaPlaybackTargetPicker& WebMediaSessionManagerMac::platformPicker()
{
if (!m_targetPicker)
- m_targetPicker = std::make_unique<MediaPlaybackTargetPickerMac>(*this);
+ m_targetPicker = makeUnique<MediaPlaybackTargetPickerMac>(*this);
return *m_targetPicker.get();
}
diff --git a/Source/WebCore/platform/graphics/avfoundation/cf/MediaPlayerPrivateAVFoundationCF.cpp b/Source/WebCore/platform/graphics/avfoundation/cf/MediaPlayerPrivateAVFoundationCF.cpp
index c2c8ae6..3b70e76 100644
--- a/Source/WebCore/platform/graphics/avfoundation/cf/MediaPlayerPrivateAVFoundationCF.cpp
+++ b/Source/WebCore/platform/graphics/avfoundation/cf/MediaPlayerPrivateAVFoundationCF.cpp
@@ -345,7 +345,7 @@
void MediaPlayerPrivateAVFoundationCF::registerMediaEngine(MediaEngineRegistrar registrar)
{
if (isAvailable())
- registrar([](MediaPlayer* player) { return std::make_unique<MediaPlayerPrivateAVFoundationCF>(player); },
+ registrar([](MediaPlayer* player) { return makeUnique<MediaPlayerPrivateAVFoundationCF>(player); },
getSupportedTypes, supportsType, 0, 0, 0, supportsKeySystem);
}
@@ -674,7 +674,7 @@
std::unique_ptr<PlatformTimeRanges> MediaPlayerPrivateAVFoundationCF::platformBufferedTimeRanges() const
{
- auto timeRanges = std::make_unique<PlatformTimeRanges>();
+ auto timeRanges = makeUnique<PlatformTimeRanges>();
if (!avPlayerItem(m_avfWrapper))
return timeRanges;
@@ -1139,7 +1139,7 @@
if (!keySystemIsSupported(keySystem))
return nullptr;
- return std::make_unique<CDMSessionAVFoundationCF>(*this, client);
+ return makeUnique<CDMSessionAVFoundationCF>(*this, client);
}
#elif ENABLE(LEGACY_ENCRYPTED_MEDIA)
@@ -1711,7 +1711,7 @@
LOG(Media, "AVFWrapper::notificationCallback(if=%d) %s", reinterpret_cast<uintptr_t>(observer), notificationName);
#endif
- auto notificationData = std::make_unique<NotificationCallbackData>(propertyName, observer);
+ auto notificationData = makeUnique<NotificationCallbackData>(propertyName, observer);
dispatch_async_f(dispatch_get_main_queue(), notificationData.release(), processNotification);
}
@@ -1837,7 +1837,7 @@
ASSERT(legibleOutput == self->m_legibleOutput);
- auto legibleOutputData = std::make_unique<LegibleOutputData>(attributedStrings, nativeSampleBuffers, PAL::toMediaTime(itemTime), context);
+ auto legibleOutputData = makeUnique<LegibleOutputData>(attributedStrings, nativeSampleBuffers, PAL::toMediaTime(itemTime), context);
dispatch_async_f(dispatch_get_main_queue(), legibleOutputData.release(), processCue);
}
@@ -1931,7 +1931,7 @@
LOG(Media, "AVFWrapper::resourceLoaderShouldWaitForLoadingOfRequestedResource(%p)", self);
- auto loadRequestData = std::make_unique<LoadRequestData>(loadingRequest, context);
+ auto loadRequestData = makeUnique<LoadRequestData>(loadingRequest, context);
dispatch_async_f(dispatch_get_main_queue(), loadRequestData.release(), processShouldWaitForLoadingOfResource);
@@ -1958,7 +1958,7 @@
return 0;
// Create a PlatformCALayer so we can resize the video layer to match the element size.
- m_layerClient = std::make_unique<LayerClient>(this);
+ m_layerClient = makeUnique<LayerClient>(this);
if (!m_layerClient)
return 0;
diff --git a/Source/WebCore/platform/graphics/avfoundation/objc/AudioTrackPrivateAVFObjC.mm b/Source/WebCore/platform/graphics/avfoundation/objc/AudioTrackPrivateAVFObjC.mm
index e14af1a..7de14c2 100644
--- a/Source/WebCore/platform/graphics/avfoundation/objc/AudioTrackPrivateAVFObjC.mm
+++ b/Source/WebCore/platform/graphics/avfoundation/objc/AudioTrackPrivateAVFObjC.mm
@@ -33,13 +33,13 @@
namespace WebCore {
AudioTrackPrivateAVFObjC::AudioTrackPrivateAVFObjC(AVPlayerItemTrack* track)
- : m_impl(std::make_unique<AVTrackPrivateAVFObjCImpl>(track))
+ : m_impl(makeUnique<AVTrackPrivateAVFObjCImpl>(track))
{
resetPropertiesFromTrack();
}
AudioTrackPrivateAVFObjC::AudioTrackPrivateAVFObjC(MediaSelectionOptionAVFObjC& option)
- : m_impl(std::make_unique<AVTrackPrivateAVFObjCImpl>(option))
+ : m_impl(makeUnique<AVTrackPrivateAVFObjCImpl>(option))
{
resetPropertiesFromTrack();
}
@@ -59,7 +59,7 @@
void AudioTrackPrivateAVFObjC::setPlayerItemTrack(AVPlayerItemTrack *track)
{
- m_impl = std::make_unique<AVTrackPrivateAVFObjCImpl>(track);
+ m_impl = makeUnique<AVTrackPrivateAVFObjCImpl>(track);
resetPropertiesFromTrack();
}
@@ -69,14 +69,14 @@
}
AudioTrackPrivateAVFObjC::AudioTrackPrivateAVFObjC(AVAssetTrack* track)
- : m_impl(std::make_unique<AVTrackPrivateAVFObjCImpl>(track))
+ : m_impl(makeUnique<AVTrackPrivateAVFObjCImpl>(track))
{
resetPropertiesFromTrack();
}
void AudioTrackPrivateAVFObjC::setAssetTrack(AVAssetTrack *track)
{
- m_impl = std::make_unique<AVTrackPrivateAVFObjCImpl>(track);
+ m_impl = makeUnique<AVTrackPrivateAVFObjCImpl>(track);
resetPropertiesFromTrack();
}
@@ -87,7 +87,7 @@
void AudioTrackPrivateAVFObjC::setMediaSelectionOption(MediaSelectionOptionAVFObjC& option)
{
- m_impl = std::make_unique<AVTrackPrivateAVFObjCImpl>(option);
+ m_impl = makeUnique<AVTrackPrivateAVFObjCImpl>(option);
resetPropertiesFromTrack();
}
diff --git a/Source/WebCore/platform/graphics/avfoundation/objc/AudioTrackPrivateMediaSourceAVFObjC.cpp b/Source/WebCore/platform/graphics/avfoundation/objc/AudioTrackPrivateMediaSourceAVFObjC.cpp
index ec0d0ed..df5226a 100644
--- a/Source/WebCore/platform/graphics/avfoundation/objc/AudioTrackPrivateMediaSourceAVFObjC.cpp
+++ b/Source/WebCore/platform/graphics/avfoundation/objc/AudioTrackPrivateMediaSourceAVFObjC.cpp
@@ -34,7 +34,7 @@
namespace WebCore {
AudioTrackPrivateMediaSourceAVFObjC::AudioTrackPrivateMediaSourceAVFObjC(AVAssetTrack* track, SourceBufferPrivateAVFObjC* parent)
- : m_impl(std::make_unique<AVTrackPrivateAVFObjCImpl>(track))
+ : m_impl(makeUnique<AVTrackPrivateAVFObjCImpl>(track))
, m_parent(parent)
{
resetPropertiesFromTrack();
@@ -52,7 +52,7 @@
void AudioTrackPrivateMediaSourceAVFObjC::setAssetTrack(AVAssetTrack *track)
{
- m_impl = std::make_unique<AVTrackPrivateAVFObjCImpl>(track);
+ m_impl = makeUnique<AVTrackPrivateAVFObjCImpl>(track);
resetPropertiesFromTrack();
}
diff --git a/Source/WebCore/platform/graphics/avfoundation/objc/ImageDecoderAVFObjC.mm b/Source/WebCore/platform/graphics/avfoundation/objc/ImageDecoderAVFObjC.mm
index 54820d2..326dadb 100644
--- a/Source/WebCore/platform/graphics/avfoundation/objc/ImageDecoderAVFObjC.mm
+++ b/Source/WebCore/platform/graphics/avfoundation/objc/ImageDecoderAVFObjC.mm
@@ -412,7 +412,7 @@
|| !m_imageRotationSession->transform()
|| m_imageRotationSession->transform().value() != finalTransform
|| m_imageRotationSession->size() != size)
- m_imageRotationSession = std::make_unique<ImageRotationSessionVT>(WTFMove(finalTransform), size, kCVPixelFormatType_32BGRA, ImageRotationSessionVT::IsCGImageCompatible::Yes);
+ m_imageRotationSession = makeUnique<ImageRotationSessionVT>(WTFMove(finalTransform), size, kCVPixelFormatType_32BGRA, ImageRotationSessionVT::IsCGImageCompatible::Yes);
m_size = expandedIntSize(m_imageRotationSession->rotatedSize());
}
diff --git a/Source/WebCore/platform/graphics/avfoundation/objc/MediaPlayerPrivateAVFoundationObjC.mm b/Source/WebCore/platform/graphics/avfoundation/objc/MediaPlayerPrivateAVFoundationObjC.mm
index 5cd2240..7fc018a 100644
--- a/Source/WebCore/platform/graphics/avfoundation/objc/MediaPlayerPrivateAVFoundationObjC.mm
+++ b/Source/WebCore/platform/graphics/avfoundation/objc/MediaPlayerPrivateAVFoundationObjC.mm
@@ -276,7 +276,7 @@
if (!isAvailable())
return;
- registrar([](MediaPlayer* player) { return std::make_unique<MediaPlayerPrivateAVFoundationObjC>(player); },
+ registrar([](MediaPlayer* player) { return makeUnique<MediaPlayerPrivateAVFoundationObjC>(player); },
getSupportedTypes, supportsType, originsInMediaCache, clearMediaCache, clearMediaCacheForOrigins, supportsKeySystem);
ASSERT(AVAssetMIMETypeCache::singleton().isAvailable());
}
@@ -366,7 +366,7 @@
MediaPlayerPrivateAVFoundationObjC::MediaPlayerPrivateAVFoundationObjC(MediaPlayer* player)
: MediaPlayerPrivateAVFoundation(player)
- , m_videoFullscreenLayerManager(std::make_unique<VideoFullscreenLayerManagerObjC>())
+ , m_videoFullscreenLayerManager(makeUnique<VideoFullscreenLayerManagerObjC>())
, m_videoFullscreenGravity(MediaPlayer::VideoGravityResizeAspect)
, m_objcObserver(adoptNS([[WebCoreAVFMovieObserver alloc] initWithPlayer:makeWeakPtr(*this)]))
, m_videoFrameHasDrawn(false)
@@ -1337,7 +1337,7 @@
std::unique_ptr<PlatformTimeRanges> MediaPlayerPrivateAVFoundationObjC::platformBufferedTimeRanges() const
{
- auto timeRanges = std::make_unique<PlatformTimeRanges>();
+ auto timeRanges = makeUnique<PlatformTimeRanges>();
if (!m_avPlayerItem)
return timeRanges;
@@ -1892,7 +1892,7 @@
&& m_imageRotationSession->size() == naturalSize)
return;
- m_imageRotationSession = std::make_unique<ImageRotationSessionVT>(WTFMove(finalTransform), naturalSize, kCVPixelFormatType_32BGRA, ImageRotationSessionVT::IsCGImageCompatible::Yes);
+ m_imageRotationSession = makeUnique<ImageRotationSessionVT>(WTFMove(finalTransform), naturalSize, kCVPixelFormatType_32BGRA, ImageRotationSessionVT::IsCGImageCompatible::Yes);
}
#if ENABLE(VIDEO_TRACK)
@@ -2216,7 +2216,7 @@
#else
NSDictionary *attributes = nil;
#endif
- m_pixelBufferConformer = std::make_unique<PixelBufferConformerCV>((__bridge CFDictionaryRef)attributes);
+ m_pixelBufferConformer = makeUnique<PixelBufferConformerCV>((__bridge CFDictionaryRef)attributes);
}
#if !RELEASE_LOG_DISABLED
@@ -2265,7 +2265,7 @@
size_t height = CVPixelBufferGetHeight(m_lastPixelBuffer.get());
if (!m_videoTextureCopier)
- m_videoTextureCopier = std::make_unique<VideoTextureCopierCV>(*context);
+ m_videoTextureCopier = makeUnique<VideoTextureCopierCV>(*context);
return m_videoTextureCopier->copyImageToPlatformTexture(m_lastPixelBuffer.get(), width, height, outputTexture, outputTarget, level, internalFormat, format, type, premultiplyAlpha, flipY);
}
@@ -2330,7 +2330,7 @@
{
if (!keySystemIsSupported(keySystem))
return nullptr;
- auto session = std::make_unique<CDMSessionAVFoundationObjC>(this, client);
+ auto session = makeUnique<CDMSessionAVFoundationObjC>(this, client);
m_session = makeWeakPtr(*session);
return WTFMove(session);
}
diff --git a/Source/WebCore/platform/graphics/avfoundation/objc/MediaPlayerPrivateMediaSourceAVFObjC.mm b/Source/WebCore/platform/graphics/avfoundation/objc/MediaPlayerPrivateMediaSourceAVFObjC.mm
index 72d1af1..d8cefeb 100644
--- a/Source/WebCore/platform/graphics/avfoundation/objc/MediaPlayerPrivateMediaSourceAVFObjC.mm
+++ b/Source/WebCore/platform/graphics/avfoundation/objc/MediaPlayerPrivateMediaSourceAVFObjC.mm
@@ -141,7 +141,7 @@
, m_playing(0)
, m_seeking(false)
, m_loadingProgressed(false)
- , m_videoFullscreenLayerManager(std::make_unique<VideoFullscreenLayerManagerObjC>())
+ , m_videoFullscreenLayerManager(makeUnique<VideoFullscreenLayerManagerObjC>())
, m_effectiveRateChangedListener(EffectiveRateChangedListener::create(*this, [m_synchronizer timebase]))
#if !RELEASE_LOG_DISABLED
, m_logger(player->mediaPlayerLogger())
@@ -205,7 +205,7 @@
if (!isAvailable())
return;
- registrar([](MediaPlayer* player) { return std::make_unique<MediaPlayerPrivateMediaSourceAVFObjC>(player); },
+ registrar([](MediaPlayer* player) { return makeUnique<MediaPlayerPrivateMediaSourceAVFObjC>(player); },
getSupportedTypes, supportsType, 0, 0, 0, 0);
ASSERT(AVAssetMIMETypeCache::singleton().isAvailable());
}
@@ -441,7 +441,7 @@
INFO_LOG(LOGIDENTIFIER, "time = ", time, ", negativeThreshold = ", negativeThreshold, ", positiveThreshold = ", positiveThreshold);
m_seeking = true;
- m_pendingSeek = std::make_unique<PendingSeek>(time, negativeThreshold, positiveThreshold);
+ m_pendingSeek = makeUnique<PendingSeek>(time, negativeThreshold, positiveThreshold);
if (m_seekTimer.isActive())
m_seekTimer.stop();
@@ -547,7 +547,7 @@
std::unique_ptr<PlatformTimeRanges> MediaPlayerPrivateMediaSourceAVFObjC::seekable() const
{
- return std::make_unique<PlatformTimeRanges>(minMediaTimeSeekable(), maxMediaTimeSeekable());
+ return makeUnique<PlatformTimeRanges>(minMediaTimeSeekable(), maxMediaTimeSeekable());
}
MediaTime MediaPlayerPrivateMediaSourceAVFObjC::maxMediaTimeSeekable() const
@@ -562,7 +562,7 @@
std::unique_ptr<PlatformTimeRanges> MediaPlayerPrivateMediaSourceAVFObjC::buffered() const
{
- return m_mediaSourcePrivate ? m_mediaSourcePrivate->buffered() : std::make_unique<PlatformTimeRanges>();
+ return m_mediaSourcePrivate ? m_mediaSourcePrivate->buffered() : makeUnique<PlatformTimeRanges>();
}
bool MediaPlayerPrivateMediaSourceAVFObjC::didLoadingProgress() const
@@ -606,7 +606,7 @@
if (!m_rgbConformer) {
auto attributes = @{ (__bridge NSString *)kCVPixelBufferPixelFormatTypeKey: @(kCVPixelFormatType_32BGRA) };
- m_rgbConformer = std::make_unique<PixelBufferConformerCV>((__bridge CFDictionaryRef)attributes);
+ m_rgbConformer = makeUnique<PixelBufferConformerCV>((__bridge CFDictionaryRef)attributes);
}
m_lastImage = m_rgbConformer->createImageFromPixelBuffer(m_lastPixelBuffer.get());
@@ -653,7 +653,7 @@
size_t height = CVPixelBufferGetHeight(m_lastPixelBuffer.get());
if (!m_videoTextureCopier)
- m_videoTextureCopier = std::make_unique<VideoTextureCopierCV>(*context);
+ m_videoTextureCopier = makeUnique<VideoTextureCopierCV>(*context);
return m_videoTextureCopier->copyImageToPlatformTexture(m_lastPixelBuffer.get(), width, height, outputTexture, outputTarget, level, internalFormat, format, type, premultiplyAlpha, flipY);
}
diff --git a/Source/WebCore/platform/graphics/avfoundation/objc/MediaPlayerPrivateMediaStreamAVFObjC.mm b/Source/WebCore/platform/graphics/avfoundation/objc/MediaPlayerPrivateMediaStreamAVFObjC.mm
index ca3b113..9deee46 100644
--- a/Source/WebCore/platform/graphics/avfoundation/objc/MediaPlayerPrivateMediaStreamAVFObjC.mm
+++ b/Source/WebCore/platform/graphics/avfoundation/objc/MediaPlayerPrivateMediaStreamAVFObjC.mm
@@ -183,7 +183,7 @@
: m_player(player)
, m_statusChangeListener(adoptNS([[WebAVSampleBufferStatusChangeListener alloc] initWithParent:this]))
, m_clock(PAL::Clock::create())
- , m_videoFullscreenLayerManager(std::make_unique<VideoFullscreenLayerManagerObjC>())
+ , m_videoFullscreenLayerManager(makeUnique<VideoFullscreenLayerManagerObjC>())
#if !RELEASE_LOG_DISABLED
, m_logger(player->mediaPlayerLogger())
, m_logIdentifier(player->mediaPlayerLogIdentifier())
@@ -220,7 +220,7 @@
void MediaPlayerPrivateMediaStreamAVFObjC::registerMediaEngine(MediaEngineRegistrar registrar)
{
if (isAvailable())
- registrar([](MediaPlayer* player) { return std::make_unique<MediaPlayerPrivateMediaStreamAVFObjC>(player); }, getSupportedTypes,
+ registrar([](MediaPlayer* player) { return makeUnique<MediaPlayerPrivateMediaStreamAVFObjC>(player); }, getSupportedTypes,
supportsType, 0, 0, 0, 0);
}
@@ -1054,12 +1054,12 @@
std::unique_ptr<PlatformTimeRanges> MediaPlayerPrivateMediaStreamAVFObjC::seekable() const
{
- return std::make_unique<PlatformTimeRanges>();
+ return makeUnique<PlatformTimeRanges>();
}
std::unique_ptr<PlatformTimeRanges> MediaPlayerPrivateMediaStreamAVFObjC::buffered() const
{
- return std::make_unique<PlatformTimeRanges>();
+ return makeUnique<PlatformTimeRanges>();
}
void MediaPlayerPrivateMediaStreamAVFObjC::paint(GraphicsContext& context, const FloatRect& rect)
@@ -1073,7 +1073,7 @@
return;
if (!m_imagePainter.pixelBufferConformer)
- m_imagePainter.pixelBufferConformer = std::make_unique<PixelBufferConformerCV>((__bridge CFDictionaryRef)@{ (__bridge NSString *)kCVPixelBufferPixelFormatTypeKey: @(kCVPixelFormatType_32BGRA) });
+ m_imagePainter.pixelBufferConformer = makeUnique<PixelBufferConformerCV>((__bridge CFDictionaryRef)@{ (__bridge NSString *)kCVPixelBufferPixelFormatTypeKey: @(kCVPixelFormatType_32BGRA) });
ASSERT(m_imagePainter.pixelBufferConformer);
if (!m_imagePainter.pixelBufferConformer)
diff --git a/Source/WebCore/platform/graphics/avfoundation/objc/VideoTrackPrivateAVFObjC.cpp b/Source/WebCore/platform/graphics/avfoundation/objc/VideoTrackPrivateAVFObjC.cpp
index c871c59..29483ba 100644
--- a/Source/WebCore/platform/graphics/avfoundation/objc/VideoTrackPrivateAVFObjC.cpp
+++ b/Source/WebCore/platform/graphics/avfoundation/objc/VideoTrackPrivateAVFObjC.cpp
@@ -34,19 +34,19 @@
namespace WebCore {
VideoTrackPrivateAVFObjC::VideoTrackPrivateAVFObjC(AVPlayerItemTrack* track)
- : m_impl(std::make_unique<AVTrackPrivateAVFObjCImpl>(track))
+ : m_impl(makeUnique<AVTrackPrivateAVFObjCImpl>(track))
{
resetPropertiesFromTrack();
}
VideoTrackPrivateAVFObjC::VideoTrackPrivateAVFObjC(AVAssetTrack* track)
- : m_impl(std::make_unique<AVTrackPrivateAVFObjCImpl>(track))
+ : m_impl(makeUnique<AVTrackPrivateAVFObjCImpl>(track))
{
resetPropertiesFromTrack();
}
VideoTrackPrivateAVFObjC::VideoTrackPrivateAVFObjC(MediaSelectionOptionAVFObjC& option)
- : m_impl(std::make_unique<AVTrackPrivateAVFObjCImpl>(option))
+ : m_impl(makeUnique<AVTrackPrivateAVFObjCImpl>(option))
{
resetPropertiesFromTrack();
}
@@ -66,7 +66,7 @@
void VideoTrackPrivateAVFObjC::setPlayerItemTrack(AVPlayerItemTrack *track)
{
- m_impl = std::make_unique<AVTrackPrivateAVFObjCImpl>(track);
+ m_impl = makeUnique<AVTrackPrivateAVFObjCImpl>(track);
resetPropertiesFromTrack();
}
@@ -77,7 +77,7 @@
void VideoTrackPrivateAVFObjC::setAssetTrack(AVAssetTrack *track)
{
- m_impl = std::make_unique<AVTrackPrivateAVFObjCImpl>(track);
+ m_impl = makeUnique<AVTrackPrivateAVFObjCImpl>(track);
resetPropertiesFromTrack();
}
@@ -88,7 +88,7 @@
void VideoTrackPrivateAVFObjC::setMediaSelectonOption(MediaSelectionOptionAVFObjC& option)
{
- m_impl = std::make_unique<AVTrackPrivateAVFObjCImpl>(option);
+ m_impl = makeUnique<AVTrackPrivateAVFObjCImpl>(option);
resetPropertiesFromTrack();
}
diff --git a/Source/WebCore/platform/graphics/avfoundation/objc/VideoTrackPrivateMediaSourceAVFObjC.mm b/Source/WebCore/platform/graphics/avfoundation/objc/VideoTrackPrivateMediaSourceAVFObjC.mm
index fcc2496..9756cff 100644
--- a/Source/WebCore/platform/graphics/avfoundation/objc/VideoTrackPrivateMediaSourceAVFObjC.mm
+++ b/Source/WebCore/platform/graphics/avfoundation/objc/VideoTrackPrivateMediaSourceAVFObjC.mm
@@ -35,7 +35,7 @@
namespace WebCore {
VideoTrackPrivateMediaSourceAVFObjC::VideoTrackPrivateMediaSourceAVFObjC(AVAssetTrack* track, SourceBufferPrivateAVFObjC* parent)
- : m_impl(std::make_unique<AVTrackPrivateAVFObjCImpl>(track))
+ : m_impl(makeUnique<AVTrackPrivateAVFObjCImpl>(track))
, m_parent(parent)
, m_trackID(-1)
, m_selected(false)
@@ -56,7 +56,7 @@
void VideoTrackPrivateMediaSourceAVFObjC::setAssetTrack(AVAssetTrack *track)
{
- m_impl = std::make_unique<AVTrackPrivateAVFObjCImpl>(track);
+ m_impl = makeUnique<AVTrackPrivateAVFObjCImpl>(track);
resetPropertiesFromTrack();
}
diff --git a/Source/WebCore/platform/graphics/ca/GraphicsLayerCA.cpp b/Source/WebCore/platform/graphics/ca/GraphicsLayerCA.cpp
index 171f277..8765344 100644
--- a/Source/WebCore/platform/graphics/ca/GraphicsLayerCA.cpp
+++ b/Source/WebCore/platform/graphics/ca/GraphicsLayerCA.cpp
@@ -1636,12 +1636,12 @@
if (usesDisplayListDrawing() && m_drawsContent && (!m_hasEverPainted || hadDirtyRects)) {
TraceScope tracingScope(DisplayListRecordStart, DisplayListRecordEnd);
- m_displayList = std::make_unique<DisplayList::DisplayList>();
+ m_displayList = makeUnique<DisplayList::DisplayList>();
FloatRect initialClip(boundsOrigin(), size());
GraphicsContext context([&](GraphicsContext& context) {
- return std::make_unique<DisplayList::Recorder>(context, *m_displayList, GraphicsContextState(), initialClip, AffineTransform());
+ return makeUnique<DisplayList::Recorder>(context, *m_displayList, GraphicsContextState(), initialClip, AffineTransform());
});
paintGraphicsLayerContents(context, FloatRect(FloatPoint(), size()));
}
@@ -2867,7 +2867,7 @@
void GraphicsLayerCA::ensureLayerAnimations()
{
if (!m_animations)
- m_animations = std::make_unique<LayerAnimations>();
+ m_animations = makeUnique<LayerAnimations>();
}
void GraphicsLayerCA::setAnimationOnLayer(PlatformCAAnimation& caAnim, AnimatedPropertyID property, const String& animationName, int index, int subIndex, Seconds timeOffset)
@@ -3903,7 +3903,7 @@
contentsLayer = nullptr;
if (!m_layerClones)
- m_layerClones = std::make_unique<LayerClones>();
+ m_layerClones = makeUnique<LayerClones>();
primaryLayer = findOrMakeClone(cloneID, m_layer.get(), m_layerClones->primaryLayerClones, cloneLevel);
structuralLayer = findOrMakeClone(cloneID, m_structuralLayer.get(), m_layerClones->structuralLayerClones, cloneLevel);
diff --git a/Source/WebCore/platform/graphics/ca/TileController.cpp b/Source/WebCore/platform/graphics/ca/TileController.cpp
index 4d64c2c..305efd3 100644
--- a/Source/WebCore/platform/graphics/ca/TileController.cpp
+++ b/Source/WebCore/platform/graphics/ca/TileController.cpp
@@ -66,7 +66,7 @@
TileController::TileController(PlatformCALayer* rootPlatformLayer)
: m_tileCacheLayer(rootPlatformLayer)
, m_deviceScaleFactor(owningGraphicsLayer()->platformCALayerDeviceScaleFactor())
- , m_tileGrid(std::make_unique<TileGrid>(*this))
+ , m_tileGrid(makeUnique<TileGrid>(*this))
, m_tileRevalidationTimer(*this, &TileController::tileRevalidationTimerFired)
, m_tileSizeChangeTimer(*this, &TileController::tileSizeChangeTimerFired, tileSizeUpdateDelay)
, m_marginEdges(false, false, false, false)
@@ -132,7 +132,7 @@
if (m_zoomedOutContentsScale && m_zoomedOutContentsScale == tileGrid().scale() && tileGrid().scale() != scale && !m_hasTilesWithTemporaryScaleFactor) {
m_zoomedOutTileGrid = WTFMove(m_tileGrid);
m_zoomedOutTileGrid->setIsZoomedOutTileGrid(true);
- m_tileGrid = std::make_unique<TileGrid>(*this);
+ m_tileGrid = makeUnique<TileGrid>(*this);
tileGridsChanged();
}
@@ -500,7 +500,7 @@
return;
if (!m_historicalVelocityData)
- m_historicalVelocityData = std::make_unique<HistoricalVelocityData>();
+ m_historicalVelocityData = makeUnique<HistoricalVelocityData>();
m_velocity = m_historicalVelocityData->velocityForNewData(scrollOffset, contentsScale, MonotonicTime::now());
};
@@ -685,7 +685,7 @@
PlatformCALayer* TileController::tiledScrollingIndicatorLayer()
{
if (!m_coverageMap)
- m_coverageMap = std::make_unique<TileCoverageMap>(*this);
+ m_coverageMap = makeUnique<TileCoverageMap>(*this);
return &m_coverageMap->layer();
}
diff --git a/Source/WebCore/platform/graphics/ca/cocoa/PlatformCALayerCocoa.mm b/Source/WebCore/platform/graphics/ca/cocoa/PlatformCALayerCocoa.mm
index a48523c..36ac2f7 100644
--- a/Source/WebCore/platform/graphics/ca/cocoa/PlatformCALayerCocoa.mm
+++ b/Source/WebCore/platform/graphics/ca/cocoa/PlatformCALayerCocoa.mm
@@ -313,7 +313,7 @@
WebTiledBackingLayer* tiledBackingLayer = static_cast<WebTiledBackingLayer*>(m_layer.get());
TileController* tileController = [tiledBackingLayer createTileController:this];
- m_customSublayers = std::make_unique<PlatformCALayerList>(tileController->containerLayers());
+ m_customSublayers = makeUnique<PlatformCALayerList>(tileController->containerLayers());
}
END_BLOCK_OBJC_EXCEPTIONS
@@ -947,7 +947,7 @@
void PlatformCALayerCocoa::setShapeRoundedRect(const FloatRoundedRect& roundedRect)
{
ASSERT(m_layerType == LayerTypeShapeLayer);
- m_shapeRoundedRect = std::make_unique<FloatRoundedRect>(roundedRect);
+ m_shapeRoundedRect = makeUnique<FloatRoundedRect>(roundedRect);
BEGIN_BLOCK_OBJC_EXCEPTIONS
Path shapePath;
diff --git a/Source/WebCore/platform/graphics/ca/cocoa/WebTiledBackingLayer.mm b/Source/WebCore/platform/graphics/ca/cocoa/WebTiledBackingLayer.mm
index c191f39..b3e21f6 100644
--- a/Source/WebCore/platform/graphics/ca/cocoa/WebTiledBackingLayer.mm
+++ b/Source/WebCore/platform/graphics/ca/cocoa/WebTiledBackingLayer.mm
@@ -62,7 +62,7 @@
- (WebCore::TileController*)createTileController:(WebCore::PlatformCALayer*)rootLayer
{
ASSERT(!_tileController);
- _tileController = std::make_unique<WebCore::TileController>(rootLayer);
+ _tileController = makeUnique<WebCore::TileController>(rootLayer);
return _tileController.get();
}
diff --git a/Source/WebCore/platform/graphics/ca/win/PlatformCALayerWin.cpp b/Source/WebCore/platform/graphics/ca/win/PlatformCALayerWin.cpp
index 15d4e46..d6a7c16 100644
--- a/Source/WebCore/platform/graphics/ca/win/PlatformCALayerWin.cpp
+++ b/Source/WebCore/platform/graphics/ca/win/PlatformCALayerWin.cpp
@@ -152,7 +152,7 @@
if (usesTiledBackingLayer()) {
intern = new WebTiledBackingLayerWin(this);
TileController* tileController = reinterpret_cast<WebTiledBackingLayerWin*>(intern)->createTileController(this);
- m_customSublayers = std::make_unique<PlatformCALayerList>(tileController->containerLayers());
+ m_customSublayers = makeUnique<PlatformCALayerList>(tileController->containerLayers());
} else
intern = new PlatformCALayerWinInternal(this);
diff --git a/Source/WebCore/platform/graphics/ca/win/WebTiledBackingLayerWin.cpp b/Source/WebCore/platform/graphics/ca/win/WebTiledBackingLayerWin.cpp
index 224d8bb..c5a73e8 100644
--- a/Source/WebCore/platform/graphics/ca/win/WebTiledBackingLayerWin.cpp
+++ b/Source/WebCore/platform/graphics/ca/win/WebTiledBackingLayerWin.cpp
@@ -164,7 +164,7 @@
TileController* WebTiledBackingLayerWin::createTileController(PlatformCALayer* rootLayer)
{
ASSERT(!m_tileController);
- m_tileController = std::make_unique<TileController>(rootLayer);
+ m_tileController = makeUnique<TileController>(rootLayer);
return m_tileController.get();
}
diff --git a/Source/WebCore/platform/graphics/cairo/GraphicsContextImplCairo.cpp b/Source/WebCore/platform/graphics/cairo/GraphicsContextImplCairo.cpp
index 50b7d9c..04f2a9f 100644
--- a/Source/WebCore/platform/graphics/cairo/GraphicsContextImplCairo.cpp
+++ b/Source/WebCore/platform/graphics/cairo/GraphicsContextImplCairo.cpp
@@ -45,7 +45,7 @@
return GraphicsContext::GraphicsContextImplFactory(
[&platformContext](GraphicsContext& context)
{
- return std::make_unique<GraphicsContextImplCairo>(context, platformContext);
+ return makeUnique<GraphicsContextImplCairo>(context, platformContext);
});
}
@@ -54,14 +54,14 @@
return GraphicsContext::GraphicsContextImplFactory(
[cairoContext](GraphicsContext& context)
{
- return std::make_unique<GraphicsContextImplCairo>(context, cairoContext);
+ return makeUnique<GraphicsContextImplCairo>(context, cairoContext);
});
}
GraphicsContextImplCairo::GraphicsContextImplCairo(GraphicsContext& context, PlatformContextCairo& platformContext)
: GraphicsContextImpl(context, FloatRect { }, AffineTransform { })
, m_platformContext(platformContext)
- , m_private(std::make_unique<GraphicsContextPlatformPrivate>(m_platformContext))
+ , m_private(makeUnique<GraphicsContextPlatformPrivate>(m_platformContext))
{
m_platformContext.setGraphicsContextPrivate(m_private.get());
m_private->syncContext(m_platformContext.cr());
@@ -69,9 +69,9 @@
GraphicsContextImplCairo::GraphicsContextImplCairo(GraphicsContext& context, cairo_t* cairoContext)
: GraphicsContextImpl(context, FloatRect { }, AffineTransform { })
- , m_ownedPlatformContext(std::make_unique<PlatformContextCairo>(cairoContext))
+ , m_ownedPlatformContext(makeUnique<PlatformContextCairo>(cairoContext))
, m_platformContext(*m_ownedPlatformContext)
- , m_private(std::make_unique<GraphicsContextPlatformPrivate>(m_platformContext))
+ , m_private(makeUnique<GraphicsContextPlatformPrivate>(m_platformContext))
{
m_platformContext.setGraphicsContextPrivate(m_private.get());
m_private->syncContext(m_platformContext.cr());
diff --git a/Source/WebCore/platform/graphics/cairo/ImageBufferCairo.cpp b/Source/WebCore/platform/graphics/cairo/ImageBufferCairo.cpp
index 137415f..e01e60b 100644
--- a/Source/WebCore/platform/graphics/cairo/ImageBufferCairo.cpp
+++ b/Source/WebCore/platform/graphics/cairo/ImageBufferCairo.cpp
@@ -165,7 +165,7 @@
[this](TextureMapperPlatformLayerProxy& proxy)
{
LockHolder holder(proxy.lock());
- proxy.pushNextBuffer(std::make_unique<TextureMapperPlatformLayerBuffer>(m_compositorTexture, m_size, TextureMapperGL::ShouldBlend, GL_RGBA));
+ proxy.pushNextBuffer(makeUnique<TextureMapperPlatformLayerBuffer>(m_compositorTexture, m_size, TextureMapperGL::ShouldBlend, GL_RGBA));
};
#if USE(NICOSIA)
proxyOperation(downcast<Nicosia::ContentLayerTextureMapperImpl>(m_nicosiaLayer->impl()).proxy());
@@ -308,7 +308,7 @@
RefPtr<cairo_t> cr = adoptRef(cairo_create(m_data.m_surface.get()));
m_data.m_platformContext.setCr(cr.get());
- m_data.m_context = std::make_unique<GraphicsContext>(GraphicsContextImplCairo::createFactory(m_data.m_platformContext));
+ m_data.m_context = makeUnique<GraphicsContext>(GraphicsContextImplCairo::createFactory(m_data.m_platformContext));
success = true;
}
diff --git a/Source/WebCore/platform/graphics/cg/ImageBufferCG.cpp b/Source/WebCore/platform/graphics/cg/ImageBufferCG.cpp
index 80b5d4f..d35ff0e 100644
--- a/Source/WebCore/platform/graphics/cg/ImageBufferCG.cpp
+++ b/Source/WebCore/platform/graphics/cg/ImageBufferCG.cpp
@@ -187,7 +187,7 @@
if (!cgContext)
return;
- m_data.context = std::make_unique<GraphicsContext>(cgContext.get());
+ m_data.context = makeUnique<GraphicsContext>(cgContext.get());
}
context().scale(FloatSize(1, -1));
diff --git a/Source/WebCore/platform/graphics/cocoa/FontCacheCoreText.cpp b/Source/WebCore/platform/graphics/cocoa/FontCacheCoreText.cpp
index 7188e43..ff7fc66 100644
--- a/Source/WebCore/platform/graphics/cocoa/FontCacheCoreText.cpp
+++ b/Source/WebCore/platform/graphics/cocoa/FontCacheCoreText.cpp
@@ -1371,7 +1371,7 @@
auto [syntheticBold, syntheticOblique] = computeNecessarySynthesis(font.get(), fontDescription).boldObliquePair();
- return std::make_unique<FontPlatformData>(font.get(), size, syntheticBold, syntheticOblique, fontDescription.orientation(), fontDescription.widthVariant(), fontDescription.textRenderingMode());
+ return makeUnique<FontPlatformData>(font.get(), size, syntheticBold, syntheticOblique, fontDescription.orientation(), fontDescription.widthVariant(), fontDescription.textRenderingMode());
}
typedef HashSet<RetainPtr<CTFontRef>, WTF::RetainPtrObjectHash<CTFontRef>, WTF::RetainPtrObjectHashTraits<CTFontRef>> FallbackDedupSet;
diff --git a/Source/WebCore/platform/graphics/cocoa/FontFamilySpecificationCoreText.cpp b/Source/WebCore/platform/graphics/cocoa/FontFamilySpecificationCoreText.cpp
index 1ce0c94..0de934a 100644
--- a/Source/WebCore/platform/graphics/cocoa/FontFamilySpecificationCoreText.cpp
+++ b/Source/WebCore/platform/graphics/cocoa/FontFamilySpecificationCoreText.cpp
@@ -112,7 +112,7 @@
auto [syntheticBold, syntheticOblique] = computeNecessarySynthesis(fontForSynthesisComputation.get(), fontDescription).boldObliquePair();
- return std::make_unique<FontPlatformData>(font.get(), size, false, syntheticOblique, fontDescription.orientation(), fontDescription.widthVariant(), fontDescription.textRenderingMode());
+ return makeUnique<FontPlatformData>(font.get(), size, false, syntheticOblique, fontDescription.orientation(), fontDescription.widthVariant(), fontDescription.textRenderingMode());
}).iterator->value;
ASSERT(fontPlatformData);
diff --git a/Source/WebCore/platform/graphics/cocoa/GraphicsContext3DCocoa.mm b/Source/WebCore/platform/graphics/cocoa/GraphicsContext3DCocoa.mm
index 4a07ac0..2c3cac0 100644
--- a/Source/WebCore/platform/graphics/cocoa/GraphicsContext3DCocoa.mm
+++ b/Source/WebCore/platform/graphics/cocoa/GraphicsContext3DCocoa.mm
@@ -182,7 +182,7 @@
GraphicsContext3D::GraphicsContext3D(GraphicsContext3DAttributes attrs, HostWindow* hostWindow, GraphicsContext3D::RenderStyle, GraphicsContext3D* sharedContext)
: m_attrs(attrs)
- , m_private(std::make_unique<GraphicsContext3DPrivate>(this))
+ , m_private(makeUnique<GraphicsContext3DPrivate>(this))
{
#if !USE(ANGLE)
#if USE(OPENGL_ES)
diff --git a/Source/WebCore/platform/graphics/cocoa/IOSurface.mm b/Source/WebCore/platform/graphics/cocoa/IOSurface.mm
index 5c733e3..3875fcf 100644
--- a/Source/WebCore/platform/graphics/cocoa/IOSurface.mm
+++ b/Source/WebCore/platform/graphics/cocoa/IOSurface.mm
@@ -326,7 +326,7 @@
if (m_graphicsContext)
return *m_graphicsContext;
- m_graphicsContext = std::make_unique<GraphicsContext>(ensurePlatformContext());
+ m_graphicsContext = makeUnique<GraphicsContext>(ensurePlatformContext());
m_graphicsContext->setIsAcceleratedContext(true);
return *m_graphicsContext;
diff --git a/Source/WebCore/platform/graphics/cocoa/TextTrackRepresentationCocoa.mm b/Source/WebCore/platform/graphics/cocoa/TextTrackRepresentationCocoa.mm
index 6e60ebf..2787468 100644
--- a/Source/WebCore/platform/graphics/cocoa/TextTrackRepresentationCocoa.mm
+++ b/Source/WebCore/platform/graphics/cocoa/TextTrackRepresentationCocoa.mm
@@ -108,7 +108,7 @@
std::unique_ptr<TextTrackRepresentation> TextTrackRepresentation::create(TextTrackRepresentationClient& client)
{
- return std::make_unique<TextTrackRepresentationCocoa>(client);
+ return makeUnique<TextTrackRepresentationCocoa>(client);
}
TextTrackRepresentationCocoa::TextTrackRepresentationCocoa(TextTrackRepresentationClient& client)
diff --git a/Source/WebCore/platform/graphics/cv/TextureCacheCV.mm b/Source/WebCore/platform/graphics/cv/TextureCacheCV.mm
index 577ec28..9f1f66b 100644
--- a/Source/WebCore/platform/graphics/cv/TextureCacheCV.mm
+++ b/Source/WebCore/platform/graphics/cv/TextureCacheCV.mm
@@ -50,7 +50,7 @@
return nullptr;
RetainPtr<TextureCacheType> strongCache = adoptCF(cache);
- return std::make_unique<TextureCacheCV>(context, WTFMove(strongCache));
+ return makeUnique<TextureCacheCV>(context, WTFMove(strongCache));
}
TextureCacheCV::TextureCacheCV(GraphicsContext3D& context, RetainPtr<TextureCacheType>&& cache)
diff --git a/Source/WebCore/platform/graphics/displaylists/DisplayListReplayer.cpp b/Source/WebCore/platform/graphics/displaylists/DisplayListReplayer.cpp
index 8feaa2f..c561f5f 100644
--- a/Source/WebCore/platform/graphics/displaylists/DisplayListReplayer.cpp
+++ b/Source/WebCore/platform/graphics/displaylists/DisplayListReplayer.cpp
@@ -49,7 +49,7 @@
std::unique_ptr<DisplayList> replayList;
if (UNLIKELY(trackReplayList))
- replayList = std::make_unique<DisplayList>();
+ replayList = makeUnique<DisplayList>();
size_t numItems = m_displayList.itemCount();
for (size_t i = 0; i < numItems; ++i) {
diff --git a/Source/WebCore/platform/graphics/filters/FilterOperation.cpp b/Source/WebCore/platform/graphics/filters/FilterOperation.cpp
index 557b8e0..30bb48c 100644
--- a/Source/WebCore/platform/graphics/filters/FilterOperation.cpp
+++ b/Source/WebCore/platform/graphics/filters/FilterOperation.cpp
@@ -67,7 +67,7 @@
return;
if (!SVGURIReference::isExternalURIReference(m_url, *cachedResourceLoader.document()))
return;
- m_cachedSVGDocumentReference = std::make_unique<CachedSVGDocumentReference>(m_url);
+ m_cachedSVGDocumentReference = makeUnique<CachedSVGDocumentReference>(m_url);
m_cachedSVGDocumentReference->load(cachedResourceLoader, options);
}
diff --git a/Source/WebCore/platform/graphics/freetype/FontCacheFreeType.cpp b/Source/WebCore/platform/graphics/freetype/FontCacheFreeType.cpp
index 6563c8b..71a4ab2 100644
--- a/Source/WebCore/platform/graphics/freetype/FontCacheFreeType.cpp
+++ b/Source/WebCore/platform/graphics/freetype/FontCacheFreeType.cpp
@@ -455,7 +455,7 @@
FcPatternAddString(resultPattern.get(), FC_FONT_VARIATIONS, reinterpret_cast<const FcChar8*>(variants.utf8().data()));
}
#endif
- auto platformData = std::make_unique<FontPlatformData>(fontFace.get(), resultPattern.get(), fontDescription.computedPixelSize(), fixedWidth, syntheticBold, syntheticOblique, fontDescription.orientation());
+ auto platformData = makeUnique<FontPlatformData>(fontFace.get(), resultPattern.get(), fontDescription.computedPixelSize(), fixedWidth, syntheticBold, syntheticOblique, fontDescription.orientation());
// Verify that this font has an encoding compatible with Fontconfig. Fontconfig currently
// supports three encodings in FcFreeTypeCharIndex: Unicode, Symbol and AppleRoman.
// If this font doesn't have one of these three encodings, don't select it.
diff --git a/Source/WebCore/platform/graphics/freetype/FontCustomPlatformDataFreeType.cpp b/Source/WebCore/platform/graphics/freetype/FontCustomPlatformDataFreeType.cpp
index 13765f4..58943d2 100644
--- a/Source/WebCore/platform/graphics/freetype/FontCustomPlatformDataFreeType.cpp
+++ b/Source/WebCore/platform/graphics/freetype/FontCustomPlatformDataFreeType.cpp
@@ -130,7 +130,7 @@
FT_Face freeTypeFace;
if (FT_New_Memory_Face(library, reinterpret_cast<const FT_Byte*>(buffer.data()), buffer.size(), 0, &freeTypeFace))
return nullptr;
- return std::make_unique<FontCustomPlatformData>(freeTypeFace, buffer);
+ return makeUnique<FontCustomPlatformData>(freeTypeFace, buffer);
}
bool FontCustomPlatformData::supportsFormat(const String& format)
diff --git a/Source/WebCore/platform/graphics/gpu/Texture.cpp b/Source/WebCore/platform/graphics/gpu/Texture.cpp
index 8698136..71fda0d 100644
--- a/Source/WebCore/platform/graphics/gpu/Texture.cpp
+++ b/Source/WebCore/platform/graphics/gpu/Texture.cpp
@@ -95,7 +95,7 @@
numTiles = 0;
}
- auto textureIds = std::make_unique<Vector<unsigned>>(numTiles);
+ auto textureIds = makeUnique<Vector<unsigned>>(numTiles);
textureIds->fill(0, numTiles);
for (int i = 0; i < numTiles; i++) {
diff --git a/Source/WebCore/platform/graphics/gstreamer/MediaPlayerPrivateGStreamer.cpp b/Source/WebCore/platform/graphics/gstreamer/MediaPlayerPrivateGStreamer.cpp
index 4a9fdec..ab37ee0 100644
--- a/Source/WebCore/platform/graphics/gstreamer/MediaPlayerPrivateGStreamer.cpp
+++ b/Source/WebCore/platform/graphics/gstreamer/MediaPlayerPrivateGStreamer.cpp
@@ -116,7 +116,7 @@
{
MediaPlayerPrivateGStreamerBase::initializeDebugCategory();
if (isAvailable()) {
- registrar([](MediaPlayer* player) { return std::make_unique<MediaPlayerPrivateGStreamer>(player); },
+ registrar([](MediaPlayer* player) { return makeUnique<MediaPlayerPrivateGStreamer>(player); },
getSupportedTypes, supportsType, nullptr, nullptr, nullptr, supportsKeySystem);
}
}
@@ -1140,7 +1140,7 @@
std::unique_ptr<PlatformTimeRanges> MediaPlayerPrivateGStreamer::buffered() const
{
- auto timeRanges = std::make_unique<PlatformTimeRanges>();
+ auto timeRanges = makeUnique<PlatformTimeRanges>();
if (m_errorOccured || isLiveStream())
return timeRanges;
@@ -2376,7 +2376,7 @@
void MediaPlayerPrivateGStreamer::ensureAudioSourceProvider()
{
if (!m_audioSourceProvider)
- m_audioSourceProvider = std::make_unique<AudioSourceProviderGStreamer>();
+ m_audioSourceProvider = makeUnique<AudioSourceProviderGStreamer>();
}
AudioSourceProvider* MediaPlayerPrivateGStreamer::audioSourceProvider()
diff --git a/Source/WebCore/platform/graphics/gstreamer/MediaPlayerPrivateGStreamerBase.cpp b/Source/WebCore/platform/graphics/gstreamer/MediaPlayerPrivateGStreamerBase.cpp
index ce8734e..b02e28e 100644
--- a/Source/WebCore/platform/graphics/gstreamer/MediaPlayerPrivateGStreamerBase.cpp
+++ b/Source/WebCore/platform/graphics/gstreamer/MediaPlayerPrivateGStreamerBase.cpp
@@ -710,19 +710,19 @@
if (!proxy.isActive())
return;
- std::unique_ptr<GstVideoFrameHolder> frameHolder = std::make_unique<GstVideoFrameHolder>(m_sample.get(), m_textureMapperFlags, !m_usingFallbackVideoSink);
+ std::unique_ptr<GstVideoFrameHolder> frameHolder = makeUnique<GstVideoFrameHolder>(m_sample.get(), m_textureMapperFlags, !m_usingFallbackVideoSink);
GLuint textureID = frameHolder->textureID();
std::unique_ptr<TextureMapperPlatformLayerBuffer> layerBuffer;
if (textureID) {
- layerBuffer = std::make_unique<TextureMapperPlatformLayerBuffer>(textureID, frameHolder->size(), frameHolder->flags(), GraphicsContext3D::RGBA);
+ layerBuffer = makeUnique<TextureMapperPlatformLayerBuffer>(textureID, frameHolder->size(), frameHolder->flags(), GraphicsContext3D::RGBA);
layerBuffer->setUnmanagedBufferDataHolder(WTFMove(frameHolder));
} else {
layerBuffer = proxy.getAvailableBuffer(frameHolder->size(), GL_DONT_CARE);
if (UNLIKELY(!layerBuffer)) {
auto texture = BitmapTextureGL::create(TextureMapperContextAttributes::get());
texture->reset(frameHolder->size(), frameHolder->hasAlphaChannel() ? BitmapTexture::SupportsAlpha : BitmapTexture::NoFlag);
- layerBuffer = std::make_unique<TextureMapperPlatformLayerBuffer>(WTFMove(texture));
+ layerBuffer = makeUnique<TextureMapperPlatformLayerBuffer>(WTFMove(texture));
}
frameHolder->updateTexture(layerBuffer->textureGL());
layerBuffer->setExtraFlags(m_textureMapperFlags | (frameHolder->hasAlphaChannel() ? TextureMapperGL::ShouldBlend : 0));
@@ -912,7 +912,7 @@
if (!GST_IS_SAMPLE(m_sample.get()))
return false;
- std::unique_ptr<GstVideoFrameHolder> frameHolder = std::make_unique<GstVideoFrameHolder>(m_sample.get(), m_textureMapperFlags, true);
+ std::unique_ptr<GstVideoFrameHolder> frameHolder = makeUnique<GstVideoFrameHolder>(m_sample.get(), m_textureMapperFlags, true);
auto textureID = frameHolder->textureID();
if (!textureID)
@@ -923,7 +923,7 @@
size = size.transposedSize();
if (!m_videoTextureCopier)
- m_videoTextureCopier = std::make_unique<VideoTextureCopierGStreamer>(TEXTURE_COPIER_COLOR_CONVERT_FLAG);
+ m_videoTextureCopier = makeUnique<VideoTextureCopierGStreamer>(TEXTURE_COPIER_COLOR_CONVERT_FLAG);
return m_videoTextureCopier->copyVideoTextureToPlatformTexture(textureID, size, outputTexture, outputTarget, level, internalFormat, format, type, flipY, m_videoSourceOrientation);
}
@@ -939,7 +939,7 @@
if (!GST_IS_SAMPLE(m_sample.get()))
return nullptr;
- std::unique_ptr<GstVideoFrameHolder> frameHolder = std::make_unique<GstVideoFrameHolder>(m_sample.get(), m_textureMapperFlags, true);
+ std::unique_ptr<GstVideoFrameHolder> frameHolder = makeUnique<GstVideoFrameHolder>(m_sample.get(), m_textureMapperFlags, true);
auto textureID = frameHolder->textureID();
if (!textureID)
@@ -953,7 +953,7 @@
context->makeContextCurrent();
if (!m_videoTextureCopier)
- m_videoTextureCopier = std::make_unique<VideoTextureCopierGStreamer>(TEXTURE_COPIER_COLOR_CONVERT_FLAG);
+ m_videoTextureCopier = makeUnique<VideoTextureCopierGStreamer>(TEXTURE_COPIER_COLOR_CONVERT_FLAG);
if (!m_videoTextureCopier->copyVideoTextureToPlatformTexture(textureID, size, 0, GraphicsContext3D::TEXTURE_2D, 0, GraphicsContext3D::RGBA, GraphicsContext3D::RGBA, GraphicsContext3D::UNSIGNED_BYTE, false, m_videoSourceOrientation))
return nullptr;
@@ -1148,8 +1148,8 @@
[this](TextureMapperPlatformLayerProxy& proxy)
{
LockHolder holder(proxy.lock());
- std::unique_ptr<TextureMapperPlatformLayerBuffer> layerBuffer = std::make_unique<TextureMapperPlatformLayerBuffer>(0, m_size, TextureMapperGL::ShouldNotBlend, GL_DONT_CARE);
- std::unique_ptr<GStreamerHolePunchClient> holePunchClient = std::make_unique<GStreamerHolePunchClient>(m_videoSink.get());
+ std::unique_ptr<TextureMapperPlatformLayerBuffer> layerBuffer = makeUnique<TextureMapperPlatformLayerBuffer>(0, m_size, TextureMapperGL::ShouldNotBlend, GL_DONT_CARE);
+ std::unique_ptr<GStreamerHolePunchClient> holePunchClient = makeUnique<GStreamerHolePunchClient>(m_videoSink.get());
layerBuffer->setHolePunchClient(WTFMove(holePunchClient));
proxy.pushNextBuffer(WTFMove(layerBuffer));
};
diff --git a/Source/WebCore/platform/graphics/gstreamer/WebKitWebSourceGStreamer.cpp b/Source/WebCore/platform/graphics/gstreamer/WebKitWebSourceGStreamer.cpp
index 743dcc5..9810c25 100644
--- a/Source/WebCore/platform/graphics/gstreamer/WebKitWebSourceGStreamer.cpp
+++ b/Source/WebCore/platform/graphics/gstreamer/WebKitWebSourceGStreamer.cpp
@@ -633,7 +633,7 @@
loadOptions |= PlatformMediaResourceLoader::LoadOption::BufferData;
priv->resource = priv->loader->requestResource(ResourceRequest(request), loadOptions);
if (priv->resource) {
- priv->resource->setClient(std::make_unique<CachedResourceStreamingClient>(protector.get(), ResourceRequest(request)));
+ priv->resource->setClient(makeUnique<CachedResourceStreamingClient>(protector.get(), ResourceRequest(request)));
GST_DEBUG_OBJECT(protector.get(), "Started request");
if (notifyAsyncCompletion)
gst_base_src_start_complete(GST_BASE_SRC(src), GST_FLOW_OK);
diff --git a/Source/WebCore/platform/graphics/gstreamer/mse/MediaPlayerPrivateGStreamerMSE.cpp b/Source/WebCore/platform/graphics/gstreamer/mse/MediaPlayerPrivateGStreamerMSE.cpp
index 4e9d19d..e6880d9 100644
--- a/Source/WebCore/platform/graphics/gstreamer/mse/MediaPlayerPrivateGStreamerMSE.cpp
+++ b/Source/WebCore/platform/graphics/gstreamer/mse/MediaPlayerPrivateGStreamerMSE.cpp
@@ -77,7 +77,7 @@
initializeGStreamerAndRegisterWebKitElements();
GST_DEBUG_CATEGORY_INIT(webkit_mse_debug, "webkitmse", 0, "WebKit MSE media player");
if (isAvailable()) {
- registrar([](MediaPlayer* player) { return std::make_unique<MediaPlayerPrivateGStreamerMSE>(player); },
+ registrar([](MediaPlayer* player) { return makeUnique<MediaPlayerPrivateGStreamerMSE>(player); },
getSupportedTypes, supportsType, nullptr, nullptr, nullptr, supportsKeySystem);
}
}
@@ -459,7 +459,7 @@
std::unique_ptr<PlatformTimeRanges> MediaPlayerPrivateGStreamerMSE::buffered() const
{
- return m_mediaSource ? m_mediaSource->buffered() : std::make_unique<PlatformTimeRanges>();
+ return m_mediaSource ? m_mediaSource->buffered() : makeUnique<PlatformTimeRanges>();
}
void MediaPlayerPrivateGStreamerMSE::sourceSetup(GstElement* sourceElement)
diff --git a/Source/WebCore/platform/graphics/holepunch/MediaPlayerPrivateHolePunch.cpp b/Source/WebCore/platform/graphics/holepunch/MediaPlayerPrivateHolePunch.cpp
index 1172458..0f08c19 100644
--- a/Source/WebCore/platform/graphics/holepunch/MediaPlayerPrivateHolePunch.cpp
+++ b/Source/WebCore/platform/graphics/holepunch/MediaPlayerPrivateHolePunch.cpp
@@ -76,7 +76,7 @@
[this](TextureMapperPlatformLayerProxy& proxy)
{
LockHolder holder(proxy.lock());
- std::unique_ptr<TextureMapperPlatformLayerBuffer> layerBuffer = std::make_unique<TextureMapperPlatformLayerBuffer>(0, m_size, TextureMapperGL::ShouldNotBlend, GL_DONT_CARE);
+ std::unique_ptr<TextureMapperPlatformLayerBuffer> layerBuffer = makeUnique<TextureMapperPlatformLayerBuffer>(0, m_size, TextureMapperGL::ShouldNotBlend, GL_DONT_CARE);
proxy.pushNextBuffer(WTFMove(layerBuffer));
};
@@ -141,7 +141,7 @@
void MediaPlayerPrivateHolePunch::registerMediaEngine(MediaEngineRegistrar registrar)
{
- registrar([](MediaPlayer* player) { return std::make_unique<MediaPlayerPrivateHolePunch>(player); },
+ registrar([](MediaPlayer* player) { return makeUnique<MediaPlayerPrivateHolePunch>(player); },
getSupportedTypes, supportsType, nullptr, nullptr, nullptr, nullptr);
}
diff --git a/Source/WebCore/platform/graphics/holepunch/MediaPlayerPrivateHolePunch.h b/Source/WebCore/platform/graphics/holepunch/MediaPlayerPrivateHolePunch.h
index 239c4f7..8bf7213 100644
--- a/Source/WebCore/platform/graphics/holepunch/MediaPlayerPrivateHolePunch.h
+++ b/Source/WebCore/platform/graphics/holepunch/MediaPlayerPrivateHolePunch.h
@@ -79,7 +79,7 @@
MediaPlayer::NetworkState networkState() const final { return MediaPlayer::Empty; };
MediaPlayer::ReadyState readyState() const final { return MediaPlayer::HaveMetadata; };
- std::unique_ptr<PlatformTimeRanges> buffered() const final { return std::make_unique<PlatformTimeRanges>(); };
+ std::unique_ptr<PlatformTimeRanges> buffered() const final { return makeUnique<PlatformTimeRanges>(); };
bool didLoadingProgress() const final { return false; };
diff --git a/Source/WebCore/platform/graphics/iso/ISOProtectionSchemeInfoBox.cpp b/Source/WebCore/platform/graphics/iso/ISOProtectionSchemeInfoBox.cpp
index d8d7401..bdfdbdc 100644
--- a/Source/WebCore/platform/graphics/iso/ISOProtectionSchemeInfoBox.cpp
+++ b/Source/WebCore/platform/graphics/iso/ISOProtectionSchemeInfoBox.cpp
@@ -53,7 +53,7 @@
return false;
if (optionalBoxType.value().first == ISOSchemeTypeBox::boxTypeName()) {
- m_schemeTypeBox = std::make_unique<ISOSchemeTypeBox>();
+ m_schemeTypeBox = makeUnique<ISOSchemeTypeBox>();
if (!m_schemeTypeBox->read(view, localOffset))
return false;
@@ -68,7 +68,7 @@
}
if (optionalBoxType.value().first == ISOSchemeInformationBox::boxTypeName()) {
- m_schemeInformationBox = std::make_unique<ISOSchemeInformationBox>();
+ m_schemeInformationBox = makeUnique<ISOSchemeInformationBox>();
if (!m_schemeInformationBox->read(view, localOffset))
return false;
diff --git a/Source/WebCore/platform/graphics/iso/ISOSchemeInformationBox.cpp b/Source/WebCore/platform/graphics/iso/ISOSchemeInformationBox.cpp
index b4f277a..c83c4ff 100644
--- a/Source/WebCore/platform/graphics/iso/ISOSchemeInformationBox.cpp
+++ b/Source/WebCore/platform/graphics/iso/ISOSchemeInformationBox.cpp
@@ -47,7 +47,7 @@
if (localOffset + schemeSpecificBoxType.value().second > offset + m_size)
return false;
- m_schemeSpecificData = std::make_unique<ISOTrackEncryptionBox>();
+ m_schemeSpecificData = makeUnique<ISOTrackEncryptionBox>();
if (!m_schemeSpecificData->read(view, localOffset))
return false;
}
diff --git a/Source/WebCore/platform/graphics/mac/FontCustomPlatformData.cpp b/Source/WebCore/platform/graphics/mac/FontCustomPlatformData.cpp
index 327ebf6..507938b 100644
--- a/Source/WebCore/platform/graphics/mac/FontCustomPlatformData.cpp
+++ b/Source/WebCore/platform/graphics/mac/FontCustomPlatformData.cpp
@@ -84,7 +84,7 @@
return nullptr;
#endif
- return std::make_unique<FontCustomPlatformData>(fontDescriptor.get());
+ return makeUnique<FontCustomPlatformData>(fontDescriptor.get());
}
bool FontCustomPlatformData::supportsFormat(const String& format)
diff --git a/Source/WebCore/platform/graphics/nicosia/NicosiaSceneIntegration.cpp b/Source/WebCore/platform/graphics/nicosia/NicosiaSceneIntegration.cpp
index 109c2c5..5bee613 100644
--- a/Source/WebCore/platform/graphics/nicosia/NicosiaSceneIntegration.cpp
+++ b/Source/WebCore/platform/graphics/nicosia/NicosiaSceneIntegration.cpp
@@ -62,7 +62,7 @@
std::unique_ptr<SceneIntegration::UpdateScope> SceneIntegration::createUpdateScope()
{
- return std::make_unique<UpdateScope>(makeRef(*this));
+ return makeUnique<UpdateScope>(makeRef(*this));
}
SceneIntegration::Client::~Client() = default;
diff --git a/Source/WebCore/platform/graphics/nicosia/cairo/NicosiaCairoOperationRecorder.cpp b/Source/WebCore/platform/graphics/nicosia/cairo/NicosiaCairoOperationRecorder.cpp
index 2b1aecf..50e0c3c 100644
--- a/Source/WebCore/platform/graphics/nicosia/cairo/NicosiaCairoOperationRecorder.cpp
+++ b/Source/WebCore/platform/graphics/nicosia/cairo/NicosiaCairoOperationRecorder.cpp
@@ -68,7 +68,7 @@
template<typename T>
auto createCommand() -> std::enable_if_t<std::is_base_of<OperationData<>, T>::value, std::unique_ptr<PaintingOperation>>
{
- return std::make_unique<T>();
+ return makeUnique<T>();
}
CairoOperationRecorder::CairoOperationRecorder(GraphicsContext& context, PaintingOperations& commandList)
diff --git a/Source/WebCore/platform/graphics/nicosia/cairo/NicosiaPaintingContextCairo.cpp b/Source/WebCore/platform/graphics/nicosia/cairo/NicosiaPaintingContextCairo.cpp
index 0c8a670..b3508d5 100644
--- a/Source/WebCore/platform/graphics/nicosia/cairo/NicosiaPaintingContextCairo.cpp
+++ b/Source/WebCore/platform/graphics/nicosia/cairo/NicosiaPaintingContextCairo.cpp
@@ -70,8 +70,8 @@
});
m_cairo.context = adoptRef(cairo_create(m_cairo.surface.get()));
- m_platformContext = std::make_unique<WebCore::PlatformContextCairo>(m_cairo.context.get());
- m_graphicsContext = std::make_unique<WebCore::GraphicsContext>(WebCore::GraphicsContextImplCairo::createFactory(*m_platformContext));
+ m_platformContext = makeUnique<WebCore::PlatformContextCairo>(m_cairo.context.get());
+ m_graphicsContext = makeUnique<WebCore::GraphicsContext>(WebCore::GraphicsContextImplCairo::createFactory(*m_platformContext));
}
PaintingContextCairo::ForPainting::~ForPainting()
@@ -104,10 +104,10 @@
PaintingContextCairo::ForRecording::ForRecording(PaintingOperations& paintingOperations)
{
- m_graphicsContext = std::make_unique<WebCore::GraphicsContext>(
+ m_graphicsContext = makeUnique<WebCore::GraphicsContext>(
[&paintingOperations](WebCore::GraphicsContext& context)
{
- return std::make_unique<CairoOperationRecorder>(context, paintingOperations);
+ return makeUnique<CairoOperationRecorder>(context, paintingOperations);
});
}
diff --git a/Source/WebCore/platform/graphics/nicosia/texmap/NicosiaBackingStoreTextureMapperImpl.cpp b/Source/WebCore/platform/graphics/nicosia/texmap/NicosiaBackingStoreTextureMapperImpl.cpp
index d4c9b60..8e3790f 100644
--- a/Source/WebCore/platform/graphics/nicosia/texmap/NicosiaBackingStoreTextureMapperImpl.cpp
+++ b/Source/WebCore/platform/graphics/nicosia/texmap/NicosiaBackingStoreTextureMapperImpl.cpp
@@ -37,7 +37,7 @@
{
return Factory(
[](BackingStore&) {
- return std::make_unique<BackingStoreTextureMapperImpl>();
+ return makeUnique<BackingStoreTextureMapperImpl>();
});
}
diff --git a/Source/WebCore/platform/graphics/nicosia/texmap/NicosiaCompositionLayerTextureMapperImpl.cpp b/Source/WebCore/platform/graphics/nicosia/texmap/NicosiaCompositionLayerTextureMapperImpl.cpp
index 38fdd93..75692c7 100644
--- a/Source/WebCore/platform/graphics/nicosia/texmap/NicosiaCompositionLayerTextureMapperImpl.cpp
+++ b/Source/WebCore/platform/graphics/nicosia/texmap/NicosiaCompositionLayerTextureMapperImpl.cpp
@@ -39,7 +39,7 @@
{
return Factory(
[](uint64_t, CompositionLayer&) {
- return std::make_unique<CompositionLayerTextureMapperImpl>();
+ return makeUnique<CompositionLayerTextureMapperImpl>();
});
}
diff --git a/Source/WebCore/platform/graphics/nicosia/texmap/NicosiaContentLayerTextureMapperImpl.cpp b/Source/WebCore/platform/graphics/nicosia/texmap/NicosiaContentLayerTextureMapperImpl.cpp
index 561728b..2fb0ec9 100644
--- a/Source/WebCore/platform/graphics/nicosia/texmap/NicosiaContentLayerTextureMapperImpl.cpp
+++ b/Source/WebCore/platform/graphics/nicosia/texmap/NicosiaContentLayerTextureMapperImpl.cpp
@@ -39,7 +39,7 @@
{
return Factory(
[&client](ContentLayer&) {
- return std::make_unique<ContentLayerTextureMapperImpl>(client);
+ return makeUnique<ContentLayerTextureMapperImpl>(client);
});
}
diff --git a/Source/WebCore/platform/graphics/nicosia/texmap/NicosiaGC3DLayer.cpp b/Source/WebCore/platform/graphics/nicosia/texmap/NicosiaGC3DLayer.cpp
index 52ec70b..9a9bd46 100644
--- a/Source/WebCore/platform/graphics/nicosia/texmap/NicosiaGC3DLayer.cpp
+++ b/Source/WebCore/platform/graphics/nicosia/texmap/NicosiaGC3DLayer.cpp
@@ -88,7 +88,7 @@
auto& proxy = downcast<Nicosia::ContentLayerTextureMapperImpl>(m_contentLayer->impl()).proxy();
LockHolder holder(proxy.lock());
- proxy.pushNextBuffer(std::make_unique<TextureMapperPlatformLayerBuffer>(m_context.m_compositorTexture, textureSize, flags, m_context.m_internalColorFormat));
+ proxy.pushNextBuffer(makeUnique<TextureMapperPlatformLayerBuffer>(m_context.m_compositorTexture, textureSize, flags, m_context.m_internalColorFormat));
}
m_context.markLayerComposited();
diff --git a/Source/WebCore/platform/graphics/nicosia/texmap/NicosiaImageBackingTextureMapperImpl.cpp b/Source/WebCore/platform/graphics/nicosia/texmap/NicosiaImageBackingTextureMapperImpl.cpp
index a2ae34a..d353c8b 100644
--- a/Source/WebCore/platform/graphics/nicosia/texmap/NicosiaImageBackingTextureMapperImpl.cpp
+++ b/Source/WebCore/platform/graphics/nicosia/texmap/NicosiaImageBackingTextureMapperImpl.cpp
@@ -37,7 +37,7 @@
{
return Factory(
[](ImageBacking&) {
- return std::make_unique<ImageBackingTextureMapperImpl>();
+ return makeUnique<ImageBackingTextureMapperImpl>();
});
}
diff --git a/Source/WebCore/platform/graphics/opengl/GraphicsContext3DOpenGL.cpp b/Source/WebCore/platform/graphics/opengl/GraphicsContext3DOpenGL.cpp
index e6848fc..b96363b 100644
--- a/Source/WebCore/platform/graphics/opengl/GraphicsContext3DOpenGL.cpp
+++ b/Source/WebCore/platform/graphics/opengl/GraphicsContext3DOpenGL.cpp
@@ -475,7 +475,7 @@
Extensions3D& GraphicsContext3D::getExtensions()
{
if (!m_extensions)
- m_extensions = std::make_unique<Extensions3DOpenGL>(this, isGLES2Compliant());
+ m_extensions = makeUnique<Extensions3DOpenGL>(this, isGLES2Compliant());
return *m_extensions;
}
#endif
diff --git a/Source/WebCore/platform/graphics/opengl/GraphicsContext3DOpenGLCommon.cpp b/Source/WebCore/platform/graphics/opengl/GraphicsContext3DOpenGLCommon.cpp
index b24df03..2a0e5b7 100644
--- a/Source/WebCore/platform/graphics/opengl/GraphicsContext3DOpenGLCommon.cpp
+++ b/Source/WebCore/platform/graphics/opengl/GraphicsContext3DOpenGLCommon.cpp
@@ -656,7 +656,7 @@
ANGLEResources.HashFunction = nameHashForShader;
if (!nameHashMapForShaders)
- nameHashMapForShaders = std::make_unique<ShaderNameHash>();
+ nameHashMapForShaders = makeUnique<ShaderNameHash>();
setCurrentNameHashMapForShader(nameHashMapForShaders.get());
m_compiler.setResources(ANGLEResources);
@@ -1023,7 +1023,7 @@
// Attributes are a special case: they may be requested before any shaders have been compiled,
// and aren't even required to be used in any shader program.
if (!nameHashMapForShaders)
- nameHashMapForShaders = std::make_unique<ShaderNameHash>();
+ nameHashMapForShaders = makeUnique<ShaderNameHash>();
setCurrentNameHashMapForShader(nameHashMapForShaders.get());
auto generatedName = generateHashedName(name);
diff --git a/Source/WebCore/platform/graphics/opengl/GraphicsContext3DOpenGLES.cpp b/Source/WebCore/platform/graphics/opengl/GraphicsContext3DOpenGLES.cpp
index 243046d..70a20d5 100644
--- a/Source/WebCore/platform/graphics/opengl/GraphicsContext3DOpenGLES.cpp
+++ b/Source/WebCore/platform/graphics/opengl/GraphicsContext3DOpenGLES.cpp
@@ -242,7 +242,7 @@
Extensions3D& GraphicsContext3D::getExtensions()
{
if (!m_extensions)
- m_extensions = std::make_unique<Extensions3DOpenGLES>(this, isGLES2Compliant());
+ m_extensions = makeUnique<Extensions3DOpenGLES>(this, isGLES2Compliant());
return *m_extensions;
}
#endif
@@ -271,7 +271,7 @@
GraphicsContext3D::GraphicsContext3D(GraphicsContext3DAttributes attributes, HostWindow*, GraphicsContext3D::RenderStyle renderStyle, GraphicsContext3D* sharedContext)
: m_attrs(attributes)
, m_compiler(isGLES2Compliant() ? SH_ESSL_OUTPUT : SH_GLSL_COMPATIBILITY_OUTPUT)
- , m_private(std::make_unique<GraphicsContext3DPrivate>(this, renderStyle))
+ , m_private(makeUnique<GraphicsContext3DPrivate>(this, renderStyle))
{
ASSERT_UNUSED(sharedContext, !sharedContext);
makeContextCurrent();
diff --git a/Source/WebCore/platform/graphics/texmap/GraphicsContext3DTextureMapper.cpp b/Source/WebCore/platform/graphics/texmap/GraphicsContext3DTextureMapper.cpp
index ed6ccf1..8fd3ad4 100644
--- a/Source/WebCore/platform/graphics/texmap/GraphicsContext3DTextureMapper.cpp
+++ b/Source/WebCore/platform/graphics/texmap/GraphicsContext3DTextureMapper.cpp
@@ -106,9 +106,9 @@
{
ASSERT_UNUSED(sharedContext, !sharedContext);
#if USE(NICOSIA)
- m_nicosiaLayer = std::make_unique<Nicosia::GC3DLayer>(*this, renderStyle);
+ m_nicosiaLayer = makeUnique<Nicosia::GC3DLayer>(*this, renderStyle);
#else
- m_texmapLayer = std::make_unique<TextureMapperGC3DPlatformLayer>(*this, renderStyle);
+ m_texmapLayer = makeUnique<TextureMapperGC3DPlatformLayer>(*this, renderStyle);
#endif
makeContextCurrent();
@@ -325,10 +325,10 @@
if (!m_extensions) {
#if USE(OPENGL_ES)
// glGetStringi is not available on GLES2.
- m_extensions = std::make_unique<Extensions3DOpenGLES>(this, false);
+ m_extensions = makeUnique<Extensions3DOpenGLES>(this, false);
#else
// From OpenGL 3.2 on we use the Core profile, and there we must use glGetStringi.
- m_extensions = std::make_unique<Extensions3DOpenGL>(this, GLContext::current()->version() >= 320);
+ m_extensions = makeUnique<Extensions3DOpenGL>(this, GLContext::current()->version() >= 320);
#endif
}
return *m_extensions;
diff --git a/Source/WebCore/platform/graphics/texmap/TextureMapperGC3DPlatformLayer.cpp b/Source/WebCore/platform/graphics/texmap/TextureMapperGC3DPlatformLayer.cpp
index 14f1dbf..6632315 100644
--- a/Source/WebCore/platform/graphics/texmap/TextureMapperGC3DPlatformLayer.cpp
+++ b/Source/WebCore/platform/graphics/texmap/TextureMapperGC3DPlatformLayer.cpp
@@ -84,7 +84,7 @@
{
LockHolder holder(m_platformLayerProxy->lock());
- m_platformLayerProxy->pushNextBuffer(std::make_unique<TextureMapperPlatformLayerBuffer>(m_context.m_compositorTexture, textureSize, flags, m_context.m_internalColorFormat));
+ m_platformLayerProxy->pushNextBuffer(makeUnique<TextureMapperPlatformLayerBuffer>(m_context.m_compositorTexture, textureSize, flags, m_context.m_internalColorFormat));
}
m_context.markLayerComposited();
diff --git a/Source/WebCore/platform/graphics/texmap/TextureMapperGL.cpp b/Source/WebCore/platform/graphics/texmap/TextureMapperGL.cpp
index 974b857..a2f7586 100644
--- a/Source/WebCore/platform/graphics/texmap/TextureMapperGL.cpp
+++ b/Source/WebCore/platform/graphics/texmap/TextureMapperGL.cpp
@@ -186,7 +186,7 @@
m_data = new TextureMapperGLData(platformContext);
#if USE(TEXTURE_MAPPER_GL)
- m_texturePool = std::make_unique<BitmapTexturePool>(m_contextAttributes);
+ m_texturePool = makeUnique<BitmapTexturePool>(m_contextAttributes);
#endif
}
@@ -790,7 +790,7 @@
std::unique_ptr<TextureMapper> TextureMapper::platformCreateAccelerated()
{
- return std::make_unique<TextureMapperGL>();
+ return makeUnique<TextureMapperGL>();
}
};
diff --git a/Source/WebCore/platform/graphics/texmap/TextureMapperPlatformLayerBuffer.cpp b/Source/WebCore/platform/graphics/texmap/TextureMapperPlatformLayerBuffer.cpp
index 7afdf30a0..e11a0bb 100644
--- a/Source/WebCore/platform/graphics/texmap/TextureMapperPlatformLayerBuffer.cpp
+++ b/Source/WebCore/platform/graphics/texmap/TextureMapperPlatformLayerBuffer.cpp
@@ -64,7 +64,7 @@
auto texture = BitmapTextureGL::create(TextureMapperContextAttributes::get(), m_internalFormat);
texture->reset(m_size);
static_cast<BitmapTextureGL&>(texture.get()).copyFromExternalTexture(m_textureID);
- return std::make_unique<TextureMapperPlatformLayerBuffer>(WTFMove(texture), m_extraFlags);
+ return makeUnique<TextureMapperPlatformLayerBuffer>(WTFMove(texture), m_extraFlags);
}
void TextureMapperPlatformLayerBuffer::paintToTextureMapper(TextureMapper& textureMapper, const FloatRect& targetRect, const TransformationMatrix& modelViewMatrix, float opacity)
diff --git a/Source/WebCore/platform/graphics/texmap/TextureMapperPlatformLayerProxy.cpp b/Source/WebCore/platform/graphics/texmap/TextureMapperPlatformLayerProxy.cpp
index c714f6d..3793675 100644
--- a/Source/WebCore/platform/graphics/texmap/TextureMapperPlatformLayerProxy.cpp
+++ b/Source/WebCore/platform/graphics/texmap/TextureMapperPlatformLayerProxy.cpp
@@ -71,8 +71,8 @@
if (m_targetLayer && m_currentBuffer)
m_targetLayer->setContentsLayer(m_currentBuffer.get());
- m_releaseUnusedBuffersTimer = std::make_unique<RunLoop::Timer<TextureMapperPlatformLayerProxy>>(RunLoop::current(), this, &TextureMapperPlatformLayerProxy::releaseUnusedBuffersTimerFired);
- m_compositorThreadUpdateTimer = std::make_unique<RunLoop::Timer<TextureMapperPlatformLayerProxy>>(RunLoop::current(), this, &TextureMapperPlatformLayerProxy::compositorThreadUpdateTimerFired);
+ m_releaseUnusedBuffersTimer = makeUnique<RunLoop::Timer<TextureMapperPlatformLayerProxy>>(RunLoop::current(), this, &TextureMapperPlatformLayerProxy::releaseUnusedBuffersTimerFired);
+ m_compositorThreadUpdateTimer = makeUnique<RunLoop::Timer<TextureMapperPlatformLayerProxy>>(RunLoop::current(), this, &TextureMapperPlatformLayerProxy::compositorThreadUpdateTimerFired);
#if USE(GLIB_EVENT_LOOP)
m_compositorThreadUpdateTimer->setPriority(RunLoopSourcePriority::CompositingThreadUpdateTimer);
diff --git a/Source/WebCore/platform/graphics/texmap/coordinated/CoordinatedGraphicsLayer.cpp b/Source/WebCore/platform/graphics/texmap/coordinated/CoordinatedGraphicsLayer.cpp
index c73f01b..1718133 100644
--- a/Source/WebCore/platform/graphics/texmap/coordinated/CoordinatedGraphicsLayer.cpp
+++ b/Source/WebCore/platform/graphics/texmap/coordinated/CoordinatedGraphicsLayer.cpp
@@ -981,7 +981,7 @@
// Ensure the TiledBackingStore object, and enforce a complete repaint if it's not been present yet.
if (!layerState.mainBackingStore) {
- layerState.mainBackingStore = std::make_unique<TiledBackingStore>(impl, effectiveContentsScale());
+ layerState.mainBackingStore = makeUnique<TiledBackingStore>(impl, effectiveContentsScale());
m_pendingVisibleRectAdjustment = true;
}
diff --git a/Source/WebCore/platform/graphics/texmap/coordinated/TiledBackingStore.cpp b/Source/WebCore/platform/graphics/texmap/coordinated/TiledBackingStore.cpp
index 3be4311..4a69782 100644
--- a/Source/WebCore/platform/graphics/texmap/coordinated/TiledBackingStore.cpp
+++ b/Source/WebCore/platform/graphics/texmap/coordinated/TiledBackingStore.cpp
@@ -220,7 +220,7 @@
unsigned tilesToCreateCount = tilesToCreate.size();
for (unsigned n = 0; n < tilesToCreateCount; ++n) {
Tile::Coordinate coordinate = tilesToCreate[n];
- m_tiles.add(coordinate, std::make_unique<Tile>(*this, coordinate));
+ m_tiles.add(coordinate, makeUnique<Tile>(*this, coordinate));
}
requiredTileCount -= tilesToCreateCount;
diff --git a/Source/WebCore/platform/graphics/transforms/TransformState.cpp b/Source/WebCore/platform/graphics/transforms/TransformState.cpp
index c88e9be..4eaf001 100644
--- a/Source/WebCore/platform/graphics/transforms/TransformState.cpp
+++ b/Source/WebCore/platform/graphics/transforms/TransformState.cpp
@@ -40,7 +40,7 @@
if (m_mapQuad) {
m_lastPlanarQuad = other.m_lastPlanarQuad;
if (other.m_lastPlanarSecondaryQuad)
- m_lastPlanarSecondaryQuad = std::make_unique<FloatQuad>(*other.m_lastPlanarSecondaryQuad);
+ m_lastPlanarSecondaryQuad = makeUnique<FloatQuad>(*other.m_lastPlanarSecondaryQuad);
else
m_lastPlanarSecondaryQuad = nullptr;
}
@@ -50,7 +50,7 @@
m_accumulatedTransform = nullptr;
if (other.m_accumulatedTransform)
- m_accumulatedTransform = std::make_unique<TransformationMatrix>(*other.m_accumulatedTransform);
+ m_accumulatedTransform = makeUnique<TransformationMatrix>(*other.m_accumulatedTransform);
return *this;
}
@@ -129,12 +129,12 @@
// If we have an accumulated transform from last time, multiply in this transform
if (m_accumulatedTransform) {
if (m_direction == ApplyTransformDirection)
- m_accumulatedTransform = std::make_unique<TransformationMatrix>(transformFromContainer * *m_accumulatedTransform);
+ m_accumulatedTransform = makeUnique<TransformationMatrix>(transformFromContainer * *m_accumulatedTransform);
else
m_accumulatedTransform->multiply(transformFromContainer);
} else if (accumulate == AccumulateTransform) {
// Make one if we started to accumulate
- m_accumulatedTransform = std::make_unique<TransformationMatrix>(transformFromContainer);
+ m_accumulatedTransform = makeUnique<TransformationMatrix>(transformFromContainer);
}
if (accumulate == FlattenTransform) {
@@ -208,7 +208,7 @@
// Map the quad back through any transform or offset back into the last flattening coordinate space.
FloatQuad backMappedQuad(*quad);
mapQuad(backMappedQuad, inverseDirection());
- m_lastPlanarSecondaryQuad = std::make_unique<FloatQuad>(backMappedQuad);
+ m_lastPlanarSecondaryQuad = makeUnique<FloatQuad>(backMappedQuad);
}
void TransformState::mapQuad(FloatQuad& quad, TransformDirection direction, bool* wasClamped) const
diff --git a/Source/WebCore/platform/graphics/transforms/TransformState.h b/Source/WebCore/platform/graphics/transforms/TransformState.h
index 1086374..b625836 100644
--- a/Source/WebCore/platform/graphics/transforms/TransformState.h
+++ b/Source/WebCore/platform/graphics/transforms/TransformState.h
@@ -84,7 +84,7 @@
// We must be in a flattened state (no accumulated offset) when setting this secondary quad.
ASSERT(m_accumulatedOffset == LayoutSize());
if (quad)
- m_lastPlanarSecondaryQuad = std::make_unique<FloatQuad>(*quad);
+ m_lastPlanarSecondaryQuad = makeUnique<FloatQuad>(*quad);
else
m_lastPlanarSecondaryQuad = nullptr;
}
diff --git a/Source/WebCore/platform/graphics/win/FontCacheWin.cpp b/Source/WebCore/platform/graphics/win/FontCacheWin.cpp
index d089d0f..a46d802 100644
--- a/Source/WebCore/platform/graphics/win/FontCacheWin.cpp
+++ b/Source/WebCore/platform/graphics/win/FontCacheWin.cpp
@@ -642,7 +642,7 @@
bool synthesizeBold = isGDIFontWeightBold(weight) && !isGDIFontWeightBold(logFont.lfWeight);
bool synthesizeItalic = isItalic(fontDescription.italic()) && !logFont.lfItalic;
- auto result = std::make_unique<FontPlatformData>(WTFMove(hfont), fontDescription.computedPixelSize(), synthesizeBold, synthesizeItalic, useGDI);
+ auto result = makeUnique<FontPlatformData>(WTFMove(hfont), fontDescription.computedPixelSize(), synthesizeBold, synthesizeItalic, useGDI);
#if USE(CG)
bool fontCreationFailed = !result->cgFont();
diff --git a/Source/WebCore/platform/graphics/win/FontCustomPlatformData.cpp b/Source/WebCore/platform/graphics/win/FontCustomPlatformData.cpp
index c829daa..ea53010 100644
--- a/Source/WebCore/platform/graphics/win/FontCustomPlatformData.cpp
+++ b/Source/WebCore/platform/graphics/win/FontCustomPlatformData.cpp
@@ -104,7 +104,7 @@
fontReference = renameAndActivateFont(buffer, fontName);
if (!fontReference)
return nullptr;
- return std::make_unique<FontCustomPlatformData>(fontReference, fontName);
+ return makeUnique<FontCustomPlatformData>(fontReference, fontName);
}
bool FontCustomPlatformData::supportsFormat(const String& format)
diff --git a/Source/WebCore/platform/graphics/win/FontCustomPlatformDataCairo.cpp b/Source/WebCore/platform/graphics/win/FontCustomPlatformDataCairo.cpp
index ab7c790..eeeafeb 100644
--- a/Source/WebCore/platform/graphics/win/FontCustomPlatformDataCairo.cpp
+++ b/Source/WebCore/platform/graphics/win/FontCustomPlatformDataCairo.cpp
@@ -91,7 +91,7 @@
if (!fontReference)
return nullptr;
- return std::make_unique<FontCustomPlatformData>(fontReference, fontName);
+ return makeUnique<FontCustomPlatformData>(fontReference, fontName);
}
bool FontCustomPlatformData::supportsFormat(const String& format)
diff --git a/Source/WebCore/platform/graphics/win/FullScreenController.cpp b/Source/WebCore/platform/graphics/win/FullScreenController.cpp
index 1e491c1..cc7ad3e 100644
--- a/Source/WebCore/platform/graphics/win/FullScreenController.cpp
+++ b/Source/WebCore/platform/graphics/win/FullScreenController.cpp
@@ -104,7 +104,7 @@
}
FullScreenController::FullScreenController(FullScreenControllerClient* client)
- : m_private(std::make_unique<Private>(this, client))
+ : m_private(makeUnique<Private>(this, client))
{
ASSERT_ARG(client, client);
}
@@ -132,13 +132,13 @@
m_private->m_originalFrame = originalFrame;
ASSERT(!m_private->m_backgroundWindow);
- m_private->m_backgroundWindow = std::make_unique<MediaPlayerPrivateFullscreenWindow>(m_private.get());
+ m_private->m_backgroundWindow = makeUnique<MediaPlayerPrivateFullscreenWindow>(m_private.get());
m_private->m_backgroundWindow->createWindow(0);
::AnimateWindow(m_private->m_backgroundWindow->hwnd(), kFullScreenAnimationDuration, AW_BLEND | AW_ACTIVATE);
m_private->m_client->fullScreenClientWillEnterFullScreen();
ASSERT(!m_private->m_fullScreenWindow);
- m_private->m_fullScreenWindow = std::make_unique<MediaPlayerPrivateFullscreenWindow>(m_private.get());
+ m_private->m_fullScreenWindow = makeUnique<MediaPlayerPrivateFullscreenWindow>(m_private.get());
ASSERT(m_private->m_fullScreenWindow);
m_private->m_fullScreenWindow->createWindow(0);
diff --git a/Source/WebCore/platform/graphics/win/GraphicsContextCairoWin.cpp b/Source/WebCore/platform/graphics/win/GraphicsContextCairoWin.cpp
index 1067b96..f144257 100644
--- a/Source/WebCore/platform/graphics/win/GraphicsContextCairoWin.cpp
+++ b/Source/WebCore/platform/graphics/win/GraphicsContextCairoWin.cpp
@@ -78,7 +78,7 @@
cairo_t* cr = createCairoContextWithHDC(dc, hasAlpha);
- m_data = new GraphicsContextPlatformPrivate(std::make_unique<PlatformContextCairo>(cr));
+ m_data = new GraphicsContextPlatformPrivate(makeUnique<PlatformContextCairo>(cr));
m_data->platformContext.setGraphicsContextPrivate(m_data);
m_data->m_hdc = dc;
if (platformContext()->cr()) {
diff --git a/Source/WebCore/platform/graphics/win/GraphicsContextDirect2D.cpp b/Source/WebCore/platform/graphics/win/GraphicsContextDirect2D.cpp
index 9f2d388..d3e477e 100644
--- a/Source/WebCore/platform/graphics/win/GraphicsContextDirect2D.cpp
+++ b/Source/WebCore/platform/graphics/win/GraphicsContextDirect2D.cpp
@@ -63,7 +63,7 @@
(*renderTarget)->BindDC(hdc, &rect);
- auto ownedPlatformContext = std::make_unique<PlatformContextDirect2D>(*renderTarget);
+ auto ownedPlatformContext = makeUnique<PlatformContextDirect2D>(*renderTarget);
m_data = new GraphicsContextPlatformPrivate(WTFMove(ownedPlatformContext), BitmapRenderingContextType::GPUMemory);
m_data->m_hdc = hdc;
}
@@ -126,7 +126,7 @@
if (!SUCCEEDED(hr))
return;
- auto ownedPlatformContext = std::make_unique<PlatformContextDirect2D>(renderTarget.get());
+ auto ownedPlatformContext = makeUnique<PlatformContextDirect2D>(renderTarget.get());
m_data = new GraphicsContextPlatformPrivate(WTFMove(ownedPlatformContext), BitmapRenderingContextType::GPUMemory);
m_data->m_hdc = hdc;
diff --git a/Source/WebCore/platform/graphics/win/GraphicsContextImplDirect2D.cpp b/Source/WebCore/platform/graphics/win/GraphicsContextImplDirect2D.cpp
index bd76efb..1ebb5b0 100644
--- a/Source/WebCore/platform/graphics/win/GraphicsContextImplDirect2D.cpp
+++ b/Source/WebCore/platform/graphics/win/GraphicsContextImplDirect2D.cpp
@@ -46,7 +46,7 @@
return GraphicsContext::GraphicsContextImplFactory(
[&platformContext](GraphicsContext& context)
{
- return std::make_unique<GraphicsContextImplDirect2D>(context, platformContext);
+ return makeUnique<GraphicsContextImplDirect2D>(context, platformContext);
});
}
@@ -55,14 +55,14 @@
return GraphicsContext::GraphicsContextImplFactory(
[renderTarget](GraphicsContext& context)
{
- return std::make_unique<GraphicsContextImplDirect2D>(context, renderTarget);
+ return makeUnique<GraphicsContextImplDirect2D>(context, renderTarget);
});
}
GraphicsContextImplDirect2D::GraphicsContextImplDirect2D(GraphicsContext& context, PlatformContextDirect2D& platformContext)
: GraphicsContextImpl(context, FloatRect { }, AffineTransform { })
, m_platformContext(platformContext)
- , m_private(std::make_unique<GraphicsContextPlatformPrivate>(m_platformContext, GraphicsContext::BitmapRenderingContextType::GPUMemory))
+ , m_private(makeUnique<GraphicsContextPlatformPrivate>(m_platformContext, GraphicsContext::BitmapRenderingContextType::GPUMemory))
{
m_platformContext.setGraphicsContextPrivate(m_private.get());
m_private->syncContext(m_platformContext);
@@ -70,9 +70,9 @@
GraphicsContextImplDirect2D::GraphicsContextImplDirect2D(GraphicsContext& context, ID2D1RenderTarget* renderTarget)
: GraphicsContextImpl(context, FloatRect { }, AffineTransform { })
- , m_ownedPlatformContext(std::make_unique<PlatformContextDirect2D>(renderTarget))
+ , m_ownedPlatformContext(makeUnique<PlatformContextDirect2D>(renderTarget))
, m_platformContext(*m_ownedPlatformContext)
- , m_private(std::make_unique<GraphicsContextPlatformPrivate>(m_platformContext, GraphicsContext::BitmapRenderingContextType::GPUMemory))
+ , m_private(makeUnique<GraphicsContextPlatformPrivate>(m_platformContext, GraphicsContext::BitmapRenderingContextType::GPUMemory))
{
m_platformContext.setGraphicsContextPrivate(m_private.get());
m_private->syncContext(m_platformContext);
diff --git a/Source/WebCore/platform/graphics/win/GraphicsContextWin.cpp b/Source/WebCore/platform/graphics/win/GraphicsContextWin.cpp
index 5bde4ce..1d80420 100644
--- a/Source/WebCore/platform/graphics/win/GraphicsContextWin.cpp
+++ b/Source/WebCore/platform/graphics/win/GraphicsContextWin.cpp
@@ -95,7 +95,7 @@
std::unique_ptr<GraphicsContext::WindowsBitmap> GraphicsContext::createWindowsBitmap(const IntSize& size)
{
- return std::make_unique<WindowsBitmap>(m_data->m_hdc, size);
+ return makeUnique<WindowsBitmap>(m_data->m_hdc, size);
}
#endif
diff --git a/Source/WebCore/platform/graphics/win/ImageBufferDirect2D.cpp b/Source/WebCore/platform/graphics/win/ImageBufferDirect2D.cpp
index 06c1745..35a9ff6 100644
--- a/Source/WebCore/platform/graphics/win/ImageBufferDirect2D.cpp
+++ b/Source/WebCore/platform/graphics/win/ImageBufferDirect2D.cpp
@@ -112,8 +112,8 @@
return;
// Note: This places the bitmapcontext into a locked state because of the BeginDraw call in the constructor.
- m_data.platformContext = std::make_unique<PlatformContextDirect2D>(bitmapContext.get());
- m_data.context = std::make_unique<GraphicsContext>(m_data.platformContext.get(), GraphicsContext::BitmapRenderingContextType::GPUMemory);
+ m_data.platformContext = makeUnique<PlatformContextDirect2D>(bitmapContext.get());
+ m_data.context = makeUnique<GraphicsContext>(m_data.platformContext.get(), GraphicsContext::BitmapRenderingContextType::GPUMemory);
success = true;
}
diff --git a/Source/WebCore/platform/graphics/win/MediaPlayerPrivateMediaFoundation.cpp b/Source/WebCore/platform/graphics/win/MediaPlayerPrivateMediaFoundation.cpp
index 5838ec1..6d64ae9 100644
--- a/Source/WebCore/platform/graphics/win/MediaPlayerPrivateMediaFoundation.cpp
+++ b/Source/WebCore/platform/graphics/win/MediaPlayerPrivateMediaFoundation.cpp
@@ -82,7 +82,7 @@
void MediaPlayerPrivateMediaFoundation::registerMediaEngine(MediaEngineRegistrar registrar)
{
if (isAvailable()) {
- registrar([](MediaPlayer* player) { return std::make_unique<MediaPlayerPrivateMediaFoundation>(player); },
+ registrar([](MediaPlayer* player) { return makeUnique<MediaPlayerPrivateMediaFoundation>(player); },
getSupportedTypes, supportsType, 0, 0, 0, 0);
}
}
@@ -301,7 +301,7 @@
std::unique_ptr<PlatformTimeRanges> MediaPlayerPrivateMediaFoundation::buffered() const
{
- auto ranges = std::make_unique<PlatformTimeRanges>();
+ auto ranges = makeUnique<PlatformTimeRanges>();
if (m_presenter && m_presenter->maxTimeLoaded() > 0)
ranges->add(MediaTime::zeroTime(), MediaTime::createWithDouble(m_presenter->maxTimeLoaded()));
return ranges;
@@ -888,7 +888,7 @@
m_sourceRect.bottom = 1;
m_sourceRect.right = 1;
- m_presenterEngine = std::make_unique<Direct3DPresenter>();
+ m_presenterEngine = makeUnique<Direct3DPresenter>();
if (!m_presenterEngine)
return;
diff --git a/Source/WebCore/platform/graphics/win/WKCAImageQueue.cpp b/Source/WebCore/platform/graphics/win/WKCAImageQueue.cpp
index 8c0eb24..9d7d92e 100644
--- a/Source/WebCore/platform/graphics/win/WKCAImageQueue.cpp
+++ b/Source/WebCore/platform/graphics/win/WKCAImageQueue.cpp
@@ -51,13 +51,13 @@
}
WKCAImageQueue::WKCAImageQueue(uint32_t width, uint32_t height, uint32_t capacity)
- : m_private(std::make_unique<WKCAImageQueuePrivate>())
+ : m_private(makeUnique<WKCAImageQueuePrivate>())
{
m_private->m_imageQueue = adoptCF(wkCAImageQueueCreate(width, height, capacity));
}
WKCAImageQueue::WKCAImageQueue(const WKCAImageQueue& o)
- : m_private(std::make_unique<WKCAImageQueuePrivate>())
+ : m_private(makeUnique<WKCAImageQueuePrivate>())
{
m_private->m_imageQueue = o.m_private->m_imageQueue;
}
diff --git a/Source/WebCore/platform/gtk/PasteboardGtk.cpp b/Source/WebCore/platform/gtk/PasteboardGtk.cpp
index 71a00a3..42252d3 100644
--- a/Source/WebCore/platform/gtk/PasteboardGtk.cpp
+++ b/Source/WebCore/platform/gtk/PasteboardGtk.cpp
@@ -43,24 +43,24 @@
std::unique_ptr<Pasteboard> Pasteboard::createForCopyAndPaste()
{
- return std::make_unique<Pasteboard>("CLIPBOARD");
+ return makeUnique<Pasteboard>("CLIPBOARD");
}
std::unique_ptr<Pasteboard> Pasteboard::createForGlobalSelection()
{
- return std::make_unique<Pasteboard>("PRIMARY");
+ return makeUnique<Pasteboard>("PRIMARY");
}
#if ENABLE(DRAG_SUPPORT)
std::unique_ptr<Pasteboard> Pasteboard::createForDragAndDrop()
{
- return std::make_unique<Pasteboard>(SelectionData::create());
+ return makeUnique<Pasteboard>(SelectionData::create());
}
std::unique_ptr<Pasteboard> Pasteboard::createForDragAndDrop(const DragData& dragData)
{
ASSERT(dragData.platformData());
- return std::make_unique<Pasteboard>(*dragData.platformData());
+ return makeUnique<Pasteboard>(*dragData.platformData());
}
#endif
diff --git a/Source/WebCore/platform/gtk/PasteboardHelper.cpp b/Source/WebCore/platform/gtk/PasteboardHelper.cpp
index 04e96ab..af8ff34 100644
--- a/Source/WebCore/platform/gtk/PasteboardHelper.cpp
+++ b/Source/WebCore/platform/gtk/PasteboardHelper.cpp
@@ -301,7 +301,7 @@
if (numberOfTargets > 0 && table) {
SetForScope<SelectionData*> change(settingClipboardSelection, const_cast<SelectionData*>(&selection));
- auto data = std::make_unique<ClipboardSetData>(*settingClipboardSelection, WTFMove(primarySelectionCleared));
+ auto data = makeUnique<ClipboardSetData>(*settingClipboardSelection, WTFMove(primarySelectionCleared));
if (gtk_clipboard_set_with_data(clipboard, table, numberOfTargets, getClipboardContentsCallback, clearClipboardContentsCallback, data.get())) {
gtk_clipboard_set_can_store(clipboard, nullptr, 0);
// When gtk_clipboard_set_with_data() succeeds clearClipboardContentsCallback takes the ownership of data, so we leak it here.
diff --git a/Source/WebCore/platform/gtk/RenderThemeGadget.cpp b/Source/WebCore/platform/gtk/RenderThemeGadget.cpp
index bdcc99e..73e0758 100644
--- a/Source/WebCore/platform/gtk/RenderThemeGadget.cpp
+++ b/Source/WebCore/platform/gtk/RenderThemeGadget.cpp
@@ -35,20 +35,20 @@
{
switch (info.type) {
case RenderThemeGadget::Type::Generic:
- return std::make_unique<RenderThemeGadget>(info, parent, siblings, position);
+ return makeUnique<RenderThemeGadget>(info, parent, siblings, position);
case RenderThemeGadget::Type::TextField:
- return std::make_unique<RenderThemeTextFieldGadget>(info, parent, siblings, position);
+ return makeUnique<RenderThemeTextFieldGadget>(info, parent, siblings, position);
case RenderThemeGadget::Type::Radio:
case RenderThemeGadget::Type::Check:
- return std::make_unique<RenderThemeToggleGadget>(info, parent, siblings, position);
+ return makeUnique<RenderThemeToggleGadget>(info, parent, siblings, position);
case RenderThemeGadget::Type::Arrow:
- return std::make_unique<RenderThemeArrowGadget>(info, parent, siblings, position);
+ return makeUnique<RenderThemeArrowGadget>(info, parent, siblings, position);
case RenderThemeGadget::Type::Icon:
- return std::make_unique<RenderThemeIconGadget>(info, parent, siblings, position);
+ return makeUnique<RenderThemeIconGadget>(info, parent, siblings, position);
case RenderThemeGadget::Type::Scrollbar:
- return std::make_unique<RenderThemeScrollbarGadget>(info, parent, siblings, position);
+ return makeUnique<RenderThemeScrollbarGadget>(info, parent, siblings, position);
case RenderThemeGadget::Type::Button:
- return std::make_unique<RenderThemeButtonGadget>(info, parent, siblings, position);
+ return makeUnique<RenderThemeButtonGadget>(info, parent, siblings, position);
}
ASSERT_NOT_REACHED();
diff --git a/Source/WebCore/platform/gtk/RenderThemeWidget.cpp b/Source/WebCore/platform/gtk/RenderThemeWidget.cpp
index 05d12dd..ca6ed91 100644
--- a/Source/WebCore/platform/gtk/RenderThemeWidget.cpp
+++ b/Source/WebCore/platform/gtk/RenderThemeWidget.cpp
@@ -42,49 +42,49 @@
auto addResult = widgetMap().ensure(static_cast<unsigned>(widgetType), [widgetType]() -> std::unique_ptr<RenderThemeWidget> {
switch (widgetType) {
case RenderThemeWidget::Type::VerticalScrollbarRight:
- return std::make_unique<RenderThemeScrollbar>(GTK_ORIENTATION_VERTICAL, RenderThemeScrollbar::Mode::Full);
+ return makeUnique<RenderThemeScrollbar>(GTK_ORIENTATION_VERTICAL, RenderThemeScrollbar::Mode::Full);
case RenderThemeWidget::Type::VerticalScrollbarLeft:
- return std::make_unique<RenderThemeScrollbar>(GTK_ORIENTATION_VERTICAL, RenderThemeScrollbar::Mode::Full, RenderThemeScrollbar::VerticalPosition::Left);
+ return makeUnique<RenderThemeScrollbar>(GTK_ORIENTATION_VERTICAL, RenderThemeScrollbar::Mode::Full, RenderThemeScrollbar::VerticalPosition::Left);
case RenderThemeWidget::Type::HorizontalScrollbar:
- return std::make_unique<RenderThemeScrollbar>(GTK_ORIENTATION_HORIZONTAL, RenderThemeScrollbar::Mode::Full);
+ return makeUnique<RenderThemeScrollbar>(GTK_ORIENTATION_HORIZONTAL, RenderThemeScrollbar::Mode::Full);
case RenderThemeWidget::Type::VerticalScrollIndicatorRight:
- return std::make_unique<RenderThemeScrollbar>(GTK_ORIENTATION_VERTICAL, RenderThemeScrollbar::Mode::Indicator);
+ return makeUnique<RenderThemeScrollbar>(GTK_ORIENTATION_VERTICAL, RenderThemeScrollbar::Mode::Indicator);
case RenderThemeWidget::Type::VerticalScrollIndicatorLeft:
- return std::make_unique<RenderThemeScrollbar>(GTK_ORIENTATION_VERTICAL, RenderThemeScrollbar::Mode::Indicator, RenderThemeScrollbar::VerticalPosition::Left);
+ return makeUnique<RenderThemeScrollbar>(GTK_ORIENTATION_VERTICAL, RenderThemeScrollbar::Mode::Indicator, RenderThemeScrollbar::VerticalPosition::Left);
case RenderThemeWidget::Type::HorizontalScrollIndicator:
- return std::make_unique<RenderThemeScrollbar>(GTK_ORIENTATION_HORIZONTAL, RenderThemeScrollbar::Mode::Indicator);
+ return makeUnique<RenderThemeScrollbar>(GTK_ORIENTATION_HORIZONTAL, RenderThemeScrollbar::Mode::Indicator);
case RenderThemeWidget::Type::CheckButton:
- return std::make_unique<RenderThemeToggleButton>(RenderThemeToggleButton::Type::Check);
+ return makeUnique<RenderThemeToggleButton>(RenderThemeToggleButton::Type::Check);
case RenderThemeWidget::Type::RadioButton:
- return std::make_unique<RenderThemeToggleButton>(RenderThemeToggleButton::Type::Radio);
+ return makeUnique<RenderThemeToggleButton>(RenderThemeToggleButton::Type::Radio);
case RenderThemeWidget::Type::Button:
- return std::make_unique<RenderThemeButton>(RenderThemeButton::Default::No);
+ return makeUnique<RenderThemeButton>(RenderThemeButton::Default::No);
case RenderThemeWidget::Type::ButtonDefault:
- return std::make_unique<RenderThemeButton>(RenderThemeButton::Default::Yes);
+ return makeUnique<RenderThemeButton>(RenderThemeButton::Default::Yes);
case RenderThemeWidget::Type::ComboBox:
- return std::make_unique<RenderThemeComboBox>();
+ return makeUnique<RenderThemeComboBox>();
case RenderThemeWidget::Type::Entry:
- return std::make_unique<RenderThemeEntry>();
+ return makeUnique<RenderThemeEntry>();
case RenderThemeWidget::Type::SelectedEntry:
- return std::make_unique<RenderThemeEntry>(RenderThemeEntry::Selected::Yes);
+ return makeUnique<RenderThemeEntry>(RenderThemeEntry::Selected::Yes);
case RenderThemeWidget::Type::SearchEntry:
- return std::make_unique<RenderThemeSearchEntry>();
+ return makeUnique<RenderThemeSearchEntry>();
case RenderThemeWidget::Type::SpinButton:
- return std::make_unique<RenderThemeSpinButton>();
+ return makeUnique<RenderThemeSpinButton>();
case RenderThemeWidget::Type::VerticalSlider:
- return std::make_unique<RenderThemeSlider>(GTK_ORIENTATION_VERTICAL);
+ return makeUnique<RenderThemeSlider>(GTK_ORIENTATION_VERTICAL);
case RenderThemeWidget::Type::HorizontalSlider:
- return std::make_unique<RenderThemeSlider>(GTK_ORIENTATION_HORIZONTAL);
+ return makeUnique<RenderThemeSlider>(GTK_ORIENTATION_HORIZONTAL);
case RenderThemeWidget::Type::ProgressBar:
- return std::make_unique<RenderThemeProgressBar>(RenderThemeProgressBar::Mode::Determinate);
+ return makeUnique<RenderThemeProgressBar>(RenderThemeProgressBar::Mode::Determinate);
case RenderThemeWidget::Type::IndeterminateProgressBar:
- return std::make_unique<RenderThemeProgressBar>(RenderThemeProgressBar::Mode::Indeterminate);
+ return makeUnique<RenderThemeProgressBar>(RenderThemeProgressBar::Mode::Indeterminate);
case RenderThemeWidget::Type::ListView:
- return std::make_unique<RenderThemeListView>();
+ return makeUnique<RenderThemeListView>();
case RenderThemeWidget::Type::Icon:
- return std::make_unique<RenderThemeIcon>();
+ return makeUnique<RenderThemeIcon>();
case RenderThemeWidget::Type::Window:
- return std::make_unique<RenderThemeWindow>();
+ return makeUnique<RenderThemeWindow>();
}
ASSERT_NOT_REACHED();
return nullptr;
@@ -139,7 +139,7 @@
info.type = RenderThemeGadget::Type::Generic;
info.name = "contents";
info.classList.clear();
- m_contents = std::make_unique<RenderThemeBoxGadget>(info, GTK_ORIENTATION_VERTICAL, children, m_scrollbar.get());
+ m_contents = makeUnique<RenderThemeBoxGadget>(info, GTK_ORIENTATION_VERTICAL, children, m_scrollbar.get());
info.name = "slider";
m_slider = RenderThemeGadget::create(info, m_contents->child(m_troughPosition));
}
@@ -197,7 +197,7 @@
};
info.name = "box";
info.classList = { "horizontal", "linked" };
- m_box = std::make_unique<RenderThemeBoxGadget>(info, GTK_ORIENTATION_HORIZONTAL, children, m_comboBox.get());
+ m_box = makeUnique<RenderThemeBoxGadget>(info, GTK_ORIENTATION_HORIZONTAL, children, m_comboBox.get());
RenderThemeGadget* button = m_box->child(0);
info.classList.removeLast();
m_buttonBox = RenderThemeGadget::create(info, button);
diff --git a/Source/WebCore/platform/image-decoders/bmp/BMPImageDecoder.cpp b/Source/WebCore/platform/image-decoders/bmp/BMPImageDecoder.cpp
index 8407c11..78697eb 100644
--- a/Source/WebCore/platform/image-decoders/bmp/BMPImageDecoder.cpp
+++ b/Source/WebCore/platform/image-decoders/bmp/BMPImageDecoder.cpp
@@ -98,7 +98,7 @@
return false;
if (!m_reader) {
- m_reader = std::make_unique<BMPImageReader>(this, m_decodedOffset, imgDataOffset, false);
+ m_reader = makeUnique<BMPImageReader>(this, m_decodedOffset, imgDataOffset, false);
m_reader->setData(m_data.get());
}
diff --git a/Source/WebCore/platform/image-decoders/gif/GIFImageDecoder.cpp b/Source/WebCore/platform/image-decoders/gif/GIFImageDecoder.cpp
index 7ba7ed9..4f3487e 100644
--- a/Source/WebCore/platform/image-decoders/gif/GIFImageDecoder.cpp
+++ b/Source/WebCore/platform/image-decoders/gif/GIFImageDecoder.cpp
@@ -334,7 +334,7 @@
return;
if (!m_reader) {
- m_reader = std::make_unique<GIFImageReader>(this);
+ m_reader = makeUnique<GIFImageReader>(this);
m_reader->setData(m_data.get());
}
diff --git a/Source/WebCore/platform/image-decoders/gif/GIFImageReader.cpp b/Source/WebCore/platform/image-decoders/gif/GIFImageReader.cpp
index 1cca5e5..d77186e 100644
--- a/Source/WebCore/platform/image-decoders/gif/GIFImageReader.cpp
+++ b/Source/WebCore/platform/image-decoders/gif/GIFImageReader.cpp
@@ -321,7 +321,7 @@
if (!isDataSizeDefined() || !isHeaderDefined())
return true;
- m_lzwContext = std::make_unique<GIFLZWContext>(client, this);
+ m_lzwContext = makeUnique<GIFLZWContext>(client, this);
if (!m_lzwContext->prepareToDecode()) {
m_lzwContext = nullptr;
return false;
@@ -786,7 +786,7 @@
void GIFImageReader::addFrameIfNecessary()
{
if (m_frames.isEmpty() || m_frames.last()->isComplete())
- m_frames.append(std::make_unique<GIFFrameContext>(m_frames.size()));
+ m_frames.append(makeUnique<GIFFrameContext>(m_frames.size()));
}
// FIXME: Move this method to close to doLZW().
diff --git a/Source/WebCore/platform/image-decoders/ico/ICOImageDecoder.cpp b/Source/WebCore/platform/image-decoders/ico/ICOImageDecoder.cpp
index 1870bb1..ff6a1c8 100644
--- a/Source/WebCore/platform/image-decoders/ico/ICOImageDecoder.cpp
+++ b/Source/WebCore/platform/image-decoders/ico/ICOImageDecoder.cpp
@@ -195,7 +195,7 @@
// We need to have already sized m_frameBufferCache before this, and
// we must not resize it again later (see caution in frameCount()).
ASSERT(m_frameBufferCache.size() == m_dirEntries.size());
- m_bmpReaders[index] = std::make_unique<BMPImageReader>(this, dirEntry.m_imageOffset, 0, true);
+ m_bmpReaders[index] = makeUnique<BMPImageReader>(this, dirEntry.m_imageOffset, 0, true);
m_bmpReaders[index]->setData(m_data.get());
m_bmpReaders[index]->setBuffer(&m_frameBufferCache[index]);
}
diff --git a/Source/WebCore/platform/image-decoders/jpeg/JPEGImageDecoder.cpp b/Source/WebCore/platform/image-decoders/jpeg/JPEGImageDecoder.cpp
index ebfe453..0c0549b 100644
--- a/Source/WebCore/platform/image-decoders/jpeg/JPEGImageDecoder.cpp
+++ b/Source/WebCore/platform/image-decoders/jpeg/JPEGImageDecoder.cpp
@@ -653,7 +653,7 @@
return;
if (!m_reader)
- m_reader = std::make_unique<JPEGImageReader>(this);
+ m_reader = makeUnique<JPEGImageReader>(this);
// If we couldn't decode the image but we've received all the data, decoding
// has failed.
diff --git a/Source/WebCore/platform/image-decoders/png/PNGImageDecoder.cpp b/Source/WebCore/platform/image-decoders/png/PNGImageDecoder.cpp
index c18a39b..62cb9b2 100644
--- a/Source/WebCore/platform/image-decoders/png/PNGImageDecoder.cpp
+++ b/Source/WebCore/platform/image-decoders/png/PNGImageDecoder.cpp
@@ -556,7 +556,7 @@
return;
if (!m_reader)
- m_reader = std::make_unique<PNGImageReader>(this);
+ m_reader = makeUnique<PNGImageReader>(this);
// If we couldn't decode the image but we've received all the data, decoding
// has failed.
diff --git a/Source/WebCore/platform/ios/LegacyTileCache.mm b/Source/WebCore/platform/ios/LegacyTileCache.mm
index 209f88f..cae3dcf 100644
--- a/Source/WebCore/platform/ios/LegacyTileCache.mm
+++ b/Source/WebCore/platform/ios/LegacyTileCache.mm
@@ -69,7 +69,7 @@
LegacyTileCache::LegacyTileCache(WAKWindow* window)
: m_window(window)
, m_tombstone(adoptNS([[LegacyTileCacheTombstone alloc] init]))
- , m_zoomedOutTileGrid(std::make_unique<LegacyTileGrid>(*this, m_tileSize))
+ , m_zoomedOutTileGrid(makeUnique<LegacyTileGrid>(*this, m_tileSize))
, m_tileCreationTimer(*this, &LegacyTileCache::tileCreationTimerFired)
{
[hostLayer() insertSublayer:m_zoomedOutTileGrid->tileHostLayer() atIndex:0];
@@ -236,7 +236,7 @@
if (m_currentScale != m_zoomedOutTileGrid->scale()) {
if (!m_zoomedInTileGrid) {
- m_zoomedInTileGrid = std::make_unique<LegacyTileGrid>(*this, m_tileSize);
+ m_zoomedInTileGrid = makeUnique<LegacyTileGrid>(*this, m_tileSize);
[hostLayer() addSublayer:m_zoomedInTileGrid->tileHostLayer()];
hostLayerSizeChanged();
}
diff --git a/Source/WebCore/platform/ios/PasteboardIOS.mm b/Source/WebCore/platform/ios/PasteboardIOS.mm
index 191ac76..0271b93 100644
--- a/Source/WebCore/platform/ios/PasteboardIOS.mm
+++ b/Source/WebCore/platform/ios/PasteboardIOS.mm
@@ -66,12 +66,12 @@
std::unique_ptr<Pasteboard> Pasteboard::createForDragAndDrop()
{
- return std::make_unique<Pasteboard>("data interaction pasteboard");
+ return makeUnique<Pasteboard>("data interaction pasteboard");
}
std::unique_ptr<Pasteboard> Pasteboard::createForDragAndDrop(const DragData& dragData)
{
- return std::make_unique<Pasteboard>(dragData.pasteboardName());
+ return makeUnique<Pasteboard>(dragData.pasteboardName());
}
#endif
@@ -101,7 +101,7 @@
std::unique_ptr<Pasteboard> Pasteboard::createForCopyAndPaste()
{
- return std::make_unique<Pasteboard>(changeCountForPasteboard());
+ return makeUnique<Pasteboard>(changeCountForPasteboard());
}
void Pasteboard::write(const PasteboardWebContent& content)
diff --git a/Source/WebCore/platform/ios/QuickLook.mm b/Source/WebCore/platform/ios/QuickLook.mm
index a9d9e47..c2b5a0b 100644
--- a/Source/WebCore/platform/ios/QuickLook.mm
+++ b/Source/WebCore/platform/ios/QuickLook.mm
@@ -84,7 +84,7 @@
if ([QLPreviewGetSupportedMIMETypesSet() containsObject:updatedMIMEType.get()]) {
RetainPtr<NSString> uti = adoptNS(PAL::softLink_QuickLook_QLTypeCopyUTIForURLAndMimeType(url, updatedMIMEType.get()));
- auto converter = std::make_unique<PreviewConverter>(data, uti.get());
+ auto converter = makeUnique<PreviewConverter>(data, uti.get());
ResourceRequest previewRequest = converter->previewRequest();
// We use [request URL] here instead of url since it will be
diff --git a/Source/WebCore/platform/ios/RemoteCommandListenerIOS.mm b/Source/WebCore/platform/ios/RemoteCommandListenerIOS.mm
index 107c77c..6d9cce1 100644
--- a/Source/WebCore/platform/ios/RemoteCommandListenerIOS.mm
+++ b/Source/WebCore/platform/ios/RemoteCommandListenerIOS.mm
@@ -45,7 +45,7 @@
if (!MediaPlayerLibrary())
return nullptr;
- return std::make_unique<RemoteCommandListenerIOS>(client);
+ return makeUnique<RemoteCommandListenerIOS>(client);
}
RemoteCommandListenerIOS::RemoteCommandListenerIOS(RemoteCommandListenerClient& client)
diff --git a/Source/WebCore/platform/ios/ScrollAnimatorIOS.mm b/Source/WebCore/platform/ios/ScrollAnimatorIOS.mm
index 01f0a9b..ed632ea 100644
--- a/Source/WebCore/platform/ios/ScrollAnimatorIOS.mm
+++ b/Source/WebCore/platform/ios/ScrollAnimatorIOS.mm
@@ -40,7 +40,7 @@
std::unique_ptr<ScrollAnimator> ScrollAnimator::create(ScrollableArea& scrollableArea)
{
- return std::make_unique<ScrollAnimatorIOS>(scrollableArea);
+ return makeUnique<ScrollAnimatorIOS>(scrollableArea);
}
ScrollAnimatorIOS::ScrollAnimatorIOS(ScrollableArea& scrollableArea)
diff --git a/Source/WebCore/platform/libwpe/PasteboardLibWPE.cpp b/Source/WebCore/platform/libwpe/PasteboardLibWPE.cpp
index 0543ed5..f8a61ec 100644
--- a/Source/WebCore/platform/libwpe/PasteboardLibWPE.cpp
+++ b/Source/WebCore/platform/libwpe/PasteboardLibWPE.cpp
@@ -36,7 +36,7 @@
std::unique_ptr<Pasteboard> Pasteboard::createForCopyAndPaste()
{
- return std::make_unique<Pasteboard>();
+ return makeUnique<Pasteboard>();
}
Pasteboard::Pasteboard()
diff --git a/Source/WebCore/platform/mac/PasteboardMac.mm b/Source/WebCore/platform/mac/PasteboardMac.mm
index 51520dc..8eb15cf 100644
--- a/Source/WebCore/platform/mac/PasteboardMac.mm
+++ b/Source/WebCore/platform/mac/PasteboardMac.mm
@@ -100,7 +100,7 @@
std::unique_ptr<Pasteboard> Pasteboard::createForCopyAndPaste()
{
ALLOW_DEPRECATED_DECLARATIONS_BEGIN
- return std::make_unique<Pasteboard>(NSGeneralPboard);
+ return makeUnique<Pasteboard>(NSGeneralPboard);
ALLOW_DEPRECATED_DECLARATIONS_END
}
@@ -108,13 +108,13 @@
std::unique_ptr<Pasteboard> Pasteboard::createForDragAndDrop()
{
ALLOW_DEPRECATED_DECLARATIONS_BEGIN
- return std::make_unique<Pasteboard>(NSDragPboard);
+ return makeUnique<Pasteboard>(NSDragPboard);
ALLOW_DEPRECATED_DECLARATIONS_END
}
std::unique_ptr<Pasteboard> Pasteboard::createForDragAndDrop(const DragData& dragData)
{
- return std::make_unique<Pasteboard>(dragData.pasteboardName(), dragData.fileNames());
+ return makeUnique<Pasteboard>(dragData.pasteboardName(), dragData.fileNames());
}
#endif
diff --git a/Source/WebCore/platform/mac/RemoteCommandListenerMac.mm b/Source/WebCore/platform/mac/RemoteCommandListenerMac.mm
index 05cc089..1aa2cd8 100644
--- a/Source/WebCore/platform/mac/RemoteCommandListenerMac.mm
+++ b/Source/WebCore/platform/mac/RemoteCommandListenerMac.mm
@@ -37,7 +37,7 @@
std::unique_ptr<RemoteCommandListener> RemoteCommandListener::create(RemoteCommandListenerClient& client)
{
- return std::make_unique<RemoteCommandListenerMac>(client);
+ return makeUnique<RemoteCommandListenerMac>(client);
}
void RemoteCommandListenerMac::updateSupportedCommands()
diff --git a/Source/WebCore/platform/mac/ScrollAnimatorMac.mm b/Source/WebCore/platform/mac/ScrollAnimatorMac.mm
index a831751..6860e33 100644
--- a/Source/WebCore/platform/mac/ScrollAnimatorMac.mm
+++ b/Source/WebCore/platform/mac/ScrollAnimatorMac.mm
@@ -697,7 +697,7 @@
std::unique_ptr<ScrollAnimator> ScrollAnimator::create(ScrollableArea& scrollableArea)
{
- return std::make_unique<ScrollAnimatorMac>(scrollableArea);
+ return makeUnique<ScrollAnimatorMac>(scrollableArea);
}
ScrollAnimatorMac::ScrollAnimatorMac(ScrollableArea& scrollableArea)
diff --git a/Source/WebCore/platform/mediarecorder/MediaRecorderPrivateAVFImpl.cpp b/Source/WebCore/platform/mediarecorder/MediaRecorderPrivateAVFImpl.cpp
index 1b9dc53..e2445bc 100644
--- a/Source/WebCore/platform/mediarecorder/MediaRecorderPrivateAVFImpl.cpp
+++ b/Source/WebCore/platform/mediarecorder/MediaRecorderPrivateAVFImpl.cpp
@@ -72,7 +72,7 @@
if (!writer)
return nullptr;
- return std::make_unique<MediaRecorderPrivateAVFImpl>(writer.releaseNonNull(), WTFMove(audioTrackId), WTFMove(videoTrackId));
+ return makeUnique<MediaRecorderPrivateAVFImpl>(writer.releaseNonNull(), WTFMove(audioTrackId), WTFMove(videoTrackId));
}
MediaRecorderPrivateAVFImpl::MediaRecorderPrivateAVFImpl(Ref<MediaRecorderPrivateWriter>&& writer, String&& audioTrackId, String&& videoTrackId)
diff --git a/Source/WebCore/platform/mediastream/gstreamer/GStreamerAudioCaptureSource.cpp b/Source/WebCore/platform/mediastream/gstreamer/GStreamerAudioCaptureSource.cpp
index db94fda..59ab384 100644
--- a/Source/WebCore/platform/mediastream/gstreamer/GStreamerAudioCaptureSource.cpp
+++ b/Source/WebCore/platform/mediastream/gstreamer/GStreamerAudioCaptureSource.cpp
@@ -91,14 +91,14 @@
GStreamerAudioCaptureSource::GStreamerAudioCaptureSource(GStreamerCaptureDevice device, String&& hashSalt)
: RealtimeMediaSource(RealtimeMediaSource::Type::Audio, String { device.persistentId() }, String { device.label() }, WTFMove(hashSalt))
- , m_capturer(std::make_unique<GStreamerAudioCapturer>(device))
+ , m_capturer(makeUnique<GStreamerAudioCapturer>(device))
{
initializeGStreamerDebug();
}
GStreamerAudioCaptureSource::GStreamerAudioCaptureSource(String&& deviceID, String&& name, String&& hashSalt)
: RealtimeMediaSource(RealtimeMediaSource::Type::Audio, WTFMove(deviceID), WTFMove(name), WTFMove(hashSalt))
- , m_capturer(std::make_unique<GStreamerAudioCapturer>())
+ , m_capturer(makeUnique<GStreamerAudioCapturer>())
{
initializeGStreamerDebug();
}
diff --git a/Source/WebCore/platform/mediastream/gstreamer/GStreamerMediaStreamSource.cpp b/Source/WebCore/platform/mediastream/gstreamer/GStreamerMediaStreamSource.cpp
index d5dfc38..083d447 100644
--- a/Source/WebCore/platform/mediastream/gstreamer/GStreamerMediaStreamSource.cpp
+++ b/Source/WebCore/platform/mediastream/gstreamer/GStreamerMediaStreamSource.cpp
@@ -435,8 +435,8 @@
static void webkit_media_stream_src_init(WebKitMediaStreamSrc* self)
{
- self->mediaStreamTrackObserver = std::make_unique<WebKitMediaStreamTrackObserver>(self);
- self->mediaStreamObserver = std::make_unique<WebKitMediaStreamObserver>(self);
+ self->mediaStreamTrackObserver = makeUnique<WebKitMediaStreamTrackObserver>(self);
+ self->mediaStreamObserver = makeUnique<WebKitMediaStreamObserver>(self);
self->flowCombiner = gst_flow_combiner_new();
self->videoSrc.reset(true);
self->audioSrc.reset(false);
diff --git a/Source/WebCore/platform/mediastream/gstreamer/GStreamerVideoCaptureSource.cpp b/Source/WebCore/platform/mediastream/gstreamer/GStreamerVideoCaptureSource.cpp
index e5d9b0e..97be1f1 100644
--- a/Source/WebCore/platform/mediastream/gstreamer/GStreamerVideoCaptureSource.cpp
+++ b/Source/WebCore/platform/mediastream/gstreamer/GStreamerVideoCaptureSource.cpp
@@ -127,14 +127,14 @@
GStreamerVideoCaptureSource::GStreamerVideoCaptureSource(String&& deviceID, String&& name, String&& hashSalt, const gchar *source_factory)
: RealtimeVideoCaptureSource(WTFMove(deviceID), WTFMove(name), WTFMove(hashSalt))
- , m_capturer(std::make_unique<GStreamerVideoCapturer>(source_factory))
+ , m_capturer(makeUnique<GStreamerVideoCapturer>(source_factory))
{
initializeGStreamerDebug();
}
GStreamerVideoCaptureSource::GStreamerVideoCaptureSource(GStreamerCaptureDevice device, String&& hashSalt)
: RealtimeVideoCaptureSource(String { device.persistentId() }, String { device.label() }, WTFMove(hashSalt))
- , m_capturer(std::make_unique<GStreamerVideoCapturer>(device))
+ , m_capturer(makeUnique<GStreamerVideoCapturer>(device))
{
initializeGStreamerDebug();
}
diff --git a/Source/WebCore/platform/mediastream/libwebrtc/GStreamerVideoEncoderFactory.cpp b/Source/WebCore/platform/mediastream/libwebrtc/GStreamerVideoEncoderFactory.cpp
index cd0e6cd..83581e8 100644
--- a/Source/WebCore/platform/mediastream/libwebrtc/GStreamerVideoEncoderFactory.cpp
+++ b/Source/WebCore/platform/mediastream/libwebrtc/GStreamerVideoEncoderFactory.cpp
@@ -513,14 +513,14 @@
g_object_get(webrtcencoder.get(), "encoder", &encoder.outPtr(), NULL);
if (encoder)
- return std::make_unique<GStreamerVP8Encoder>(format);
+ return makeUnique<GStreamerVP8Encoder>(format);
GST_INFO("Using VP8 Encoder from LibWebRTC.");
- return std::make_unique<webrtc::LibvpxVp8Encoder>();
+ return makeUniqueWithoutFastMallocCheck<webrtc::LibvpxVp8Encoder>();
}
if (format.name == cricket::kH264CodecName)
- return std::make_unique<GStreamerH264Encoder>(format);
+ return makeUnique<GStreamerH264Encoder>(format);
return nullptr;
}
diff --git a/Source/WebCore/platform/mediastream/libwebrtc/LibWebRTCProvider.cpp b/Source/WebCore/platform/mediastream/libwebrtc/LibWebRTCProvider.cpp
index 6911c6f..74533c5 100644
--- a/Source/WebCore/platform/mediastream/libwebrtc/LibWebRTCProvider.cpp
+++ b/Source/WebCore/platform/mediastream/libwebrtc/LibWebRTCProvider.cpp
@@ -82,7 +82,7 @@
WTF_MAKE_FAST_ALLOCATED;
public:
explicit BasicPacketSocketFactory(rtc::Thread& networkThread)
- : m_socketFactory(makeUniqueRef<rtc::BasicPacketSocketFactory>(&networkThread))
+ : m_socketFactory(makeUniqueRefWithoutFastMallocCheck<rtc::BasicPacketSocketFactory>(&networkThread))
{
}
@@ -180,7 +180,7 @@
result = factoryAndThreads.signalingThread->Start();
ASSERT(result);
- factoryAndThreads.audioDeviceModule = std::make_unique<LibWebRTCAudioModule>();
+ factoryAndThreads.audioDeviceModule = makeUnique<LibWebRTCAudioModule>();
}
static inline PeerConnectionFactoryAndThreads& staticFactoryAndThreads()
@@ -289,10 +289,10 @@
auto& factoryAndThreads = getStaticFactoryAndThreads(m_useNetworkThreadWithSocketServer);
if (!factoryAndThreads.networkManager)
- factoryAndThreads.networkManager = std::make_unique<rtc::BasicNetworkManager>();
+ factoryAndThreads.networkManager = makeUniqueWithoutFastMallocCheck<rtc::BasicNetworkManager>();
if (!factoryAndThreads.packetSocketFactory)
- factoryAndThreads.packetSocketFactory = std::make_unique<BasicPacketSocketFactory>(*factoryAndThreads.networkThread);
+ factoryAndThreads.packetSocketFactory = makeUnique<BasicPacketSocketFactory>(*factoryAndThreads.networkThread);
factoryAndThreads.packetSocketFactory->setDisableNonLocalhostConnections(m_disableNonLocalhostConnections);
return createPeerConnection(observer, *factoryAndThreads.networkManager, *factoryAndThreads.packetSocketFactory, WTFMove(configuration), nullptr);
@@ -315,7 +315,7 @@
std::unique_ptr<cricket::BasicPortAllocator> portAllocator;
factoryAndThreads.signalingThread->Invoke<void>(RTC_FROM_HERE, [&]() {
- auto basicPortAllocator = std::make_unique<cricket::BasicPortAllocator>(&networkManager, &packetSocketFactory);
+ auto basicPortAllocator = makeUniqueWithoutFastMallocCheck<cricket::BasicPortAllocator>(&networkManager, &packetSocketFactory);
if (!m_enableEnumeratingAllNetworkInterfaces)
basicPortAllocator->set_flags(basicPortAllocator->flags() | cricket::PORTALLOCATOR_DISABLE_ADAPTER_ENUMERATION);
portAllocator = WTFMove(basicPortAllocator);
@@ -336,7 +336,7 @@
{
auto& factoryAndThreads = getStaticFactoryAndThreads(m_useNetworkThreadWithSocketServer);
if (!factoryAndThreads.certificateGenerator)
- factoryAndThreads.certificateGenerator = std::make_unique<rtc::RTCCertificateGenerator>(factoryAndThreads.signalingThread.get(), factoryAndThreads.networkThread.get());
+ factoryAndThreads.certificateGenerator = makeUniqueWithoutFastMallocCheck<rtc::RTCCertificateGenerator>(factoryAndThreads.signalingThread.get(), factoryAndThreads.networkThread.get());
return *factoryAndThreads.certificateGenerator;
}
diff --git a/Source/WebCore/platform/mediastream/libwebrtc/LibWebRTCProviderGStreamer.cpp b/Source/WebCore/platform/mediastream/libwebrtc/LibWebRTCProviderGStreamer.cpp
index 15e2a87..5b8273b 100644
--- a/Source/WebCore/platform/mediastream/libwebrtc/LibWebRTCProviderGStreamer.cpp
+++ b/Source/WebCore/platform/mediastream/libwebrtc/LibWebRTCProviderGStreamer.cpp
@@ -44,12 +44,12 @@
std::unique_ptr<webrtc::VideoDecoderFactory> LibWebRTCProviderGStreamer::createDecoderFactory()
{
- return std::make_unique<GStreamerVideoDecoderFactory>();
+ return makeUnique<GStreamerVideoDecoderFactory>();
}
std::unique_ptr<webrtc::VideoEncoderFactory> LibWebRTCProviderGStreamer::createEncoderFactory()
{
- return std::make_unique<GStreamerVideoEncoderFactory>();
+ return makeUnique<GStreamerVideoEncoderFactory>();
}
} // namespace WebCore
diff --git a/Source/WebCore/platform/mediastream/mac/AudioTrackPrivateMediaStreamCocoa.cpp b/Source/WebCore/platform/mediastream/mac/AudioTrackPrivateMediaStreamCocoa.cpp
index 82cbcb1..f7d85dc 100644
--- a/Source/WebCore/platform/mediastream/mac/AudioTrackPrivateMediaStreamCocoa.cpp
+++ b/Source/WebCore/platform/mediastream/mac/AudioTrackPrivateMediaStreamCocoa.cpp
@@ -188,8 +188,8 @@
if (!remoteIOUnit)
return;
- m_inputDescription = std::make_unique<CAAudioStreamDescription>(inputDescription);
- m_outputDescription = std::make_unique<CAAudioStreamDescription>(outputDescription);
+ m_inputDescription = makeUnique<CAAudioStreamDescription>(inputDescription);
+ m_outputDescription = makeUnique<CAAudioStreamDescription>(outputDescription);
m_dataSource = AudioSampleDataSource::create(description.sampleRate() * 2, streamTrack());
diff --git a/Source/WebCore/platform/mediastream/mac/MockRealtimeAudioSourceMac.mm b/Source/WebCore/platform/mediastream/mac/MockRealtimeAudioSourceMac.mm
index e8e3d34..611ac16 100644
--- a/Source/WebCore/platform/mediastream/mac/MockRealtimeAudioSourceMac.mm
+++ b/Source/WebCore/platform/mediastream/mac/MockRealtimeAudioSourceMac.mm
@@ -134,7 +134,7 @@
const bool isNonInterleaved = true;
FillOutASBDForLPCM(m_streamFormat, sampleRate(), channelCount, bitsPerByte * bytesPerFloat, bitsPerByte * bytesPerFloat, isFloat, isBigEndian, isNonInterleaved);
- m_audioBufferList = std::make_unique<WebAudioBufferList>(m_streamFormat, m_streamFormat.mBytesPerFrame * m_maximiumFrameCount);
+ m_audioBufferList = makeUnique<WebAudioBufferList>(m_streamFormat, m_streamFormat.mBytesPerFrame * m_maximiumFrameCount);
CMFormatDescriptionRef formatDescription;
CMAudioFormatDescriptionCreate(NULL, &m_streamFormat, 0, NULL, 0, NULL, NULL, &formatDescription);
diff --git a/Source/WebCore/platform/mediastream/mac/RealtimeOutgoingVideoSourceCocoa.mm b/Source/WebCore/platform/mediastream/mac/RealtimeOutgoingVideoSourceCocoa.mm
index f9dc4a8..388d71e 100644
--- a/Source/WebCore/platform/mediastream/mac/RealtimeOutgoingVideoSourceCocoa.mm
+++ b/Source/WebCore/platform/mediastream/mac/RealtimeOutgoingVideoSourceCocoa.mm
@@ -46,7 +46,7 @@
return nullptr;
if (!m_pixelBufferConformer)
- m_pixelBufferConformer = std::make_unique<PixelBufferConformerCV>((__bridge CFDictionaryRef)@{ (__bridge NSString *)kCVPixelBufferPixelFormatTypeKey: @(preferedPixelBufferFormat()) });
+ m_pixelBufferConformer = makeUnique<PixelBufferConformerCV>((__bridge CFDictionaryRef)@{ (__bridge NSString *)kCVPixelBufferPixelFormatTypeKey: @(preferedPixelBufferFormat()) });
return m_pixelBufferConformer->convert(pixelBuffer);
}
@@ -75,7 +75,7 @@
IntSize size = { (int)CVPixelBufferGetWidth(pixelBuffer) , (int)CVPixelBufferGetHeight(pixelBuffer) };
AffineTransform transform;
transform.rotate(rotationToAngle(rotation));
- m_rotationSession = std::make_unique<ImageRotationSessionVT>(WTFMove(transform), size, CVPixelBufferGetPixelFormatType(pixelBuffer), ImageRotationSessionVT::IsCGImageCompatible::No);
+ m_rotationSession = makeUnique<ImageRotationSessionVT>(WTFMove(transform), size, CVPixelBufferGetPixelFormatType(pixelBuffer), ImageRotationSessionVT::IsCGImageCompatible::No);
}
return m_rotationSession->rotate(pixelBuffer);
diff --git a/Source/WebCore/platform/mock/RTCNotifiersMock.cpp b/Source/WebCore/platform/mock/RTCNotifiersMock.cpp
index 2f1fb55..2c7c41b 100644
--- a/Source/WebCore/platform/mock/RTCNotifiersMock.cpp
+++ b/Source/WebCore/platform/mock/RTCNotifiersMock.cpp
@@ -98,7 +98,7 @@
void RemoteDataChannelNotifier::fire()
{
- m_client->didAddRemoteDataChannel(std::make_unique<RTCDataChannelHandlerMock>("RTCDataChannelHandlerMock", RTCDataChannelInit()));
+ m_client->didAddRemoteDataChannel(makeUnique<RTCDataChannelHandlerMock>("RTCDataChannelHandlerMock", RTCDataChannelInit()));
}
DataChannelStateNotifier::DataChannelStateNotifier(RTCDataChannelHandlerClient* client, RTCDataChannelState state)
diff --git a/Source/WebCore/platform/mock/mediasource/MockMediaPlayerMediaSource.cpp b/Source/WebCore/platform/mock/mediasource/MockMediaPlayerMediaSource.cpp
index 5599338..387a21d 100644
--- a/Source/WebCore/platform/mock/mediasource/MockMediaPlayerMediaSource.cpp
+++ b/Source/WebCore/platform/mock/mediasource/MockMediaPlayerMediaSource.cpp
@@ -40,7 +40,7 @@
// MediaPlayer Enigne Support
void MockMediaPlayerMediaSource::registerMediaEngine(MediaEngineRegistrar registrar)
{
- registrar([] (MediaPlayer* player) { return std::make_unique<MockMediaPlayerMediaSource>(player); }, getSupportedTypes,
+ registrar([] (MediaPlayer* player) { return makeUnique<MockMediaPlayerMediaSource>(player); }, getSupportedTypes,
supportsType, 0, 0, 0, 0);
}
@@ -166,7 +166,7 @@
if (m_mediaSourcePrivate)
return m_mediaSourcePrivate->buffered();
- return std::make_unique<PlatformTimeRanges>();
+ return makeUnique<PlatformTimeRanges>();
}
bool MockMediaPlayerMediaSource::didLoadingProgress() const
diff --git a/Source/WebCore/platform/network/BlobResourceHandle.cpp b/Source/WebCore/platform/network/BlobResourceHandle.cpp
index cc67ce6..9051431 100644
--- a/Source/WebCore/platform/network/BlobResourceHandle.cpp
+++ b/Source/WebCore/platform/network/BlobResourceHandle.cpp
@@ -159,9 +159,9 @@
, m_async { async }
{
if (m_async)
- m_asyncStream = std::make_unique<AsyncFileStream>(*this);
+ m_asyncStream = makeUnique<AsyncFileStream>(*this);
else
- m_stream = std::make_unique<FileStream>();
+ m_stream = makeUnique<FileStream>();
}
BlobResourceHandle::~BlobResourceHandle() = default;
diff --git a/Source/WebCore/platform/network/DataURLDecoder.cpp b/Source/WebCore/platform/network/DataURLDecoder.cpp
index 8112b97..b541f62 100644
--- a/Source/WebCore/platform/network/DataURLDecoder.cpp
+++ b/Source/WebCore/platform/network/DataURLDecoder.cpp
@@ -145,7 +145,7 @@
static std::unique_ptr<DecodeTask> createDecodeTask(const URL& url, const ScheduleContext& scheduleContext, DecodeCompletionHandler&& completionHandler)
{
- return std::make_unique<DecodeTask>(
+ return makeUnique<DecodeTask>(
url.string(),
scheduleContext,
WTFMove(completionHandler)
diff --git a/Source/WebCore/platform/network/ResourceHandle.cpp b/Source/WebCore/platform/network/ResourceHandle.cpp
index 30c27f5..6a31e3e 100644
--- a/Source/WebCore/platform/network/ResourceHandle.cpp
+++ b/Source/WebCore/platform/network/ResourceHandle.cpp
@@ -74,7 +74,7 @@
}
ResourceHandle::ResourceHandle(NetworkingContext* context, const ResourceRequest& request, ResourceHandleClient* client, bool defersLoading, bool shouldContentSniff, bool shouldContentEncodingSniff)
- : d(std::make_unique<ResourceHandleInternal>(this, context, request, client, defersLoading, shouldContentSniff && shouldContentSniffURL(request.url()), shouldContentEncodingSniff))
+ : d(makeUnique<ResourceHandleInternal>(this, context, request, client, defersLoading, shouldContentSniff && shouldContentSniffURL(request.url()), shouldContentEncodingSniff))
{
if (!request.url().isValid()) {
scheduleFailure(InvalidURLFailure);
diff --git a/Source/WebCore/platform/network/cf/ResourceHandleCFURLConnectionDelegateWithOperationQueue.cpp b/Source/WebCore/platform/network/cf/ResourceHandleCFURLConnectionDelegateWithOperationQueue.cpp
index dad9010..713b4df 100644
--- a/Source/WebCore/platform/network/cf/ResourceHandleCFURLConnectionDelegateWithOperationQueue.cpp
+++ b/Source/WebCore/platform/network/cf/ResourceHandleCFURLConnectionDelegateWithOperationQueue.cpp
@@ -169,7 +169,7 @@
};
if (m_messageQueue)
- m_messageQueue->append(std::make_unique<Function<void()>>(WTFMove(work)));
+ m_messageQueue->append(makeUnique<Function<void()>>(WTFMove(work)));
else
callOnMainThread(WTFMove(work));
m_semaphore.wait();
@@ -207,7 +207,7 @@
};
if (m_messageQueue)
- m_messageQueue->append(std::make_unique<Function<void()>>(WTFMove(work)));
+ m_messageQueue->append(makeUnique<Function<void()>>(WTFMove(work)));
else
callOnMainThread(WTFMove(work));
m_semaphore.wait();
@@ -226,7 +226,7 @@
};
if (m_messageQueue)
- m_messageQueue->append(std::make_unique<Function<void()>>(WTFMove(work)));
+ m_messageQueue->append(makeUnique<Function<void()>>(WTFMove(work)));
else
callOnMainThread(WTFMove(work));
}
@@ -251,7 +251,7 @@
};
if (m_messageQueue)
- m_messageQueue->append(std::make_unique<Function<void()>>(WTFMove(work)));
+ m_messageQueue->append(makeUnique<Function<void()>>(WTFMove(work)));
else
callOnMainThread(WTFMove(work));
}
@@ -276,7 +276,7 @@
};
if (m_messageQueue)
- m_messageQueue->append(std::make_unique<Function<void()>>(WTFMove(work)));
+ m_messageQueue->append(makeUnique<Function<void()>>(WTFMove(work)));
else
callOnMainThread(WTFMove(work));
}
@@ -311,7 +311,7 @@
};
if (m_messageQueue)
- m_messageQueue->append(std::make_unique<Function<void()>>(WTFMove(work)));
+ m_messageQueue->append(makeUnique<Function<void()>>(WTFMove(work)));
else
callOnMainThread(WTFMove(work));
m_semaphore.wait();
@@ -331,7 +331,7 @@
};
if (m_messageQueue)
- m_messageQueue->append(std::make_unique<Function<void()>>(WTFMove(work)));
+ m_messageQueue->append(makeUnique<Function<void()>>(WTFMove(work)));
else
callOnMainThread(WTFMove(work));
}
@@ -349,7 +349,7 @@
};
if (m_messageQueue)
- m_messageQueue->append(std::make_unique<Function<void()>>(WTFMove(work)));
+ m_messageQueue->append(makeUnique<Function<void()>>(WTFMove(work)));
else
callOnMainThread(WTFMove(work));
}
@@ -380,7 +380,7 @@
};
if (m_messageQueue)
- m_messageQueue->append(std::make_unique<Function<void()>>(WTFMove(work)));
+ m_messageQueue->append(makeUnique<Function<void()>>(WTFMove(work)));
else
callOnMainThread(WTFMove(work));
m_semaphore.wait();
diff --git a/Source/WebCore/platform/network/cocoa/WebCoreNSURLSession.mm b/Source/WebCore/platform/network/cocoa/WebCoreNSURLSession.mm
index c9b53e3..ba55f00 100644
--- a/Source/WebCore/platform/network/cocoa/WebCoreNSURLSession.mm
+++ b/Source/WebCore/platform/network/cocoa/WebCoreNSURLSession.mm
@@ -523,7 +523,7 @@
_resource = self.session.loader.requestResource(self.originalRequest, PlatformMediaResourceLoader::LoadOption::DisallowCaching);
if (_resource)
- _resource->setClient(std::make_unique<WebCoreNSURLSessionDataTaskClient>(self));
+ _resource->setClient(makeUnique<WebCoreNSURLSessionDataTaskClient>(self));
}
- (void)_cancel
diff --git a/Source/WebCore/platform/network/curl/CookieJarDB.cpp b/Source/WebCore/platform/network/curl/CookieJarDB.cpp
index a45a5f4..101624f 100644
--- a/Source/WebCore/platform/network/curl/CookieJarDB.cpp
+++ b/Source/WebCore/platform/network/curl/CookieJarDB.cpp
@@ -384,7 +384,7 @@
"AND ((domain = ?) OR (domain GLOB ?)) "\
"ORDER BY length(path) DESC, lastupdated";
- auto pstmt = std::make_unique<SQLiteStatement>(m_database, sql);
+ auto pstmt = makeUnique<SQLiteStatement>(m_database, sql);
if (!pstmt)
return WTF::nullopt;
@@ -566,7 +566,7 @@
void CookieJarDB::createPrepareStatement(const String& sql)
{
- auto statement = std::make_unique<SQLiteStatement>(m_database, sql);
+ auto statement = makeUnique<SQLiteStatement>(m_database, sql);
int ret = statement->prepare();
ASSERT(ret == SQLITE_OK);
m_statements.add(sql, WTFMove(statement));
diff --git a/Source/WebCore/platform/network/curl/CurlCacheManager.cpp b/Source/WebCore/platform/network/curl/CurlCacheManager.cpp
index fa5c8d2..e2b4b5d 100644
--- a/Source/WebCore/platform/network/curl/CurlCacheManager.cpp
+++ b/Source/WebCore/platform/network/curl/CurlCacheManager.cpp
@@ -141,7 +141,7 @@
--end; // Last line is empty
while (it != end) {
String url = it->stripWhiteSpace();
- auto cacheEntry = std::make_unique<CurlCacheEntry>(url, nullptr, m_cacheDir);
+ auto cacheEntry = makeUnique<CurlCacheEntry>(url, nullptr, m_cacheDir);
if (cacheEntry->isCached() && cacheEntry->entrySize() < m_storageSizeLimit) {
m_currentStorageSize += cacheEntry->entrySize();
@@ -213,7 +213,7 @@
invalidateCacheEntry(url); // Invalidate existing entry on 200
- auto cacheEntry = std::make_unique<CurlCacheEntry>(url, &job, m_cacheDir);
+ auto cacheEntry = makeUnique<CurlCacheEntry>(url, &job, m_cacheDir);
bool cacheable = cacheEntry->parseResponseHeaders(response);
if (cacheable) {
cacheEntry->setIsLoading(true);
diff --git a/Source/WebCore/platform/network/curl/CurlContext.cpp b/Source/WebCore/platform/network/curl/CurlContext.cpp
index 7d17217..7b04fa2 100644
--- a/Source/WebCore/platform/network/curl/CurlContext.cpp
+++ b/Source/WebCore/platform/network/curl/CurlContext.cpp
@@ -115,7 +115,7 @@
if (auto value = envVar.readAs<signed>("WEBKIT_CURL_MAX_HOST_CONNECTIONS"))
maxHostConnections = *value;
- m_scheduler = std::make_unique<CurlRequestScheduler>(maxConnects, maxTotalConnections, maxHostConnections);
+ m_scheduler = makeUnique<CurlRequestScheduler>(maxConnects, maxTotalConnections, maxHostConnections);
#ifndef NDEBUG
m_verbose = envVar.defined("DEBUG_CURL");
@@ -336,7 +336,7 @@
return CURLE_ABORTED_BY_CALLBACK;
if (!m_sslVerifier)
- m_sslVerifier = std::make_unique<CurlSSLVerifier>(sslCtx);
+ m_sslVerifier = makeUnique<CurlSSLVerifier>(sslCtx);
return CURLE_OK;
}
diff --git a/Source/WebCore/platform/network/curl/CurlFormDataStream.cpp b/Source/WebCore/platform/network/curl/CurlFormDataStream.cpp
index 9fc66ec..785d6cb 100644
--- a/Source/WebCore/platform/network/curl/CurlFormDataStream.cpp
+++ b/Source/WebCore/platform/network/curl/CurlFormDataStream.cpp
@@ -77,7 +77,7 @@
return nullptr;
if (!m_postData)
- m_postData = std::make_unique<Vector<char>>(m_formData->flatten());
+ m_postData = makeUnique<Vector<char>>(m_formData->flatten());
return m_postData.get();
}
diff --git a/Source/WebCore/platform/network/curl/CurlMultipartHandle.cpp b/Source/WebCore/platform/network/curl/CurlMultipartHandle.cpp
index a8bb8d8..ccdbb28 100644
--- a/Source/WebCore/platform/network/curl/CurlMultipartHandle.cpp
+++ b/Source/WebCore/platform/network/curl/CurlMultipartHandle.cpp
@@ -46,7 +46,7 @@
if (!boundary)
return nullptr;
- return std::make_unique<CurlMultipartHandle>(client, *boundary);
+ return makeUnique<CurlMultipartHandle>(client, *boundary);
}
Optional<String> CurlMultipartHandle::extractBoundary(const CurlResponse& response)
diff --git a/Source/WebCore/platform/network/curl/CurlRequest.cpp b/Source/WebCore/platform/network/curl/CurlRequest.cpp
index 07034bb..b2a22da 100644
--- a/Source/WebCore/platform/network/curl/CurlRequest.cpp
+++ b/Source/WebCore/platform/network/curl/CurlRequest.cpp
@@ -185,7 +185,7 @@
void CurlRequest::runOnMainThread(Function<void()>&& task)
{
if (m_messageQueue)
- m_messageQueue->append(std::make_unique<Function<void()>>(WTFMove(task)));
+ m_messageQueue->append(makeUnique<Function<void()>>(WTFMove(task)));
else if (isMainThread())
task();
else
@@ -205,7 +205,7 @@
auto httpHeaderFields = m_request.httpHeaderFields();
appendAcceptLanguageHeader(httpHeaderFields);
- m_curlHandle = std::make_unique<CurlHandle>();
+ m_curlHandle = makeUnique<CurlHandle>();
m_curlHandle->setUrl(m_request.url());
diff --git a/Source/WebCore/platform/network/curl/CurlRequestScheduler.cpp b/Source/WebCore/platform/network/curl/CurlRequestScheduler.cpp
index 91837af..3aa5f52 100644
--- a/Source/WebCore/platform/network/curl/CurlRequestScheduler.cpp
+++ b/Source/WebCore/platform/network/curl/CurlRequestScheduler.cpp
@@ -143,7 +143,7 @@
{
ASSERT(!isMainThread());
- m_curlMultiHandle = std::make_unique<CurlMultiHandle>();
+ m_curlMultiHandle = makeUnique<CurlMultiHandle>();
m_curlMultiHandle->setMaxConnects(m_maxConnects);
m_curlMultiHandle->setMaxTotalConnections(m_maxTotalConnections);
m_curlMultiHandle->setMaxHostConnections(m_maxHostConnections);
diff --git a/Source/WebCore/platform/network/curl/ResourceHandleCurl.cpp b/Source/WebCore/platform/network/curl/ResourceHandleCurl.cpp
index 47b3783..707d0a6 100644
--- a/Source/WebCore/platform/network/curl/ResourceHandleCurl.cpp
+++ b/Source/WebCore/platform/network/curl/ResourceHandleCurl.cpp
@@ -163,7 +163,7 @@
CurlResourceHandleDelegate* ResourceHandle::delegate()
{
if (!d->m_delegate)
- d->m_delegate = std::make_unique<CurlResourceHandleDelegate>(*this);
+ d->m_delegate = makeUnique<CurlResourceHandleDelegate>(*this);
return d->m_delegate.get();
}
diff --git a/Source/WebCore/platform/network/curl/SocketStreamHandleImplCurl.cpp b/Source/WebCore/platform/network/curl/SocketStreamHandleImplCurl.cpp
index a367fda..13a832c 100644
--- a/Source/WebCore/platform/network/curl/SocketStreamHandleImplCurl.cpp
+++ b/Source/WebCore/platform/network/curl/SocketStreamHandleImplCurl.cpp
@@ -202,7 +202,7 @@
void SocketStreamHandleImpl::callOnWorkerThread(Function<void()>&& task)
{
ASSERT(isMainThread());
- m_taskQueue.append(std::make_unique<Function<void()>>(WTFMove(task)));
+ m_taskQueue.append(makeUnique<Function<void()>>(WTFMove(task)));
}
void SocketStreamHandleImpl::executeTasks()
diff --git a/Source/WebCore/platform/network/mac/WebCoreResourceHandleAsOperationQueueDelegate.mm b/Source/WebCore/platform/network/mac/WebCoreResourceHandleAsOperationQueueDelegate.mm
index de0b7e1..f10eb62 100644
--- a/Source/WebCore/platform/network/mac/WebCoreResourceHandleAsOperationQueueDelegate.mm
+++ b/Source/WebCore/platform/network/mac/WebCoreResourceHandleAsOperationQueueDelegate.mm
@@ -61,7 +61,7 @@
{
// Sync xhr uses the message queue.
if (m_messageQueue)
- return m_messageQueue->append(std::make_unique<Function<void()>>(WTFMove(function)));
+ return m_messageQueue->append(makeUnique<Function<void()>>(WTFMove(function)));
// This is the common case.
if (!scheduledWithCustomRunLoopMode(m_scheduledPairs))
diff --git a/Source/WebCore/platform/network/soup/DNSResolveQueueSoup.cpp b/Source/WebCore/platform/network/soup/DNSResolveQueueSoup.cpp
index 4bb30a8..d4ba4e9 100644
--- a/Source/WebCore/platform/network/soup/DNSResolveQueueSoup.cpp
+++ b/Source/WebCore/platform/network/soup/DNSResolveQueueSoup.cpp
@@ -186,7 +186,7 @@
g_object_set_data(G_OBJECT(address.get()), "identifier", GUINT_TO_POINTER(identifier));
- m_completionAndCancelHandlers.add(identifier, std::make_unique<DNSResolveQueueSoup::CompletionAndCancelHandlers>(WTFMove(completionHandler), WTFMove(cancellable)));
+ m_completionAndCancelHandlers.add(identifier, makeUniqueWithoutFastMallocCheck<DNSResolveQueueSoup::CompletionAndCancelHandlers>(WTFMove(completionHandler), WTFMove(cancellable)));
}
void DNSResolveQueueSoup::stopResolve(uint64_t identifier)
diff --git a/Source/WebCore/platform/network/soup/NetworkStorageSessionSoup.cpp b/Source/WebCore/platform/network/soup/NetworkStorageSessionSoup.cpp
index 0a72724..0b1b7cf 100644
--- a/Source/WebCore/platform/network/soup/NetworkStorageSessionSoup.cpp
+++ b/Source/WebCore/platform/network/soup/NetworkStorageSessionSoup.cpp
@@ -174,7 +174,7 @@
return;
}
- auto data = std::make_unique<SecretServiceSearchData>(cancellable, WTFMove(completionHandler));
+ auto data = makeUnique<SecretServiceSearchData>(cancellable, WTFMove(completionHandler));
secret_service_search(nullptr, SECRET_SCHEMA_COMPAT_NETWORK, attributes.get(),
static_cast<SecretSearchFlags>(SECRET_SEARCH_UNLOCK | SECRET_SEARCH_LOAD_SECRETS), cancellable,
[](GObject* source, GAsyncResult* result, gpointer userData) {
diff --git a/Source/WebCore/platform/text/BidiResolver.h b/Source/WebCore/platform/text/BidiResolver.h
index 10fecbc..aafed3d 100644
--- a/Source/WebCore/platform/text/BidiResolver.h
+++ b/Source/WebCore/platform/text/BidiResolver.h
@@ -321,7 +321,7 @@
}
if (endOffset >= startOffset)
- m_runs.appendRun(std::make_unique<Run>(startOffset, endOffset + 1, context(), m_direction));
+ m_runs.appendRun(makeUnique<Run>(startOffset, endOffset + 1, context(), m_direction));
m_eor.increment();
m_sor = m_eor;
diff --git a/Source/WebCore/platform/text/LocaleICU.cpp b/Source/WebCore/platform/text/LocaleICU.cpp
index 59e1fc7..2c8cce7 100644
--- a/Source/WebCore/platform/text/LocaleICU.cpp
+++ b/Source/WebCore/platform/text/LocaleICU.cpp
@@ -44,7 +44,7 @@
std::unique_ptr<Locale> Locale::create(const AtomString& locale)
{
- return std::make_unique<LocaleICU>(locale.string().utf8().data());
+ return makeUnique<LocaleICU>(locale.string().utf8().data());
}
LocaleICU::LocaleICU(const char* locale)
@@ -163,22 +163,22 @@
std::unique_ptr<Vector<String>> LocaleICU::createLabelVector(const UDateFormat* dateFormat, UDateFormatSymbolType type, int32_t startIndex, int32_t size)
{
if (!dateFormat)
- return std::make_unique<Vector<String>>();
+ return makeUnique<Vector<String>>();
if (udat_countSymbols(dateFormat, type) != startIndex + size)
- return std::make_unique<Vector<String>>();
+ return makeUnique<Vector<String>>();
- auto labels = std::make_unique<Vector<String>>();
+ auto labels = makeUnique<Vector<String>>();
labels->reserveCapacity(size);
for (int32_t i = 0; i < size; ++i) {
UErrorCode status = U_ZERO_ERROR;
int32_t length = udat_getSymbols(dateFormat, type, startIndex + i, 0, 0, &status);
if (status != U_BUFFER_OVERFLOW_ERROR)
- return std::make_unique<Vector<String>>();
+ return makeUnique<Vector<String>>();
Vector<UChar> buffer(length);
status = U_ZERO_ERROR;
udat_getSymbols(dateFormat, type, startIndex + i, buffer.data(), length, &status);
if (U_FAILURE(status))
- return std::make_unique<Vector<String>>();
+ return makeUnique<Vector<String>>();
labels->append(String::adopt(WTFMove(buffer)));
}
return WTFMove(labels);
@@ -186,7 +186,7 @@
static std::unique_ptr<Vector<String>> createFallbackMonthLabels()
{
- auto labels = std::make_unique<Vector<String>>();
+ auto labels = makeUnique<Vector<String>>();
labels->reserveCapacity(WTF_ARRAY_LENGTH(WTF::monthFullName));
for (unsigned i = 0; i < WTF_ARRAY_LENGTH(WTF::monthFullName); ++i)
labels->append(WTF::monthFullName[i]);
@@ -208,7 +208,7 @@
static std::unique_ptr<Vector<String>> createFallbackAMPMLabels()
{
- auto labels = std::make_unique<Vector<String>>();
+ auto labels = makeUnique<Vector<String>>();
labels->reserveCapacity(2);
labels->append("AM");
labels->append("PM");
diff --git a/Source/WebCore/platform/text/LocaleNone.cpp b/Source/WebCore/platform/text/LocaleNone.cpp
index bb6b26b..7815a47 100644
--- a/Source/WebCore/platform/text/LocaleNone.cpp
+++ b/Source/WebCore/platform/text/LocaleNone.cpp
@@ -57,7 +57,7 @@
std::unique_ptr<Locale> Locale::create(const AtomString&)
{
- return std::make_unique<LocaleNone>();
+ return makeUnique<LocaleNone>();
}
LocaleNone::~LocaleNone() = default;
diff --git a/Source/WebCore/platform/text/TextCodecICU.cpp b/Source/WebCore/platform/text/TextCodecICU.cpp
index f8e1670..e5f2816 100644
--- a/Source/WebCore/platform/text/TextCodecICU.cpp
+++ b/Source/WebCore/platform/text/TextCodecICU.cpp
@@ -156,43 +156,43 @@
// http://demo.icu-project.org/icu-bin/convexp
if (!strcmp(name, "windows-874")) {
registrar(name, [name] {
- return std::make_unique<TextCodecICU>(name, "windows-874-2000");
+ return makeUnique<TextCodecICU>(name, "windows-874-2000");
});
continue;
}
if (!strcmp(name, "windows-949")) {
registrar(name, [name] {
- return std::make_unique<TextCodecICU>(name, "windows-949-2000");
+ return makeUnique<TextCodecICU>(name, "windows-949-2000");
});
continue;
}
if (!strcmp(name, "x-mac-cyrillic")) {
registrar(name, [name] {
- return std::make_unique<TextCodecICU>(name, "macos-7_3-10.2");
+ return makeUnique<TextCodecICU>(name, "macos-7_3-10.2");
});
continue;
}
if (!strcmp(name, "x-mac-greek")) {
registrar(name, [name] {
- return std::make_unique<TextCodecICU>(name, "macos-6_2-10.4");
+ return makeUnique<TextCodecICU>(name, "macos-6_2-10.4");
});
continue;
}
if (!strcmp(name, "x-mac-centraleurroman")) {
registrar(name, [name] {
- return std::make_unique<TextCodecICU>(name, "macos-29-10.2");
+ return makeUnique<TextCodecICU>(name, "macos-29-10.2");
});
continue;
}
if (!strcmp(name, "x-mac-turkish")) {
registrar(name, [name] {
- return std::make_unique<TextCodecICU>(name, "macos-35-10.2");
+ return makeUnique<TextCodecICU>(name, "macos-35-10.2");
});
continue;
}
if (!strcmp(name, "EUC-KR")) {
registrar(name, [name] {
- return std::make_unique<TextCodecICU>(name, "windows-949");
+ return makeUnique<TextCodecICU>(name, "windows-949");
});
continue;
}
@@ -201,7 +201,7 @@
const char* canonicalConverterName = ucnv_getCanonicalName(name, "IANA", &error);
ASSERT(U_SUCCESS(error));
registrar(name, [name, canonicalConverterName] {
- return std::make_unique<TextCodecICU>(name, canonicalConverterName);
+ return makeUnique<TextCodecICU>(name, canonicalConverterName);
});
}
}
diff --git a/Source/WebCore/platform/text/TextCodecLatin1.cpp b/Source/WebCore/platform/text/TextCodecLatin1.cpp
index 1a4d551..badcf6b 100644
--- a/Source/WebCore/platform/text/TextCodecLatin1.cpp
+++ b/Source/WebCore/platform/text/TextCodecLatin1.cpp
@@ -93,7 +93,7 @@
void TextCodecLatin1::registerCodecs(TextCodecRegistrar registrar)
{
registrar("windows-1252", [] {
- return std::make_unique<TextCodecLatin1>();
+ return makeUnique<TextCodecLatin1>();
});
}
diff --git a/Source/WebCore/platform/text/TextCodecReplacement.cpp b/Source/WebCore/platform/text/TextCodecReplacement.cpp
index 1765bf79..c8b558c 100644
--- a/Source/WebCore/platform/text/TextCodecReplacement.cpp
+++ b/Source/WebCore/platform/text/TextCodecReplacement.cpp
@@ -49,7 +49,7 @@
void TextCodecReplacement::registerCodecs(TextCodecRegistrar registrar)
{
registrar("replacement", [] {
- return std::make_unique<TextCodecReplacement>();
+ return makeUnique<TextCodecReplacement>();
});
}
diff --git a/Source/WebCore/platform/text/TextCodecUTF16.cpp b/Source/WebCore/platform/text/TextCodecUTF16.cpp
index be00656..90c4475 100644
--- a/Source/WebCore/platform/text/TextCodecUTF16.cpp
+++ b/Source/WebCore/platform/text/TextCodecUTF16.cpp
@@ -54,10 +54,10 @@
void TextCodecUTF16::registerCodecs(TextCodecRegistrar registrar)
{
registrar("UTF-16LE", [] {
- return std::make_unique<TextCodecUTF16>(true);
+ return makeUnique<TextCodecUTF16>(true);
});
registrar("UTF-16BE", [] {
- return std::make_unique<TextCodecUTF16>(false);
+ return makeUnique<TextCodecUTF16>(false);
});
}
diff --git a/Source/WebCore/platform/text/TextCodecUTF8.cpp b/Source/WebCore/platform/text/TextCodecUTF8.cpp
index 406dd7c..2264311 100644
--- a/Source/WebCore/platform/text/TextCodecUTF8.cpp
+++ b/Source/WebCore/platform/text/TextCodecUTF8.cpp
@@ -57,7 +57,7 @@
void TextCodecUTF8::registerCodecs(TextCodecRegistrar registrar)
{
registrar("UTF-8", [] {
- return std::make_unique<TextCodecUTF8>();
+ return makeUnique<TextCodecUTF8>();
});
}
diff --git a/Source/WebCore/platform/text/TextCodecUserDefined.cpp b/Source/WebCore/platform/text/TextCodecUserDefined.cpp
index 296c469..48adba9 100644
--- a/Source/WebCore/platform/text/TextCodecUserDefined.cpp
+++ b/Source/WebCore/platform/text/TextCodecUserDefined.cpp
@@ -41,7 +41,7 @@
void TextCodecUserDefined::registerCodecs(TextCodecRegistrar registrar)
{
registrar("x-user-defined", [] {
- return std::make_unique<TextCodecUserDefined>();
+ return makeUnique<TextCodecUserDefined>();
});
}
diff --git a/Source/WebCore/platform/text/mac/LocaleMac.mm b/Source/WebCore/platform/text/mac/LocaleMac.mm
index a517be3..2b3d03a 100644
--- a/Source/WebCore/platform/text/mac/LocaleMac.mm
+++ b/Source/WebCore/platform/text/mac/LocaleMac.mm
@@ -67,7 +67,7 @@
std::unique_ptr<Locale> Locale::create(const AtomString& locale)
{
- return std::make_unique<LocaleMac>(determineLocale(locale.string()).get());
+ return makeUnique<LocaleMac>(determineLocale(locale.string()).get());
}
static RetainPtr<NSDateFormatter> createDateTimeFormatter(NSLocale* locale, NSCalendar* calendar, NSDateFormatterStyle dateStyle, NSDateFormatterStyle timeStyle)
diff --git a/Source/WebCore/platform/text/win/LocaleWin.cpp b/Source/WebCore/platform/text/win/LocaleWin.cpp
index 6a160de..aa00a4a 100644
--- a/Source/WebCore/platform/text/win/LocaleWin.cpp
+++ b/Source/WebCore/platform/text/win/LocaleWin.cpp
@@ -78,7 +78,7 @@
std::unique_ptr<Locale> Locale::create(const AtomString& locale)
{
- return std::make_unique<LocaleWin>(LCIDFromLocale(locale));
+ return makeUnique<LocaleWin>(LCIDFromLocale(locale));
}
inline LocaleWin::LocaleWin(LCID lcid)
diff --git a/Source/WebCore/platform/text/win/TextCodecWin.cpp b/Source/WebCore/platform/text/win/TextCodecWin.cpp
index af46913..2ceb475 100644
--- a/Source/WebCore/platform/text/win/TextCodecWin.cpp
+++ b/Source/WebCore/platform/text/win/TextCodecWin.cpp
@@ -131,7 +131,7 @@
static std::unique_ptr<TextCodec> newTextCodecWin(const TextEncoding& encoding, const void*)
{
- return std::make_unique<TextCodecWin>(getCodePage(encoding.name()));
+ return makeUnique<TextCodecWin>(getCodePage(encoding.name()));
}
TextCodecWin::TextCodecWin(UINT codePage)
diff --git a/Source/WebCore/platform/vr/openvr/VRPlatformManagerOpenVR.cpp b/Source/WebCore/platform/vr/openvr/VRPlatformManagerOpenVR.cpp
index d1dc673..e7cf713 100644
--- a/Source/WebCore/platform/vr/openvr/VRPlatformManagerOpenVR.cpp
+++ b/Source/WebCore/platform/vr/openvr/VRPlatformManagerOpenVR.cpp
@@ -35,7 +35,7 @@
if (!vr::VR_IsRuntimeInstalled())
return nullptr;
- return std::make_unique<VRPlatformManagerOpenVR>();
+ return makeUnique<VRPlatformManagerOpenVR>();
}
VRPlatformManagerOpenVR::~VRPlatformManagerOpenVR()
@@ -78,7 +78,7 @@
Vector<WeakPtr<VRPlatformDisplay>> displays;
if (!m_display)
- m_display = std::make_unique<VRPlatformDisplayOpenVR>(m_system, chaperone, compositor);
+ m_display = makeUnique<VRPlatformDisplayOpenVR>(m_system, chaperone, compositor);
displays.append(makeWeakPtr(*m_display));
return displays;
}
diff --git a/Source/WebCore/platform/win/PasteboardWin.cpp b/Source/WebCore/platform/win/PasteboardWin.cpp
index abaddc7..1697855 100644
--- a/Source/WebCore/platform/win/PasteboardWin.cpp
+++ b/Source/WebCore/platform/win/PasteboardWin.cpp
@@ -93,7 +93,7 @@
std::unique_ptr<Pasteboard> Pasteboard::createForCopyAndPaste()
{
- auto pasteboard = std::make_unique<Pasteboard>();
+ auto pasteboard = makeUnique<Pasteboard>();
COMPtr<IDataObject> clipboardData;
if (!SUCCEEDED(OleGetClipboard(&clipboardData)))
clipboardData = 0;
@@ -106,16 +106,16 @@
{
COMPtr<WCDataObject> dataObject;
WCDataObject::createInstance(&dataObject);
- return std::make_unique<Pasteboard>(dataObject.get());
+ return makeUnique<Pasteboard>(dataObject.get());
}
// static
std::unique_ptr<Pasteboard> Pasteboard::createForDragAndDrop(const DragData& dragData)
{
if (dragData.platformData())
- return std::make_unique<Pasteboard>(dragData.platformData());
+ return makeUnique<Pasteboard>(dragData.platformData());
// FIXME: Should add a const overload of dragDataMap so we don't need a const_cast here.
- return std::make_unique<Pasteboard>(const_cast<DragData&>(dragData).dragDataMap());
+ return makeUnique<Pasteboard>(const_cast<DragData&>(dragData).dragDataMap());
}
#endif
diff --git a/Source/WebCore/platform/win/SearchPopupMenuDB.cpp b/Source/WebCore/platform/win/SearchPopupMenuDB.cpp
index 19649c5..6f7f4ba 100644
--- a/Source/WebCore/platform/win/SearchPopupMenuDB.cpp
+++ b/Source/WebCore/platform/win/SearchPopupMenuDB.cpp
@@ -284,7 +284,7 @@
std::unique_ptr<SQLiteStatement> SearchPopupMenuDB::createPreparedStatement(const String& sql)
{
- auto statement = std::make_unique<SQLiteStatement>(m_database, sql);
+ auto statement = makeUnique<SQLiteStatement>(m_database, sql);
int ret = statement->prepare();
ASSERT_UNUSED(ret, ret == SQLITE_OK);
return statement;
diff --git a/Source/WebCore/platform/win/WCDataObject.cpp b/Source/WebCore/platform/win/WCDataObject.cpp
index dbf99a4..241003a 100644
--- a/Source/WebCore/platform/win/WCDataObject.cpp
+++ b/Source/WebCore/platform/win/WCDataObject.cpp
@@ -256,7 +256,7 @@
if (!pformatetc || !pmedium)
return E_POINTER;
- auto fetc = std::make_unique<FORMATETC>();
+ auto fetc = makeUniqueWithoutFastMallocCheck<FORMATETC>();
std::unique_ptr<STGMEDIUM, StgMediumDeleter> pStgMed(new STGMEDIUM);
ZeroMemory(fetc.get(), sizeof(FORMATETC));
diff --git a/Source/WebCore/rendering/CSSFilter.cpp b/Source/WebCore/rendering/CSSFilter.cpp
index c004fc9..47981ae 100644
--- a/Source/WebCore/rendering/CSSFilter.cpp
+++ b/Source/WebCore/rendering/CSSFilter.cpp
@@ -111,7 +111,7 @@
RefPtr<FilterEffect> effect;
- auto builder = std::make_unique<SVGFilterBuilder>(&previousEffect);
+ auto builder = makeUnique<SVGFilterBuilder>(&previousEffect);
m_sourceAlpha = builder->getEffectById(SourceAlpha::effectName());
for (auto& effectElement : childrenOfType<SVGFilterPrimitiveStandardAttributes>(*filter)) {
diff --git a/Source/WebCore/rendering/ComplexLineLayout.cpp b/Source/WebCore/rendering/ComplexLineLayout.cpp
index 0133787..bd3c9be 100644
--- a/Source/WebCore/rendering/ComplexLineLayout.cpp
+++ b/Source/WebCore/rendering/ComplexLineLayout.cpp
@@ -82,7 +82,7 @@
inline std::unique_ptr<BidiRun> createRun(int start, int end, RenderObject& obj, InlineBidiResolver& resolver)
{
- return std::make_unique<BidiRun>(start, end, obj, resolver.context(), resolver.dir());
+ return makeUnique<BidiRun>(start, end, obj, resolver.context(), resolver.dir());
}
void ComplexLineLayout::appendRunsForObject(BidiRunList<BidiRun>* runs, int start, int end, RenderObject& obj, InlineBidiResolver& resolver)
@@ -130,12 +130,12 @@
std::unique_ptr<RootInlineBox> ComplexLineLayout::createRootInlineBox()
{
if (is<RenderSVGText>(m_flow)) {
- auto box = std::make_unique<SVGRootInlineBox>(downcast<RenderSVGText>(m_flow));
+ auto box = makeUnique<SVGRootInlineBox>(downcast<RenderSVGText>(m_flow));
box->setHasVirtualLogicalHeight();
return box;
}
- return std::make_unique<RootInlineBox>(m_flow);
+ return makeUnique<RootInlineBox>(m_flow);
}
RootInlineBox* ComplexLineLayout::createAndAppendRootInlineBox()
@@ -1085,7 +1085,7 @@
while (BidiContext* parent = baseContext->parent())
baseContext = parent;
- std::unique_ptr<BidiRun> newTrailingRun = std::make_unique<BidiRun>(firstSpace, trailingSpaceRun->m_stop, trailingSpaceRun->renderer(), baseContext, U_OTHER_NEUTRAL);
+ std::unique_ptr<BidiRun> newTrailingRun = makeUnique<BidiRun>(firstSpace, trailingSpaceRun->m_stop, trailingSpaceRun->renderer(), baseContext, U_OTHER_NEUTRAL);
trailingSpaceRun->m_stop = firstSpace;
trailingSpaceRun = newTrailingRun.get();
if (direction == TextDirection::LTR)
@@ -1617,7 +1617,7 @@
if (layoutState.checkForFloatsFromLastLine()) {
LayoutUnit bottomVisualOverflow = lastRootBox()->logicalBottomVisualOverflow();
LayoutUnit bottomLayoutOverflow = lastRootBox()->logicalBottomLayoutOverflow();
- auto newLineBox = std::make_unique<TrailingFloatsRootInlineBox>(m_flow);
+ auto newLineBox = makeUnique<TrailingFloatsRootInlineBox>(m_flow);
auto trailingFloatsLineBox = newLineBox.get();
m_lineBoxes.appendLineBox(WTFMove(newLineBox));
trailingFloatsLineBox->setConstructed();
diff --git a/Source/WebCore/rendering/FloatingObjects.cpp b/Source/WebCore/rendering/FloatingObjects.cpp
index 4cdd139..a6c6481 100644
--- a/Source/WebCore/rendering/FloatingObjects.cpp
+++ b/Source/WebCore/rendering/FloatingObjects.cpp
@@ -75,7 +75,7 @@
std::unique_ptr<FloatingObject> FloatingObject::create(RenderBox& renderer)
{
- auto object = std::make_unique<FloatingObject>(renderer);
+ auto object = makeUnique<FloatingObject>(renderer);
object->setShouldPaint(!renderer.hasSelfPaintingLayer()); // If a layer exists, the float will paint itself. Otherwise someone else will.
object->setIsDescendant(true);
return object;
@@ -83,12 +83,12 @@
std::unique_ptr<FloatingObject> FloatingObject::copyToNewContainer(LayoutSize offset, bool shouldPaint, bool isDescendant) const
{
- return std::make_unique<FloatingObject>(renderer(), type(), LayoutRect(frameRect().location() - offset, frameRect().size()), marginOffset(), shouldPaint, isDescendant);
+ return makeUnique<FloatingObject>(renderer(), type(), LayoutRect(frameRect().location() - offset, frameRect().size()), marginOffset(), shouldPaint, isDescendant);
}
std::unique_ptr<FloatingObject> FloatingObject::cloneForNewParent() const
{
- auto cloneObject = std::make_unique<FloatingObject>(renderer(), type(), m_frameRect, m_marginOffset, m_shouldPaint, m_isDescendant);
+ auto cloneObject = makeUnique<FloatingObject>(renderer(), type(), m_frameRect, m_marginOffset, m_shouldPaint, m_isDescendant);
cloneObject->m_paginationStrut = m_paginationStrut;
cloneObject->m_isPlaced = m_isPlaced;
return cloneObject;
@@ -372,7 +372,7 @@
if (m_set.isEmpty())
return;
- m_placedFloatsTree = std::make_unique<FloatingObjectTree>();
+ m_placedFloatsTree = makeUnique<FloatingObjectTree>();
for (auto it = m_set.begin(), end = m_set.end(); it != end; ++it) {
FloatingObject* floatingObject = it->get();
if (floatingObject->isPlaced())
diff --git a/Source/WebCore/rendering/Grid.cpp b/Source/WebCore/rendering/Grid.cpp
index c72d01d..1e911ae 100644
--- a/Source/WebCore/rendering/Grid.cpp
+++ b/Source/WebCore/rendering/Grid.cpp
@@ -233,7 +233,7 @@
const unsigned endOfVaryingTrackIndex = (m_direction == ForColumns) ? m_grid.size() : m_grid[0].size();
for (; varyingTrackIndex < endOfVaryingTrackIndex; ++varyingTrackIndex) {
if (isEmptyAreaEnough(rowSpan, columnSpan)) {
- std::unique_ptr<GridArea> result = std::make_unique<GridArea>(GridSpan::translatedDefiniteGridSpan(m_rowIndex, m_rowIndex + rowSpan), GridSpan::translatedDefiniteGridSpan(m_columnIndex, m_columnIndex + columnSpan));
+ std::unique_ptr<GridArea> result = makeUnique<GridArea>(GridSpan::translatedDefiniteGridSpan(m_rowIndex, m_rowIndex + rowSpan), GridSpan::translatedDefiniteGridSpan(m_columnIndex, m_columnIndex + columnSpan));
// Advance the iterator to avoid an infinite loop where we would return the same grid area over and over.
++varyingTrackIndex;
return result;
diff --git a/Source/WebCore/rendering/GridBaselineAlignment.cpp b/Source/WebCore/rendering/GridBaselineAlignment.cpp
index 5fc3281..6609098 100644
--- a/Source/WebCore/rendering/GridBaselineAlignment.cpp
+++ b/Source/WebCore/rendering/GridBaselineAlignment.cpp
@@ -134,7 +134,7 @@
// Looking for a compatible baseline-sharing group.
if (addResult.isNewEntry)
- addResult.iterator->value = std::make_unique<BaselineContext>(child, preference, ascent, descent);
+ addResult.iterator->value = makeUnique<BaselineContext>(child, preference, ascent, descent);
else {
auto* context = addResult.iterator->value.get();
context->updateSharedGroup(child, preference, ascent, descent);
diff --git a/Source/WebCore/rendering/GridTrackSizingAlgorithm.cpp b/Source/WebCore/rendering/GridTrackSizingAlgorithm.cpp
index addedc4..b2b011b 100644
--- a/Source/WebCore/rendering/GridTrackSizingAlgorithm.cpp
+++ b/Source/WebCore/rendering/GridTrackSizingAlgorithm.cpp
@@ -681,7 +681,7 @@
leftOverSpace -= baseSize;
flexFactorSum -= flexFactor;
if (!tracksToTreatAsInflexible)
- tracksToTreatAsInflexible = std::make_unique<TrackIndexSet>();
+ tracksToTreatAsInflexible = makeUnique<TrackIndexSet>();
tracksToTreatAsInflexible->add(index);
validFlexFactorUnit = false;
}
@@ -1260,10 +1260,10 @@
m_sizingOperation = sizingOperation;
switch (m_sizingOperation) {
case IntrinsicSizeComputation:
- m_strategy = std::make_unique<IndefiniteSizeStrategy>(*this);
+ m_strategy = makeUnique<IndefiniteSizeStrategy>(*this);
break;
case TrackSizing:
- m_strategy = std::make_unique<DefiniteSizeStrategy>(*this);
+ m_strategy = makeUnique<DefiniteSizeStrategy>(*this);
break;
}
diff --git a/Source/WebCore/rendering/HitTestResult.cpp b/Source/WebCore/rendering/HitTestResult.cpp
index 73b3654..b3c4007 100644
--- a/Source/WebCore/rendering/HitTestResult.cpp
+++ b/Source/WebCore/rendering/HitTestResult.cpp
@@ -96,7 +96,7 @@
, m_isOverWidget(other.isOverWidget())
{
// Only copy the NodeSet in case of list hit test.
- m_listBasedTestResult = other.m_listBasedTestResult ? std::make_unique<NodeSet>(*other.m_listBasedTestResult) : nullptr;
+ m_listBasedTestResult = other.m_listBasedTestResult ? makeUnique<NodeSet>(*other.m_listBasedTestResult) : nullptr;
}
HitTestResult::~HitTestResult() = default;
@@ -113,7 +113,7 @@
m_isOverWidget = other.isOverWidget();
// Only copy the NodeSet in case of list hit test.
- m_listBasedTestResult = other.m_listBasedTestResult ? std::make_unique<NodeSet>(*other.m_listBasedTestResult) : nullptr;
+ m_listBasedTestResult = other.m_listBasedTestResult ? makeUnique<NodeSet>(*other.m_listBasedTestResult) : nullptr;
return *this;
}
@@ -690,14 +690,14 @@
const HitTestResult::NodeSet& HitTestResult::listBasedTestResult() const
{
if (!m_listBasedTestResult)
- m_listBasedTestResult = std::make_unique<NodeSet>();
+ m_listBasedTestResult = makeUnique<NodeSet>();
return *m_listBasedTestResult;
}
HitTestResult::NodeSet& HitTestResult::mutableListBasedTestResult()
{
if (!m_listBasedTestResult)
- m_listBasedTestResult = std::make_unique<NodeSet>();
+ m_listBasedTestResult = makeUnique<NodeSet>();
return *m_listBasedTestResult;
}
diff --git a/Source/WebCore/rendering/InlineIterator.h b/Source/WebCore/rendering/InlineIterator.h
index 43c6538..15fde54 100644
--- a/Source/WebCore/rendering/InlineIterator.h
+++ b/Source/WebCore/rendering/InlineIterator.h
@@ -493,7 +493,7 @@
// of BidiResolver which knows nothing about RenderObjects.
static inline void addPlaceholderRunForIsolatedInline(InlineBidiResolver& resolver, RenderObject& obj, unsigned pos, RenderElement& root)
{
- std::unique_ptr<BidiRun> isolatedRun = std::make_unique<BidiRun>(pos, pos, obj, resolver.context(), resolver.dir());
+ std::unique_ptr<BidiRun> isolatedRun = makeUnique<BidiRun>(pos, pos, obj, resolver.context(), resolver.dir());
// FIXME: isolatedRuns() could be a hash of object->run and then we could cheaply
// ASSERT here that we didn't create multiple objects for the same inline.
resolver.setWhitespaceCollapsingTransitionForIsolatedRun(*isolatedRun, resolver.whitespaceCollapsingState().currentTransition());
diff --git a/Source/WebCore/rendering/LayerOverlapMap.cpp b/Source/WebCore/rendering/LayerOverlapMap.cpp
index 78fc0886..96af95a 100644
--- a/Source/WebCore/rendering/LayerOverlapMap.cpp
+++ b/Source/WebCore/rendering/LayerOverlapMap.cpp
@@ -297,7 +297,7 @@
void LayerOverlapMap::pushCompositingContainer()
{
- m_overlapStack.append(std::make_unique<OverlapMapContainer>(m_rootLayer));
+ m_overlapStack.append(makeUnique<OverlapMapContainer>(m_rootLayer));
}
void LayerOverlapMap::popCompositingContainer()
diff --git a/Source/WebCore/rendering/RenderBlock.cpp b/Source/WebCore/rendering/RenderBlock.cpp
index 4dba3f1..0019258 100644
--- a/Source/WebCore/rendering/RenderBlock.cpp
+++ b/Source/WebCore/rendering/RenderBlock.cpp
@@ -104,7 +104,7 @@
}
auto& descendantSet = percentHeightDescendantsMap->ensure(&container, [] {
- return std::make_unique<TrackedRendererListHashSet>();
+ return makeUnique<TrackedRendererListHashSet>();
}).iterator->value;
bool added = descendantSet->add(&descendant).isNewEntry;
@@ -115,7 +115,7 @@
}
auto& containerSet = percentHeightContainerMap->ensure(&descendant, [] {
- return std::make_unique<HashSet<const RenderBlock*>>();
+ return makeUnique<HashSet<const RenderBlock*>>();
}).iterator->value;
ASSERT(!containerSet->contains(&container));
@@ -161,7 +161,7 @@
}
auto& descendants = m_descendantsMap.ensure(&containingBlock, [] {
- return std::make_unique<TrackedRendererListHashSet>();
+ return makeUnique<TrackedRendererListHashSet>();
}).iterator->value;
bool isNewEntry = moveDescendantToEnd == MoveDescendantToEnd::Yes ? descendants->appendOrMoveToLast(&positionedDescendant).isNewEntry
@@ -528,7 +528,7 @@
void RenderBlock::beginUpdateScrollInfoAfterLayoutTransaction()
{
if (!updateScrollInfoAfterLayoutTransactionStack())
- updateScrollInfoAfterLayoutTransactionStack() = std::make_unique<DelayedUpdateScrollInfoStack>();
+ updateScrollInfoAfterLayoutTransactionStack() = makeUnique<DelayedUpdateScrollInfoStack>();
if (updateScrollInfoAfterLayoutTransactionStack()->isEmpty() || currentUpdateScrollInfoAfterLayoutTransaction()->view != &view())
updateScrollInfoAfterLayoutTransactionStack()->append(UpdateScrollInfoAfterLayoutTransaction(view()));
++currentUpdateScrollInfoAfterLayoutTransaction()->nestedCount;
@@ -620,7 +620,7 @@
auto& rareData = gRareDataMap->add(&block, nullptr).iterator->value;
if (!rareData)
- rareData = std::make_unique<RenderBlockRareData>();
+ rareData = makeUnique<RenderBlockRareData>();
return *rareData.get();
}
diff --git a/Source/WebCore/rendering/RenderBlockFlow.cpp b/Source/WebCore/rendering/RenderBlockFlow.cpp
index 7f1e639..b8642d1 100644
--- a/Source/WebCore/rendering/RenderBlockFlow.cpp
+++ b/Source/WebCore/rendering/RenderBlockFlow.cpp
@@ -678,7 +678,7 @@
m_simpleLineLayout = nullptr;
if (!m_complexLineLayout)
- m_complexLineLayout = std::make_unique<ComplexLineLayout>(*this);
+ m_complexLineLayout = makeUnique<ComplexLineLayout>(*this);
m_complexLineLayout->layoutLineBoxes(relayoutChildren, repaintLogicalTop, repaintLogicalBottom);
}
@@ -2019,7 +2019,7 @@
setLineGridBox(0);
- auto lineGridBox = std::make_unique<RootInlineBox>(*this);
+ auto lineGridBox = makeUnique<RootInlineBox>(*this);
lineGridBox->setHasTextChildren(); // Needed to make the line ascent/descent actually be honored in quirks mode.
lineGridBox->setConstructed();
GlyphOverflowAndFallbackFontsMap textBoxDataMap;
@@ -2260,7 +2260,7 @@
void RenderBlockFlow::createFloatingObjects()
{
- m_floatingObjects = std::make_unique<FloatingObjects>(*this);
+ m_floatingObjects = makeUnique<FloatingObjects>(*this);
}
void RenderBlockFlow::removeFloatingObjects()
@@ -3677,7 +3677,7 @@
return;
ASSERT(!m_complexLineLayout);
- m_complexLineLayout = std::make_unique<ComplexLineLayout>(*this);
+ m_complexLineLayout = makeUnique<ComplexLineLayout>(*this);
if (SimpleLineLayout::canUseForLineBoxTree(*this, *m_simpleLineLayout)) {
SimpleLineLayout::generateLineBoxTree(*this, *m_simpleLineLayout);
@@ -3735,7 +3735,7 @@
void RenderBlockFlow::materializeRareBlockFlowData()
{
ASSERT(!hasRareBlockFlowData());
- m_rareBlockFlowData = std::make_unique<RenderBlockFlow::RenderBlockFlowRareData>(*this);
+ m_rareBlockFlowData = makeUnique<RenderBlockFlow::RenderBlockFlowRareData>(*this);
}
#if ENABLE(TEXT_AUTOSIZING)
diff --git a/Source/WebCore/rendering/RenderBox.cpp b/Source/WebCore/rendering/RenderBox.cpp
index db3a6da..9677dae 100644
--- a/Source/WebCore/rendering/RenderBox.cpp
+++ b/Source/WebCore/rendering/RenderBox.cpp
@@ -118,7 +118,7 @@
static ControlStates* controlStatesForRenderer(const RenderBox& renderer)
{
return controlStatesRendererMap().ensure(&renderer, [] {
- return std::make_unique<ControlStates>();
+ return makeUnique<ControlStates>();
}).iterator->value.get();
}
@@ -2122,7 +2122,7 @@
std::unique_ptr<InlineElementBox> RenderBox::createInlineBox()
{
- return std::make_unique<InlineElementBox>(*this);
+ return makeUnique<InlineElementBox>(*this);
}
void RenderBox::dirtyLineBoxes(bool fullLayout)
diff --git a/Source/WebCore/rendering/RenderBoxModelObject.cpp b/Source/WebCore/rendering/RenderBoxModelObject.cpp
index bcba7b4..901c411 100644
--- a/Source/WebCore/rendering/RenderBoxModelObject.cpp
+++ b/Source/WebCore/rendering/RenderBoxModelObject.cpp
@@ -2538,7 +2538,7 @@
{
setHasContinuationChainNode(true);
return *continuationChainNodeMap().ensure(this, [&] {
- return std::make_unique<ContinuationChainNode>(*this);
+ return makeUnique<ContinuationChainNode>(*this);
}).iterator->value;
}
diff --git a/Source/WebCore/rendering/RenderCounter.cpp b/Source/WebCore/rendering/RenderCounter.cpp
index 2210443..c1e03f0 100644
--- a/Source/WebCore/rendering/RenderCounter.cpp
+++ b/Source/WebCore/rendering/RenderCounter.cpp
@@ -312,7 +312,7 @@
if (place.parent)
place.parent->insertAfter(newNode, place.previousSibling.get(), identifier);
- maps.add(&renderer, std::make_unique<CounterMap>()).iterator->value->add(identifier, newNode.copyRef());
+ maps.add(&renderer, makeUnique<CounterMap>()).iterator->value->add(identifier, newNode.copyRef());
renderer.setHasCounterNodeMap(true);
if (newNode->parent())
diff --git a/Source/WebCore/rendering/RenderFragmentContainer.cpp b/Source/WebCore/rendering/RenderFragmentContainer.cpp
index 51a9e46..7f6cabc 100644
--- a/Source/WebCore/rendering/RenderFragmentContainer.cpp
+++ b/Source/WebCore/rendering/RenderFragmentContainer.cpp
@@ -303,7 +303,7 @@
{
ASSERT(isValid());
- std::unique_ptr<RenderBoxFragmentInfo>& boxInfo = m_renderBoxFragmentInfo.add(box, std::make_unique<RenderBoxFragmentInfo>(logicalLeftInset, logicalRightInset, containingBlockChainIsInset)).iterator->value;
+ std::unique_ptr<RenderBoxFragmentInfo>& boxInfo = m_renderBoxFragmentInfo.add(box, makeUnique<RenderBoxFragmentInfo>(logicalLeftInset, logicalRightInset, containingBlockChainIsInset)).iterator->value;
return boxInfo.get();
}
diff --git a/Source/WebCore/rendering/RenderFragmentedFlow.cpp b/Source/WebCore/rendering/RenderFragmentedFlow.cpp
index 44f5635..846dd3a 100644
--- a/Source/WebCore/rendering/RenderFragmentedFlow.cpp
+++ b/Source/WebCore/rendering/RenderFragmentedFlow.cpp
@@ -1115,7 +1115,7 @@
ContainingFragmentMap& RenderFragmentedFlow::containingFragmentMap()
{
if (!m_lineToFragmentMap)
- m_lineToFragmentMap = std::make_unique<ContainingFragmentMap>();
+ m_lineToFragmentMap = makeUnique<ContainingFragmentMap>();
return *m_lineToFragmentMap.get();
}
diff --git a/Source/WebCore/rendering/RenderGeometryMap.cpp b/Source/WebCore/rendering/RenderGeometryMap.cpp
index b9045e6..52c790d 100644
--- a/Source/WebCore/rendering/RenderGeometryMap.cpp
+++ b/Source/WebCore/rendering/RenderGeometryMap.cpp
@@ -218,7 +218,7 @@
RenderGeometryMapStep& step = m_mapping[m_insertionPosition];
if (!t.isIntegerTranslation())
- step.m_transform = std::make_unique<TransformationMatrix>(t);
+ step.m_transform = makeUnique<TransformationMatrix>(t);
else
step.m_offset = LayoutSize(t.e(), t.f());
@@ -235,7 +235,7 @@
RenderGeometryMapStep& step = m_mapping[m_insertionPosition];
step.m_offset = scrollOffset;
if (t)
- step.m_transform = std::make_unique<TransformationMatrix>(*t);
+ step.m_transform = makeUnique<TransformationMatrix>(*t);
stepInserted(step);
}
diff --git a/Source/WebCore/rendering/RenderGrid.cpp b/Source/WebCore/rendering/RenderGrid.cpp
index e35a2c1..49ad035 100644
--- a/Source/WebCore/rendering/RenderGrid.cpp
+++ b/Source/WebCore/rendering/RenderGrid.cpp
@@ -544,7 +544,7 @@
unsigned lastAutoRepeatTrack = firstAutoRepeatTrack + grid.autoRepeatTracks(direction);
if (!grid.hasGridItems()) {
- emptyTrackIndexes = std::make_unique<OrderedTrackIndexSet>();
+ emptyTrackIndexes = makeUnique<OrderedTrackIndexSet>();
for (unsigned trackIndex = firstAutoRepeatTrack; trackIndex < lastAutoRepeatTrack; ++trackIndex)
emptyTrackIndexes->add(trackIndex);
} else {
@@ -552,7 +552,7 @@
GridIterator iterator(grid, direction, trackIndex);
if (!iterator.nextGridItem()) {
if (!emptyTrackIndexes)
- emptyTrackIndexes = std::make_unique<OrderedTrackIndexSet>();
+ emptyTrackIndexes = makeUnique<OrderedTrackIndexSet>();
emptyTrackIndexes->add(trackIndex);
}
}
@@ -732,7 +732,7 @@
const unsigned endOfCrossDirection = grid.numTracks(crossDirection);
unsigned crossDirectionSpanSize = GridPositionsResolver::spanSizeForAutoPlacedItem(gridItem, crossDirection);
GridSpan crossDirectionPositions = GridSpan::translatedDefiniteGridSpan(endOfCrossDirection, endOfCrossDirection + crossDirectionSpanSize);
- return std::make_unique<GridArea>(specifiedDirection == ForColumns ? crossDirectionPositions : specifiedPositions, specifiedDirection == ForColumns ? specifiedPositions : crossDirectionPositions);
+ return makeUnique<GridArea>(specifiedDirection == ForColumns ? crossDirectionPositions : specifiedPositions, specifiedDirection == ForColumns ? specifiedPositions : crossDirectionPositions);
}
void RenderGrid::placeSpecifiedMajorAxisItemsOnGrid(Grid& grid, const Vector<RenderBox*>& autoGridItems) const
diff --git a/Source/WebCore/rendering/RenderImage.cpp b/Source/WebCore/rendering/RenderImage.cpp
index 8913e76..f51e2feb 100644
--- a/Source/WebCore/rendering/RenderImage.cpp
+++ b/Source/WebCore/rendering/RenderImage.cpp
@@ -134,7 +134,7 @@
RenderImage::RenderImage(Element& element, RenderStyle&& style, StyleImage* styleImage, const float imageDevicePixelRatio)
: RenderReplaced(element, WTFMove(style), IntSize())
- , m_imageResource(styleImage ? std::make_unique<RenderImageResourceStyleImage>(*styleImage) : std::make_unique<RenderImageResource>())
+ , m_imageResource(styleImage ? makeUnique<RenderImageResourceStyleImage>(*styleImage) : makeUnique<RenderImageResource>())
, m_imageDevicePixelRatio(imageDevicePixelRatio)
{
updateAltText();
@@ -144,7 +144,7 @@
RenderImage::RenderImage(Document& document, RenderStyle&& style, StyleImage* styleImage)
: RenderReplaced(document, WTFMove(style), IntSize())
- , m_imageResource(styleImage ? std::make_unique<RenderImageResourceStyleImage>(*styleImage) : std::make_unique<RenderImageResource>())
+ , m_imageResource(styleImage ? makeUnique<RenderImageResourceStyleImage>(*styleImage) : makeUnique<RenderImageResource>())
{
}
diff --git a/Source/WebCore/rendering/RenderInline.cpp b/Source/WebCore/rendering/RenderInline.cpp
index 9d8a659..15325cd 100644
--- a/Source/WebCore/rendering/RenderInline.cpp
+++ b/Source/WebCore/rendering/RenderInline.cpp
@@ -1100,7 +1100,7 @@
std::unique_ptr<InlineFlowBox> RenderInline::createInlineFlowBox()
{
- return std::make_unique<InlineFlowBox>(*this);
+ return makeUnique<InlineFlowBox>(*this);
}
InlineFlowBox* RenderInline::createAndAppendInlineFlowBox()
diff --git a/Source/WebCore/rendering/RenderLayer.cpp b/Source/WebCore/rendering/RenderLayer.cpp
index f9f0d0d..1854687 100644
--- a/Source/WebCore/rendering/RenderLayer.cpp
+++ b/Source/WebCore/rendering/RenderLayer.cpp
@@ -700,7 +700,7 @@
// Ignore non-overflow layers and reflections.
if (child->isNormalFlowOnly() && !isReflectionLayer(*child)) {
if (!m_normalFlowList)
- m_normalFlowList = std::make_unique<Vector<RenderLayer*>>();
+ m_normalFlowList = makeUnique<Vector<RenderLayer*>>();
m_normalFlowList->append(child);
}
}
@@ -756,7 +756,7 @@
if (includeHiddenLayer && !isNormalFlowOnly()) {
auto& layerList = (zIndex() >= 0) ? positiveZOrderList : negativeZOrderList;
if (!layerList)
- layerList = std::make_unique<Vector<RenderLayer*>>();
+ layerList = makeUnique<Vector<RenderLayer*>>();
layerList->append(this);
}
@@ -1206,7 +1206,7 @@
bool hadTransform = !!m_transform;
if (hasTransform != hadTransform) {
if (hasTransform)
- m_transform = std::make_unique<TransformationMatrix>();
+ m_transform = makeUnique<TransformationMatrix>();
else
m_transform = nullptr;
@@ -5527,7 +5527,7 @@
}
if (!m_clipRectsCache)
- m_clipRectsCache = std::make_unique<ClipRectsCache>();
+ m_clipRectsCache = makeUnique<ClipRectsCache>();
#ifndef NDEBUG
m_clipRectsCache->m_clipRectsRoot[clipRectsType] = clipRectsContext.rootLayer;
m_clipRectsCache->m_scrollbarRelevancy[clipRectsType] = clipRectsContext.overlayScrollbarSizeRelevancy;
@@ -6105,7 +6105,7 @@
RenderLayerBacking* RenderLayer::ensureBacking()
{
if (!m_backing) {
- m_backing = std::make_unique<RenderLayerBacking>(*this);
+ m_backing = makeUnique<RenderLayerBacking>(*this);
compositor().layerBecameComposited(*this);
updateFilterPaintingStrategy();
@@ -6523,7 +6523,7 @@
if (renderer().isHTMLMarquee() && renderer().style().marqueeBehavior() != MarqueeBehavior::None && renderer().isBox()) {
if (!m_marquee)
- m_marquee = std::make_unique<RenderMarquee>(this);
+ m_marquee = makeUnique<RenderMarquee>(this);
m_marquee->updateMarqueeStyle();
} else if (m_marquee)
m_marquee = nullptr;
@@ -6735,7 +6735,7 @@
if (m_filters)
return;
- m_filters = std::make_unique<RenderLayerFilters>(*this);
+ m_filters = makeUnique<RenderLayerFilters>(*this);
}
void RenderLayer::clearLayerFilters()
diff --git a/Source/WebCore/rendering/RenderLayerBacking.cpp b/Source/WebCore/rendering/RenderLayerBacking.cpp
index 22ed6dd..121d12f 100644
--- a/Source/WebCore/rendering/RenderLayerBacking.cpp
+++ b/Source/WebCore/rendering/RenderLayerBacking.cpp
@@ -1627,7 +1627,7 @@
}
if (!m_ancestorClippingStack) {
- m_ancestorClippingStack = std::make_unique<LayerAncestorClippingStack>(WTFMove(clippingData));
+ m_ancestorClippingStack = makeUnique<LayerAncestorClippingStack>(WTFMove(clippingData));
LOG_WITH_STREAM(Compositing, stream << "layer " << &m_owningLayer << " ancestorClippingStack " << *m_ancestorClippingStack);
return true;
}
@@ -3178,17 +3178,17 @@
bool isFirstOrLastKeyframe = key == 0 || key == 1;
if ((hasTransform && isFirstOrLastKeyframe) || currentKeyframe.containsProperty(CSSPropertyTransform))
- transformVector.insert(std::make_unique<TransformAnimationValue>(key, keyframeStyle->transform(), tf));
+ transformVector.insert(makeUnique<TransformAnimationValue>(key, keyframeStyle->transform(), tf));
if ((hasOpacity && isFirstOrLastKeyframe) || currentKeyframe.containsProperty(CSSPropertyOpacity))
- opacityVector.insert(std::make_unique<FloatAnimationValue>(key, keyframeStyle->opacity(), tf));
+ opacityVector.insert(makeUnique<FloatAnimationValue>(key, keyframeStyle->opacity(), tf));
if ((hasFilter && isFirstOrLastKeyframe) || currentKeyframe.containsProperty(CSSPropertyFilter))
- filterVector.insert(std::make_unique<FilterAnimationValue>(key, keyframeStyle->filter(), tf));
+ filterVector.insert(makeUnique<FilterAnimationValue>(key, keyframeStyle->filter(), tf));
#if ENABLE(FILTERS_LEVEL_2)
if ((hasBackdropFilter && isFirstOrLastKeyframe) || currentKeyframe.containsProperty(CSSPropertyWebkitBackdropFilter))
- backdropFilterVector.insert(std::make_unique<FilterAnimationValue>(key, keyframeStyle->backdropFilter(), tf));
+ backdropFilterVector.insert(makeUnique<FilterAnimationValue>(key, keyframeStyle->backdropFilter(), tf));
#endif
}
@@ -3243,8 +3243,8 @@
const Animation* opacityAnim = toStyle->transitionForProperty(CSSPropertyOpacity);
if (opacityAnim && !opacityAnim->isEmptyOrZeroDuration()) {
KeyframeValueList opacityVector(AnimatedPropertyOpacity);
- opacityVector.insert(std::make_unique<FloatAnimationValue>(0, compositingOpacity(fromStyle->opacity())));
- opacityVector.insert(std::make_unique<FloatAnimationValue>(1, compositingOpacity(toStyle->opacity())));
+ opacityVector.insert(makeUnique<FloatAnimationValue>(0, compositingOpacity(fromStyle->opacity())));
+ opacityVector.insert(makeUnique<FloatAnimationValue>(1, compositingOpacity(toStyle->opacity())));
// The boxSize param is only used for transform animations (which can only run on RenderBoxes), so we pass an empty size here.
if (m_graphicsLayer->addAnimation(opacityVector, FloatSize(), opacityAnim, GraphicsLayer::animationNameForTransition(AnimatedPropertyOpacity), timeOffset)) {
// To ensure that the correct opacity is visible when the animation ends, also set the final opacity.
@@ -3258,8 +3258,8 @@
const Animation* transformAnim = toStyle->transitionForProperty(CSSPropertyTransform);
if (transformAnim && !transformAnim->isEmptyOrZeroDuration()) {
KeyframeValueList transformVector(AnimatedPropertyTransform);
- transformVector.insert(std::make_unique<TransformAnimationValue>(0, fromStyle->transform()));
- transformVector.insert(std::make_unique<TransformAnimationValue>(1, toStyle->transform()));
+ transformVector.insert(makeUnique<TransformAnimationValue>(0, fromStyle->transform()));
+ transformVector.insert(makeUnique<TransformAnimationValue>(1, toStyle->transform()));
if (m_graphicsLayer->addAnimation(transformVector, snappedIntRect(renderBox()->borderBoxRect()).size(), transformAnim, GraphicsLayer::animationNameForTransition(AnimatedPropertyTransform), timeOffset)) {
// To ensure that the correct transform is visible when the animation ends, also set the final transform.
updateTransform(*toStyle);
@@ -3272,8 +3272,8 @@
const Animation* filterAnim = toStyle->transitionForProperty(CSSPropertyFilter);
if (filterAnim && !filterAnim->isEmptyOrZeroDuration()) {
KeyframeValueList filterVector(AnimatedPropertyFilter);
- filterVector.insert(std::make_unique<FilterAnimationValue>(0, fromStyle->filter()));
- filterVector.insert(std::make_unique<FilterAnimationValue>(1, toStyle->filter()));
+ filterVector.insert(makeUnique<FilterAnimationValue>(0, fromStyle->filter()));
+ filterVector.insert(makeUnique<FilterAnimationValue>(1, toStyle->filter()));
if (m_graphicsLayer->addAnimation(filterVector, FloatSize(), filterAnim, GraphicsLayer::animationNameForTransition(AnimatedPropertyFilter), timeOffset)) {
// To ensure that the correct filter is visible when the animation ends, also set the final filter.
updateFilters(*toStyle);
@@ -3287,8 +3287,8 @@
const Animation* backdropFilterAnim = toStyle->transitionForProperty(CSSPropertyWebkitBackdropFilter);
if (backdropFilterAnim && !backdropFilterAnim->isEmptyOrZeroDuration()) {
KeyframeValueList backdropFilterVector(AnimatedPropertyWebkitBackdropFilter);
- backdropFilterVector.insert(std::make_unique<FilterAnimationValue>(0, fromStyle->backdropFilter()));
- backdropFilterVector.insert(std::make_unique<FilterAnimationValue>(1, toStyle->backdropFilter()));
+ backdropFilterVector.insert(makeUnique<FilterAnimationValue>(0, fromStyle->backdropFilter()));
+ backdropFilterVector.insert(makeUnique<FilterAnimationValue>(1, toStyle->backdropFilter()));
if (m_graphicsLayer->addAnimation(backdropFilterVector, FloatSize(), backdropFilterAnim, GraphicsLayer::animationNameForTransition(AnimatedPropertyWebkitBackdropFilter), timeOffset)) {
// To ensure that the correct backdrop filter is visible when the animation ends, also set the final backdrop filter.
updateBackdropFilters(*toStyle);
diff --git a/Source/WebCore/rendering/RenderLayerCompositor.cpp b/Source/WebCore/rendering/RenderLayerCompositor.cpp
index 412c2c7..fed0bdb 100644
--- a/Source/WebCore/rendering/RenderLayerCompositor.cpp
+++ b/Source/WebCore/rendering/RenderLayerCompositor.cpp
@@ -295,7 +295,7 @@
{
#if PLATFORM(IOS_FAMILY)
if (m_renderView.frameView().platformWidget())
- m_legacyScrollingLayerCoordinator = std::make_unique<LegacyWebKitScrollingLayerCoordinator>(page().chrome().client(), isMainFrameCompositor());
+ m_legacyScrollingLayerCoordinator = makeUnique<LegacyWebKitScrollingLayerCoordinator>(page().chrome().client(), isMainFrameCompositor());
#endif
}
@@ -612,7 +612,7 @@
{
if (!m_layerUpdater) {
PlatformDisplayID displayID = page().chrome().displayID();
- m_layerUpdater = std::make_unique<GraphicsLayerUpdater>(*this, displayID);
+ m_layerUpdater = makeUnique<GraphicsLayerUpdater>(*this, displayID);
}
m_layerUpdater->scheduleUpdate();
@@ -4792,7 +4792,7 @@
std::unique_ptr<ViewportConstraints> constraints;
if (layer->renderer().isStickilyPositioned()) {
- constraints = std::make_unique<StickyPositionViewportConstraints>(compositor.computeStickyViewportConstraints(*layer));
+ constraints = makeUnique<StickyPositionViewportConstraints>(compositor.computeStickyViewportConstraints(*layer));
const RenderLayer* enclosingTouchScrollableLayer = nullptr;
if (compositor.isAsyncScrollableStickyLayer(*layer, &enclosingTouchScrollableLayer) && enclosingTouchScrollableLayer) {
ASSERT(enclosingTouchScrollableLayer->isComposited());
@@ -4800,7 +4800,7 @@
stickyContainerMap.add(layer->backing()->graphicsLayer()->platformLayer(), enclosingTouchScrollableLayer->backing()->scrollContainerLayer()->platformLayer());
}
} else if (layer->renderer().isFixedPositioned())
- constraints = std::make_unique<FixedPositionViewportConstraints>(compositor.computeFixedViewportConstraints(*layer));
+ constraints = makeUnique<FixedPositionViewportConstraints>(compositor.computeFixedViewportConstraints(*layer));
else
continue;
diff --git a/Source/WebCore/rendering/RenderLayerModelObject.cpp b/Source/WebCore/rendering/RenderLayerModelObject.cpp
index 4b86fe2..128c96d 100644
--- a/Source/WebCore/rendering/RenderLayerModelObject.cpp
+++ b/Source/WebCore/rendering/RenderLayerModelObject.cpp
@@ -95,7 +95,7 @@
void RenderLayerModelObject::createLayer()
{
ASSERT(!m_layer);
- m_layer = std::make_unique<RenderLayer>(*this);
+ m_layer = makeUnique<RenderLayer>(*this);
setHasLayer(true);
m_layer->insertOnlyThisLayer();
}
diff --git a/Source/WebCore/rendering/RenderLineBreak.cpp b/Source/WebCore/rendering/RenderLineBreak.cpp
index bc5527b..1aae09d 100644
--- a/Source/WebCore/rendering/RenderLineBreak.cpp
+++ b/Source/WebCore/rendering/RenderLineBreak.cpp
@@ -89,7 +89,7 @@
std::unique_ptr<InlineElementBox> RenderLineBreak::createInlineBox()
{
- return std::make_unique<InlineElementBox>(*this);
+ return makeUnique<InlineElementBox>(*this);
}
void RenderLineBreak::setInlineBoxWrapper(InlineElementBox* inlineBox)
diff --git a/Source/WebCore/rendering/RenderMultiColumnFlow.cpp b/Source/WebCore/rendering/RenderMultiColumnFlow.cpp
index 9bb9a53..4103dad 100644
--- a/Source/WebCore/rendering/RenderMultiColumnFlow.cpp
+++ b/Source/WebCore/rendering/RenderMultiColumnFlow.cpp
@@ -42,7 +42,7 @@
RenderMultiColumnFlow::RenderMultiColumnFlow(Document& document, RenderStyle&& style)
: RenderFragmentedFlow(document, WTFMove(style))
- , m_spannerMap(std::make_unique<SpannerMap>())
+ , m_spannerMap(makeUnique<SpannerMap>())
, m_lastSetWorkedOn(nullptr)
, m_columnCount(1)
, m_columnWidth(0)
diff --git a/Source/WebCore/rendering/RenderObject.cpp b/Source/WebCore/rendering/RenderObject.cpp
index 4da3bd7..0bf5193d 100644
--- a/Source/WebCore/rendering/RenderObject.cpp
+++ b/Source/WebCore/rendering/RenderObject.cpp
@@ -1893,7 +1893,7 @@
RenderObject::RenderObjectRareData& RenderObject::ensureRareData()
{
setHasRareData(true);
- return *rareDataMap().ensure(this, [] { return std::make_unique<RenderObjectRareData>(); }).iterator->value;
+ return *rareDataMap().ensure(this, [] { return makeUnique<RenderObjectRareData>(); }).iterator->value;
}
void RenderObject::removeRareData()
diff --git a/Source/WebCore/rendering/RenderSnapshottedPlugIn.cpp b/Source/WebCore/rendering/RenderSnapshottedPlugIn.cpp
index 6d56b5e..0dfe282 100644
--- a/Source/WebCore/rendering/RenderSnapshottedPlugIn.cpp
+++ b/Source/WebCore/rendering/RenderSnapshottedPlugIn.cpp
@@ -53,7 +53,7 @@
RenderSnapshottedPlugIn::RenderSnapshottedPlugIn(HTMLPlugInImageElement& element, RenderStyle&& style)
: RenderEmbeddedObject(element, WTFMove(style))
- , m_snapshotResource(std::make_unique<RenderImageResource>())
+ , m_snapshotResource(makeUnique<RenderImageResource>())
{
m_snapshotResource->initialize(*this);
}
diff --git a/Source/WebCore/rendering/RenderTable.cpp b/Source/WebCore/rendering/RenderTable.cpp
index 186ca87..e91a133 100644
--- a/Source/WebCore/rendering/RenderTable.cpp
+++ b/Source/WebCore/rendering/RenderTable.cpp
@@ -137,9 +137,9 @@
// According to the CSS2 spec, you only use fixed table layout if an
// explicit width is specified on the table. Auto width implies auto table layout.
if (style().tableLayout() == TableLayoutType::Fixed && !style().logicalWidth().isAuto())
- m_tableLayout = std::make_unique<FixedTableLayout>(this);
+ m_tableLayout = makeUnique<FixedTableLayout>(this);
else
- m_tableLayout = std::make_unique<AutoTableLayout>(this);
+ m_tableLayout = makeUnique<AutoTableLayout>(this);
}
// If border was changed, invalidate collapsed borders cache.
diff --git a/Source/WebCore/rendering/RenderText.cpp b/Source/WebCore/rendering/RenderText.cpp
index aad0c14..b6305de 100644
--- a/Source/WebCore/rendering/RenderText.cpp
+++ b/Source/WebCore/rendering/RenderText.cpp
@@ -1311,7 +1311,7 @@
std::unique_ptr<InlineTextBox> RenderText::createTextBox()
{
- return std::make_unique<InlineTextBox>(*this);
+ return makeUnique<InlineTextBox>(*this);
}
void RenderText::positionLineBox(InlineTextBox& textBox)
@@ -1545,7 +1545,7 @@
return;
auto& secureTextTimer = secureTextTimers().add(this, nullptr).iterator->value;
if (!secureTextTimer)
- secureTextTimer = std::make_unique<SecureTextTimer>(*this);
+ secureTextTimer = makeUnique<SecureTextTimer>(*this);
secureTextTimer->restart(offsetAfterLastTypedCharacter);
}
diff --git a/Source/WebCore/rendering/RenderView.cpp b/Source/WebCore/rendering/RenderView.cpp
index c14451a..5fec678 100644
--- a/Source/WebCore/rendering/RenderView.cpp
+++ b/Source/WebCore/rendering/RenderView.cpp
@@ -492,7 +492,7 @@
// FIXME: Maybe there should be a region type that does this automatically.
static const unsigned maximumRepaintRegionGridSize = 16 * 16;
if (m_accumulatedRepaintRegion->gridSize() > maximumRepaintRegionGridSize)
- m_accumulatedRepaintRegion = std::make_unique<Region>(m_accumulatedRepaintRegion->bounds());
+ m_accumulatedRepaintRegion = makeUnique<Region>(m_accumulatedRepaintRegion->bounds());
}
void RenderView::flushAccumulatedRepaintRegion() const
@@ -724,7 +724,7 @@
RenderLayerCompositor& RenderView::compositor()
{
if (!m_compositor)
- m_compositor = std::make_unique<RenderLayerCompositor>(*this);
+ m_compositor = makeUnique<RenderLayerCompositor>(*this);
return *m_compositor;
}
@@ -745,7 +745,7 @@
ImageQualityController& RenderView::imageQualityController()
{
if (!m_imageQualityController)
- m_imageQualityController = std::make_unique<ImageQualityController>(*this);
+ m_imageQualityController = makeUnique<ImageQualityController>(*this);
return *m_imageQualityController;
}
@@ -834,7 +834,7 @@
m_wasAccumulatingRepaintRegion = !!rootRenderView->m_accumulatedRepaintRegion;
if (!m_wasAccumulatingRepaintRegion)
- rootRenderView->m_accumulatedRepaintRegion = std::make_unique<Region>();
+ rootRenderView->m_accumulatedRepaintRegion = makeUnique<Region>();
m_rootView = makeWeakPtr(*rootRenderView);
}
diff --git a/Source/WebCore/rendering/RootInlineBox.cpp b/Source/WebCore/rendering/RootInlineBox.cpp
index fdcd59c..4455841 100644
--- a/Source/WebCore/rendering/RootInlineBox.cpp
+++ b/Source/WebCore/rendering/RootInlineBox.cpp
@@ -129,7 +129,7 @@
gEllipsisBoxMap = new EllipsisBoxMap();
ASSERT(!hasEllipsisBox());
- auto* ellipsisBox = gEllipsisBoxMap->set(this, std::make_unique<EllipsisBox>(blockFlow(), ellipsisStr, this, ellipsisWidth - (markupBox ? markupBox->logicalWidth() : 0), logicalHeight(), y(), !prevRootBox(), isHorizontal(), markupBox)).iterator->value.get();
+ auto* ellipsisBox = gEllipsisBoxMap->set(this, makeUnique<EllipsisBox>(blockFlow(), ellipsisStr, this, ellipsisWidth - (markupBox ? markupBox->logicalWidth() : 0), logicalHeight(), y(), !prevRootBox(), isHorizontal(), markupBox)).iterator->value.get();
setHasEllipsisBox(true);
// FIXME: Do we need an RTL version of this?
if (ltr && (x() + logicalWidth() + ellipsisWidth) <= blockRightEdge) {
diff --git a/Source/WebCore/rendering/RootInlineBox.h b/Source/WebCore/rendering/RootInlineBox.h
index 7df2828..247e55c 100644
--- a/Source/WebCore/rendering/RootInlineBox.h
+++ b/Source/WebCore/rendering/RootInlineBox.h
@@ -145,7 +145,7 @@
if (m_floats)
m_floats->append(makeWeakPtr(floatingBox));
else
- m_floats = std::make_unique<CleanLineFloatList>(1, makeWeakPtr(floatingBox));
+ m_floats = makeUnique<CleanLineFloatList>(1, makeWeakPtr(floatingBox));
}
void removeFloat(RenderBox& floatingBox)
diff --git a/Source/WebCore/rendering/SelectionRangeData.cpp b/Source/WebCore/rendering/SelectionRangeData.cpp
index ec5e735..b9bad0a 100644
--- a/Source/WebCore/rendering/SelectionRangeData.cpp
+++ b/Source/WebCore/rendering/SelectionRangeData.cpp
@@ -131,13 +131,13 @@
while (start && start != stop) {
if (isValidRendererForSelection(*start, selection)) {
// Blocks are responsible for painting line gaps and margin gaps. They must be examined as well.
- oldSelectionData.renderers.set(start, std::make_unique<RenderSelectionInfo>(*start, true));
+ oldSelectionData.renderers.set(start, makeUnique<RenderSelectionInfo>(*start, true));
if (repaintDifference) {
for (auto* block = containingBlockBelowView(*start); block; block = containingBlockBelowView(*block)) {
auto& blockInfo = oldSelectionData.blocks.add(block, nullptr).iterator->value;
if (blockInfo)
break;
- blockInfo = std::make_unique<RenderBlockSelectionInfo>(*block);
+ blockInfo = makeUnique<RenderBlockSelectionInfo>(*block);
}
}
}
@@ -213,13 +213,13 @@
if ((start->canBeSelectionLeaf() || start == m_selectionContext.start() || start == m_selectionContext.end())
&& start->selectionState() != RenderObject::SelectionNone) {
// Blocks are responsible for painting line gaps and margin gaps. They must be examined as well.
- renderers.set(start, std::make_unique<RenderSelectionInfo>(*start, clipToVisibleContent == ClipToVisibleContent::Yes));
+ renderers.set(start, makeUnique<RenderSelectionInfo>(*start, clipToVisibleContent == ClipToVisibleContent::Yes));
auto* block = start->containingBlock();
while (block && !is<RenderView>(*block)) {
std::unique_ptr<RenderSelectionInfo>& blockInfo = renderers.add(block, nullptr).iterator->value;
if (blockInfo)
break;
- blockInfo = std::make_unique<RenderSelectionInfo>(*block, clipToVisibleContent == ClipToVisibleContent::Yes);
+ blockInfo = makeUnique<RenderSelectionInfo>(*block, clipToVisibleContent == ClipToVisibleContent::Yes);
block = block->containingBlock();
}
}
@@ -281,7 +281,7 @@
selectionIterator = SelectionIterator(selectionStart);
for (auto* currentRenderer = selectionStart; currentRenderer && currentRenderer != selectionEnd; currentRenderer = selectionIterator.next()) {
if (isValidRendererForSelection(*currentRenderer, m_selectionContext)) {
- std::unique_ptr<RenderSelectionInfo> selectionInfo = std::make_unique<RenderSelectionInfo>(*currentRenderer, true);
+ std::unique_ptr<RenderSelectionInfo> selectionInfo = makeUnique<RenderSelectionInfo>(*currentRenderer, true);
#if ENABLE(SERVICE_CONTROLS)
for (auto& rect : selectionInfo->collectedSelectionRects())
m_selectionRectGatherer.addRect(selectionInfo->repaintContainer(), rect);
@@ -294,7 +294,7 @@
std::unique_ptr<RenderBlockSelectionInfo>& blockInfo = newSelectedBlocks.add(containingBlock, nullptr).iterator->value;
if (blockInfo)
break;
- blockInfo = std::make_unique<RenderBlockSelectionInfo>(*containingBlock);
+ blockInfo = makeUnique<RenderBlockSelectionInfo>(*containingBlock);
containingBlock = containingBlock->containingBlock();
#if ENABLE(SERVICE_CONTROLS)
m_selectionRectGatherer.addGapRects(blockInfo->repaintContainer(), blockInfo->rects());
diff --git a/Source/WebCore/rendering/SimpleLineLayout.cpp b/Source/WebCore/rendering/SimpleLineLayout.cpp
index 8c766e6..c362f4e 100644
--- a/Source/WebCore/rendering/SimpleLineLayout.cpp
+++ b/Source/WebCore/rendering/SimpleLineLayout.cpp
@@ -997,7 +997,7 @@
const RunResolver& Layout::runResolver() const
{
if (!m_runResolver)
- m_runResolver = std::make_unique<RunResolver>(m_blockFlowRenderer, *this);
+ m_runResolver = makeUnique<RunResolver>(m_blockFlowRenderer, *this);
return *m_runResolver;
}
diff --git a/Source/WebCore/rendering/SimpleLineLayoutFunctions.cpp b/Source/WebCore/rendering/SimpleLineLayoutFunctions.cpp
index 1bf98e4..0625b16 100644
--- a/Source/WebCore/rendering/SimpleLineLayoutFunctions.cpp
+++ b/Source/WebCore/rendering/SimpleLineLayoutFunctions.cpp
@@ -102,7 +102,7 @@
std::unique_ptr<ShadowData> debugShadow = nullptr;
if (flow.settings().simpleLineLayoutDebugBordersEnabled()) {
- debugShadow = std::make_unique<ShadowData>(IntPoint(0, 0), 10, 20, ShadowStyle::Normal, true, Color(0, 255, 0, 200));
+ debugShadow = makeUnique<ShadowData>(IntPoint(0, 0), 10, 20, ShadowStyle::Normal, true, Color(0, 255, 0, 200));
textPainter.setShadow(debugShadow.get());
}
@@ -347,7 +347,7 @@
BidiRunList<BidiRun> bidiRuns;
for (auto it = range.begin(); it != range.end(); ++it) {
auto run = *it;
- bidiRuns.appendRun(std::make_unique<BidiRun>(run.localStart(), run.localEnd(), const_cast<RenderObject&>(run.renderer()), bidiContext.ptr(), U_LEFT_TO_RIGHT));
+ bidiRuns.appendRun(makeUnique<BidiRun>(run.localStart(), run.localEnd(), const_cast<RenderObject&>(run.renderer()), bidiContext.ptr(), U_LEFT_TO_RIGHT));
}
LineInfo lineInfo;
diff --git a/Source/WebCore/rendering/TextAutoSizing.cpp b/Source/WebCore/rendering/TextAutoSizing.cpp
index 3ba130d..4b43e6a 100644
--- a/Source/WebCore/rendering/TextAutoSizing.cpp
+++ b/Source/WebCore/rendering/TextAutoSizing.cpp
@@ -225,7 +225,7 @@
LOG(TextAutosizing, " addAutoSizedNode %p candidateSize=%f", &node, candidateSize);
auto addResult = m_textNodes.add<TextAutoSizingHashTranslator>(node.renderer()->style(), nullptr);
if (addResult.isNewEntry)
- addResult.iterator->value = std::make_unique<TextAutoSizingValue>();
+ addResult.iterator->value = makeUnique<TextAutoSizingValue>();
addResult.iterator->value->addTextNode(node, candidateSize);
}
diff --git a/Source/WebCore/rendering/line/LineBreaker.cpp b/Source/WebCore/rendering/line/LineBreaker.cpp
index 2b1c1fa..d116615 100644
--- a/Source/WebCore/rendering/line/LineBreaker.cpp
+++ b/Source/WebCore/rendering/line/LineBreaker.cpp
@@ -62,7 +62,7 @@
if (object.isOutOfFlowPositioned()) {
setStaticPositions(m_block, downcast<RenderBox>(object), width.shouldIndentText());
if (object.style().isOriginalDisplayInlineType()) {
- resolver.runs().appendRun(std::make_unique<BidiRun>(0, 1, object, resolver.context(), resolver.dir()));
+ resolver.runs().appendRun(makeUnique<BidiRun>(0, 1, object, resolver.context(), resolver.dir()));
lineInfo.incrementRunsFromLeadingWhitespace();
}
} else if (object.isFloating())
diff --git a/Source/WebCore/rendering/shapes/RasterShape.cpp b/Source/WebCore/rendering/shapes/RasterShape.cpp
index 4b1597e..d52092b 100644
--- a/Source/WebCore/rendering/shapes/RasterShape.cpp
+++ b/Source/WebCore/rendering/shapes/RasterShape.cpp
@@ -76,7 +76,7 @@
std::unique_ptr<RasterShapeIntervals> RasterShapeIntervals::computeShapeMarginIntervals(int shapeMargin) const
{
int marginIntervalsSize = (offset() > shapeMargin) ? size() : size() - offset() * 2 + shapeMargin * 2;
- auto result = std::make_unique<RasterShapeIntervals>(marginIntervalsSize, std::max(shapeMargin, offset()));
+ auto result = makeUnique<RasterShapeIntervals>(marginIntervalsSize, std::max(shapeMargin, offset()));
MarginIntervalGenerator marginIntervalGenerator(shapeMargin);
for (int y = bounds().y(); y < bounds().maxY(); ++y) {
diff --git a/Source/WebCore/rendering/shapes/Shape.cpp b/Source/WebCore/rendering/shapes/Shape.cpp
index 30231a0..f5efefd 100644
--- a/Source/WebCore/rendering/shapes/Shape.cpp
+++ b/Source/WebCore/rendering/shapes/Shape.cpp
@@ -46,24 +46,24 @@
static std::unique_ptr<Shape> createInsetShape(const FloatRoundedRect& bounds)
{
ASSERT(bounds.rect().width() >= 0 && bounds.rect().height() >= 0);
- return std::make_unique<BoxShape>(bounds);
+ return makeUnique<BoxShape>(bounds);
}
static std::unique_ptr<Shape> createCircleShape(const FloatPoint& center, float radius)
{
ASSERT(radius >= 0);
- return std::make_unique<RectangleShape>(FloatRect(center.x() - radius, center.y() - radius, radius*2, radius*2), FloatSize(radius, radius));
+ return makeUnique<RectangleShape>(FloatRect(center.x() - radius, center.y() - radius, radius*2, radius*2), FloatSize(radius, radius));
}
static std::unique_ptr<Shape> createEllipseShape(const FloatPoint& center, const FloatSize& radii)
{
ASSERT(radii.width() >= 0 && radii.height() >= 0);
- return std::make_unique<RectangleShape>(FloatRect(center.x() - radii.width(), center.y() - radii.height(), radii.width()*2, radii.height()*2), radii);
+ return makeUnique<RectangleShape>(FloatRect(center.x() - radii.width(), center.y() - radii.height(), radii.width()*2, radii.height()*2), radii);
}
static std::unique_ptr<Shape> createPolygonShape(std::unique_ptr<Vector<FloatPoint>> vertices, WindRule fillRule)
{
- return std::make_unique<PolygonShape>(WTFMove(vertices), fillRule);
+ return makeUnique<PolygonShape>(WTFMove(vertices), fillRule);
}
static inline FloatRect physicalRectToLogical(const FloatRect& rect, float logicalBoxHeight, WritingMode writingMode)
@@ -128,7 +128,7 @@
const Vector<Length>& values = polygon.values();
size_t valuesSize = values.size();
ASSERT(!(valuesSize % 2));
- std::unique_ptr<Vector<FloatPoint>> vertices = std::make_unique<Vector<FloatPoint>>(valuesSize / 2);
+ std::unique_ptr<Vector<FloatPoint>> vertices = makeUnique<Vector<FloatPoint>>(valuesSize / 2);
for (unsigned i = 0; i < valuesSize; i += 2) {
FloatPoint vertex(
floatValueForLength(values.at(i), boxWidth),
@@ -179,7 +179,7 @@
IntRect imageRect = snappedIntRect(imageR);
IntRect marginRect = snappedIntRect(marginR);
- auto intervals = std::make_unique<RasterShapeIntervals>(marginRect.height(), -marginRect.y());
+ auto intervals = makeUnique<RasterShapeIntervals>(marginRect.height(), -marginRect.y());
// FIXME (149420): This buffer should not be unconditionally unaccelerated.
std::unique_ptr<ImageBuffer> imageBuffer = ImageBuffer::create(imageRect.size(), Unaccelerated);
@@ -218,7 +218,7 @@
}
}
- auto rasterShape = std::make_unique<RasterShape>(WTFMove(intervals), marginRect.size());
+ auto rasterShape = makeUnique<RasterShape>(WTFMove(intervals), marginRect.size());
rasterShape->m_writingMode = writingMode;
rasterShape->m_margin = margin;
return rasterShape;
@@ -230,7 +230,7 @@
FloatRect rect(0, 0, roundedRect.rect().width(), roundedRect.rect().height());
FloatRoundedRect bounds(rect, roundedRect.radii());
- auto shape = std::make_unique<BoxShape>(bounds);
+ auto shape = makeUnique<BoxShape>(bounds);
shape->m_writingMode = writingMode;
shape->m_margin = margin;
diff --git a/Source/WebCore/rendering/shapes/ShapeOutsideInfo.h b/Source/WebCore/rendering/shapes/ShapeOutsideInfo.h
index cd94f89..9484317 100644
--- a/Source/WebCore/rendering/shapes/ShapeOutsideInfo.h
+++ b/Source/WebCore/rendering/shapes/ShapeOutsideInfo.h
@@ -113,7 +113,7 @@
InfoMap& infoMap = ShapeOutsideInfo::infoMap();
if (ShapeOutsideInfo* info = infoMap.get(&key))
return *info;
- auto result = infoMap.add(&key, std::make_unique<ShapeOutsideInfo>(key));
+ auto result = infoMap.add(&key, makeUnique<ShapeOutsideInfo>(key));
return *result.iterator->value;
}
static void removeInfo(const RenderBox& key) { infoMap().remove(&key); }
diff --git a/Source/WebCore/rendering/style/BasicShapes.cpp b/Source/WebCore/rendering/style/BasicShapes.cpp
index 0c98f91..744c90b 100644
--- a/Source/WebCore/rendering/style/BasicShapes.cpp
+++ b/Source/WebCore/rendering/style/BasicShapes.cpp
@@ -358,7 +358,7 @@
auto& fromPath = downcast<BasicShapePath>(from);
- auto resultingPathBytes = std::make_unique<SVGPathByteStream>();
+ auto resultingPathBytes = makeUnique<SVGPathByteStream>();
buildAnimatedSVGPathByteStream(*fromPath.m_byteStream, *m_byteStream, *resultingPathBytes, progress);
auto result = BasicShapePath::create(WTFMove(resultingPathBytes));
diff --git a/Source/WebCore/rendering/style/ContentData.h b/Source/WebCore/rendering/style/ContentData.h
index e7bb061..2c12dd9 100644
--- a/Source/WebCore/rendering/style/ContentData.h
+++ b/Source/WebCore/rendering/style/ContentData.h
@@ -95,7 +95,7 @@
RenderPtr<RenderObject> createContentRenderer(Document&, const RenderStyle&) const final;
std::unique_ptr<ContentData> cloneInternal() const final
{
- auto image = std::make_unique<ImageContentData>(m_image.copyRef());
+ auto image = makeUnique<ImageContentData>(m_image.copyRef());
image->setAltText(altText());
return image;
}
@@ -126,7 +126,7 @@
private:
RenderPtr<RenderObject> createContentRenderer(Document&, const RenderStyle&) const final;
- std::unique_ptr<ContentData> cloneInternal() const final { return std::make_unique<TextContentData>(m_text); }
+ std::unique_ptr<ContentData> cloneInternal() const final { return makeUnique<TextContentData>(m_text); }
String m_text;
};
@@ -161,7 +161,7 @@
RenderPtr<RenderObject> createContentRenderer(Document&, const RenderStyle&) const final;
std::unique_ptr<ContentData> cloneInternal() const final
{
- return std::make_unique<CounterContentData>(std::make_unique<CounterContent>(counter()));
+ return makeUnique<CounterContentData>(makeUnique<CounterContent>(counter()));
}
std::unique_ptr<CounterContent> m_counter;
@@ -190,7 +190,7 @@
private:
RenderPtr<RenderObject> createContentRenderer(Document&, const RenderStyle&) const final;
- std::unique_ptr<ContentData> cloneInternal() const final { return std::make_unique<QuoteContentData>(quote()); }
+ std::unique_ptr<ContentData> cloneInternal() const final { return makeUnique<QuoteContentData>(quote()); }
QuoteType m_quote;
};
diff --git a/Source/WebCore/rendering/style/FillLayer.cpp b/Source/WebCore/rendering/style/FillLayer.cpp
index f3d91dc..30014d0 100644
--- a/Source/WebCore/rendering/style/FillLayer.cpp
+++ b/Source/WebCore/rendering/style/FillLayer.cpp
@@ -76,7 +76,7 @@
}
FillLayer::FillLayer(const FillLayer& o)
- : m_next(o.m_next ? std::make_unique<FillLayer>(*o.m_next) : nullptr)
+ : m_next(o.m_next ? makeUnique<FillLayer>(*o.m_next) : nullptr)
, m_image(o.m_image)
, m_xPosition(o.m_xPosition)
, m_yPosition(o.m_yPosition)
@@ -117,7 +117,7 @@
FillLayer& FillLayer::operator=(const FillLayer& o)
{
- m_next = o.m_next ? std::make_unique<FillLayer>(*o.m_next) : nullptr;
+ m_next = o.m_next ? makeUnique<FillLayer>(*o.m_next) : nullptr;
m_image = o.m_image;
m_xPosition = o.m_xPosition;
diff --git a/Source/WebCore/rendering/style/RenderStyle.cpp b/Source/WebCore/rendering/style/RenderStyle.cpp
index 249ba47..fb43c20 100644
--- a/Source/WebCore/rendering/style/RenderStyle.cpp
+++ b/Source/WebCore/rendering/style/RenderStyle.cpp
@@ -109,7 +109,7 @@
std::unique_ptr<RenderStyle> RenderStyle::clonePtr(const RenderStyle& style)
{
- return std::make_unique<RenderStyle>(style, Clone);
+ return makeUnique<RenderStyle>(style, Clone);
}
RenderStyle RenderStyle::createAnonymousStyleWithDisplay(const RenderStyle& parentStyle, DisplayType display)
@@ -409,7 +409,7 @@
RenderStyle* result = pseudo.get();
if (!m_cachedPseudoStyles)
- m_cachedPseudoStyles = std::make_unique<PseudoStyleCache>();
+ m_cachedPseudoStyles = makeUnique<PseudoStyleCache>();
m_cachedPseudoStyles->append(WTFMove(pseudo));
@@ -1058,7 +1058,7 @@
{
auto& data = m_rareNonInheritedData.access();
if (!data.customPaintWatchedProperties)
- data.customPaintWatchedProperties = std::make_unique<HashSet<String>>();
+ data.customPaintWatchedProperties = makeUnique<HashSet<String>>();
data.customPaintWatchedProperties->add(name);
}
@@ -1301,7 +1301,7 @@
{
if (!image)
return;
- setContent(std::make_unique<ImageContentData>(image.releaseNonNull()), add);
+ setContent(makeUnique<ImageContentData>(image.releaseNonNull()), add);
}
void RenderStyle::setContent(const String& string, bool add)
@@ -1310,13 +1310,13 @@
if (add && data.content) {
auto& last = lastContent(*data.content);
if (!is<TextContentData>(last))
- last.setNext(std::make_unique<TextContentData>(string));
+ last.setNext(makeUnique<TextContentData>(string));
else {
auto& textContent = downcast<TextContentData>(last);
textContent.setText(textContent.text() + string);
}
} else {
- data.content = std::make_unique<TextContentData>(string);
+ data.content = makeUnique<TextContentData>(string);
auto& altText = data.altText;
if (!altText.isNull())
data.content->setAltText(altText);
@@ -1327,12 +1327,12 @@
{
if (!counter)
return;
- setContent(std::make_unique<CounterContentData>(WTFMove(counter)), add);
+ setContent(makeUnique<CounterContentData>(WTFMove(counter)), add);
}
void RenderStyle::setContent(QuoteType quote, bool add)
{
- setContent(std::make_unique<QuoteContentData>(quote), add);
+ setContent(makeUnique<QuoteContentData>(quote), add);
}
void RenderStyle::setContentAltText(const String& string)
@@ -1551,7 +1551,7 @@
{
auto& map = m_rareNonInheritedData.access().counterDirectives;
if (!map)
- map = std::make_unique<CounterDirectiveMap>();
+ map = makeUnique<CounterDirectiveMap>();
return *map;
}
@@ -1671,14 +1671,14 @@
AnimationList& RenderStyle::ensureAnimations()
{
if (!m_rareNonInheritedData.access().animations)
- m_rareNonInheritedData.access().animations = std::make_unique<AnimationList>();
+ m_rareNonInheritedData.access().animations = makeUnique<AnimationList>();
return *m_rareNonInheritedData->animations;
}
AnimationList& RenderStyle::ensureTransitions()
{
if (!m_rareNonInheritedData.access().transitions)
- m_rareNonInheritedData.access().transitions = std::make_unique<AnimationList>();
+ m_rareNonInheritedData.access().transitions = makeUnique<AnimationList>();
return *m_rareNonInheritedData->transitions;
}
diff --git a/Source/WebCore/rendering/style/SVGRenderStyleDefs.cpp b/Source/WebCore/rendering/style/SVGRenderStyleDefs.cpp
index 20b2a81..6e37cf8 100644
--- a/Source/WebCore/rendering/style/SVGRenderStyleDefs.cpp
+++ b/Source/WebCore/rendering/style/SVGRenderStyleDefs.cpp
@@ -201,7 +201,7 @@
inline StyleShadowSVGData::StyleShadowSVGData(const StyleShadowSVGData& other)
: RefCounted<StyleShadowSVGData>()
- , shadow(other.shadow ? std::make_unique<ShadowData>(*other.shadow) : nullptr)
+ , shadow(other.shadow ? makeUnique<ShadowData>(*other.shadow) : nullptr)
{
}
diff --git a/Source/WebCore/rendering/style/ShadowData.cpp b/Source/WebCore/rendering/style/ShadowData.cpp
index 3d61c94..c17eaf8 100644
--- a/Source/WebCore/rendering/style/ShadowData.cpp
+++ b/Source/WebCore/rendering/style/ShadowData.cpp
@@ -33,7 +33,7 @@
, m_color(o.m_color)
, m_style(o.m_style)
, m_isWebkitBoxShadow(o.m_isWebkitBoxShadow)
- , m_next(o.m_next ? std::make_unique<ShadowData>(*o.m_next) : nullptr)
+ , m_next(o.m_next ? makeUnique<ShadowData>(*o.m_next) : nullptr)
{
}
diff --git a/Source/WebCore/rendering/style/StyleRareInheritedData.cpp b/Source/WebCore/rendering/style/StyleRareInheritedData.cpp
index ad2cbd9..96dbba0 100644
--- a/Source/WebCore/rendering/style/StyleRareInheritedData.cpp
+++ b/Source/WebCore/rendering/style/StyleRareInheritedData.cpp
@@ -172,7 +172,7 @@
, visitedLinkTextEmphasisColor(o.visitedLinkTextEmphasisColor)
, caretColor(o.caretColor)
, visitedLinkCaretColor(o.visitedLinkCaretColor)
- , textShadow(o.textShadow ? std::make_unique<ShadowData>(*o.textShadow) : nullptr)
+ , textShadow(o.textShadow ? makeUnique<ShadowData>(*o.textShadow) : nullptr)
, cursorData(o.cursorData)
, indent(o.indent)
, effectiveZoom(o.effectiveZoom)
diff --git a/Source/WebCore/rendering/style/StyleRareNonInheritedData.cpp b/Source/WebCore/rendering/style/StyleRareNonInheritedData.cpp
index 6fbb2b7..bdd0191 100644
--- a/Source/WebCore/rendering/style/StyleRareNonInheritedData.cpp
+++ b/Source/WebCore/rendering/style/StyleRareNonInheritedData.cpp
@@ -139,13 +139,13 @@
, scrollSnapArea(o.scrollSnapArea)
#endif
, content(o.content ? o.content->clone() : nullptr)
- , counterDirectives(o.counterDirectives ? std::make_unique<CounterDirectiveMap>(*o.counterDirectives) : nullptr)
+ , counterDirectives(o.counterDirectives ? makeUnique<CounterDirectiveMap>(*o.counterDirectives) : nullptr)
, altText(o.altText)
- , boxShadow(o.boxShadow ? std::make_unique<ShadowData>(*o.boxShadow) : nullptr)
+ , boxShadow(o.boxShadow ? makeUnique<ShadowData>(*o.boxShadow) : nullptr)
, willChange(o.willChange)
, boxReflect(o.boxReflect)
- , animations(o.animations ? std::make_unique<AnimationList>(*o.animations) : nullptr)
- , transitions(o.transitions ? std::make_unique<AnimationList>(*o.transitions) : nullptr)
+ , animations(o.animations ? makeUnique<AnimationList>(*o.animations) : nullptr)
+ , transitions(o.transitions ? makeUnique<AnimationList>(*o.transitions) : nullptr)
, mask(o.mask)
, maskBoxImage(o.maskBoxImage)
, pageSize(o.pageSize)
@@ -170,7 +170,7 @@
, justifyItems(o.justifyItems)
, justifySelf(o.justifySelf)
, customProperties(o.customProperties)
- , customPaintWatchedProperties(o.customPaintWatchedProperties ? std::make_unique<HashSet<String>>(*o.customPaintWatchedProperties) : nullptr)
+ , customPaintWatchedProperties(o.customPaintWatchedProperties ? makeUnique<HashSet<String>>(*o.customPaintWatchedProperties) : nullptr)
#if ENABLE(POINTER_EVENTS)
, touchActions(o.touchActions)
#endif
diff --git a/Source/WebCore/rendering/svg/RenderSVGImage.cpp b/Source/WebCore/rendering/svg/RenderSVGImage.cpp
index 2c6f3178..24cde4b 100644
--- a/Source/WebCore/rendering/svg/RenderSVGImage.cpp
+++ b/Source/WebCore/rendering/svg/RenderSVGImage.cpp
@@ -50,7 +50,7 @@
: RenderSVGModelObject(element, WTFMove(style))
, m_needsBoundariesUpdate(true)
, m_needsTransformUpdate(true)
- , m_imageResource(std::make_unique<RenderImageResource>())
+ , m_imageResource(makeUnique<RenderImageResource>())
{
imageResource().initialize(*this);
}
diff --git a/Source/WebCore/rendering/svg/RenderSVGInline.cpp b/Source/WebCore/rendering/svg/RenderSVGInline.cpp
index 3c31056..ba1cd05 100644
--- a/Source/WebCore/rendering/svg/RenderSVGInline.cpp
+++ b/Source/WebCore/rendering/svg/RenderSVGInline.cpp
@@ -41,7 +41,7 @@
std::unique_ptr<InlineFlowBox> RenderSVGInline::createInlineFlowBox()
{
- auto box = std::make_unique<SVGInlineFlowBox>(*this);
+ auto box = makeUnique<SVGInlineFlowBox>(*this);
box->setHasVirtualLogicalHeight();
return box;
}
diff --git a/Source/WebCore/rendering/svg/RenderSVGInlineText.cpp b/Source/WebCore/rendering/svg/RenderSVGInlineText.cpp
index 67e6f98..dbf4903 100644
--- a/Source/WebCore/rendering/svg/RenderSVGInlineText.cpp
+++ b/Source/WebCore/rendering/svg/RenderSVGInlineText.cpp
@@ -113,7 +113,7 @@
std::unique_ptr<InlineTextBox> RenderSVGInlineText::createTextBox()
{
- auto box = std::make_unique<SVGInlineTextBox>(*this);
+ auto box = makeUnique<SVGInlineTextBox>(*this);
box->setHasVirtualLogicalHeight();
return box;
}
diff --git a/Source/WebCore/rendering/svg/RenderSVGResourceFilter.cpp b/Source/WebCore/rendering/svg/RenderSVGResourceFilter.cpp
index 1b3ef24..1ad2649 100644
--- a/Source/WebCore/rendering/svg/RenderSVGResourceFilter.cpp
+++ b/Source/WebCore/rendering/svg/RenderSVGResourceFilter.cpp
@@ -88,7 +88,7 @@
FloatRect targetBoundingBox = filter.targetBoundingBox();
// Add effects to the builder
- auto builder = std::make_unique<SVGFilterBuilder>(SourceGraphic::create(filter));
+ auto builder = makeUnique<SVGFilterBuilder>(SourceGraphic::create(filter));
builder->setPrimitiveUnits(filterElement().primitiveUnits());
builder->setTargetBoundingBox(targetBoundingBox);
@@ -122,7 +122,7 @@
return false; // Already built, or we're in a cycle, or we're marked for removal. Regardless, just do nothing more now.
}
- auto filterData = std::make_unique<FilterData>();
+ auto filterData = makeUnique<FilterData>();
FloatRect targetBoundingBox = renderer.objectBoundingBox();
filterData->boundaries = SVGLengthContext::resolveRectangle<SVGFilterElement>(&filterElement(), filterElement().filterUnits(), targetBoundingBox);
diff --git a/Source/WebCore/rendering/svg/RenderSVGResourceGradient.cpp b/Source/WebCore/rendering/svg/RenderSVGResourceGradient.cpp
index d8ad080..552ce5a 100644
--- a/Source/WebCore/rendering/svg/RenderSVGResourceGradient.cpp
+++ b/Source/WebCore/rendering/svg/RenderSVGResourceGradient.cpp
@@ -119,7 +119,7 @@
auto& gradientData = m_gradientMap.add(&renderer, nullptr).iterator->value;
if (!gradientData)
- gradientData = std::make_unique<GradientData>();
+ gradientData = makeUnique<GradientData>();
bool isPaintingText = resourceMode.contains(RenderSVGResourceMode::ApplyToText);
diff --git a/Source/WebCore/rendering/svg/RenderSVGResourceMasker.cpp b/Source/WebCore/rendering/svg/RenderSVGResourceMasker.cpp
index aa5765e..4c819b9 100644
--- a/Source/WebCore/rendering/svg/RenderSVGResourceMasker.cpp
+++ b/Source/WebCore/rendering/svg/RenderSVGResourceMasker.cpp
@@ -61,7 +61,7 @@
bool missingMaskerData = !m_masker.contains(&renderer);
if (missingMaskerData)
- m_masker.set(&renderer, std::make_unique<MaskerData>());
+ m_masker.set(&renderer, makeUnique<MaskerData>());
MaskerData* maskerData = m_masker.get(&renderer);
AffineTransform absoluteTransform = SVGRenderingContext::calculateTransformationToOutermostCoordinateSystem(renderer);
diff --git a/Source/WebCore/rendering/svg/RenderSVGResourcePattern.cpp b/Source/WebCore/rendering/svg/RenderSVGResourcePattern.cpp
index cc2cbfc..31bc5f1 100644
--- a/Source/WebCore/rendering/svg/RenderSVGResourcePattern.cpp
+++ b/Source/WebCore/rendering/svg/RenderSVGResourcePattern.cpp
@@ -117,7 +117,7 @@
return nullptr;
// Build pattern.
- auto patternData = std::make_unique<PatternData>();
+ auto patternData = makeUnique<PatternData>();
patternData->pattern = Pattern::create(copiedImage.releaseNonNull(), true, true);
// Compute pattern space transformation.
diff --git a/Source/WebCore/rendering/svg/RenderSVGShape.cpp b/Source/WebCore/rendering/svg/RenderSVGShape.cpp
index 34b0ae7..6a67118 100644
--- a/Source/WebCore/rendering/svg/RenderSVGShape.cpp
+++ b/Source/WebCore/rendering/svg/RenderSVGShape.cpp
@@ -79,7 +79,7 @@
void RenderSVGShape::updateShapeFromElement()
{
- m_path = std::make_unique<Path>(pathFromGraphicsElement(&graphicsElement()));
+ m_path = makeUnique<Path>(pathFromGraphicsElement(&graphicsElement()));
processMarkerPositions();
m_fillBoundingBox = calculateObjectBoundingBox();
diff --git a/Source/WebCore/rendering/svg/SVGResources.cpp b/Source/WebCore/rendering/svg/SVGResources.cpp
index bf78644..9c737ca 100644
--- a/Source/WebCore/rendering/svg/SVGResources.cpp
+++ b/Source/WebCore/rendering/svg/SVGResources.cpp
@@ -508,7 +508,7 @@
ASSERT(clipper->resourceType() == ClipperResourceType);
if (!m_clipperFilterMaskerData)
- m_clipperFilterMaskerData = std::make_unique<ClipperFilterMaskerData>();
+ m_clipperFilterMaskerData = makeUnique<ClipperFilterMaskerData>();
m_clipperFilterMaskerData->clipper = clipper;
return true;
@@ -529,7 +529,7 @@
ASSERT(filter->resourceType() == FilterResourceType);
if (!m_clipperFilterMaskerData)
- m_clipperFilterMaskerData = std::make_unique<ClipperFilterMaskerData>();
+ m_clipperFilterMaskerData = makeUnique<ClipperFilterMaskerData>();
m_clipperFilterMaskerData->filter = filter;
return true;
@@ -550,7 +550,7 @@
ASSERT(markerStart->resourceType() == MarkerResourceType);
if (!m_markerData)
- m_markerData = std::make_unique<MarkerData>();
+ m_markerData = makeUnique<MarkerData>();
m_markerData->markerStart = markerStart;
return true;
@@ -571,7 +571,7 @@
ASSERT(markerMid->resourceType() == MarkerResourceType);
if (!m_markerData)
- m_markerData = std::make_unique<MarkerData>();
+ m_markerData = makeUnique<MarkerData>();
m_markerData->markerMid = markerMid;
return true;
@@ -592,7 +592,7 @@
ASSERT(markerEnd->resourceType() == MarkerResourceType);
if (!m_markerData)
- m_markerData = std::make_unique<MarkerData>();
+ m_markerData = makeUnique<MarkerData>();
m_markerData->markerEnd = markerEnd;
return true;
@@ -613,7 +613,7 @@
ASSERT(masker->resourceType() == MaskerResourceType);
if (!m_clipperFilterMaskerData)
- m_clipperFilterMaskerData = std::make_unique<ClipperFilterMaskerData>();
+ m_clipperFilterMaskerData = makeUnique<ClipperFilterMaskerData>();
m_clipperFilterMaskerData->masker = masker;
return true;
@@ -636,7 +636,7 @@
|| fill->resourceType() == RadialGradientResourceType);
if (!m_fillStrokeData)
- m_fillStrokeData = std::make_unique<FillStrokeData>();
+ m_fillStrokeData = makeUnique<FillStrokeData>();
m_fillStrokeData->fill = fill;
return true;
@@ -659,7 +659,7 @@
|| stroke->resourceType() == RadialGradientResourceType);
if (!m_fillStrokeData)
- m_fillStrokeData = std::make_unique<FillStrokeData>();
+ m_fillStrokeData = makeUnique<FillStrokeData>();
m_fillStrokeData->stroke = stroke;
return true;
diff --git a/Source/WebCore/rendering/svg/SVGResourcesCache.cpp b/Source/WebCore/rendering/svg/SVGResourcesCache.cpp
index 19195aa..1eeb78f 100644
--- a/Source/WebCore/rendering/svg/SVGResourcesCache.cpp
+++ b/Source/WebCore/rendering/svg/SVGResourcesCache.cpp
@@ -35,7 +35,7 @@
ASSERT(!m_cache.contains(&renderer));
// Build a list of all resources associated with the passed RenderObject
- auto newResources = std::make_unique<SVGResources>();
+ auto newResources = makeUnique<SVGResources>();
if (!newResources->buildCachedResources(renderer, style))
return;
diff --git a/Source/WebCore/rendering/svg/SVGTextMetricsBuilder.cpp b/Source/WebCore/rendering/svg/SVGTextMetricsBuilder.cpp
index 3241025..810a0b8 100644
--- a/Source/WebCore/rendering/svg/SVGTextMetricsBuilder.cpp
+++ b/Source/WebCore/rendering/svg/SVGTextMetricsBuilder.cpp
@@ -103,7 +103,7 @@
if (m_isComplexText)
m_simpleWidthIterator = nullptr;
else
- m_simpleWidthIterator = std::make_unique<WidthIterator>(&scaledFont, m_run);
+ m_simpleWidthIterator = makeUnique<WidthIterator>(&scaledFont, m_run);
}
struct MeasureTextData {
diff --git a/Source/WebCore/rendering/updating/RenderTreeBuilder.cpp b/Source/WebCore/rendering/updating/RenderTreeBuilder.cpp
index d37bee8..e6b2732 100644
--- a/Source/WebCore/rendering/updating/RenderTreeBuilder.cpp
+++ b/Source/WebCore/rendering/updating/RenderTreeBuilder.cpp
@@ -122,22 +122,22 @@
RenderTreeBuilder::RenderTreeBuilder(RenderView& view)
: m_view(view)
- , m_firstLetterBuilder(std::make_unique<FirstLetter>(*this))
- , m_listBuilder(std::make_unique<List>(*this))
- , m_multiColumnBuilder(std::make_unique<MultiColumn>(*this))
- , m_tableBuilder(std::make_unique<Table>(*this))
- , m_rubyBuilder(std::make_unique<Ruby>(*this))
- , m_formControlsBuilder(std::make_unique<FormControls>(*this))
- , m_blockBuilder(std::make_unique<Block>(*this))
- , m_blockFlowBuilder(std::make_unique<BlockFlow>(*this))
- , m_inlineBuilder(std::make_unique<Inline>(*this))
- , m_svgBuilder(std::make_unique<SVG>(*this))
+ , m_firstLetterBuilder(makeUnique<FirstLetter>(*this))
+ , m_listBuilder(makeUnique<List>(*this))
+ , m_multiColumnBuilder(makeUnique<MultiColumn>(*this))
+ , m_tableBuilder(makeUnique<Table>(*this))
+ , m_rubyBuilder(makeUnique<Ruby>(*this))
+ , m_formControlsBuilder(makeUnique<FormControls>(*this))
+ , m_blockBuilder(makeUnique<Block>(*this))
+ , m_blockFlowBuilder(makeUnique<BlockFlow>(*this))
+ , m_inlineBuilder(makeUnique<Inline>(*this))
+ , m_svgBuilder(makeUnique<SVG>(*this))
#if ENABLE(MATHML)
- , m_mathMLBuilder(std::make_unique<MathML>(*this))
+ , m_mathMLBuilder(makeUnique<MathML>(*this))
#endif
- , m_continuationBuilder(std::make_unique<Continuation>(*this))
+ , m_continuationBuilder(makeUnique<Continuation>(*this))
#if ENABLE(FULLSCREEN_API)
- , m_fullScreenBuilder(std::make_unique<FullScreen>(*this))
+ , m_fullScreenBuilder(makeUnique<FullScreen>(*this))
#endif
{
RELEASE_ASSERT(!s_current || &m_view != &s_current->m_view);
diff --git a/Source/WebCore/rendering/updating/RenderTreeUpdater.cpp b/Source/WebCore/rendering/updating/RenderTreeUpdater.cpp
index 9a98d25..b9d207f 100644
--- a/Source/WebCore/rendering/updating/RenderTreeUpdater.cpp
+++ b/Source/WebCore/rendering/updating/RenderTreeUpdater.cpp
@@ -71,7 +71,7 @@
RenderTreeUpdater::RenderTreeUpdater(Document& document)
: m_document(document)
- , m_generatedContent(std::make_unique<GeneratedContent>(*this))
+ , m_generatedContent(makeUnique<GeneratedContent>(*this))
, m_builder(renderView())
{
}
diff --git a/Source/WebCore/style/StyleInvalidator.cpp b/Source/WebCore/style/StyleInvalidator.cpp
index dae11cb..6d695a6 100644
--- a/Source/WebCore/style/StyleInvalidator.cpp
+++ b/Source/WebCore/style/StyleInvalidator.cpp
@@ -78,7 +78,7 @@
}
Invalidator::Invalidator(const Vector<StyleSheetContents*>& sheets, const MediaQueryEvaluator& mediaQueryEvaluator)
- : m_ownedRuleSet(std::make_unique<RuleSet>())
+ : m_ownedRuleSet(makeUnique<RuleSet>())
, m_ruleSet(*m_ownedRuleSet)
, m_dirtiesAllStyle(shouldDirtyAllStyle(sheets))
{
diff --git a/Source/WebCore/style/StyleRelations.cpp b/Source/WebCore/style/StyleRelations.cpp
index 4d8148b..062d596 100644
--- a/Source/WebCore/style/StyleRelations.cpp
+++ b/Source/WebCore/style/StyleRelations.cpp
@@ -40,7 +40,7 @@
auto appendStyleRelation = [&remainingRelations] (const Relation& relation) {
if (!remainingRelations)
- remainingRelations = std::make_unique<Relations>();
+ remainingRelations = makeUnique<Relations>();
remainingRelations->append(relation);
};
diff --git a/Source/WebCore/style/StyleScope.cpp b/Source/WebCore/style/StyleScope.cpp
index 9f0d1ad..dcb65bc 100644
--- a/Source/WebCore/style/StyleScope.cpp
+++ b/Source/WebCore/style/StyleScope.cpp
@@ -96,7 +96,7 @@
if (!m_resolver) {
SetForScope<bool> isUpdatingStyleResolver { m_isUpdatingStyleResolver, true };
- m_resolver = std::make_unique<StyleResolver>(m_document);
+ m_resolver = makeUnique<StyleResolver>(m_document);
if (!m_shadowRoot) {
m_document.fontSelector().buildStarted();
@@ -563,7 +563,7 @@
bool Scope::activeStyleSheetsContains(const CSSStyleSheet* sheet) const
{
if (!m_weakCopyOfActiveStyleSheetListForFastLookup) {
- m_weakCopyOfActiveStyleSheetListForFastLookup = std::make_unique<HashSet<const CSSStyleSheet*>>();
+ m_weakCopyOfActiveStyleSheetListForFastLookup = makeUnique<HashSet<const CSSStyleSheet*>>();
for (auto& activeStyleSheet : m_activeStyleSheets)
m_weakCopyOfActiveStyleSheetListForFastLookup->add(activeStyleSheet.get());
}
diff --git a/Source/WebCore/style/StyleTreeResolver.cpp b/Source/WebCore/style/StyleTreeResolver.cpp
index 846a231..a00f4fe 100644
--- a/Source/WebCore/style/StyleTreeResolver.cpp
+++ b/Source/WebCore/style/StyleTreeResolver.cpp
@@ -548,7 +548,7 @@
m_didSeePendingStylesheet = m_document.styleScope().hasPendingSheetsBeforeBody();
- m_update = std::make_unique<Update>(m_document);
+ m_update = makeUnique<Update>(m_document);
m_scopeStack.append(adoptRef(*new Scope(m_document)));
m_parentStack.append(Parent(m_document));
diff --git a/Source/WebCore/svg/SVGDocumentExtensions.cpp b/Source/WebCore/svg/SVGDocumentExtensions.cpp
index bc51434..25f3863 100644
--- a/Source/WebCore/svg/SVGDocumentExtensions.cpp
+++ b/Source/WebCore/svg/SVGDocumentExtensions.cpp
@@ -41,7 +41,7 @@
SVGDocumentExtensions::SVGDocumentExtensions(Document& document)
: m_document(document)
- , m_resourcesCache(std::make_unique<SVGResourcesCache>())
+ , m_resourcesCache(makeUnique<SVGResourcesCache>())
, m_areAnimationsPaused(!document.page() || !document.page()->isVisible())
{
}
@@ -146,7 +146,7 @@
auto result = m_pendingResources.add(id, nullptr);
if (result.isNewEntry)
- result.iterator->value = std::make_unique<PendingElements>();
+ result.iterator->value = makeUnique<PendingElements>();
result.iterator->value->add(&element);
element.setHasPendingResources();
@@ -279,7 +279,7 @@
void SVGDocumentExtensions::addElementReferencingTarget(SVGElement& referencingElement, SVGElement& referencedElement)
{
auto result = m_elementDependencies.ensure(&referencedElement, [&referencingElement] {
- return std::make_unique<HashSet<SVGElement*>>(std::initializer_list<SVGElement*> { &referencingElement });
+ return makeUnique<HashSet<SVGElement*>>(std::initializer_list<SVGElement*> { &referencingElement });
});
if (!result.isNewEntry)
result.iterator->value->add(&referencingElement);
diff --git a/Source/WebCore/svg/SVGElement.cpp b/Source/WebCore/svg/SVGElement.cpp
index 387c9c1..a94a918 100644
--- a/Source/WebCore/svg/SVGElement.cpp
+++ b/Source/WebCore/svg/SVGElement.cpp
@@ -161,7 +161,7 @@
SVGElement::SVGElement(const QualifiedName& tagName, Document& document)
: StyledElement(tagName, document, CreateSVGElement)
, SVGLangSpace(this)
- , m_propertyAnimatorFactory(std::make_unique<SVGPropertyAnimatorFactory>())
+ , m_propertyAnimatorFactory(makeUnique<SVGPropertyAnimatorFactory>())
{
static std::once_flag onceFlag;
std::call_once(onceFlag, [] {
@@ -196,7 +196,7 @@
SVGElementRareData& SVGElement::ensureSVGRareData()
{
if (!m_svgRareData)
- m_svgRareData = std::make_unique<SVGElementRareData>();
+ m_svgRareData = makeUnique<SVGElementRareData>();
return *m_svgRareData;
}
diff --git a/Source/WebCore/svg/SVGGraphicsElement.cpp b/Source/WebCore/svg/SVGGraphicsElement.cpp
index a75890f..80ec7fc 100644
--- a/Source/WebCore/svg/SVGGraphicsElement.cpp
+++ b/Source/WebCore/svg/SVGGraphicsElement.cpp
@@ -119,7 +119,7 @@
AffineTransform* SVGGraphicsElement::supplementalTransform()
{
if (!m_supplementalTransform)
- m_supplementalTransform = std::make_unique<AffineTransform>();
+ m_supplementalTransform = makeUnique<AffineTransform>();
return m_supplementalTransform.get();
}
diff --git a/Source/WebCore/svg/SVGPathByteStream.h b/Source/WebCore/svg/SVGPathByteStream.h
index 6f0acac..434d91e 100644
--- a/Source/WebCore/svg/SVGPathByteStream.h
+++ b/Source/WebCore/svg/SVGPathByteStream.h
@@ -86,7 +86,7 @@
std::unique_ptr<SVGPathByteStream> copy() const
{
- return std::make_unique<SVGPathByteStream>(*this);
+ return makeUnique<SVGPathByteStream>(*this);
}
DataIterator begin() const { return m_data.begin(); }
diff --git a/Source/WebCore/svg/animation/SMILTimeContainer.cpp b/Source/WebCore/svg/animation/SMILTimeContainer.cpp
index e0423ce..3eb57ad 100644
--- a/Source/WebCore/svg/animation/SMILTimeContainer.cpp
+++ b/Source/WebCore/svg/animation/SMILTimeContainer.cpp
@@ -64,7 +64,7 @@
ElementAttributePair key(target, attributeName);
std::unique_ptr<AnimationsVector>& scheduled = m_scheduledAnimations.add(key, nullptr).iterator->value;
if (!scheduled)
- scheduled = std::make_unique<AnimationsVector>();
+ scheduled = makeUnique<AnimationsVector>();
ASSERT(!scheduled->contains(animation));
scheduled->append(animation);
diff --git a/Source/WebCore/svg/graphics/SVGImage.cpp b/Source/WebCore/svg/graphics/SVGImage.cpp
index 809aff5..5c56b69 100644
--- a/Source/WebCore/svg/graphics/SVGImage.cpp
+++ b/Source/WebCore/svg/graphics/SVGImage.cpp
@@ -457,7 +457,7 @@
if (allDataReceived) {
auto pageConfiguration = pageConfigurationWithEmptyClients();
- m_chromeClient = std::make_unique<SVGImageChromeClient>(this);
+ m_chromeClient = makeUnique<SVGImageChromeClient>(this);
pageConfiguration.chromeClient = m_chromeClient.get();
// FIXME: If this SVG ends up loading itself, we might leak the world.
@@ -466,7 +466,7 @@
// This will become an issue when SVGImage will be able to load other
// SVGImage objects, but we're safe now, because SVGImage can only be
// loaded by a top-level document.
- m_page = std::make_unique<Page>(WTFMove(pageConfiguration));
+ m_page = makeUnique<Page>(WTFMove(pageConfiguration));
m_page->settings().setMediaEnabled(false);
m_page->settings().setScriptEnabled(false);
m_page->settings().setPluginsEnabled(false);
diff --git a/Source/WebCore/svg/properties/SVGAnimatedDecoratedProperty.h b/Source/WebCore/svg/properties/SVGAnimatedDecoratedProperty.h
index e5efaae..cebaa36 100644
--- a/Source/WebCore/svg/properties/SVGAnimatedDecoratedProperty.h
+++ b/Source/WebCore/svg/properties/SVGAnimatedDecoratedProperty.h
@@ -36,7 +36,7 @@
template<typename PropertyType, typename AnimatedProperty = SVGAnimatedDecoratedProperty>
static Ref<AnimatedProperty> create(SVGElement* contextElement)
{
- return adoptRef(*new AnimatedProperty(contextElement, std::make_unique<DecoratedProperty<DecorationType, PropertyType>>()));
+ return adoptRef(*new AnimatedProperty(contextElement, makeUnique<DecoratedProperty<DecorationType, PropertyType>>()));
}
template<typename PropertyType, typename AnimatedProperty = SVGAnimatedDecoratedProperty>
diff --git a/Source/WebCore/svg/properties/SVGAnimatedPropertyAnimatorImpl.h b/Source/WebCore/svg/properties/SVGAnimatedPropertyAnimatorImpl.h
index 288741b..d0737ac 100644
--- a/Source/WebCore/svg/properties/SVGAnimatedPropertyAnimatorImpl.h
+++ b/Source/WebCore/svg/properties/SVGAnimatedPropertyAnimatorImpl.h
@@ -50,7 +50,7 @@
public:
static auto create(const QualifiedName& attributeName, Ref<SVGAnimatedAngle>& animated, AnimationMode animationMode, CalcMode calcMode, bool isAccumulated, bool isAdditive)
{
- return std::make_unique<SVGAnimatedAngleAnimator>(attributeName, animated, animationMode, calcMode, isAccumulated, isAdditive);
+ return makeUnique<SVGAnimatedAngleAnimator>(attributeName, animated, animationMode, calcMode, isAccumulated, isAdditive);
}
private:
@@ -68,7 +68,7 @@
static auto create(const QualifiedName& attributeName, Ref<SVGAnimatedBoolean>& animated, AnimationMode animationMode, CalcMode calcMode, bool isAccumulated, bool isAdditive)
{
- return std::make_unique<SVGAnimatedBooleanAnimator>(attributeName, animated, animationMode, calcMode, isAccumulated, isAdditive);
+ return makeUnique<SVGAnimatedBooleanAnimator>(attributeName, animated, animationMode, calcMode, isAccumulated, isAdditive);
}
private:
@@ -89,7 +89,7 @@
public:
static auto create(const QualifiedName& attributeName, Ref<SVGAnimatedEnumeration>& animated, AnimationMode animationMode, CalcMode calcMode, bool isAccumulated, bool isAdditive)
{
- return std::make_unique<SVGAnimatedEnumerationAnimator<EnumType>>(attributeName, animated, animationMode, calcMode, isAccumulated, isAdditive);
+ return makeUnique<SVGAnimatedEnumerationAnimator<EnumType>>(attributeName, animated, animationMode, calcMode, isAccumulated, isAdditive);
}
private:
@@ -111,7 +111,7 @@
static auto create(const QualifiedName& attributeName, Ref<SVGAnimatedInteger>& animated, AnimationMode animationMode, CalcMode calcMode, bool isAccumulated, bool isAdditive)
{
- return std::make_unique<SVGAnimatedIntegerAnimator>(attributeName, animated, animationMode, calcMode, isAccumulated, isAdditive);
+ return makeUnique<SVGAnimatedIntegerAnimator>(attributeName, animated, animationMode, calcMode, isAccumulated, isAdditive);
}
private:
@@ -132,7 +132,7 @@
static auto create(const QualifiedName& attributeName, Ref<SVGAnimatedLength>& animated, AnimationMode animationMode, CalcMode calcMode, bool isAccumulated, bool isAdditive, SVGLengthMode lengthMode)
{
- return std::make_unique<SVGAnimatedLengthAnimator>(attributeName, animated, animationMode, calcMode, isAccumulated, isAdditive, lengthMode);
+ return makeUnique<SVGAnimatedLengthAnimator>(attributeName, animated, animationMode, calcMode, isAccumulated, isAdditive, lengthMode);
}
private:
@@ -153,7 +153,7 @@
static auto create(const QualifiedName& attributeName, Ref<SVGAnimatedLengthList>& animated, AnimationMode animationMode, CalcMode calcMode, bool isAccumulated, bool isAdditive, SVGLengthMode lengthMode)
{
- return std::make_unique<SVGAnimatedLengthListAnimator>(attributeName, animated, animationMode, calcMode, isAccumulated, isAdditive, lengthMode);
+ return makeUnique<SVGAnimatedLengthListAnimator>(attributeName, animated, animationMode, calcMode, isAccumulated, isAdditive, lengthMode);
}
private:
@@ -172,7 +172,7 @@
public:
static auto create(const QualifiedName& attributeName, Ref<SVGAnimatedNumber>& animated, AnimationMode animationMode, CalcMode calcMode, bool isAccumulated, bool isAdditive)
{
- return std::make_unique<SVGAnimatedNumberAnimator>(attributeName, animated, animationMode, calcMode, isAccumulated, isAdditive);
+ return makeUnique<SVGAnimatedNumberAnimator>(attributeName, animated, animationMode, calcMode, isAccumulated, isAdditive);
}
private:
@@ -189,7 +189,7 @@
public:
static auto create(const QualifiedName& attributeName, Ref<SVGAnimatedNumberList>& animated, AnimationMode animationMode, CalcMode calcMode, bool isAccumulated, bool isAdditive)
{
- return std::make_unique<SVGAnimatedNumberListAnimator>(attributeName, animated, animationMode, calcMode, isAccumulated, isAdditive);
+ return makeUnique<SVGAnimatedNumberListAnimator>(attributeName, animated, animationMode, calcMode, isAccumulated, isAdditive);
}
private:
@@ -206,7 +206,7 @@
public:
static auto create(const QualifiedName& attributeName, Ref<SVGAnimatedPathSegList>& animated, AnimationMode animationMode, CalcMode calcMode, bool isAccumulated, bool isAdditive)
{
- return std::make_unique<SVGAnimatedPathSegListAnimator>(attributeName, animated, animationMode, calcMode, isAccumulated, isAdditive);
+ return makeUnique<SVGAnimatedPathSegListAnimator>(attributeName, animated, animationMode, calcMode, isAccumulated, isAdditive);
}
private:
@@ -224,7 +224,7 @@
public:
static auto create(const QualifiedName& attributeName, Ref<SVGAnimatedPointList>& animated, AnimationMode animationMode, CalcMode calcMode, bool isAccumulated, bool isAdditive)
{
- return std::make_unique<SVGAnimatedPointListAnimator>(attributeName, animated, animationMode, calcMode, isAccumulated, isAdditive);
+ return makeUnique<SVGAnimatedPointListAnimator>(attributeName, animated, animationMode, calcMode, isAccumulated, isAdditive);
}
private:
@@ -243,7 +243,7 @@
public:
static auto create(const QualifiedName& attributeName, Ref<SVGAnimatedOrientType>& animated, AnimationMode animationMode, CalcMode calcMode, bool isAccumulated, bool isAdditive)
{
- return std::make_unique<SVGAnimatedOrientTypeAnimator>(attributeName, animated, animationMode, calcMode, isAccumulated, isAdditive);
+ return makeUnique<SVGAnimatedOrientTypeAnimator>(attributeName, animated, animationMode, calcMode, isAccumulated, isAdditive);
}
private:
@@ -262,7 +262,7 @@
public:
static auto create(const QualifiedName& attributeName, Ref<SVGAnimatedPreserveAspectRatio>& animated, AnimationMode animationMode, CalcMode calcMode, bool isAccumulated, bool isAdditive)
{
- return std::make_unique<SVGAnimatedPreserveAspectRatioAnimator>(attributeName, animated, animationMode, calcMode, isAccumulated, isAdditive);
+ return makeUnique<SVGAnimatedPreserveAspectRatioAnimator>(attributeName, animated, animationMode, calcMode, isAccumulated, isAdditive);
}
private:
@@ -281,7 +281,7 @@
static auto create(const QualifiedName& attributeName, Ref<SVGAnimatedRect>& animated, AnimationMode animationMode, CalcMode calcMode, bool isAccumulated, bool isAdditive)
{
- return std::make_unique<SVGAnimatedRectAnimator>(attributeName, animated, animationMode, calcMode, isAccumulated, isAdditive);
+ return makeUnique<SVGAnimatedRectAnimator>(attributeName, animated, animationMode, calcMode, isAccumulated, isAdditive);
}
private:
@@ -298,7 +298,7 @@
public:
static auto create(const QualifiedName& attributeName, Ref<SVGAnimatedString>& animated, AnimationMode animationMode, CalcMode calcMode, bool isAccumulated, bool isAdditive)
{
- return std::make_unique<SVGAnimatedStringAnimator>(attributeName, animated, animationMode, calcMode, isAccumulated, isAdditive);
+ return makeUnique<SVGAnimatedStringAnimator>(attributeName, animated, animationMode, calcMode, isAccumulated, isAdditive);
}
private:
@@ -338,7 +338,7 @@
public:
static auto create(const QualifiedName& attributeName, Ref<SVGAnimatedTransformList>& animated, AnimationMode animationMode, CalcMode calcMode, bool isAccumulated, bool isAdditive)
{
- return std::make_unique<SVGAnimatedTransformListAnimator>(attributeName, animated, animationMode, calcMode, isAccumulated, isAdditive);
+ return makeUnique<SVGAnimatedTransformListAnimator>(attributeName, animated, animationMode, calcMode, isAccumulated, isAdditive);
}
private:
diff --git a/Source/WebCore/svg/properties/SVGAnimatedPropertyPairAnimatorImpl.h b/Source/WebCore/svg/properties/SVGAnimatedPropertyPairAnimatorImpl.h
index 4eda34c..397ff09 100644
--- a/Source/WebCore/svg/properties/SVGAnimatedPropertyPairAnimatorImpl.h
+++ b/Source/WebCore/svg/properties/SVGAnimatedPropertyPairAnimatorImpl.h
@@ -40,7 +40,7 @@
public:
static auto create(const QualifiedName& attributeName, Ref<SVGAnimatedAngle>& animated1, Ref<SVGAnimatedOrientType>& animated2, AnimationMode animationMode, CalcMode calcMode, bool isAccumulated, bool isAdditive)
{
- return std::make_unique<SVGAnimatedAngleOrientAnimator>(attributeName, animated1, animated2, animationMode, calcMode, isAccumulated, isAdditive);
+ return makeUnique<SVGAnimatedAngleOrientAnimator>(attributeName, animated1, animated2, animationMode, calcMode, isAccumulated, isAdditive);
}
private:
@@ -113,7 +113,7 @@
public:
static auto create(const QualifiedName& attributeName, Ref<SVGAnimatedInteger>& animated1, Ref<SVGAnimatedInteger>& animated2, AnimationMode animationMode, CalcMode calcMode, bool isAccumulated, bool isAdditive)
{
- return std::make_unique<SVGAnimatedIntegerPairAnimator>(attributeName, animated1, animated2, animationMode, calcMode, isAccumulated, isAdditive);
+ return makeUnique<SVGAnimatedIntegerPairAnimator>(attributeName, animated1, animated2, animationMode, calcMode, isAccumulated, isAdditive);
}
private:
@@ -156,7 +156,7 @@
public:
static auto create(const QualifiedName& attributeName, Ref<SVGAnimatedNumber>& animated1, Ref<SVGAnimatedNumber>& animated2, AnimationMode animationMode, CalcMode calcMode, bool isAccumulated, bool isAdditive)
{
- return std::make_unique<SVGAnimatedNumberPairAnimator>(attributeName, animated1, animated2, animationMode, calcMode, isAccumulated, isAdditive);
+ return makeUnique<SVGAnimatedNumberPairAnimator>(attributeName, animated1, animated2, animationMode, calcMode, isAccumulated, isAdditive);
}
private:
diff --git a/Source/WebCore/svg/properties/SVGDecoratedEnumeration.h b/Source/WebCore/svg/properties/SVGDecoratedEnumeration.h
index 264c36b..a35e250 100644
--- a/Source/WebCore/svg/properties/SVGDecoratedEnumeration.h
+++ b/Source/WebCore/svg/properties/SVGDecoratedEnumeration.h
@@ -39,7 +39,7 @@
static auto create(const EnumType& value)
{
static_assert(std::is_integral<DecorationType>::value, "DecorationType form enum should be integral.");
- return std::make_unique<SVGDecoratedEnumeration>(value);
+ return makeUnique<SVGDecoratedEnumeration>(value);
}
private:
diff --git a/Source/WebCore/svg/properties/SVGPrimitivePropertyAnimator.h b/Source/WebCore/svg/properties/SVGPrimitivePropertyAnimator.h
index 4121722..68b2e0b 100644
--- a/Source/WebCore/svg/properties/SVGPrimitivePropertyAnimator.h
+++ b/Source/WebCore/svg/properties/SVGPrimitivePropertyAnimator.h
@@ -44,7 +44,7 @@
public:
static auto create(const QualifiedName& attributeName, Ref<SVGProperty>&& property, AnimationMode animationMode, CalcMode calcMode, bool isAccumulated, bool isAdditive)
{
- return std::make_unique<SVGPrimitivePropertyAnimator>(attributeName, WTFMove(property), animationMode, calcMode, isAccumulated, isAdditive);
+ return makeUnique<SVGPrimitivePropertyAnimator>(attributeName, WTFMove(property), animationMode, calcMode, isAccumulated, isAdditive);
}
template<typename... Arguments>
diff --git a/Source/WebCore/svg/properties/SVGValuePropertyAnimatorImpl.h b/Source/WebCore/svg/properties/SVGValuePropertyAnimatorImpl.h
index 118886c..fd3dc96 100644
--- a/Source/WebCore/svg/properties/SVGValuePropertyAnimatorImpl.h
+++ b/Source/WebCore/svg/properties/SVGValuePropertyAnimatorImpl.h
@@ -39,7 +39,7 @@
public:
static auto create(const QualifiedName& attributeName, Ref<SVGProperty>&& property, AnimationMode animationMode, CalcMode calcMode, bool isAccumulated, bool isAdditive)
{
- return std::make_unique<SVGLengthAnimator>(attributeName, WTFMove(property), animationMode, calcMode, isAccumulated, isAdditive, LengthModeOther);
+ return makeUnique<SVGLengthAnimator>(attributeName, WTFMove(property), animationMode, calcMode, isAccumulated, isAdditive, LengthModeOther);
}
void start(SVGElement* targetElement) override
diff --git a/Source/WebCore/svg/properties/SVGValuePropertyListAnimatorImpl.h b/Source/WebCore/svg/properties/SVGValuePropertyListAnimatorImpl.h
index 5ee8ac3..ae94e29 100644
--- a/Source/WebCore/svg/properties/SVGValuePropertyListAnimatorImpl.h
+++ b/Source/WebCore/svg/properties/SVGValuePropertyListAnimatorImpl.h
@@ -39,7 +39,7 @@
public:
static auto create(const QualifiedName& attributeName, Ref<SVGProperty>&& property, AnimationMode animationMode, CalcMode calcMode, bool isAccumulated, bool isAdditive)
{
- return std::make_unique<SVGLengthListAnimator>(attributeName, WTFMove(property), animationMode, calcMode, isAccumulated, isAdditive, LengthModeOther);
+ return makeUnique<SVGLengthListAnimator>(attributeName, WTFMove(property), animationMode, calcMode, isAccumulated, isAdditive, LengthModeOther);
}
void start(SVGElement* targetElement) override
diff --git a/Source/WebCore/testing/InternalSettings.cpp b/Source/WebCore/testing/InternalSettings.cpp
index 558258d..243789b 100644
--- a/Source/WebCore/testing/InternalSettings.cpp
+++ b/Source/WebCore/testing/InternalSettings.cpp
@@ -253,7 +253,7 @@
InternalSettings* InternalSettings::from(Page* page)
{
if (!Supplement<Page>::from(page, supplementName()))
- Supplement<Page>::provideTo(page, supplementName(), std::make_unique<InternalSettingsWrapper>(page));
+ Supplement<Page>::provideTo(page, supplementName(), makeUnique<InternalSettingsWrapper>(page));
return static_cast<InternalSettingsWrapper*>(Supplement<Page>::from(page, supplementName()))->internalSettings();
}
diff --git a/Source/WebCore/testing/Internals.cpp b/Source/WebCore/testing/Internals.cpp
index 243b76f..36e7d69 100644
--- a/Source/WebCore/testing/Internals.cpp
+++ b/Source/WebCore/testing/Internals.cpp
@@ -341,7 +341,7 @@
};
InspectorStubFrontend::InspectorStubFrontend(Page& inspectedPage, RefPtr<DOMWindow>&& frontendWindow)
- : InspectorFrontendClientLocal(&inspectedPage.inspectorController(), frontendWindow->document()->page(), std::make_unique<InspectorFrontendClientLocal::Settings>())
+ : InspectorFrontendClientLocal(&inspectedPage.inspectorController(), frontendWindow->document()->page(), makeUnique<InspectorFrontendClientLocal::Settings>())
, m_frontendWindow(frontendWindow.copyRef())
{
ASSERT_ARG(frontendWindow, frontendWindow);
@@ -567,7 +567,7 @@
auto* frame = document.frame();
if (frame && frame->page() && frame->isMainFrame()) {
auto mockPaymentCoordinator = new MockPaymentCoordinator(*frame->page());
- frame->page()->setPaymentCoordinator(std::make_unique<PaymentCoordinator>(*mockPaymentCoordinator));
+ frame->page()->setPaymentCoordinator(makeUnique<PaymentCoordinator>(*mockPaymentCoordinator));
}
#endif
}
@@ -1417,7 +1417,7 @@
if (!synthesis)
return;
- synthesis->setPlatformSynthesizer(std::make_unique<PlatformSpeechSynthesizerMock>(synthesis));
+ synthesis->setPlatformSynthesizer(makeUnique<PlatformSpeechSynthesizerMock>(synthesis));
}
#endif
@@ -2487,7 +2487,7 @@
auto* inspectedPage = contextDocument()->frame()->page();
auto* window = inspectedPage->mainFrame().document()->domWindow();
auto frontendWindowProxy = window->open(*window, *window, url, "", "").releaseReturnValue();
- m_inspectorFrontend = std::make_unique<InspectorStubFrontend>(*inspectedPage, downcast<DOMWindow>(frontendWindowProxy->window()));
+ m_inspectorFrontend = makeUnique<InspectorStubFrontend>(*inspectedPage, downcast<DOMWindow>(frontendWindowProxy->window()));
return frontendWindowProxy;
}
@@ -3007,7 +3007,7 @@
void Internals::setPrinting(int width, int height)
{
- printContextForTesting() = std::make_unique<PrintContext>(frame());
+ printContextForTesting() = makeUnique<PrintContext>(frame());
printContextForTesting()->begin(width, height);
}
@@ -3446,7 +3446,7 @@
void Internals::initializeMockCDM()
{
- LegacyCDM::registerCDMFactory([] (LegacyCDM* cdm) { return std::make_unique<LegacyMockCDM>(cdm); },
+ LegacyCDM::registerCDMFactory([] (LegacyCDM* cdm) { return makeUnique<LegacyMockCDM>(cdm); },
LegacyMockCDM::supportsKeySystem, LegacyMockCDM::supportsKeySystemAndMimeType);
}
@@ -4239,7 +4239,7 @@
if (!document)
return;
- auto microtask = std::make_unique<ActiveDOMCallbackMicrotask>(MicrotaskQueue::mainThreadQueue(), *document, [document, testNumber]() {
+ auto microtask = makeUnique<ActiveDOMCallbackMicrotask>(MicrotaskQueue::mainThreadQueue(), *document, [document, testNumber]() {
document->addConsoleMessage(MessageSource::JS, MessageLevel::Debug, makeString("MicroTask #", testNumber, " has run."));
});
diff --git a/Source/WebCore/testing/LegacyMockCDM.cpp b/Source/WebCore/testing/LegacyMockCDM.cpp
index 3cd1281..60272d3 100644
--- a/Source/WebCore/testing/LegacyMockCDM.cpp
+++ b/Source/WebCore/testing/LegacyMockCDM.cpp
@@ -74,7 +74,7 @@
std::unique_ptr<LegacyCDMSession> LegacyMockCDM::createSession(LegacyCDMSessionClient* client)
{
- return std::make_unique<MockCDMSession>(client);
+ return makeUnique<MockCDMSession>(client);
}
static Uint8Array* initDataPrefix()
diff --git a/Source/WebCore/testing/MockCDMFactory.cpp b/Source/WebCore/testing/MockCDMFactory.cpp
index 56796ee..ce5d8f7d 100644
--- a/Source/WebCore/testing/MockCDMFactory.cpp
+++ b/Source/WebCore/testing/MockCDMFactory.cpp
@@ -100,7 +100,7 @@
std::unique_ptr<CDMPrivate> MockCDMFactory::createCDM(const String&)
{
- return std::make_unique<MockCDM>(makeWeakPtr(*this));
+ return makeUnique<MockCDM>(makeWeakPtr(*this));
}
MockCDM::MockCDM(WeakPtr<MockCDMFactory> factory)
diff --git a/Source/WebCore/testing/MockContentFilter.cpp b/Source/WebCore/testing/MockContentFilter.cpp
index 51181da..778a918 100644
--- a/Source/WebCore/testing/MockContentFilter.cpp
+++ b/Source/WebCore/testing/MockContentFilter.cpp
@@ -64,7 +64,7 @@
std::unique_ptr<MockContentFilter> MockContentFilter::create()
{
- return std::make_unique<MockContentFilter>();
+ return makeUnique<MockContentFilter>();
}
void MockContentFilter::willSendRequest(ResourceRequest& request, const ResourceResponse& redirectResponse)
diff --git a/Source/WebCore/testing/MockGamepadProvider.cpp b/Source/WebCore/testing/MockGamepadProvider.cpp
index d3ac5d8..d40ded1 100644
--- a/Source/WebCore/testing/MockGamepadProvider.cpp
+++ b/Source/WebCore/testing/MockGamepadProvider.cpp
@@ -63,7 +63,7 @@
if (m_mockGamepadVector[index])
m_mockGamepadVector[index]->updateDetails(gamepadID, axisCount, buttonCount);
else
- m_mockGamepadVector[index] = std::make_unique<MockGamepad>(index, gamepadID, axisCount, buttonCount);
+ m_mockGamepadVector[index] = makeUnique<MockGamepad>(index, gamepadID, axisCount, buttonCount);
}
bool MockGamepadProvider::connectMockGamepad(unsigned index)
diff --git a/Source/WebCore/workers/WorkerConsoleClient.cpp b/Source/WebCore/workers/WorkerConsoleClient.cpp
index dbe9073..8f1647c 100644
--- a/Source/WebCore/workers/WorkerConsoleClient.cpp
+++ b/Source/WebCore/workers/WorkerConsoleClient.cpp
@@ -46,7 +46,7 @@
{
String messageText;
arguments->getFirstArgumentAsString(messageText);
- auto message = std::make_unique<Inspector::ConsoleMessage>(MessageSource::ConsoleAPI, type, level, messageText, WTFMove(arguments), exec);
+ auto message = makeUnique<Inspector::ConsoleMessage>(MessageSource::ConsoleAPI, type, level, messageText, WTFMove(arguments), exec);
m_workerGlobalScope.addConsoleMessage(WTFMove(message));
}
diff --git a/Source/WebCore/workers/WorkerEventQueue.cpp b/Source/WebCore/workers/WorkerEventQueue.cpp
index 9267e87..6903be5 100644
--- a/Source/WebCore/workers/WorkerEventQueue.cpp
+++ b/Source/WebCore/workers/WorkerEventQueue.cpp
@@ -85,7 +85,7 @@
return false;
auto* eventPtr = event.ptr();
- auto eventDispatcher = std::make_unique<EventDispatcher>(WTFMove(event), *this);
+ auto eventDispatcher = makeUnique<EventDispatcher>(WTFMove(event), *this);
m_eventDispatcherMap.add(eventPtr, eventDispatcher.get());
m_scriptExecutionContext.postTask([eventDispatcher = WTFMove(eventDispatcher)] (ScriptExecutionContext&) {
eventDispatcher->dispatch();
diff --git a/Source/WebCore/workers/WorkerGlobalScope.cpp b/Source/WebCore/workers/WorkerGlobalScope.cpp
index 7ba6edb..b17d663 100644
--- a/Source/WebCore/workers/WorkerGlobalScope.cpp
+++ b/Source/WebCore/workers/WorkerGlobalScope.cpp
@@ -62,9 +62,9 @@
, m_identifier(identifier)
, m_userAgent(userAgent)
, m_thread(thread)
- , m_script(std::make_unique<WorkerScriptController>(this))
- , m_inspectorController(std::make_unique<WorkerInspectorController>(*this))
- , m_microtaskQueue(std::make_unique<MicrotaskQueue>(m_script->vm()))
+ , m_script(makeUnique<WorkerScriptController>(this))
+ , m_inspectorController(makeUnique<WorkerInspectorController>(*this))
+ , m_microtaskQueue(makeUnique<MicrotaskQueue>(m_script->vm()))
, m_isOnline(isOnline)
, m_shouldBypassMainWorldContentSecurityPolicy(shouldBypassMainWorldContentSecurityPolicy)
, m_eventQueue(*this)
@@ -86,7 +86,7 @@
origin->grantStorageAccessFromFileURLsQuirk();
setSecurityOriginPolicy(SecurityOriginPolicy::create(WTFMove(origin)));
- setContentSecurityPolicy(std::make_unique<ContentSecurityPolicy>(URL { m_url }, *this));
+ setContentSecurityPolicy(makeUnique<ContentSecurityPolicy>(URL { m_url }, *this));
}
WorkerGlobalScope::~WorkerGlobalScope()
@@ -362,9 +362,9 @@
std::unique_ptr<Inspector::ConsoleMessage> message;
if (callStack)
- message = std::make_unique<Inspector::ConsoleMessage>(source, MessageType::Log, level, messageText, callStack.releaseNonNull(), requestIdentifier);
+ message = makeUnique<Inspector::ConsoleMessage>(source, MessageType::Log, level, messageText, callStack.releaseNonNull(), requestIdentifier);
else
- message = std::make_unique<Inspector::ConsoleMessage>(source, MessageType::Log, level, messageText, sourceURL, lineNumber, columnNumber, state, requestIdentifier);
+ message = makeUnique<Inspector::ConsoleMessage>(source, MessageType::Log, level, messageText, sourceURL, lineNumber, columnNumber, state, requestIdentifier);
InspectorInstrumentation::addMessageToConsole(*this, WTFMove(message));
}
diff --git a/Source/WebCore/workers/WorkerMessagingProxy.cpp b/Source/WebCore/workers/WorkerMessagingProxy.cpp
index a75c015..4e9f519 100644
--- a/Source/WebCore/workers/WorkerMessagingProxy.cpp
+++ b/Source/WebCore/workers/WorkerMessagingProxy.cpp
@@ -55,7 +55,7 @@
WorkerMessagingProxy::WorkerMessagingProxy(Worker& workerObject)
: m_scriptExecutionContext(workerObject.scriptExecutionContext())
- , m_inspectorProxy(std::make_unique<WorkerInspectorProxy>(workerObject.identifier()))
+ , m_inspectorProxy(makeUnique<WorkerInspectorProxy>(workerObject.identifier()))
, m_workerObject(&workerObject)
{
ASSERT((is<Document>(*m_scriptExecutionContext) && isMainThread())
@@ -125,7 +125,7 @@
++m_unconfirmedMessageCount;
m_workerThread->runLoop().postTask(WTFMove(task));
} else
- m_queuedEarlyTasks.append(std::make_unique<ScriptExecutionContext::Task>(WTFMove(task)));
+ m_queuedEarlyTasks.append(makeUnique<ScriptExecutionContext::Task>(WTFMove(task)));
}
void WorkerMessagingProxy::postTaskToLoader(ScriptExecutionContext::Task&& task)
diff --git a/Source/WebCore/workers/WorkerRunLoop.cpp b/Source/WebCore/workers/WorkerRunLoop.cpp
index bcd94e6..bfac959 100644
--- a/Source/WebCore/workers/WorkerRunLoop.cpp
+++ b/Source/WebCore/workers/WorkerRunLoop.cpp
@@ -86,7 +86,7 @@
};
WorkerRunLoop::WorkerRunLoop()
- : m_sharedTimer(std::make_unique<WorkerSharedTimer>())
+ : m_sharedTimer(makeUnique<WorkerSharedTimer>())
{
}
@@ -250,12 +250,12 @@
void WorkerRunLoop::postTaskAndTerminate(ScriptExecutionContext::Task&& task)
{
- m_messageQueue.appendAndKill(std::make_unique<Task>(WTFMove(task), defaultMode()));
+ m_messageQueue.appendAndKill(makeUnique<Task>(WTFMove(task), defaultMode()));
}
void WorkerRunLoop::postTaskForMode(ScriptExecutionContext::Task&& task, const String& mode)
{
- m_messageQueue.append(std::make_unique<Task>(WTFMove(task), mode));
+ m_messageQueue.append(makeUnique<Task>(WTFMove(task), mode));
}
void WorkerRunLoop::postDebuggerTask(ScriptExecutionContext::Task&& task)
diff --git a/Source/WebCore/workers/WorkerScriptLoader.cpp b/Source/WebCore/workers/WorkerScriptLoader.cpp
index 19912f0..228f3d1 100644
--- a/Source/WebCore/workers/WorkerScriptLoader.cpp
+++ b/Source/WebCore/workers/WorkerScriptLoader.cpp
@@ -115,7 +115,7 @@
ASSERT(scriptRequest.httpMethod() == "GET");
- auto request = std::make_unique<ResourceRequest>(WTFMove(scriptRequest));
+ auto request = makeUnique<ResourceRequest>(WTFMove(scriptRequest));
if (!request)
return;
@@ -147,7 +147,7 @@
std::unique_ptr<ResourceRequest> WorkerScriptLoader::createResourceRequest(const String& initiatorIdentifier)
{
- auto request = std::make_unique<ResourceRequest>(m_url);
+ auto request = makeUnique<ResourceRequest>(m_url);
request->setHTTPMethod("GET"_s);
request->setInitiatorIdentifier(initiatorIdentifier);
return request;
diff --git a/Source/WebCore/workers/WorkerThread.cpp b/Source/WebCore/workers/WorkerThread.cpp
index 1f75618..3c3858b 100644
--- a/Source/WebCore/workers/WorkerThread.cpp
+++ b/Source/WebCore/workers/WorkerThread.cpp
@@ -114,7 +114,7 @@
, m_workerDebuggerProxy(workerDebuggerProxy)
, m_workerReportingProxy(workerReportingProxy)
, m_runtimeFlags(runtimeFlags)
- , m_startupData(std::make_unique<WorkerThreadStartupData>(scriptURL, name, identifier, userAgent, isOnline, sourceCode, startMode, contentSecurityPolicyResponseHeaders, shouldBypassMainWorldContentSecurityPolicy, topOrigin, timeOrigin, sessionID))
+ , m_startupData(makeUnique<WorkerThreadStartupData>(scriptURL, name, identifier, userAgent, isOnline, sourceCode, startMode, contentSecurityPolicyResponseHeaders, shouldBypassMainWorldContentSecurityPolicy, topOrigin, timeOrigin, sessionID))
#if ENABLE(INDEXED_DATABASE)
, m_idbConnectionProxy(connectionProxy)
#endif
diff --git a/Source/WebCore/workers/service/ServiceWorkerContainer.cpp b/Source/WebCore/workers/service/ServiceWorkerContainer.cpp
index b2d2615..59c71c4 100644
--- a/Source/WebCore/workers/service/ServiceWorkerContainer.cpp
+++ b/Source/WebCore/workers/service/ServiceWorkerContainer.cpp
@@ -88,7 +88,7 @@
auto ServiceWorkerContainer::ready() -> ReadyPromise&
{
if (!m_readyPromise) {
- m_readyPromise = std::make_unique<ReadyPromise>();
+ m_readyPromise = makeUnique<ReadyPromise>();
if (m_isStopped || !scriptExecutionContext()->sessionID().isValid())
return *m_readyPromise;
@@ -180,7 +180,7 @@
jobData.type = ServiceWorkerJobType::Register;
jobData.registrationOptions = options;
- scheduleJob(std::make_unique<ServiceWorkerJob>(*this, WTFMove(promise), WTFMove(jobData)));
+ scheduleJob(makeUnique<ServiceWorkerJob>(*this, WTFMove(promise), WTFMove(jobData)));
}
void ServiceWorkerContainer::removeRegistration(const URL& scopeURL, Ref<DeferredPromise>&& promise)
@@ -206,7 +206,7 @@
CONTAINER_RELEASE_LOG_IF_ALLOWED("removeRegistration: Unregistering service worker. Job ID: %" PRIu64, jobData.identifier().jobIdentifier.toUInt64());
- scheduleJob(std::make_unique<ServiceWorkerJob>(*this, WTFMove(promise), WTFMove(jobData)));
+ scheduleJob(makeUnique<ServiceWorkerJob>(*this, WTFMove(promise), WTFMove(jobData)));
}
void ServiceWorkerContainer::updateRegistration(const URL& scopeURL, const URL& scriptURL, WorkerType, RefPtr<DeferredPromise>&& promise)
@@ -232,7 +232,7 @@
CONTAINER_RELEASE_LOG_IF_ALLOWED("removeRegistration: Updating service worker. Job ID: %" PRIu64, jobData.identifier().jobIdentifier.toUInt64());
- scheduleJob(std::make_unique<ServiceWorkerJob>(*this, WTFMove(promise), WTFMove(jobData)));
+ scheduleJob(makeUnique<ServiceWorkerJob>(*this, WTFMove(promise), WTFMove(jobData)));
}
void ServiceWorkerContainer::scheduleJob(std::unique_ptr<ServiceWorkerJob>&& job)
@@ -269,7 +269,7 @@
}
uint64_t pendingPromiseIdentifier = ++m_lastPendingPromiseIdentifier;
- auto pendingPromise = std::make_unique<PendingPromise>(WTFMove(promise), makePendingActivity(*this));
+ auto pendingPromise = makeUnique<PendingPromise>(WTFMove(promise), makePendingActivity(*this));
m_pendingPromises.add(pendingPromiseIdentifier, WTFMove(pendingPromise));
auto contextIdentifier = this->contextIdentifier();
@@ -334,7 +334,7 @@
}
uint64_t pendingPromiseIdentifier = ++m_lastPendingPromiseIdentifier;
- auto pendingPromise = std::make_unique<PendingPromise>(WTFMove(promise), makePendingActivity(*this));
+ auto pendingPromise = makeUnique<PendingPromise>(WTFMove(promise), makePendingActivity(*this));
m_pendingPromises.add(pendingPromiseIdentifier, WTFMove(pendingPromise));
auto contextIdentifier = this->contextIdentifier();
diff --git a/Source/WebCore/workers/service/context/SWContextManager.cpp b/Source/WebCore/workers/service/context/SWContextManager.cpp
index edbc8f9..cb5c221 100644
--- a/Source/WebCore/workers/service/context/SWContextManager.cpp
+++ b/Source/WebCore/workers/service/context/SWContextManager.cpp
@@ -115,7 +115,7 @@
serviceWorker->setAsTerminatingOrTerminated();
- m_pendingServiceWorkerTerminationRequests.add(identifier, std::make_unique<ServiceWorkerTerminationRequest>(*this, identifier, timeout));
+ m_pendingServiceWorkerTerminationRequests.add(identifier, makeUnique<ServiceWorkerTerminationRequest>(*this, identifier, timeout));
auto& thread = serviceWorker->thread();
thread.stop([this, identifier, serviceWorker = WTFMove(serviceWorker), completionHandler = WTFMove(completionHandler)]() mutable {
diff --git a/Source/WebCore/workers/service/context/ServiceWorkerThreadProxy.cpp b/Source/WebCore/workers/service/context/ServiceWorkerThreadProxy.cpp
index c617361..9e728c3 100644
--- a/Source/WebCore/workers/service/context/ServiceWorkerThreadProxy.cpp
+++ b/Source/WebCore/workers/service/context/ServiceWorkerThreadProxy.cpp
@@ -114,7 +114,7 @@
allServiceWorkerThreadProxies().add(this);
#if ENABLE(REMOTE_INSPECTOR)
- m_remoteDebuggable = std::make_unique<ServiceWorkerDebuggable>(*this, data);
+ m_remoteDebuggable = makeUnique<ServiceWorkerDebuggable>(*this, data);
m_remoteDebuggable->setRemoteDebuggingAllowed(true);
m_remoteDebuggable->init();
#endif
@@ -168,7 +168,7 @@
std::unique_ptr<FetchLoader> ServiceWorkerThreadProxy::createBlobLoader(FetchLoaderClient& client, const URL& blobURL)
{
- auto loader = std::make_unique<FetchLoader>(client, nullptr);
+ auto loader = makeUnique<FetchLoader>(client, nullptr);
loader->startLoadingBlobURL(m_document, blobURL);
if (!loader->isStarted())
return nullptr;
diff --git a/Source/WebCore/workers/service/server/RegistrationDatabase.cpp b/Source/WebCore/workers/service/server/RegistrationDatabase.cpp
index 1dd3413..92cba08 100644
--- a/Source/WebCore/workers/service/server/RegistrationDatabase.cpp
+++ b/Source/WebCore/workers/service/server/RegistrationDatabase.cpp
@@ -152,7 +152,7 @@
SQLiteFileSystem::ensureDatabaseDirectoryExists(m_databaseDirectory);
- m_database = std::make_unique<SQLiteDatabase>();
+ m_database = makeUnique<SQLiteDatabase>();
if (!m_database->open(fullFilename)) {
errorMessage = "Failed to open registration database";
return;
diff --git a/Source/WebCore/workers/service/server/SWServer.cpp b/Source/WebCore/workers/service/server/SWServer.cpp
index fe5cc85..9326a3b 100644
--- a/Source/WebCore/workers/service/server/SWServer.cpp
+++ b/Source/WebCore/workers/service/server/SWServer.cpp
@@ -144,7 +144,7 @@
// Pages should not have been able to make a new registration to this key while the import was still taking place.
ASSERT(!m_registrations.contains(data.registration.key));
- auto registration = std::make_unique<SWServerRegistration>(*this, data.registration.key, data.registration.updateViaCache, data.registration.scopeURL, data.scriptURL);
+ auto registration = makeUnique<SWServerRegistration>(*this, data.registration.key, data.registration.updateViaCache, data.registration.scopeURL, data.scriptURL);
registration->setLastUpdateTime(data.registration.lastUpdateTime);
auto registrationPtr = registration.get();
addRegistration(WTFMove(registration));
@@ -304,7 +304,7 @@
{
ASSERT(!registrationDatabaseDirectory.isEmpty() || m_sessionID.isEphemeral());
if (!m_sessionID.isEphemeral())
- m_registrationStore = std::make_unique<RegistrationStore>(*this, WTFMove(registrationDatabaseDirectory));
+ m_registrationStore = makeUnique<RegistrationStore>(*this, WTFMove(registrationDatabaseDirectory));
else
registrationStoreImportComplete();
@@ -321,7 +321,7 @@
// If it is, stack it along with that job.
auto& jobQueue = *m_jobQueues.ensure(jobData.registrationKey(), [this, &jobData] {
- return std::make_unique<SWServerJobQueue>(*this, jobData.registrationKey());
+ return makeUnique<SWServerJobQueue>(*this, jobData.registrationKey());
}).iterator->value;
jobQueue.enqueueJob(jobData);
@@ -820,7 +820,7 @@
if (clientIdentifiers.isEmpty()) {
ASSERT(!iterator->value.terminateServiceWorkersTimer);
- iterator->value.terminateServiceWorkersTimer = std::make_unique<Timer>([clientOrigin, clientRegistrableDomain, this] {
+ iterator->value.terminateServiceWorkersTimer = makeUnique<Timer>([clientOrigin, clientRegistrableDomain, this] {
Vector<SWServerWorker*> workersToTerminate;
for (auto& worker : m_runningOrTerminatingWorkers.values()) {
if (worker->isRunning() && worker->origin() == clientOrigin)
diff --git a/Source/WebCore/workers/service/server/SWServerJobQueue.cpp b/Source/WebCore/workers/service/server/SWServerJobQueue.cpp
index 8b68b70..dcaf5a8 100644
--- a/Source/WebCore/workers/service/server/SWServerJobQueue.cpp
+++ b/Source/WebCore/workers/service/server/SWServerJobQueue.cpp
@@ -286,7 +286,7 @@
registration->setUpdateViaCache(job.registrationOptions.updateViaCache);
RELEASE_LOG(ServiceWorker, "%p - SWServerJobQueue::runRegisterJob: Found registration %llu for job %s but it needs updating", this, registration->identifier().toUInt64(), job.identifier().loggingString().utf8().data());
} else {
- auto newRegistration = std::make_unique<SWServerRegistration>(m_server, m_registrationKey, job.registrationOptions.updateViaCache, job.scopeURL, job.scriptURL);
+ auto newRegistration = makeUnique<SWServerRegistration>(m_server, m_registrationKey, job.registrationOptions.updateViaCache, job.scopeURL, job.scriptURL);
m_server.addRegistration(WTFMove(newRegistration));
RELEASE_LOG(ServiceWorker, "%p - SWServerJobQueue::runRegisterJob: No existing registration for job %s, constructing a new one.", this, job.identifier().loggingString().utf8().data());
diff --git a/Source/WebCore/worklets/PaintWorkletGlobalScope.cpp b/Source/WebCore/worklets/PaintWorkletGlobalScope.cpp
index 2b7a2fe..3be757e 100644
--- a/Source/WebCore/worklets/PaintWorkletGlobalScope.cpp
+++ b/Source/WebCore/worklets/PaintWorkletGlobalScope.cpp
@@ -135,7 +135,7 @@
RefPtr<JSCSSPaintCallback> paint = convert<IDLCallbackFunction<JSCSSPaintCallback>>(state, paintValue, globalObject);
RETURN_IF_EXCEPTION(scope, Exception { ExistingExceptionError });
- auto paintDefinition = std::make_unique<PaintDefinition>(name, paintConstructor.get(), paint.releaseNonNull(), WTFMove(inputProperties), WTFMove(inputArguments));
+ auto paintDefinition = makeUnique<PaintDefinition>(name, paintConstructor.get(), paint.releaseNonNull(), WTFMove(inputProperties), WTFMove(inputArguments));
paintDefinitionMap().add(name, WTFMove(paintDefinition));
}
diff --git a/Source/WebCore/worklets/WorkletConsoleClient.cpp b/Source/WebCore/worklets/WorkletConsoleClient.cpp
index 8e8a2a4..3f09256 100644
--- a/Source/WebCore/worklets/WorkletConsoleClient.cpp
+++ b/Source/WebCore/worklets/WorkletConsoleClient.cpp
@@ -48,7 +48,7 @@
{
String messageText;
arguments->getFirstArgumentAsString(messageText);
- auto message = std::make_unique<Inspector::ConsoleMessage>(MessageSource::ConsoleAPI, type, level, messageText, WTFMove(arguments), exec);
+ auto message = makeUnique<Inspector::ConsoleMessage>(MessageSource::ConsoleAPI, type, level, messageText, WTFMove(arguments), exec);
m_workletGlobalScope.addConsoleMessage(WTFMove(message));
}
diff --git a/Source/WebCore/worklets/WorkletGlobalScope.cpp b/Source/WebCore/worklets/WorkletGlobalScope.cpp
index 4bb788e..cef82f7 100644
--- a/Source/WebCore/worklets/WorkletGlobalScope.cpp
+++ b/Source/WebCore/worklets/WorkletGlobalScope.cpp
@@ -49,7 +49,7 @@
WorkletGlobalScope::WorkletGlobalScope(Document& document, ScriptSourceCode&& code)
: m_document(makeWeakPtr(document))
, m_sessionID(m_document->sessionID())
- , m_script(std::make_unique<WorkletScriptController>(this))
+ , m_script(makeUnique<WorkletScriptController>(this))
, m_topOrigin(SecurityOrigin::createUnique())
, m_eventQueue(*this)
, m_code(WTFMove(code))
@@ -62,7 +62,7 @@
ASSERT(document.page());
setSecurityOriginPolicy(SecurityOriginPolicy::create(m_topOrigin.copyRef()));
- setContentSecurityPolicy(std::make_unique<ContentSecurityPolicy>(URL { m_code.url() }, *this));
+ setContentSecurityPolicy(makeUnique<ContentSecurityPolicy>(URL { m_code.url() }, *this));
}
WorkletGlobalScope::~WorkletGlobalScope()
@@ -140,7 +140,7 @@
{
if (!m_document || isJSExecutionForbidden() || !message)
return;
- m_document->addConsoleMessage(std::make_unique<Inspector::ConsoleMessage>(message->source(), message->type(), message->level(), message->message(), 0));
+ m_document->addConsoleMessage(makeUnique<Inspector::ConsoleMessage>(message->source(), message->type(), message->level(), message->message(), 0));
}
void WorkletGlobalScope::addConsoleMessage(MessageSource source, MessageLevel level, const String& message, unsigned long requestIdentifier)
diff --git a/Source/WebCore/worklets/WorkletScriptController.cpp b/Source/WebCore/worklets/WorkletScriptController.cpp
index 1cee9eb..7133900 100644
--- a/Source/WebCore/worklets/WorkletScriptController.cpp
+++ b/Source/WebCore/worklets/WorkletScriptController.cpp
@@ -136,7 +136,7 @@
ASSERT(m_workletGlobalScopeWrapper->globalObject() == m_workletGlobalScopeWrapper);
ASSERT(asObject(m_workletGlobalScopeWrapper->getPrototypeDirect(*m_vm))->globalObject() == m_workletGlobalScopeWrapper);
- m_consoleClient = std::make_unique<WorkletConsoleClient>(*m_workletGlobalScope);
+ m_consoleClient = makeUnique<WorkletConsoleClient>(*m_workletGlobalScope);
m_workletGlobalScopeWrapper->setConsoleClient(m_consoleClient.get());
}
diff --git a/Source/WebCore/xml/XMLHttpRequest.cpp b/Source/WebCore/xml/XMLHttpRequest.cpp
index cd61322..0529344 100644
--- a/Source/WebCore/xml/XMLHttpRequest.cpp
+++ b/Source/WebCore/xml/XMLHttpRequest.cpp
@@ -275,7 +275,7 @@
XMLHttpRequestUpload& XMLHttpRequest::upload()
{
if (!m_upload)
- m_upload = std::make_unique<XMLHttpRequestUpload>(*this);
+ m_upload = makeUnique<XMLHttpRequestUpload>(*this);
return *m_upload;
}
diff --git a/Source/WebCore/xml/XPathFunctions.cpp b/Source/WebCore/xml/XPathFunctions.cpp
index ad7e13c..a924409 100644
--- a/Source/WebCore/xml/XPathFunctions.cpp
+++ b/Source/WebCore/xml/XPathFunctions.cpp
@@ -45,7 +45,7 @@
return c == ' ' || c == '\n' || c == '\r' || c == '\t';
}
-#define DEFINE_FUNCTION_CREATOR(Suffix) static std::unique_ptr<Function> createFunction##Suffix() { return std::make_unique<Fun##Suffix>(); }
+#define DEFINE_FUNCTION_CREATOR(Suffix) static std::unique_ptr<Function> createFunction##Suffix() { return makeUnique<Fun##Suffix>(); }
class Interval {
public:
diff --git a/Source/WebCore/xml/XPathPredicate.cpp b/Source/WebCore/xml/XPathPredicate.cpp
index 04615c3..c1bbc54 100644
--- a/Source/WebCore/xml/XPathPredicate.cpp
+++ b/Source/WebCore/xml/XPathPredicate.cpp
@@ -263,7 +263,7 @@
// foo[3] means foo[position()=3]
if (result.isNumber())
- return EqTestOp(EqTestOp::OP_EQ, Function::create("position"_s), std::make_unique<Number>(result.toNumber())).evaluate().toBoolean();
+ return EqTestOp(EqTestOp::OP_EQ, Function::create("position"_s), makeUnique<Number>(result.toNumber())).evaluate().toBoolean();
return result.toBoolean();
}
diff --git a/Source/WebCore/xml/XSLStyleSheetLibxslt.cpp b/Source/WebCore/xml/XSLStyleSheetLibxslt.cpp
index ec2c6ae..6304e92 100644
--- a/Source/WebCore/xml/XSLStyleSheetLibxslt.cpp
+++ b/Source/WebCore/xml/XSLStyleSheetLibxslt.cpp
@@ -231,7 +231,7 @@
void XSLStyleSheet::loadChildSheet(const String& href)
{
- auto childRule = std::make_unique<XSLImportRule>(this, href);
+ auto childRule = makeUnique<XSLImportRule>(this, href);
m_children.append(childRule.release());
m_children.last()->loadSheet();
}
diff --git a/Source/WebCore/xml/parser/XMLDocumentParser.cpp b/Source/WebCore/xml/parser/XMLDocumentParser.cpp
index e024efb..7048892 100644
--- a/Source/WebCore/xml/parser/XMLDocumentParser.cpp
+++ b/Source/WebCore/xml/parser/XMLDocumentParser.cpp
@@ -128,7 +128,7 @@
void XMLDocumentParser::handleError(XMLErrors::ErrorType type, const char* m, TextPosition position)
{
if (!m_xmlErrors)
- m_xmlErrors = std::make_unique<XMLErrors>(*document());
+ m_xmlErrors = makeUnique<XMLErrors>(*document());
m_xmlErrors->handleError(type, m, position);
if (type != XMLErrors::warning)
m_sawError = true;
diff --git a/Source/WebCore/xml/parser/XMLDocumentParserLibxml2.cpp b/Source/WebCore/xml/parser/XMLDocumentParserLibxml2.cpp
index 1032007..b99b308 100644
--- a/Source/WebCore/xml/parser/XMLDocumentParserLibxml2.cpp
+++ b/Source/WebCore/xml/parser/XMLDocumentParserLibxml2.cpp
@@ -92,7 +92,7 @@
public:
void appendStartElementNSCallback(const xmlChar* xmlLocalName, const xmlChar* xmlPrefix, const xmlChar* xmlURI, int numNamespaces, const xmlChar** namespaces, int numAttributes, int numDefaulted, const xmlChar** attributes)
{
- auto callback = std::make_unique<PendingStartElementNSCallback>();
+ auto callback = makeUnique<PendingStartElementNSCallback>();
callback->xmlLocalName = xmlStrdup(xmlLocalName);
callback->xmlPrefix = xmlStrdup(xmlPrefix);
@@ -122,12 +122,12 @@
void appendEndElementNSCallback()
{
- m_callbacks.append(std::make_unique<PendingEndElementNSCallback>());
+ m_callbacks.append(makeUnique<PendingEndElementNSCallback>());
}
void appendCharactersCallback(const xmlChar* s, int len)
{
- auto callback = std::make_unique<PendingCharactersCallback>();
+ auto callback = makeUnique<PendingCharactersCallback>();
callback->s = xmlStrndup(s, len);
callback->len = len;
@@ -137,7 +137,7 @@
void appendProcessingInstructionCallback(const xmlChar* target, const xmlChar* data)
{
- auto callback = std::make_unique<PendingProcessingInstructionCallback>();
+ auto callback = makeUnique<PendingProcessingInstructionCallback>();
callback->target = xmlStrdup(target);
callback->data = xmlStrdup(data);
@@ -147,7 +147,7 @@
void appendCDATABlockCallback(const xmlChar* s, int len)
{
- auto callback = std::make_unique<PendingCDATABlockCallback>();
+ auto callback = makeUnique<PendingCDATABlockCallback>();
callback->s = xmlStrndup(s, len);
callback->len = len;
@@ -157,7 +157,7 @@
void appendCommentCallback(const xmlChar* s)
{
- auto callback = std::make_unique<PendingCommentCallback>();
+ auto callback = makeUnique<PendingCommentCallback>();
callback->s = xmlStrdup(s);
@@ -166,7 +166,7 @@
void appendInternalSubsetCallback(const xmlChar* name, const xmlChar* externalID, const xmlChar* systemID)
{
- auto callback = std::make_unique<PendingInternalSubsetCallback>();
+ auto callback = makeUnique<PendingInternalSubsetCallback>();
callback->name = xmlStrdup(name);
callback->externalID = xmlStrdup(externalID);
@@ -177,7 +177,7 @@
void appendErrorCallback(XMLErrors::ErrorType type, const xmlChar* message, OrdinalNumber lineNumber, OrdinalNumber columnNumber)
{
- auto callback = std::make_unique<PendingErrorCallback>();
+ auto callback = makeUnique<PendingErrorCallback>();
callback->message = xmlStrdup(message);
callback->type = type;
@@ -565,7 +565,7 @@
XMLDocumentParser::XMLDocumentParser(Document& document, FrameView* frameView)
: ScriptableDocumentParser(document)
, m_view(frameView)
- , m_pendingCallbacks(std::make_unique<PendingCallbacks>())
+ , m_pendingCallbacks(makeUnique<PendingCallbacks>())
, m_currentNode(&document)
, m_scriptStartPosition(TextPosition::belowRangePosition())
{
@@ -573,7 +573,7 @@
XMLDocumentParser::XMLDocumentParser(DocumentFragment& fragment, Element* parentElement, ParserContentPolicy parserContentPolicy)
: ScriptableDocumentParser(fragment.document(), parserContentPolicy)
- , m_pendingCallbacks(std::make_unique<PendingCallbacks>())
+ , m_pendingCallbacks(makeUnique<PendingCallbacks>())
, m_currentNode(&fragment)
, m_scriptStartPosition(TextPosition::belowRangePosition())
, m_parsingFragment(true)
@@ -1329,7 +1329,7 @@
xmlTreeViewer.transformDocumentToTreeView();
} else if (m_sawXSLTransform) {
xmlDocPtr doc = xmlDocPtrForString(document()->cachedResourceLoader(), m_originalSourceForTransform.toString(), document()->url().string());
- document()->setTransformSource(std::make_unique<TransformSource>(doc));
+ document()->setTransformSource(makeUnique<TransformSource>(doc));
document()->setParsing(false); // Make the document think it's done, so it will apply XSL stylesheets.
document()->applyPendingXSLTransformsNowIfScheduled();