clang -cc1 -cc1 -triple arm64-apple-ios26.2.0-simulator -O3 -Wundef-prefix=TARGET_OS_ -Werror=undef-prefix -Wdeprecated-objc-isa-usage -Werror=deprecated-objc-isa-usage -Werror=implicit-function-declaration -analyze -disable-free -clear-ast-before-backend -disable-llvm-verifier -discard-value-names -main-file-name UnifiedSource298.cpp -analyzer-checker=core -analyzer-checker=apiModeling -analyzer-checker=unix -analyzer-checker=osx -analyzer-checker=security.insecureAPI.decodeValueOfObjCType -analyzer-checker=deadcode -analyzer-checker=cplusplus -analyzer-checker=security.insecureAPI.UncheckedReturn -analyzer-checker=security.insecureAPI.getpw -analyzer-checker=security.insecureAPI.gets -analyzer-checker=security.insecureAPI.mktemp -analyzer-checker=security.insecureAPI.mkstemp -analyzer-checker=security.insecureAPI.vfork -analyzer-checker=nullability.NullPassedToNonnull -analyzer-checker=nullability.NullReturnedFromNonnull -analyzer-output plist -w -setup-static-analyzer -analyzer-config-compatibility-mode=true -mrelocation-model pic -pic-level 2 -mframe-pointer=non-leaf -ffp-contract=on -fno-rounding-math -target-sdk-version=26.2 -fdepfile-entry=/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator26.2.sdk/SDKSettings.json -fcompatibility-qualified-id-block-type-checking -fvisibility-inlines-hidden-static-local-var -fno-modulemap-allow-subdirectory-search -fdefine-target-os-macros -enable-tlsdesc -target-cpu apple-m1 -target-feature +v8.4a -target-feature +aes -target-feature +altnzcv -target-feature +ccdp -target-feature +ccpp -target-feature +complxnum -target-feature +crc -target-feature +dotprod -target-feature +flagm -target-feature +fp-armv8 -target-feature +fp16fml -target-feature +fptoint -target-feature +fullfp16 -target-feature +jsconv -target-feature +lse -target-feature +neon -target-feature +pauth -target-feature +perfmon -target-feature +predres -target-feature +ras -target-feature +rcpc -target-feature +rdm -target-feature +sb -target-feature +sha2 -target-feature +sha3 -target-feature +specrestrict -target-feature +ssbs -target-abi darwinpcs -dwarf-ext-refs -fmodule-format=obj -debug-info-kind=standalone -dwarf-version=5 -debugger-tuning=lldb -fdebug-compilation-dir=/Volumes/Data/worker/Apple-iOS-26-Safer-CPP-Checks-EWS/build/Source/WebCore -target-linker-version 1230.1 -fcoverage-compilation-dir=/Volumes/Data/worker/Apple-iOS-26-Safer-CPP-Checks-EWS/build/Source/WebCore -resource-dir /Users/buildbot/Library/Developer/Toolchains/swift-webkit.xctoolchain/usr/lib/clang/21 -dependency-file /Volumes/Data/worker/Apple-iOS-26-Safer-CPP-Checks-EWS/build/scan-build-output/StaticAnalyzer/WebCore/WebCore/normal/arm64/UnifiedSource298.d -skip-unused-modulemap-deps -MT dependencies -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator26.2.sdk -iquote /Volumes/Data/worker/Apple-iOS-26-Safer-CPP-Checks-EWS/build/WebKitBuild/WebCore.build/Release-iphonesimulator/WebCore.build/WebCore-generated-files.hmap -iquote /Volumes/Data/worker/Apple-iOS-26-Safer-CPP-Checks-EWS/build/WebKitBuild/WebCore.build/Release-iphonesimulator/WebCore.build/WebCore-project-headers.hmap -isystem /Volumes/Data/worker/Apple-iOS-26-Safer-CPP-Checks-EWS/build/Source/WebCore/PAL/ThirdParty/dav1d/include -isystem /Volumes/Data/worker/Apple-iOS-26-Safer-CPP-Checks-EWS/build/WebKitBuild/Release-iphonesimulator/SDKAdditions/usr/include -iframework /Volumes/Data/worker/Apple-iOS-26-Safer-CPP-Checks-EWS/build/WebKitBuild/Release-iphonesimulator/SDKAdditions/System/Library/Frameworks -iframework /Volumes/Data/worker/Apple-iOS-26-Safer-CPP-Checks-EWS/build/WebKitLibraries/SDKs/iphonesimulator26.0-additions.sdk/System/Library/PrivateFrameworks -iframework /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator26.2.sdk/System/Library/Frameworks -include-pch /Volumes/Data/worker/Apple-iOS-26-Safer-CPP-Checks-EWS/build/WebKitBuild/PrecompiledHeaders/SharedPrecompiledHeaders/11721353671419897710/WebCorePrefix.h.gch -D _LIBCPP_HARDENING_MODE=_LIBCPP_HARDENING_MODE_EXTENSIVE -D NDEBUG -D BUILDING_WEBKIT -D GL_SILENCE_DEPRECATION=1 -D GLES_SILENCE_DEPRECATION=1 -D __clang_analyzer__ -I /Volumes/Data/worker/Apple-iOS-26-Safer-CPP-Checks-EWS/build/WebKitBuild/WebCore.build/Release-iphonesimulator/WebCore.build/WebCore-own-target-headers.hmap -I /Volumes/Data/worker/Apple-iOS-26-Safer-CPP-Checks-EWS/build/WebKitBuild/WebCore.build/Release-iphonesimulator/WebCore.build/WebCore-all-target-headers.hmap -I /Volumes/Data/worker/Apple-iOS-26-Safer-CPP-Checks-EWS/build/WebKitBuild/Release-iphonesimulator/include -I PAL -I ForwardingHeaders -I /usr/include/libxslt -I /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator26.2.sdk/usr/include/libxml2 -I /Volumes/Data/worker/Apple-iOS-26-Safer-CPP-Checks-EWS/build/WebKitBuild/Release-iphonesimulator/DerivedSources/WebCore -I /Volumes/Data/worker/Apple-iOS-26-Safer-CPP-Checks-EWS/build/WebKitBuild/Release-iphonesimulator/usr/local/include -I /Volumes/Data/worker/Apple-iOS-26-Safer-CPP-Checks-EWS/build/WebKitBuild/Release-iphonesimulator/usr/local/include/WebKitAdditions -I /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator26.2.sdk/usr/local/include/WebKitAdditions -I /Volumes/Data/worker/Apple-iOS-26-Safer-CPP-Checks-EWS/build/WebKitBuild/Release-iphonesimulator/usr/local/include -I /Volumes/Data/worker/Apple-iOS-26-Safer-CPP-Checks-EWS/build/WebKitLibraries/SDKs/iphonesimulator26.0-additions.sdk/usr/local/include -I /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator26.2.sdk/usr/local/include -I /Volumes/Data/worker/Apple-iOS-26-Safer-CPP-Checks-EWS/build/WebKitBuild/Release-iphonesimulator/usr/local/include/webrtc -I /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator26.2.sdk/usr/local/include/webrtc -I /Volumes/Data/worker/Apple-iOS-26-Safer-CPP-Checks-EWS/build/WebKitBuild/Release-iphonesimulator/usr/local/include/webm -I /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator26.2.sdk/usr/local/include/webm -I /Volumes/Data/worker/Apple-iOS-26-Safer-CPP-Checks-EWS/build/WebKitBuild/PAL.build/PAL.build/DerivedSources -I /Volumes/Data/worker/Apple-iOS-26-Safer-CPP-Checks-EWS/build/WebKitBuild/PAL.build/Release-iphonesimulator/PAL.build/DerivedSources -I /Volumes/Data/worker/Apple-iOS-26-Safer-CPP-Checks-EWS/build/Source/WebCore -I /Volumes/Data/worker/Apple-iOS-26-Safer-CPP-Checks-EWS/build/WebKitBuild/WebCore.build/Release-iphonesimulator/WebCore.build/DerivedSources-normal/arm64 -I /Volumes/Data/worker/Apple-iOS-26-Safer-CPP-Checks-EWS/build/WebKitBuild/WebCore.build/Release-iphonesimulator/WebCore.build/DerivedSources/arm64 -I /Volumes/Data/worker/Apple-iOS-26-Safer-CPP-Checks-EWS/build/WebKitBuild/WebCore.build/Release-iphonesimulator/WebCore.build/DerivedSources -F/Volumes/Data/worker/Apple-iOS-26-Safer-CPP-Checks-EWS/build/WebKitBuild/Release-iphonesimulator -F/Volumes/Data/worker/Apple-iOS-26-Safer-CPP-Checks-EWS/build/WebKitBuild/Release-iphonesimulator -I/usr/local/include -stdlib=libc++ -internal-isystem /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator26.2.sdk/usr/include/c++/v1 -internal-isystem /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator26.2.sdk/usr/local/include -internal-isystem /Users/buildbot/Library/Developer/Toolchains/swift-webkit.xctoolchain/usr/lib/clang/21/include -internal-externc-isystem /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator26.2.sdk/usr/include -internal-iframework /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator26.2.sdk/System/Library/Frameworks -internal-iframework /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator26.2.sdk/System/Library/SubFrameworks -internal-iframework /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator26.2.sdk/Library/Frameworks -Wno-trigraphs -Werror -Wno-missing-field-initializers -Wmissing-prototypes -Wunreachable-code -Wnon-virtual-dtor -Wno-overloaded-virtual -Wno-exit-time-destructors -Wno-missing-braces -Wparentheses -Wswitch -Wunused-function -Wno-unused-label -Wno-unused-parameter -Wunused-variable -Wunused-value -Wempty-body -Wuninitialized -Wno-unknown-pragmas -Wno-shadow -Wno-four-char-constants -Wno-conversion -Wconstant-conversion -Wint-conversion -Wbool-conversion -Wenum-conversion -Wno-float-conversion -Wnon-literal-null-conversion -Wobjc-literal-conversion -Wsign-compare -Wno-shorten-64-to-32 -Wnewline-eof -Wno-c++11-extensions -Wno-implicit-fallthrough -Wdeprecated-declarations -Winvalid-offsetof -Wno-sign-conversion -Winfinite-recursion -Wmove -Wcomma -Wblock-capture-autoreleasing -Wstrict-prototypes -Wrange-loop-analysis -Wno-semicolon-before-method-body -Wall -Wc99-designator -Wconditional-uninitialized -Wextra -Wdeprecated-enum-enum-conversion -Wdeprecated-enum-float-conversion -Wenum-float-conversion -Wfinal-dtor-non-final-class -Wformat=2 -Wmisleading-indentation -Wpointer-to-int-cast -Wreorder-init-list -Wundef -Wunused-but-set-variable -Wvla -Werror=unguarded-availability -Wno-elaborated-enum-base -Wcast-qual -Wchar-subscripts -Wextra-tokens -Winit-self -Wmissing-noreturn -Wpacked -Wpointer-arith -Wredundant-decls -Wwrite-strings -Wexit-time-destructors -Wglobal-constructors -Wtautological-compare -Wimplicit-fallthrough -Wvla -Wno-unknown-warning-option -Wliteral-conversion -Wthread-safety -Wno-profile-instr-out-of-date -Wno-profile-instr-unprofiled -Wno-backend-plugin -Wunsafe-buffer-usage -std=c++2b -fdeprecated-macro -ferror-limit 19 -fmacro-backtrace-limit=0 -fvisibility=hidden -fvisibility-inlines-hidden -stack-protector 1 -fblocks -fencode-extended-block-signature -fno-rtti -fregister-global-dtors-with-atexit -fgnuc-version=4.2.1 -fno-cxx-modules -fno-implicit-modules -fskip-odr-check-in-gmf -fpascal-strings -fmax-type-align=16 -fdiagnostics-show-note-include-stack -vectorize-loops -vectorize-slp -fsafe-buffer-usage-suggestions -analyzer-output=html -analyzer-config report-in-main-source-file=true -analyzer-config nullability:NoDiagnoseCallsToSystemHeaders=true -analyzer-checker optin.osx.cocoa.localizability.NonLocalizedStringChecker -analyzer-checker security.insecureAPI.UncheckedReturn -analyzer-checker security.insecureAPI.getpw -analyzer-checker security.insecureAPI.gets -analyzer-checker security.insecureAPI.mkstemp -analyzer-checker security.insecureAPI.mktemp -analyzer-disable-checker security.insecureAPI.rand -analyzer-disable-checker security.insecureAPI.strcpy -analyzer-checker security.insecureAPI.vfork -analyzer-disable-checker alpha,apiModeling,core,cplusplus,deadcode,debug,fuchsia,nullability,optin,osx,security,unix,webkit -analyzer-checker alpha.webkit.ForwardDeclChecker,alpha.webkit.MemoryUnsafeCastChecker,alpha.webkit.NoDeleteChecker,alpha.webkit.NoUncheckedPtrMemberChecker,alpha.webkit.NoUnretainedMemberChecker,alpha.webkit.RetainPtrCtorAdoptChecker,alpha.webkit.UncheckedCallArgsChecker,alpha.webkit.UncheckedLocalVarsChecker,alpha.webkit.UncountedCallArgsChecker,alpha.webkit.UncountedLocalVarsChecker,alpha.webkit.UnretainedCallArgsChecker,alpha.webkit.UnretainedLambdaCapturesChecker,alpha.webkit.UnretainedLocalVarsChecker,webkit.NoUncountedMemberChecker,webkit.RefCntblBaseVirtualDtor,webkit.UncountedLambdaCapturesChecker -analyzer-config max-nodes=10000000 -analyzer-config verbose-report-filename=true -fdwarf2-cfi-asm -o /Volumes/Data/worker/Apple-iOS-26-Safer-CPP-Checks-EWS/build/scan-build-output/StaticAnalyzer/WebCore/WebCore/normal/arm64/UnifiedSource298.plist -x c++ /Volumes/Data/worker/Apple-iOS-26-Safer-CPP-Checks-EWS/build/WebKitBuild/Release-iphonesimulator/DerivedSources/WebCore/unified-sources/UnifiedSource298.cpp
| 1 | |
| 2 | |
| 3 | |
| 4 | |
| 5 | |
| 6 | |
| 7 | |
| 8 | |
| 9 | |
| 10 | |
| 11 | |
| 12 | |
| 13 | |
| 14 | |
| 15 | |
| 16 | |
| 17 | |
| 18 | |
| 19 | |
| 20 | |
| 21 | |
| 22 | |
| 23 | |
| 24 | |
| 25 | |
| 26 | #include "config.h" |
| 27 | #include "ImageAnalysisQueue.h" |
| 28 | |
| 29 | #if ENABLE(IMAGE_ANALYSIS) |
| 30 | |
| 31 | #include "Chrome.h" |
| 32 | #include "ChromeClient.h" |
| 33 | #include "Frame.h" |
| 34 | #include "HTMLCollection.h" |
| 35 | #include "HTMLImageElement.h" |
| 36 | #include "ImageOverlay.h" |
| 37 | #include "LocalFrameView.h" |
| 38 | #include "RenderImage.h" |
| 39 | #include "RenderView.h" |
| 40 | #include "TextRecognitionOptions.h" |
| 41 | #include "Timer.h" |
| 42 | #include "TypedElementDescendantIteratorInlines.h" |
| 43 | #include <pal/HysteresisActivity.h> |
| 44 | #include <wtf/TZoneMallocInlines.h> |
| 45 | |
| 46 | namespace WebCore { |
| 47 | |
| 48 | static constexpr unsigned maximumPendingImageAnalysisCount = 5; |
| 49 | static constexpr float minimumWidthForAnalysis = 20; |
| 50 | static constexpr float minimumHeightForAnalysis = 20; |
| 51 | static constexpr Seconds resumeProcessingDelay = 100_ms; |
| 52 | |
| 53 | WTF_MAKE_TZONE_ALLOCATED_IMPL(ImageAnalysisQueue); |
| 54 | |
| 55 | Ref<ImageAnalysisQueue> ImageAnalysisQueue::create(Page& page) |
| 56 | { |
| 57 | return adoptRef(*new ImageAnalysisQueue(page)); |
| 58 | } |
| 59 | |
| 60 | ImageAnalysisQueue::ImageAnalysisQueue(Page& page) |
| 61 | : m_page(page) |
| 62 | , m_resumeProcessingTimer(*this, &ImageAnalysisQueue::resumeProcessing) |
| 63 | { |
| 64 | } |
| 65 | |
| 66 | ImageAnalysisQueue::~ImageAnalysisQueue() = default; |
| 67 | |
| 68 | void ImageAnalysisQueue::enqueueIfNeeded(HTMLImageElement& element) |
| 69 | { |
| 70 | CheckedPtr renderer = dynamicDowncast<RenderImage>(element.renderer()); |
| 71 | if (!renderer) |
| 72 | return; |
| 73 | |
| 74 | RefPtr cachedImage = renderer->cachedImage(); |
| 75 | if (!cachedImage || cachedImage->errorOccurred()) |
| 76 | return; |
| 77 | |
| 78 | RefPtr image = cachedImage->image(); |
| 79 | if (!image || image->width() < minimumWidthForAnalysis || image->height() < minimumHeightForAnalysis) |
| 80 | return; |
| 81 | |
| 82 | bool shouldAddToQueue = [&] { |
| 83 | auto url = cachedImage->url(); |
| 84 | auto iterator = m_queuedElements.find(element); |
| 85 | if (iterator == m_queuedElements.end()) { |
| 86 | m_queuedElements.add(element, url); |
| 87 | return true; |
| 88 | } |
| 89 | |
| 90 | if (iterator->value == url) |
| 91 | return false; |
| 92 | |
| 93 | iterator->value = url; |
| 94 | |
| 95 | for (auto& entry : m_queue) { |
| 96 | if (entry.element == &element) |
| 97 | return false; |
| 98 | } |
| 99 | |
| 100 | return true; |
| 101 | }(); |
| 102 | |
| 103 | if (!shouldAddToQueue) |
| 104 | return; |
| 105 | |
| 106 | Ref view = renderer->view().frameView(); |
| 107 | m_queue.enqueue({ |
| 108 | element, |
| 109 | renderer->isVisibleInDocumentRect(view->windowToContents(view->windowClipRect())) ? Priority::High : Priority::Low, |
| 110 | nextTaskNumber() |
| 111 | }); |
| 112 | resumeProcessingSoon(); |
| 113 | } |
| 114 | |
| 115 | void ImageAnalysisQueue::resumeProcessingSoon() |
| 116 | { |
| 117 | if (m_queue.isEmpty() || m_resumeProcessingTimer.isActive()) |
| 118 | return; |
| 119 | |
| 120 | m_resumeProcessingTimer.startOneShot(resumeProcessingDelay); |
| 121 | } |
| 122 | |
| 123 | void ImageAnalysisQueue::enqueueAllImagesIfNeeded(Frame& frame, const String& sourceLanguageIdentifier, const String& targetLanguageIdentifier) |
| 124 | { |
| 125 | if (!m_page) |
| 126 | return; |
| 127 | |
| 128 | if (m_analysisOfAllImagesOnPageHasStarted) |
| 129 | return; |
| 130 | |
| 131 | m_analysisOfAllImagesOnPageHasStarted = true; |
| 132 | |
| 133 | if (sourceLanguageIdentifier != m_languageIdentifiers.source || targetLanguageIdentifier != m_languageIdentifiers.target) |
| 134 | clear(); |
| 135 | |
| 136 | m_languageIdentifiers.source = sourceLanguageIdentifier; |
| 137 | m_languageIdentifiers.target = targetLanguageIdentifier; |
| 138 | enqueueAllImagesRecursive(frame); |
| 139 | } |
| 140 | |
| 141 | void ImageAnalysisQueue::enqueueAllImagesRecursive(Frame& frame) |
| 142 | { |
| 143 | RefPtr localFrame = dynamicDowncast<LocalFrame>(frame); |
| 144 | if (localFrame) { |
| 145 | if (RefPtr document = localFrame->document()) { |
| 146 | for (Ref image : descendantsOfType<HTMLImageElement>(*document)) |
| 147 | enqueueIfNeeded(image.get()); |
| 148 | } |
| 149 | } |
| 150 | |
| 151 | for (RefPtr nextFrame = frame.tree().firstChild(); nextFrame; nextFrame = nextFrame->tree().nextSibling()) |
| 152 | enqueueAllImagesRecursive(*nextFrame); |
| 153 | } |
| 154 | |
| 155 | void ImageAnalysisQueue::resumeProcessing() |
| 156 | { |
| 157 | if (!m_page) |
| 158 | return; |
| 159 | |
| 160 | while (!m_queue.isEmpty() && m_pendingRequestCount < maximumPendingImageAnalysisCount) { |
| 161 | RefPtr element = m_queue.dequeue().element.get(); |
| 162 | if (!element || !element->isConnected()) |
| 163 | continue; |
| 164 | |
| 165 | m_pendingRequestCount++; |
| 166 | Ref page = *m_page; |
| 167 | page->resetTextRecognitionResult(*element); |
| 168 | |
| 169 | if (auto* image = element->cachedImage(); image && !image->errorOccurred()) |
| Local variable 'image' is uncounted and unsafe |
| 170 | m_queuedElements.set(*element, image->url()); |
| 171 | |
| 172 | auto allowSnapshots = m_languageIdentifiers.target.isEmpty() ? TextRecognitionOptions::AllowSnapshots::Yes : TextRecognitionOptions::AllowSnapshots::No; |
| 173 | page->chrome().client().requestTextRecognition(*element, { m_languageIdentifiers.source, m_languageIdentifiers.target, allowSnapshots }, [this, protectedThis = Ref { *this }, weakPage = WeakPtr { page }](auto&&) { |
| 174 | if (RefPtr page = weakPage.get(); !page || page->imageAnalysisQueueIfExists() != this) |
| 175 | return; |
| 176 | |
| 177 | if (m_pendingRequestCount) |
| 178 | m_pendingRequestCount--; |
| 179 | |
| 180 | resumeProcessingSoon(); |
| 181 | |
| 182 | if (m_queue.isEmpty() && m_imageQueueEmptyHysteresis) |
| 183 | m_imageQueueEmptyHysteresis->impulse(); |
| 184 | }); |
| 185 | } |
| 186 | } |
| 187 | |
| 188 | void ImageAnalysisQueue::setDidBecomeEmptyCallback(Function<void()>&& callback) |
| 189 | { |
| 190 | m_imageQueueEmptyHysteresis = makeUnique<PAL::HysteresisActivity>([callback = WTF::move(callback)] (PAL::HysteresisState state) { |
| 191 | if (state == PAL::HysteresisState::Stopped) |
| 192 | callback(); |
| 193 | }, 1_s); |
| 194 | } |
| 195 | |
| 196 | void ImageAnalysisQueue::clearDidBecomeEmptyCallback() |
| 197 | { |
| 198 | m_imageQueueEmptyHysteresis = nullptr; |
| 199 | } |
| 200 | |
| 201 | void ImageAnalysisQueue::clear() |
| 202 | { |
| 203 | |
| 204 | m_pendingRequestCount = 0; |
| 205 | m_resumeProcessingTimer.stop(); |
| 206 | m_queue = { }; |
| 207 | m_queuedElements.clear(); |
| 208 | m_languageIdentifiers = { }; |
| 209 | m_currentTaskNumber = 0; |
| 210 | m_analysisOfAllImagesOnPageHasStarted = false; |
| 211 | m_imageQueueEmptyHysteresis = nullptr; |
| 212 | } |
| 213 | |
| 214 | } |
| 215 | |
| 216 | #endif // ENABLE(IMAGE_ANALYSIS) |