[LFC] Adjust static position with containing block's content box top/left
[WebKit-https.git] / Source / WebCore / ChangeLog
1 2018-06-25  Zalan Bujtas  <zalan@apple.com>
2
3         [LFC] Adjust static position with containing block's content box top/left
4         https://bugs.webkit.org/show_bug.cgi?id=186999
5
6         Reviewed by Antti Koivisto.
7
8         * layout/blockformatting/BlockFormattingContextGeometry.cpp:
9         (WebCore::Layout::BlockFormattingContext::Geometry::staticPosition):
10         * layout/displaytree/DisplayBox.cpp:
11         (WebCore::Display::Box::contentBox const):
12         * layout/displaytree/DisplayBox.h:
13         (WebCore::Display::Box::contentBoxTop const):
14         (WebCore::Display::Box::contentBoxLeft const):
15
16 2018-06-25  David Kilzer  <ddkilzer@apple.com>
17
18         REGRESSION (r233140): Windows build failure due to incomplete DocumentAnimationScheduler type
19         <https://webkit.org/b/186997>
20
21         * dom/Document.cpp:
22         * dom/Document.h:
23         - Attempt to fix Windows build failure by moving include of
24           DocumentAnimationScheduler.h from Document.cpp to Document.h.
25
26 2018-06-25  Philippe Normand  <pnormand@igalia.com>
27
28         [GStreamer] Remove useless workaround
29         https://bugs.webkit.org/show_bug.cgi?id=186921
30
31         Reviewed by Xabier Rodriguez-Calvar.
32
33         In bug 67407 a workaround was added for GStreamer 0.10. With 1.x
34         the media/video-reverse-play-duration.html test passes without any
35         workaround needed. The other test mentioned in that bug was
36         removed, it seems.
37
38         * platform/graphics/gstreamer/MediaPlayerPrivateGStreamer.cpp:
39         (WebCore::MediaPlayerPrivateGStreamer::currentMediaTime const):
40
41 2018-06-24  Tomas Popela  <tpopela@redhat.com>
42
43         Unreviewed, address Darin's comment
44         https://bugs.webkit.org/show_bug.cgi?id=186757
45
46         * page/linux/ResourceUsageThreadLinux.cpp:
47         (WebCore::cpuPeriod):
48
49 2018-06-25  Antoine Quint  <graouts@apple.com>
50
51         [Web Animations] Make imported/mozilla/css-animations/test_animation-pausing.html pass reliably
52         https://bugs.webkit.org/show_bug.cgi?id=183826
53         <rdar://problem/40997412>
54
55         Reviewed by Dean Jackson.
56
57         The CSS Animations Level 2 specification defines that calling pause() on a CSSAnimation object is "sticky"
58         until a call to play() is made, meaning that any changes to the running state via the CSS animation-play-state
59         property is overridden by the stickiness of the pause() call. In this patch we add an m_stickyPaused flag which
60         is set in API calls to pause() and play(). While this flag is true, changes to the animation-play-state property
61         to the "running" value are ignored.
62
63         * animation/CSSAnimation.cpp:
64         (WebCore::CSSAnimation::syncPropertiesWithBackingAnimation):
65         (WebCore::CSSAnimation::bindingsPlay):
66         (WebCore::CSSAnimation::bindingsPause):
67         * animation/CSSAnimation.h:
68
69 2018-06-25  Antoine Quint  <graouts@apple.com>
70
71         [Web Animations] Ensure animations are updated prior to requestAnimationFrame callbacks
72         https://bugs.webkit.org/show_bug.cgi?id=186997
73         <rdar://problem/41419414>
74
75         Reviewed by Dean Jackson.
76
77         Some sub-tests of imported/mozilla/css-animations/test_animation-pausing.html clearly expect that animations
78         would be resolved prior to firing a requestAnimationFrame() callback, as the HTML5 event loop mandates. But until
79         now, both DocumentTimeline and ScriptedAnimationController would make calls to DisplayRefreshMonitorManager::scheduleAnimation()
80         that were not coordinated and so the order in which the DocumentTimeline and ScriptedAnimationController callbacks
81         were performed was not guaranteed.
82
83         In this patch we add a new DocumentAnimationScheduler class which is created by a Document to manage this specific
84         situation. Now DocumentTimeline and ScriptedAnimationController use this supporting object instead of being their
85         own DisplayRefreshMonitorClient and call scheduleWebAnimationsResolution() and scheduleScriptedAnimationResolution()
86         respectively to indicate the need to schedule an animation through the DisplayRefreshMonitorManager to serve the specific
87         needs of either, or both, classes. Then DocumentAnimationScheduler ensures that Web Animations resolution happens
88         prior to requestAnimationFrame callbacks when both are scheduled.
89
90         In the future we should be able to move more code from DocumentTimeline and ScriptedAnimationController over to
91         DocumentAnimationScheduler, such as support for throttling and using a timer-based fallback, but this patch provides
92         the minimal functionality required to provide a sounder foundation.
93
94         * Modules/webvr/VRDisplay.cpp:
95         (WebCore::VRDisplay::requestAnimationFrame):
96         * Sources.txt:
97         * WebCore.xcodeproj/project.pbxproj:
98         * animation/DocumentAnimationScheduler.cpp: Added.
99         (WebCore::DocumentAnimationScheduler::create):
100         (WebCore::DocumentAnimationScheduler::DocumentAnimationScheduler):
101         (WebCore::DocumentAnimationScheduler::detachFromDocument):
102         (WebCore::DocumentAnimationScheduler::scheduleWebAnimationsResolution):
103         (WebCore::DocumentAnimationScheduler::scheduleScriptedAnimationResolution):
104         (WebCore::DocumentAnimationScheduler::displayRefreshFired):
105         (WebCore::DocumentAnimationScheduler::windowScreenDidChange):
106         (WebCore::DocumentAnimationScheduler::createDisplayRefreshMonitor const):
107         * animation/DocumentAnimationScheduler.h: Copied from Source/WebCore/animation/CSSAnimation.h.
108         * animation/DocumentTimeline.cpp:
109         (WebCore::DocumentTimeline::create):
110         (WebCore::DocumentTimeline::DocumentTimeline):
111         (WebCore::DocumentTimeline::scheduleAnimationResolution):
112         (WebCore::DocumentTimeline::windowScreenDidChange): Deleted.
113         (WebCore::DocumentTimeline::createDisplayRefreshMonitor const): Deleted.
114         * animation/DocumentTimeline.h:
115         * dom/Document.cpp:
116         (WebCore::Document::prepareForDestruction):
117         (WebCore::Document::windowScreenDidChange):
118         (WebCore::Document::requestAnimationFrame):
119         (WebCore::Document::animationScheduler):
120         (WebCore::Document::timeline):
121         * dom/Document.h:
122         * dom/ScriptedAnimationController.cpp:
123         (WebCore::ScriptedAnimationController::ScriptedAnimationController):
124         (WebCore::ScriptedAnimationController::scheduleAnimation):
125         (WebCore::ScriptedAnimationController::documentAnimationSchedulerDidFire):
126         (WebCore::ScriptedAnimationController::windowScreenDidChange): Deleted.
127         (WebCore::ScriptedAnimationController::displayRefreshFired): Deleted.
128         (WebCore::ScriptedAnimationController::createDisplayRefreshMonitor const): Deleted.
129         * dom/ScriptedAnimationController.h:
130         (WebCore::ScriptedAnimationController::create):
131
132 2018-06-25  Zan Dobersek  <zdobersek@igalia.com>
133
134         [GCrypt] Zero-prefix (if necessary) output of RSA-based encryption and signing operations
135         https://bugs.webkit.org/show_bug.cgi?id=186967
136
137         Reviewed by Michael Catanzaro.
138
139         Output for RSA-based encryption and signing operations should match the
140         length of the RSA key. The way we retrieve the MPI data means libgcrypt
141         can ignore the high-bit zero values and leave us with a valid result
142         that's shorter in length compared to the RSA key. For instance, if the
143         output MPI fits into 2040 bits while a 2048-bit key was used we'll end
144         up with MPI data that will be fitted into a 255-byte Vector, one byte
145         short of the expected output length.
146
147         To avoid this, mpiZeroPrefixedData() is now used when retrieving output
148         of these RSA operations, and the value of the key size in bytes is
149         passed to it. This efficiently prepares the output Vector and then
150         copies the MPI data into it, respecting the MPI data length as well as
151         the desired length of the output.
152
153         No new tests -- relevant tests are now stable (i.e. not sporadically
154         failing anymore), associated expectations are removed.
155
156         * crypto/gcrypt/CryptoAlgorithmECDHGCrypt.cpp:
157         (WebCore::gcryptDerive): Also use mpiZeroPrefixedData().
158         * crypto/gcrypt/CryptoAlgorithmRSAES_PKCS1_v1_5GCrypt.cpp:
159         (WebCore::gcryptEncrypt):
160         (WebCore::CryptoAlgorithmRSAES_PKCS1_v1_5::platformEncrypt):
161         * crypto/gcrypt/CryptoAlgorithmRSASSA_PKCS1_v1_5GCrypt.cpp:
162         (WebCore::gcryptSign):
163         (WebCore::CryptoAlgorithmRSASSA_PKCS1_v1_5::platformSign):
164         * crypto/gcrypt/CryptoAlgorithmRSA_OAEPGCrypt.cpp:
165         (WebCore::gcryptEncrypt):
166         (WebCore::CryptoAlgorithmRSA_OAEP::platformEncrypt):
167         * crypto/gcrypt/CryptoAlgorithmRSA_PSSGCrypt.cpp:
168         (WebCore::gcryptSign):
169         (WebCore::CryptoAlgorithmRSA_PSS::platformSign):
170         * crypto/gcrypt/GCryptUtilities.h:
171         (WebCore::mpiZeroPrefixedData):
172
173 2018-06-24  Simon Fraser  <simon.fraser@apple.com>
174
175         Fix the DUMP_NODE_STATISTICS code so that it compiles
176         https://bugs.webkit.org/show_bug.cgi?id=186982
177
178         Reviewed by Anders Carlsson.
179
180         The DUMP_NODE_STATISTICS code had bitrotted. ENTITY_NODE no longer exists.
181         liveNodeSet needs to be a static function with a NeverDestroyed<>.
182
183         * dom/Node.cpp:
184         (WebCore::Node::dumpStatistics):
185         (WebCore::Node::trackForDebugging):
186         (WebCore::Node::~Node):
187
188 2018-06-24  Simon Fraser  <simon.fraser@apple.com>
189
190         Fix the composition underline to be transformed by -apple-color-filter
191         https://bugs.webkit.org/show_bug.cgi?id=186983
192         rdar://problem/40515558
193
194         Reviewed by Zalan Bujtas.
195         
196         Transform the composition underline color with the color filter.
197
198         Test: css3/color-filters/color-filter-composition-underline-color.html
199
200         * rendering/InlineTextBox.cpp:
201         (WebCore::InlineTextBox::paintCompositionUnderline const):
202
203 2018-06-23  Zalan Bujtas  <zalan@apple.com>
204
205         [Mail] Use the Mail Viewer width as the base for resolving horizontal viewport units
206         https://bugs.webkit.org/show_bug.cgi?id=186585
207         <rdar://problem/30685325>
208
209         Reviewed by Tim Horton.
210
211         Use the existing "override viewport size for viewport units" mechanism to compute the preferred
212         viewport unit values for the Mail Viewer html content. 
213
214         Test: fast/dynamic/mail-autosize-viewport-unit.html
215
216         * page/FrameView.cpp:
217         (WebCore::FrameView::FrameView):
218         (WebCore::FrameView::enableAutoSizeMode):
219         (WebCore::FrameView::clearViewportSizeOverrideForCSSViewportUnits):
220         (WebCore::FrameView::setViewportSizeForCSSViewportUnits):
221         (WebCore::FrameView::overrideViewportSizeForCSSViewportUnits):
222         (WebCore::FrameView::viewportSizeForCSSViewportUnits const):
223         * page/FrameView.h:
224
225 2018-06-23  Zalan Bujtas  <zalan@apple.com>
226
227         [LFC] Relatively positioned renderer needs offsetting for validation
228         https://bugs.webkit.org/show_bug.cgi?id=186959
229
230         Reviewed by Antti Koivisto.
231
232         * layout/FormattingContextGeometry.cpp:
233         (WebCore::Layout::FormattingContext::Geometry::outOfFlowNonReplacedVerticalGeometry):
234         * layout/Verification.cpp:
235         (WebCore::Layout::outputMismatchingBoxInformationIfNeeded):
236
237 2018-06-23  Zalan Bujtas  <zalan@apple.com>
238
239         [LFC] Miscellaneous fixes to fix simple absolute positioning.
240         https://bugs.webkit.org/show_bug.cgi?id=186962
241
242         Reviewed by Antti Koivisto.
243
244         1. Collect out-of-flow formatting root descendants.
245         2. Remove invalid and redundant ASSERTs
246           invalid because the assertion is missing border, padding etc.
247           redundant becasue we assert on geometry correctness in validateGeometryConstraintsAfterLayout.  
248
249         * layout/FormattingContext.cpp:
250         (WebCore::Layout::FormattingContext::computeOutOfFlowHorizontalGeometry const):
251         (WebCore::Layout::FormattingContext::computeOutOfFlowVerticalGeometry const):
252         (WebCore::Layout::FormattingContext::layoutOutOfFlowDescendants const):
253         * layout/layouttree/LayoutContainer.cpp:
254         (WebCore::Layout::Container::addOutOfFlowDescendant):
255         (WebCore::Layout::Container::setOutOfFlowDescendants): Deleted.
256         * layout/layouttree/LayoutContainer.h:
257         * layout/layouttree/LayoutTreeBuilder.cpp:
258         (WebCore::Layout::TreeBuilder::createSubTree):
259
260 2018-06-23  Yusuke Suzuki  <utatane.tea@gmail.com>
261
262         [WTF] Add user-defined literal for ASCIILiteral
263         https://bugs.webkit.org/show_bug.cgi?id=186839
264
265         Reviewed by Darin Adler.
266
267         No behavior change.
268
269         * Modules/applicationmanifest/ApplicationManifestParser.cpp:
270         (WebCore::ApplicationManifestParser::parseManifest):
271         (WebCore::ApplicationManifestParser::logManifestPropertyNotAString):
272         (WebCore::ApplicationManifestParser::logManifestPropertyInvalidURL):
273         (WebCore::ApplicationManifestParser::logDeveloperWarning):
274         (WebCore::ApplicationManifestParser::parseStartURL):
275         (WebCore::ApplicationManifestParser::parseDisplay):
276         (WebCore::ApplicationManifestParser::parseName):
277         (WebCore::ApplicationManifestParser::parseDescription):
278         (WebCore::ApplicationManifestParser::parseShortName):
279         (WebCore::ApplicationManifestParser::parseScope):
280         * Modules/beacon/NavigatorBeacon.cpp:
281         (WebCore::NavigatorBeacon::logError):
282         (WebCore::NavigatorBeacon::sendBeacon):
283         * Modules/cache/DOMCache.cpp:
284         (WebCore::DOMCache::requestFromInfo):
285         (WebCore::DOMCache::addAll):
286         (WebCore::DOMCache::put):
287         * Modules/cache/DOMCacheEngine.cpp:
288         (WebCore::DOMCacheEngine::errorToException):
289         * Modules/credentialmanagement/BasicCredential.cpp:
290         (WebCore::BasicCredential::type const):
291         * Modules/credentialmanagement/CredentialsContainer.cpp:
292         (WebCore::CredentialsContainer::get):
293         (WebCore::CredentialsContainer::store):
294         (WebCore::CredentialsContainer::isCreate):
295         (WebCore::CredentialsContainer::preventSilentAccess const):
296         * Modules/entriesapi/DOMFileSystem.cpp:
297         (WebCore::DOMFileSystem::root):
298         (WebCore::validatePathIsExpectedType):
299         (WebCore::resolveRelativeVirtualPath):
300         (WebCore::DOMFileSystem::getEntry):
301         * Modules/entriesapi/FileSystemDirectoryEntry.cpp:
302         (WebCore::FileSystemDirectoryEntry::getEntry):
303         * Modules/entriesapi/FileSystemDirectoryReader.cpp:
304         (WebCore::FileSystemDirectoryReader::readEntries):
305         * Modules/fetch/FetchBody.cpp:
306         (WebCore::FetchBody::consumeAsStream):
307         * Modules/fetch/FetchBodyConsumer.cpp:
308         (WebCore::FetchBodyConsumer::loadingFailed):
309         * Modules/fetch/FetchBodyOwner.cpp:
310         (WebCore::FetchBodyOwner::arrayBuffer):
311         (WebCore::FetchBodyOwner::blob):
312         (WebCore::FetchBodyOwner::consumeOnceLoadingFinished):
313         (WebCore::FetchBodyOwner::formData):
314         (WebCore::FetchBodyOwner::json):
315         (WebCore::FetchBodyOwner::text):
316         (WebCore::FetchBodyOwner::blobLoadingFailed):
317         (WebCore::FetchBodyOwner::consumeBodyAsStream):
318         * Modules/fetch/FetchHeaders.cpp:
319         (WebCore::canWriteHeader):
320         * Modules/fetch/FetchLoader.cpp:
321         (WebCore::FetchLoader::startLoadingBlobURL):
322         (WebCore::FetchLoader::start):
323         * Modules/fetch/FetchRequest.cpp:
324         (WebCore::setMethod):
325         (WebCore::computeReferrer):
326         (WebCore::buildOptions):
327         (WebCore::FetchRequest::initializeOptions):
328         (WebCore::FetchRequest::initializeWith):
329         (WebCore::FetchRequest::setBody):
330         (WebCore::FetchRequest::referrer const):
331         (WebCore::FetchRequest::clone):
332         * Modules/fetch/FetchResponse.cpp:
333         (WebCore::FetchResponse::create):
334         (WebCore::FetchResponse::redirect):
335         (WebCore::FetchResponse::clone):
336         (WebCore::FetchResponse::BodyLoader::didFail):
337         * Modules/fetch/FetchResponse.h:
338         * Modules/geolocation/GeoNotifier.cpp:
339         (WebCore::GeoNotifier::timerFired):
340         * Modules/geolocation/Geolocation.cpp:
341         (WebCore::Geolocation::startRequest):
342         (WebCore::Geolocation::requestUsesCachedPosition):
343         (WebCore::Geolocation::makeCachedPositionCallbacks):
344         (WebCore::Geolocation::setIsAllowed):
345         (WebCore::Geolocation::cancelRequests):
346         (WebCore::Geolocation::handlePendingPermissionNotifiers):
347         * Modules/indexeddb/IDBCursor.cpp:
348         (WebCore::IDBCursor::update):
349         (WebCore::IDBCursor::advance):
350         (WebCore::IDBCursor::continuePrimaryKey):
351         (WebCore::IDBCursor::continueFunction):
352         (WebCore::IDBCursor::deleteFunction):
353         * Modules/indexeddb/IDBDatabase.cpp:
354         (WebCore::IDBDatabase::createObjectStore):
355         (WebCore::IDBDatabase::transaction):
356         (WebCore::IDBDatabase::deleteObjectStore):
357         * Modules/indexeddb/IDBFactory.cpp:
358         (WebCore::IDBFactory::open):
359         (WebCore::IDBFactory::openInternal):
360         (WebCore::IDBFactory::deleteDatabase):
361         (WebCore::IDBFactory::cmp):
362         * Modules/indexeddb/IDBIndex.cpp:
363         (WebCore::IDBIndex::setName):
364         (WebCore::IDBIndex::openCursor):
365         (WebCore::IDBIndex::openKeyCursor):
366         (WebCore::IDBIndex::count):
367         (WebCore::IDBIndex::doCount):
368         (WebCore::IDBIndex::get):
369         (WebCore::IDBIndex::doGet):
370         (WebCore::IDBIndex::getKey):
371         (WebCore::IDBIndex::doGetKey):
372         (WebCore::IDBIndex::getAll):
373         (WebCore::IDBIndex::getAllKeys):
374         * Modules/indexeddb/IDBKeyData.cpp:
375         (WebCore::IDBKeyData::loggingString const):
376         * Modules/indexeddb/IDBKeyRangeData.cpp:
377         (WebCore::IDBKeyRangeData::loggingString const):
378         * Modules/indexeddb/IDBObjectStore.cpp:
379         (WebCore::IDBObjectStore::setName):
380         (WebCore::IDBObjectStore::openCursor):
381         (WebCore::IDBObjectStore::openKeyCursor):
382         (WebCore::IDBObjectStore::get):
383         (WebCore::IDBObjectStore::getKey):
384         (WebCore::IDBObjectStore::putOrAdd):
385         (WebCore::IDBObjectStore::doDelete):
386         (WebCore::IDBObjectStore::deleteFunction):
387         (WebCore::IDBObjectStore::clear):
388         (WebCore::IDBObjectStore::createIndex):
389         (WebCore::IDBObjectStore::index):
390         (WebCore::IDBObjectStore::deleteIndex):
391         (WebCore::IDBObjectStore::count):
392         (WebCore::IDBObjectStore::doCount):
393         (WebCore::IDBObjectStore::getAll):
394         (WebCore::IDBObjectStore::getAllKeys):
395         * Modules/indexeddb/IDBRequest.cpp:
396         (WebCore::IDBRequest::result const):
397         (WebCore:: const):
398         (WebCore::IDBRequest::uncaughtExceptionInEventHandler):
399         * Modules/indexeddb/IDBTransaction.cpp:
400         (WebCore::IDBTransaction::objectStore):
401         (WebCore::IDBTransaction::abort):
402         (WebCore::IDBTransaction::putOrAddOnServer):
403         * Modules/indexeddb/server/IDBServer.cpp:
404         (WebCore::IDBServer::IDBServer::performGetAllDatabaseNames):
405         * Modules/indexeddb/server/MemoryIDBBackingStore.cpp:
406         (WebCore::IDBServer::MemoryIDBBackingStore::deleteRange):
407         (WebCore::IDBServer::MemoryIDBBackingStore::addRecord):
408         (WebCore::IDBServer::MemoryIDBBackingStore::getRecord):
409         (WebCore::IDBServer::MemoryIDBBackingStore::getAllRecords):
410         (WebCore::IDBServer::MemoryIDBBackingStore::getIndexRecord):
411         (WebCore::IDBServer::MemoryIDBBackingStore::getCount):
412         (WebCore::IDBServer::MemoryIDBBackingStore::openCursor):
413         (WebCore::IDBServer::MemoryIDBBackingStore::iterateCursor):
414         * Modules/indexeddb/server/SQLiteIDBBackingStore.cpp:
415         (WebCore::IDBServer::SQLiteIDBBackingStore::createAndPopulateInitialDatabaseInfo):
416         (WebCore::IDBServer::SQLiteIDBBackingStore::extractExistingDatabaseInfo):
417         (WebCore::IDBServer::SQLiteIDBBackingStore::databaseNameFromEncodedFilename):
418         (WebCore::IDBServer::SQLiteIDBBackingStore::getOrEstablishDatabaseInfo):
419         (WebCore::IDBServer::SQLiteIDBBackingStore::beginTransaction):
420         (WebCore::IDBServer::SQLiteIDBBackingStore::abortTransaction):
421         (WebCore::IDBServer::SQLiteIDBBackingStore::commitTransaction):
422         (WebCore::IDBServer::SQLiteIDBBackingStore::createObjectStore):
423         (WebCore::IDBServer::SQLiteIDBBackingStore::deleteObjectStore):
424         (WebCore::IDBServer::SQLiteIDBBackingStore::renameObjectStore):
425         (WebCore::IDBServer::SQLiteIDBBackingStore::clearObjectStore):
426         (WebCore::IDBServer::SQLiteIDBBackingStore::createIndex):
427         (WebCore::IDBServer::SQLiteIDBBackingStore::uncheckedHasIndexRecord):
428         (WebCore::IDBServer::SQLiteIDBBackingStore::uncheckedPutIndexRecord):
429         (WebCore::IDBServer::SQLiteIDBBackingStore::deleteIndex):
430         (WebCore::IDBServer::SQLiteIDBBackingStore::renameIndex):
431         (WebCore::IDBServer::SQLiteIDBBackingStore::keyExistsInObjectStore):
432         (WebCore::IDBServer::SQLiteIDBBackingStore::deleteUnusedBlobFileRecords):
433         (WebCore::IDBServer::SQLiteIDBBackingStore::deleteRecord):
434         (WebCore::IDBServer::SQLiteIDBBackingStore::deleteRange):
435         (WebCore::IDBServer::SQLiteIDBBackingStore::updateAllIndexesForAddRecord):
436         (WebCore::IDBServer::SQLiteIDBBackingStore::addRecord):
437         (WebCore::IDBServer::SQLiteIDBBackingStore::getBlobRecordsForObjectStoreRecord):
438         (WebCore::IDBServer::SQLiteIDBBackingStore::getRecord):
439         (WebCore::IDBServer::SQLiteIDBBackingStore::getAllObjectStoreRecords):
440         (WebCore::IDBServer::SQLiteIDBBackingStore::getAllIndexRecords):
441         (WebCore::IDBServer::SQLiteIDBBackingStore::getIndexRecord):
442         (WebCore::IDBServer::SQLiteIDBBackingStore::uncheckedGetIndexRecordForOneKey):
443         (WebCore::IDBServer::SQLiteIDBBackingStore::getCount):
444         (WebCore::IDBServer::SQLiteIDBBackingStore::uncheckedGetKeyGeneratorValue):
445         (WebCore::IDBServer::SQLiteIDBBackingStore::uncheckedSetKeyGeneratorValue):
446         (WebCore::IDBServer::SQLiteIDBBackingStore::generateKeyNumber):
447         (WebCore::IDBServer::SQLiteIDBBackingStore::revertGeneratedKeyNumber):
448         (WebCore::IDBServer::SQLiteIDBBackingStore::maybeUpdateKeyGeneratorNumber):
449         (WebCore::IDBServer::SQLiteIDBBackingStore::openCursor):
450         (WebCore::IDBServer::SQLiteIDBBackingStore::iterateCursor):
451         (WebCore::IDBServer::SQLiteIDBBackingStore::deleteBackingStore):
452         * Modules/indexeddb/server/SQLiteIDBTransaction.cpp:
453         (WebCore::IDBServer::SQLiteIDBTransaction::begin):
454         (WebCore::IDBServer::SQLiteIDBTransaction::commit):
455         (WebCore::IDBServer::SQLiteIDBTransaction::abort):
456         * Modules/indexeddb/server/UniqueIDBDatabase.cpp:
457         (WebCore::IDBServer::UniqueIDBDatabase::deleteObjectStore):
458         (WebCore::IDBServer::UniqueIDBDatabase::renameObjectStore):
459         (WebCore::IDBServer::UniqueIDBDatabase::deleteIndex):
460         (WebCore::IDBServer::UniqueIDBDatabase::renameIndex):
461         (WebCore::IDBServer::UniqueIDBDatabase::performPutOrAdd):
462         (WebCore::IDBServer::UniqueIDBDatabase::commitTransaction):
463         (WebCore::IDBServer::UniqueIDBDatabase::abortTransaction):
464         * Modules/indexeddb/shared/IDBError.h:
465         (WebCore::IDBError::userDeleteError):
466         * Modules/indexeddb/shared/IDBTransactionInfo.cpp:
467         (WebCore::IDBTransactionInfo::loggingString const):
468         * Modules/mediastream/CanvasCaptureMediaStreamTrack.cpp:
469         (WebCore::CanvasCaptureMediaStreamTrack::Source::canvasChanged):
470         * Modules/mediastream/PeerConnectionBackend.cpp:
471         (WebCore::PeerConnectionBackend::addIceCandidate):
472         * Modules/mediastream/UserMediaRequest.cpp:
473         (WebCore::UserMediaRequest::deny):
474         * Modules/mediastream/libwebrtc/LibWebRTCMediaEndpoint.cpp:
475         (WebCore::LibWebRTCMediaEndpoint::doSetLocalDescription):
476         * Modules/mediastream/libwebrtc/LibWebRTCPeerConnectionBackend.cpp:
477         (WebCore::LibWebRTCPeerConnectionBackend::doAddIceCandidate):
478         * Modules/paymentrequest/PaymentRequest.cpp:
479         (WebCore::checkAndCanonicalizeTotal):
480         (WebCore::PaymentRequest::create):
481         * Modules/quota/DOMWindowQuota.cpp:
482         (WebCore::DOMWindowQuota::webkitStorageInfo const):
483         * Modules/webaudio/AudioBufferSourceNode.cpp:
484         (WebCore::AudioBufferSourceNode::looping):
485         (WebCore::AudioBufferSourceNode::setLooping):
486         * Modules/webaudio/AudioNode.cpp:
487         (WebCore::AudioNode::channelCountMode):
488         (WebCore::AudioNode::channelInterpretation):
489         * Modules/webaudio/MediaStreamAudioSource.cpp:
490         (WebCore::MediaStreamAudioSource::MediaStreamAudioSource):
491         * Modules/webauthn/AuthenticatorManager.cpp:
492         (WebCore::AuthenticatorManagerInternal::produceClientDataJson):
493         (WebCore::AuthenticatorManagerInternal::initTimeoutTimer):
494         (WebCore::AuthenticatorManager::create const):
495         (WebCore::AuthenticatorManager::discoverFromExternalSource const):
496         (WebCore::AuthenticatorManager::isUserVerifyingPlatformAuthenticatorAvailable const):
497         * Modules/webauthn/cocoa/LocalAuthenticator.mm:
498         (WebCore::LocalAuthenticator::makeCredential):
499         (WebCore::LocalAuthenticator::getAssertion):
500         * Modules/webdatabase/DatabaseTracker.cpp:
501         (WebCore::DatabaseTracker::usage):
502         * Modules/websockets/WebSocket.cpp:
503         (WebCore::WebSocket::connect):
504         (WebCore::WebSocket::close):
505         (WebCore::WebSocket::binaryType const):
506         * Modules/websockets/WebSocketHandshake.cpp:
507         (WebCore::WebSocketHandshake::readStatusLine):
508         (WebCore::WebSocketHandshake::readHTTPHeaders):
509         (WebCore::WebSocketHandshake::checkResponseHeaders):
510         * Modules/webvr/VRDisplay.cpp:
511         (WebCore::VRDisplay::requestPresent):
512         (WebCore::VRDisplay::exitPresent):
513         * accessibility/AccessibilityObject.cpp:
514         (WebCore::AccessibilityObject::defaultLiveRegionStatusForRole):
515         (WebCore::AccessibilityObject::invalidStatus const):
516         * accessibility/AccessibilityRenderObject.cpp:
517         (WebCore::AccessibilityRenderObject::textUnderElement const):
518         * bindings/js/JSCustomElementInterface.cpp:
519         (WebCore::constructCustomElementSynchronously):
520         * bindings/js/JSCustomElementRegistryCustom.cpp:
521         (WebCore::getCustomElementCallback):
522         (WebCore::validateCustomElementNameAndThrowIfNeeded):
523         (WebCore::JSCustomElementRegistry::define):
524         * bindings/js/JSCustomXPathNSResolver.cpp:
525         (WebCore::JSCustomXPathNSResolver::lookupNamespaceURI):
526         * bindings/js/JSDOMConstructorBase.cpp:
527         (WebCore::callThrowTypeError):
528         * bindings/js/JSDOMConstructorBase.h:
529         (WebCore::JSDOMConstructorBase::className):
530         * bindings/js/JSDOMConstructorNotConstructable.h:
531         (WebCore::JSDOMConstructorNotConstructable::callThrowTypeError):
532         * bindings/js/JSDOMExceptionHandling.cpp:
533         (WebCore::createDOMException):
534         (WebCore::throwSequenceTypeError):
535         (WebCore::throwNonFiniteTypeError):
536         * bindings/js/JSDOMIterator.h:
537         (WebCore::iteratorForEach):
538         (WebCore::IteratorTraits>::next):
539         * bindings/js/JSDOMWindowBase.cpp:
540         (WebCore::isResponseCorrect):
541         (WebCore::handleResponseOnStreamingAction):
542         (WebCore::JSDOMWindowBase::compileStreaming):
543         (WebCore::JSDOMWindowBase::instantiateStreaming):
544         * bindings/js/JSDOMWindowCustom.cpp:
545         (WebCore::JSDOMWindow::preventExtensions):
546         (WebCore::JSDOMWindow::toStringName):
547         * bindings/js/JSHTMLElementCustom.cpp:
548         (WebCore::constructJSHTMLElement):
549         * bindings/js/JSLocationCustom.cpp:
550         (WebCore::JSLocation::preventExtensions):
551         (WebCore::JSLocation::toStringName):
552         * bindings/js/JSReadableStreamPrivateConstructors.cpp:
553         (WebCore::constructJSReadableStreamDefaultController):
554         (WebCore::constructJSReadableByteStreamController):
555         (WebCore::constructJSReadableStreamBYOBRequest):
556         * bindings/js/JSRemoteDOMWindowCustom.cpp:
557         (WebCore::JSRemoteDOMWindow::preventExtensions):
558         (WebCore::JSRemoteDOMWindow::toStringName):
559         * bindings/js/ReadableStreamDefaultController.cpp:
560         (WebCore::ReadableStreamDefaultController::invoke):
561         * bindings/js/ScriptModuleLoader.cpp:
562         (WebCore::resolveModuleSpecifier):
563         (WebCore::ScriptModuleLoader::resolve):
564         (WebCore::ScriptModuleLoader::fetch):
565         (WebCore::ScriptModuleLoader::evaluate):
566         (WebCore::ScriptModuleLoader::importModule):
567         (WebCore::ScriptModuleLoader::notifyFinished):
568         * bindings/js/SerializedScriptValue.cpp:
569         (WebCore::maybeThrowExceptionIfSerializationFailed):
570         * bindings/js/WorkerScriptController.cpp:
571         (WebCore::WorkerScriptController::evaluate):
572         * bindings/scripts/CodeGeneratorJS.pm:
573         (GenerateDefaultValue):
574         (GenerateConstructorHelperMethods):
575         (GenerateCallTracer):
576         * bindings/scripts/test/JS/JSInterfaceName.cpp:
577         (WebCore::JSInterfaceNameConstructor::initializeProperties):
578         * bindings/scripts/test/JS/JSMapLike.cpp:
579         (WebCore::JSMapLikeConstructor::initializeProperties):
580         * bindings/scripts/test/JS/JSReadOnlyMapLike.cpp:
581         (WebCore::JSReadOnlyMapLikeConstructor::initializeProperties):
582         * bindings/scripts/test/JS/JSTestActiveDOMObject.cpp:
583         (WebCore::JSTestActiveDOMObjectConstructor::initializeProperties):
584         * bindings/scripts/test/JS/JSTestCEReactions.cpp:
585         (WebCore::JSTestCEReactionsConstructor::initializeProperties):
586         * bindings/scripts/test/JS/JSTestCEReactionsStringifier.cpp:
587         (WebCore::JSTestCEReactionsStringifierConstructor::initializeProperties):
588         * bindings/scripts/test/JS/JSTestCallTracer.cpp:
589         (WebCore::JSTestCallTracerConstructor::initializeProperties):
590         (WebCore::jsTestCallTracerTestAttributeInterfaceGetter):
591         (WebCore::setJSTestCallTracerTestAttributeInterfaceSetter):
592         (WebCore::jsTestCallTracerTestAttributeSpecifiedGetter):
593         (WebCore::setJSTestCallTracerTestAttributeSpecifiedSetter):
594         (WebCore::jsTestCallTracerTestAttributeWithVariantGetter):
595         (WebCore::setJSTestCallTracerTestAttributeWithVariantSetter):
596         (WebCore::jsTestCallTracerPrototypeFunctionTestOperationInterfaceBody):
597         (WebCore::jsTestCallTracerPrototypeFunctionTestOperationSpecifiedBody):
598         (WebCore::jsTestCallTracerPrototypeFunctionTestOperationWithArgumentsBody):
599         (WebCore::jsTestCallTracerPrototypeFunctionTestOperationWithNullableArgumentBody):
600         (WebCore::jsTestCallTracerPrototypeFunctionTestOperationWithVariantArgumentBody):
601         (WebCore::jsTestCallTracerPrototypeFunctionTestOperationWithNullableVariantArgumentBody):
602         (WebCore::jsTestCallTracerPrototypeFunctionTestOperationWithOptionalVariantArgumentBody):
603         (WebCore::jsTestCallTracerPrototypeFunctionTestOperationWithDefaultVariantArgumentBody):
604         * bindings/scripts/test/JS/JSTestCallbackInterface.cpp:
605         (WebCore::JSTestCallbackInterfaceConstructor::initializeProperties):
606         * bindings/scripts/test/JS/JSTestClassWithJSBuiltinConstructor.cpp:
607         (WebCore::JSTestClassWithJSBuiltinConstructorConstructor::initializeProperties):
608         * bindings/scripts/test/JS/JSTestCustomConstructorWithNoInterfaceObject.cpp:
609         (WebCore::JSTestCustomConstructorWithNoInterfaceObjectConstructor::initializeProperties):
610         * bindings/scripts/test/JS/JSTestDOMJIT.cpp:
611         (WebCore::JSTestDOMJITConstructor::initializeProperties):
612         * bindings/scripts/test/JS/JSTestEnabledBySetting.cpp:
613         (WebCore::JSTestEnabledBySettingConstructor::initializeProperties):
614         * bindings/scripts/test/JS/JSTestEventConstructor.cpp:
615         (WebCore::JSTestEventConstructorConstructor::initializeProperties):
616         * bindings/scripts/test/JS/JSTestEventTarget.cpp:
617         (WebCore::JSTestEventTargetConstructor::initializeProperties):
618         * bindings/scripts/test/JS/JSTestException.cpp:
619         (WebCore::JSTestExceptionConstructor::initializeProperties):
620         * bindings/scripts/test/JS/JSTestGenerateIsReachable.cpp:
621         (WebCore::JSTestGenerateIsReachableConstructor::initializeProperties):
622         * bindings/scripts/test/JS/JSTestGlobalObject.cpp:
623         (WebCore::JSTestGlobalObjectConstructor::initializeProperties):
624         * bindings/scripts/test/JS/JSTestIndexedSetterNoIdentifier.cpp:
625         (WebCore::JSTestIndexedSetterNoIdentifierConstructor::initializeProperties):
626         * bindings/scripts/test/JS/JSTestIndexedSetterThrowingException.cpp:
627         (WebCore::JSTestIndexedSetterThrowingExceptionConstructor::initializeProperties):
628         * bindings/scripts/test/JS/JSTestIndexedSetterWithIdentifier.cpp:
629         (WebCore::JSTestIndexedSetterWithIdentifierConstructor::initializeProperties):
630         * bindings/scripts/test/JS/JSTestInterface.cpp:
631         (WebCore::JSTestInterfaceConstructor::construct):
632         (WebCore::JSTestInterfaceConstructor::initializeProperties):
633         * bindings/scripts/test/JS/JSTestInterfaceLeadingUnderscore.cpp:
634         (WebCore::JSTestInterfaceLeadingUnderscoreConstructor::initializeProperties):
635         * bindings/scripts/test/JS/JSTestIterable.cpp:
636         (WebCore::JSTestIterableConstructor::initializeProperties):
637         * bindings/scripts/test/JS/JSTestJSBuiltinConstructor.cpp:
638         (WebCore::JSTestJSBuiltinConstructorConstructor::initializeProperties):
639         * bindings/scripts/test/JS/JSTestMediaQueryListListener.cpp:
640         (WebCore::JSTestMediaQueryListListenerConstructor::initializeProperties):
641         * bindings/scripts/test/JS/JSTestNamedAndIndexedSetterNoIdentifier.cpp:
642         (WebCore::JSTestNamedAndIndexedSetterNoIdentifierConstructor::initializeProperties):
643         * bindings/scripts/test/JS/JSTestNamedAndIndexedSetterThrowingException.cpp:
644         (WebCore::JSTestNamedAndIndexedSetterThrowingExceptionConstructor::initializeProperties):
645         * bindings/scripts/test/JS/JSTestNamedAndIndexedSetterWithIdentifier.cpp:
646         (WebCore::JSTestNamedAndIndexedSetterWithIdentifierConstructor::initializeProperties):
647         * bindings/scripts/test/JS/JSTestNamedConstructor.cpp:
648         (WebCore::JSTestNamedConstructorConstructor::initializeProperties):
649         (WebCore::JSTestNamedConstructorNamedConstructor::construct):
650         (WebCore::JSTestNamedConstructorNamedConstructor::initializeProperties):
651         * bindings/scripts/test/JS/JSTestNamedDeleterNoIdentifier.cpp:
652         (WebCore::JSTestNamedDeleterNoIdentifierConstructor::initializeProperties):
653         * bindings/scripts/test/JS/JSTestNamedDeleterThrowingException.cpp:
654         (WebCore::JSTestNamedDeleterThrowingExceptionConstructor::initializeProperties):
655         * bindings/scripts/test/JS/JSTestNamedDeleterWithIdentifier.cpp:
656         (WebCore::JSTestNamedDeleterWithIdentifierConstructor::initializeProperties):
657         * bindings/scripts/test/JS/JSTestNamedDeleterWithIndexedGetter.cpp:
658         (WebCore::JSTestNamedDeleterWithIndexedGetterConstructor::initializeProperties):
659         * bindings/scripts/test/JS/JSTestNamedGetterCallWith.cpp:
660         (WebCore::JSTestNamedGetterCallWithConstructor::initializeProperties):
661         * bindings/scripts/test/JS/JSTestNamedGetterNoIdentifier.cpp:
662         (WebCore::JSTestNamedGetterNoIdentifierConstructor::initializeProperties):
663         * bindings/scripts/test/JS/JSTestNamedGetterWithIdentifier.cpp:
664         (WebCore::JSTestNamedGetterWithIdentifierConstructor::initializeProperties):
665         * bindings/scripts/test/JS/JSTestNamedSetterNoIdentifier.cpp:
666         (WebCore::JSTestNamedSetterNoIdentifierConstructor::initializeProperties):
667         * bindings/scripts/test/JS/JSTestNamedSetterThrowingException.cpp:
668         (WebCore::JSTestNamedSetterThrowingExceptionConstructor::initializeProperties):
669         * bindings/scripts/test/JS/JSTestNamedSetterWithIdentifier.cpp:
670         (WebCore::JSTestNamedSetterWithIdentifierConstructor::initializeProperties):
671         * bindings/scripts/test/JS/JSTestNamedSetterWithIndexedGetter.cpp:
672         (WebCore::JSTestNamedSetterWithIndexedGetterConstructor::initializeProperties):
673         * bindings/scripts/test/JS/JSTestNamedSetterWithIndexedGetterAndSetter.cpp:
674         (WebCore::JSTestNamedSetterWithIndexedGetterAndSetterConstructor::initializeProperties):
675         * bindings/scripts/test/JS/JSTestNamedSetterWithOverrideBuiltins.cpp:
676         (WebCore::JSTestNamedSetterWithOverrideBuiltinsConstructor::initializeProperties):
677         * bindings/scripts/test/JS/JSTestNamedSetterWithUnforgableProperties.cpp:
678         (WebCore::JSTestNamedSetterWithUnforgablePropertiesConstructor::initializeProperties):
679         * bindings/scripts/test/JS/JSTestNamedSetterWithUnforgablePropertiesAndOverrideBuiltins.cpp:
680         (WebCore::JSTestNamedSetterWithUnforgablePropertiesAndOverrideBuiltinsConstructor::initializeProperties):
681         * bindings/scripts/test/JS/JSTestNode.cpp:
682         (WebCore::JSTestNodeConstructor::initializeProperties):
683         * bindings/scripts/test/JS/JSTestObj.cpp:
684         (WebCore::convertDictionary<TestObj::Dictionary>):
685         (WebCore::JSTestObjConstructor::initializeProperties):
686         (WebCore::jsTestObjPrototypeFunctionMethodWithOptionalStringAndDefaultValueBody):
687         * bindings/scripts/test/JS/JSTestOverloadedConstructors.cpp:
688         (WebCore::JSTestOverloadedConstructorsConstructor::initializeProperties):
689         * bindings/scripts/test/JS/JSTestOverloadedConstructorsWithSequence.cpp:
690         (WebCore::JSTestOverloadedConstructorsWithSequenceConstructor::initializeProperties):
691         * bindings/scripts/test/JS/JSTestOverrideBuiltins.cpp:
692         (WebCore::JSTestOverrideBuiltinsConstructor::initializeProperties):
693         * bindings/scripts/test/JS/JSTestPluginInterface.cpp:
694         (WebCore::JSTestPluginInterfaceConstructor::initializeProperties):
695         * bindings/scripts/test/JS/JSTestPromiseRejectionEvent.cpp:
696         (WebCore::JSTestPromiseRejectionEventConstructor::initializeProperties):
697         * bindings/scripts/test/JS/JSTestSerialization.cpp:
698         (WebCore::JSTestSerializationConstructor::initializeProperties):
699         * bindings/scripts/test/JS/JSTestSerializationIndirectInheritance.cpp:
700         (WebCore::JSTestSerializationIndirectInheritanceConstructor::initializeProperties):
701         * bindings/scripts/test/JS/JSTestSerializationInherit.cpp:
702         (WebCore::JSTestSerializationInheritConstructor::initializeProperties):
703         * bindings/scripts/test/JS/JSTestSerializationInheritFinal.cpp:
704         (WebCore::JSTestSerializationInheritFinalConstructor::initializeProperties):
705         * bindings/scripts/test/JS/JSTestSerializedScriptValueInterface.cpp:
706         (WebCore::JSTestSerializedScriptValueInterfaceConstructor::initializeProperties):
707         * bindings/scripts/test/JS/JSTestStringifier.cpp:
708         (WebCore::JSTestStringifierConstructor::initializeProperties):
709         * bindings/scripts/test/JS/JSTestStringifierAnonymousOperation.cpp:
710         (WebCore::JSTestStringifierAnonymousOperationConstructor::initializeProperties):
711         * bindings/scripts/test/JS/JSTestStringifierNamedOperation.cpp:
712         (WebCore::JSTestStringifierNamedOperationConstructor::initializeProperties):
713         * bindings/scripts/test/JS/JSTestStringifierOperationImplementedAs.cpp:
714         (WebCore::JSTestStringifierOperationImplementedAsConstructor::initializeProperties):
715         * bindings/scripts/test/JS/JSTestStringifierOperationNamedToString.cpp:
716         (WebCore::JSTestStringifierOperationNamedToStringConstructor::initializeProperties):
717         * bindings/scripts/test/JS/JSTestStringifierReadOnlyAttribute.cpp:
718         (WebCore::JSTestStringifierReadOnlyAttributeConstructor::initializeProperties):
719         * bindings/scripts/test/JS/JSTestStringifierReadWriteAttribute.cpp:
720         (WebCore::JSTestStringifierReadWriteAttributeConstructor::initializeProperties):
721         * bindings/scripts/test/JS/JSTestTypedefs.cpp:
722         (WebCore::JSTestTypedefsConstructor::initializeProperties):
723         * bridge/c/c_instance.cpp:
724         (JSC::Bindings::CInstance::invokeMethod):
725         (JSC::Bindings::CInstance::invokeDefaultMethod):
726         (JSC::Bindings::CInstance::invokeConstruct):
727         (JSC::Bindings::CInstance::stringValue const):
728         (JSC::Bindings::CInstance::toJSPrimitive const):
729         * bridge/objc/objc_instance.mm:
730         (ObjcInstance::invokeMethod):
731         * bridge/objc/objc_runtime.mm:
732         (JSC::Bindings::ObjcArray::setValueAt const):
733         * contentextensions/ContentExtensionsBackend.cpp:
734         (WebCore::ContentExtensions::ContentExtensionsBackend::processContentExtensionRulesForLoad):
735         * crypto/SubtleCrypto.cpp:
736         (WebCore::rejectWithException):
737         (WebCore::SubtleCrypto::encrypt):
738         (WebCore::SubtleCrypto::decrypt):
739         (WebCore::SubtleCrypto::sign):
740         (WebCore::SubtleCrypto::verify):
741         (WebCore::SubtleCrypto::deriveKey):
742         (WebCore::SubtleCrypto::deriveBits):
743         (WebCore::SubtleCrypto::exportKey):
744         (WebCore::SubtleCrypto::wrapKey):
745         (WebCore::SubtleCrypto::unwrapKey):
746         * crypto/keys/CryptoKeyEC.cpp:
747         (WebCore::CryptoKeyEC::algorithm const):
748         * css/CSSInheritedValue.cpp:
749         (WebCore::CSSInheritedValue::customCSSText const):
750         * css/CSSInitialValue.cpp:
751         (WebCore::CSSInitialValue::customCSSText const):
752         * css/CSSKeyframesRule.cpp:
753         (WebCore::CSSKeyframesRule::insertRule):
754         * css/CSSRevertValue.cpp:
755         (WebCore::CSSRevertValue::customCSSText const):
756         * css/CSSStyleSheet.h:
757         * css/CSSUnsetValue.cpp:
758         (WebCore::CSSUnsetValue::customCSSText const):
759         * css/CSSValueList.cpp:
760         (WebCore::CSSValueList::customCSSText const):
761         * css/DOMMatrixReadOnly.cpp:
762         (WebCore::DOMMatrixReadOnly::validateAndFixup):
763         (WebCore::DOMMatrixReadOnly::toFloat32Array const):
764         (WebCore::DOMMatrixReadOnly::toFloat64Array const):
765         (WebCore::DOMMatrixReadOnly::toString const):
766         * css/DeprecatedCSSOMValueList.cpp:
767         (WebCore::DeprecatedCSSOMValueList::cssText const):
768         * css/FontFace.cpp:
769         (WebCore::FontFace::create):
770         (WebCore::FontFace::unicodeRange const):
771         (WebCore::FontFace::featureSettings const):
772         * css/MediaQuery.cpp:
773         (WebCore::MediaQuery::serialize const):
774         * css/PropertySetCSSStyleDeclaration.cpp:
775         (WebCore::PropertySetCSSStyleDeclaration::getPropertyPriority):
776         * css/WebKitCSSMatrix.cpp:
777         (WebCore::WebKitCSSMatrix::toString const):
778         * css/parser/MediaQueryParser.cpp:
779         (WebCore::MediaQueryParser::commitMediaQuery):
780         * dom/CDATASection.cpp:
781         (WebCore::CDATASection::nodeName const):
782         * dom/Comment.cpp:
783         (WebCore::Comment::nodeName const):
784         * dom/DOMException.cpp:
785         (WebCore::DOMException::description const):
786         (WebCore::DOMException::create):
787         * dom/DOMException.h:
788         (WebCore::DOMException::name):
789         (WebCore::DOMException::message):
790         * dom/DOMImplementation.cpp:
791         (WebCore::DOMImplementation::createHTMLDocument):
792         * dom/DataTransfer.cpp:
793         (WebCore::DataTransfer::DataTransfer):
794         (WebCore::DataTransfer::types const):
795         (WebCore::DataTransfer::createForInputEvent):
796         (WebCore::DataTransfer::dropEffect const):
797         (WebCore::DataTransfer::effectAllowed const):
798         * dom/DataTransferItem.cpp:
799         (WebCore::DataTransferItem::kind const):
800         * dom/Document.cpp:
801         (WebCore::Document::suggestedMIMEType const):
802         (WebCore::Document::contentType const):
803         (WebCore::Document::nodeName const):
804         (WebCore::Document::writeln):
805         (WebCore::Document::canNavigate):
806         (WebCore::Document::designMode const):
807         (WebCore::Document::requestFullScreenForElement):
808         * dom/DocumentFragment.cpp:
809         (WebCore::DocumentFragment::nodeName const):
810         * dom/InlineStyleSheetOwner.cpp:
811         (WebCore::InlineStyleSheetOwner::createSheet):
812         * dom/MouseEvent.cpp:
813         (WebCore::MouseEvent::initMouseEventQuirk):
814         * dom/ScriptElement.cpp:
815         (WebCore::ScriptElement::requestModuleScript):
816         * dom/ScriptElementCachedScriptFetcher.cpp:
817         (WebCore::ScriptElementCachedScriptFetcher::requestModuleScript const):
818         * dom/ScriptExecutionContext.cpp:
819         (WebCore::ScriptExecutionContext::dispatchErrorEvent):
820         * dom/ScriptedAnimationController.cpp:
821         (WebCore::throttlingReasonsToString):
822         * dom/Text.cpp:
823         (WebCore::Text::nodeName const):
824         * dom/TextEncoder.cpp:
825         (WebCore::TextEncoder::encoding const):
826         * dom/Traversal.cpp:
827         (WebCore::NodeIteratorBase::acceptNode):
828         * editing/EditCommand.cpp:
829         (WebCore::inputTypeNameForEditingAction):
830         * editing/Editing.cpp:
831         (WebCore::createTabSpanElement):
832         * editing/Editor.cpp:
833         (WebCore::createDataTransferForClipboardEvent):
834         * editing/EditorCommand.cpp:
835         (WebCore::executeInsertBacktab):
836         (WebCore::executeInsertLineBreak):
837         (WebCore::executeInsertNewline):
838         (WebCore::executeInsertTab):
839         (WebCore::executeJustifyCenter):
840         (WebCore::executeJustifyFull):
841         (WebCore::executeJustifyLeft):
842         (WebCore::executeJustifyRight):
843         (WebCore::executeStrikethrough):
844         (WebCore::executeSubscript):
845         (WebCore::executeSuperscript):
846         (WebCore::executeToggleBold):
847         (WebCore::executeToggleItalic):
848         (WebCore::executeUnderline):
849         (WebCore::executeUnscript):
850         (WebCore::stateBold):
851         (WebCore::stateItalic):
852         (WebCore::stateStrikethrough):
853         (WebCore::stateSubscript):
854         (WebCore::stateSuperscript):
855         (WebCore::stateUnderline):
856         (WebCore::stateJustifyCenter):
857         (WebCore::stateJustifyFull):
858         (WebCore::stateJustifyLeft):
859         (WebCore::stateJustifyRight):
860         (WebCore::Editor::Command::value const):
861         * editing/SmartReplace.cpp:
862         (WebCore::getSmartSet):
863         * fileapi/FileCocoa.mm:
864         (WebCore::File::computeNameAndContentTypeForReplacedFile):
865         * html/BaseCheckableInputType.cpp:
866         (WebCore::BaseCheckableInputType::saveFormControlState const):
867         * html/BaseChooserOnlyDateAndTimeInputType.cpp:
868         (WebCore::BaseChooserOnlyDateAndTimeInputType::updateInnerTextValue):
869         * html/ColorInputType.cpp:
870         (WebCore::ColorInputType::fallbackValue const):
871         * html/DOMFormData.cpp:
872         (WebCore::DOMFormData::createFileEntry):
873         * html/FTPDirectoryDocument.cpp:
874         (WebCore::processFilesizeString):
875         (WebCore::FTPDirectoryDocumentParser::loadDocumentTemplate):
876         * html/HTMLAnchorElement.cpp:
877         (WebCore::HTMLAnchorElement::relList const):
878         (WebCore::HTMLAnchorElement::isSystemPreviewLink const):
879         * html/HTMLAppletElement.cpp:
880         (WebCore::HTMLAppletElement::HTMLAppletElement):
881         (WebCore::HTMLAppletElement::updateWidget):
882         * html/HTMLCanvasElement.cpp:
883         (WebCore::toEncodingMimeType):
884         (WebCore::HTMLCanvasElement::toDataURL):
885         (WebCore::HTMLCanvasElement::captureStream):
886         * html/HTMLElement.cpp:
887         (WebCore::HTMLElement::contentEditable const):
888         * html/HTMLFormControlElement.cpp:
889         (WebCore::shouldAutofocus):
890         * html/HTMLHtmlElement.cpp:
891         (WebCore::HTMLHtmlElement::insertedByParser):
892         * html/HTMLKeygenElement.cpp:
893         (WebCore::HTMLKeygenElement::keytype const):
894         * html/HTMLMediaElement.cpp:
895         (WebCore::HTMLMediaElement::canPlayType const):
896         (WebCore::stringForNetworkState):
897         (WebCore::HTMLMediaElement::preload const):
898         (WebCore::HTMLMediaElement::ensureMediaControlsInjectedScript):
899         * html/HTMLObjectElement.cpp:
900         (WebCore::mapDataParamToSrc):
901         * html/HTMLPlugInElement.cpp:
902         (WebCore::HTMLPlugInElement::setReplacement):
903         * html/ImageData.cpp:
904         (WebCore::ImageData::create):
905         * html/ImageDocument.cpp:
906         (WebCore::ImageDocument::createDocumentStructure):
907         * html/ImageInputType.cpp:
908         (WebCore::ImageInputType::appendFormData const):
909         * html/PluginDocument.cpp:
910         (WebCore::PluginDocumentParser::createDocumentStructure):
911         * html/canvas/WebGL2RenderingContext.cpp:
912         (WebCore::WebGL2RenderingContext::getExtension):
913         (WebCore::WebGL2RenderingContext::getSupportedExtensions):
914         (WebCore::WebGL2RenderingContext::getParameter):
915         * html/canvas/WebGLCompressedTextureASTC.cpp:
916         (WebCore::WebGLCompressedTextureASTC::WebGLCompressedTextureASTC):
917         (WebCore::WebGLCompressedTextureASTC::getSupportedProfiles):
918         (WebCore::WebGLCompressedTextureASTC::supported):
919         (WebCore::m_isLDRSupported): Deleted.
920         * html/canvas/WebGLRenderingContext.cpp:
921         (WebCore::WebGLRenderingContext::getExtension):
922         (WebCore::WebGLRenderingContext::getSupportedExtensions):
923         (WebCore::WebGLRenderingContext::getParameter):
924         * html/canvas/WebGLRenderingContextBase.cpp:
925         (WebCore::WebGLRenderingContextBase::create):
926         (WebCore::WebGLRenderingContextBase::enableSupportedExtension):
927         * html/canvas/WebGLRenderingContextBase.h:
928         * html/canvas/WebGPUEnums.cpp:
929         (WebCore::web3DCompareFunctionName):
930         * html/parser/HTMLParserIdioms.cpp:
931         (WebCore::parseCORSSettingsAttribute):
932         * html/parser/HTMLPreloadScanner.cpp:
933         (WebCore::TokenPreloadScanner::initiatorFor):
934         * html/parser/HTMLResourcePreloader.cpp:
935         (WebCore::PreloadRequest::resourceRequest):
936         * html/parser/HTMLTreeBuilder.cpp:
937         (WebCore::HTMLTreeBuilder::insertPhoneNumberLink):
938         * html/track/DataCue.cpp:
939         (WebCore::DataCue::toJSONString const):
940         * html/track/InbandGenericTextTrack.cpp:
941         (WebCore::InbandGenericTextTrack::updateCueFromCueData):
942         * html/track/TextTrackCue.cpp:
943         (WebCore::TextTrackCue::toJSON const):
944         * html/track/TextTrackCueGeneric.cpp:
945         (WebCore::TextTrackCueGeneric::toJSONString const):
946         * html/track/TrackBase.cpp:
947         (WebCore::TrackBase::setLanguage):
948         * html/track/VTTCue.cpp:
949         (WebCore::VTTCue::toJSON const):
950         * inspector/CommandLineAPIModule.cpp:
951         (WebCore::CommandLineAPIModule::CommandLineAPIModule):
952         * inspector/InspectorCanvas.cpp:
953         (WebCore::InspectorCanvas::getCanvasContentAsDataURL):
954         (WebCore::InspectorCanvas::indexForData):
955         (WebCore::InspectorCanvas::buildInitialState):
956         (WebCore::InspectorCanvas::buildArrayForCanvasGradient):
957         (WebCore::InspectorCanvas::buildArrayForCanvasPattern):
958         * inspector/InspectorFrontendClient.h:
959         (WebCore::InspectorFrontendClient::debuggableType):
960         * inspector/InspectorFrontendClientLocal.cpp:
961         (WebCore::InspectorFrontendClientLocal::openInNewTab):
962         * inspector/InspectorFrontendHost.cpp:
963         (WebCore::InspectorFrontendHost::userInterfaceLayoutDirection):
964         (WebCore::InspectorFrontendHost::platform):
965         (WebCore::InspectorFrontendHost::port):
966         * inspector/InspectorOverlay.cpp:
967         (WebCore::InspectorOverlay::setIndicating):
968         (WebCore::InspectorOverlay::drawPaintRects):
969         (WebCore::InspectorOverlay::drawRulers):
970         (WebCore::appendPathSegment):
971         * inspector/InspectorStyleSheet.h:
972         (WebCore::InspectorCSSId::InspectorCSSId):
973         * inspector/TimelineRecordFactory.cpp:
974         (WebCore::TimelineRecordFactory::createGenericRecord):
975         (WebCore::TimelineRecordFactory::createFunctionCallData):
976         (WebCore::TimelineRecordFactory::createConsoleProfileData):
977         (WebCore::TimelineRecordFactory::createProbeSampleData):
978         (WebCore::TimelineRecordFactory::createEventDispatchData):
979         (WebCore::TimelineRecordFactory::createGenericTimerData):
980         (WebCore::TimelineRecordFactory::createTimerInstallData):
981         (WebCore::TimelineRecordFactory::createEvaluateScriptData):
982         (WebCore::TimelineRecordFactory::createTimeStampData):
983         (WebCore::TimelineRecordFactory::createAnimationFrameData):
984         (WebCore::TimelineRecordFactory::createPaintData):
985         (WebCore::TimelineRecordFactory::appendLayoutRoot):
986         * inspector/WebInjectedScriptHost.cpp:
987         (WebCore::WebInjectedScriptHost::subtype):
988         (WebCore::jsStringForPaymentRequestState):
989         (WebCore::WebInjectedScriptHost::getInternalProperties):
990         * inspector/agents/InspectorApplicationCacheAgent.cpp:
991         (WebCore::InspectorApplicationCacheAgent::InspectorApplicationCacheAgent):
992         * inspector/agents/InspectorCSSAgent.cpp:
993         (WebCore::InspectorCSSAgent::InspectorCSSAgent):
994         (WebCore::InspectorCSSAgent::getMatchedStylesForNode):
995         (WebCore::InspectorCSSAgent::createStyleSheet):
996         (WebCore::InspectorCSSAgent::addRule):
997         (WebCore::InspectorCSSAgent::elementForId):
998         (WebCore::InspectorCSSAgent::assertStyleSheetForId):
999         * inspector/agents/InspectorCanvasAgent.cpp:
1000         (WebCore::InspectorCanvasAgent::InspectorCanvasAgent):
1001         (WebCore::InspectorCanvasAgent::requestNode):
1002         (WebCore::InspectorCanvasAgent::requestContent):
1003         (WebCore::InspectorCanvasAgent::resolveCanvasContext):
1004         (WebCore::InspectorCanvasAgent::startRecording):
1005         (WebCore::InspectorCanvasAgent::stopRecording):
1006         (WebCore::InspectorCanvasAgent::requestShaderSource):
1007         (WebCore::InspectorCanvasAgent::updateShader):
1008         (WebCore::InspectorCanvasAgent::setShaderProgramDisabled):
1009         (WebCore::InspectorCanvasAgent::setShaderProgramHighlighted):
1010         (WebCore::InspectorCanvasAgent::assertInspectorCanvas):
1011         (WebCore::InspectorCanvasAgent::assertInspectorProgram):
1012         * inspector/agents/InspectorDOMAgent.cpp:
1013         (WebCore::InspectorDOMAgent::InspectorDOMAgent):
1014         (WebCore::InspectorDOMAgent::assertNode):
1015         (WebCore::InspectorDOMAgent::assertDocument):
1016         (WebCore::InspectorDOMAgent::assertElement):
1017         (WebCore::InspectorDOMAgent::assertEditableNode):
1018         (WebCore::InspectorDOMAgent::assertEditableElement):
1019         (WebCore::InspectorDOMAgent::getDocument):
1020         (WebCore::InspectorDOMAgent::pushNodeToFrontend):
1021         (WebCore::InspectorDOMAgent::requestChildNodes):
1022         (WebCore::InspectorDOMAgent::querySelector):
1023         (WebCore::InspectorDOMAgent::querySelectorAll):
1024         (WebCore::InspectorDOMAgent::releaseBackendNodeIds):
1025         (WebCore::InspectorDOMAgent::setAttributesAsText):
1026         (WebCore::InspectorDOMAgent::removeNode):
1027         (WebCore::InspectorDOMAgent::setOuterHTML):
1028         (WebCore::InspectorDOMAgent::insertAdjacentHTML):
1029         (WebCore::InspectorDOMAgent::setNodeValue):
1030         (WebCore::InspectorDOMAgent::setEventListenerDisabled):
1031         (WebCore::InspectorDOMAgent::performSearch):
1032         (WebCore::InspectorDOMAgent::getSearchResults):
1033         (WebCore::InspectorDOMAgent::highlightConfigFromInspectorObject):
1034         (WebCore::InspectorDOMAgent::highlightQuad):
1035         (WebCore::InspectorDOMAgent::highlightSelector):
1036         (WebCore::InspectorDOMAgent::highlightNode):
1037         (WebCore::InspectorDOMAgent::highlightNodeList):
1038         (WebCore::InspectorDOMAgent::moveTo):
1039         (WebCore::InspectorDOMAgent::focus):
1040         (WebCore::InspectorDOMAgent::setInspectedNode):
1041         (WebCore::InspectorDOMAgent::resolveNode):
1042         (WebCore::InspectorDOMAgent::pushNodeByPathToFrontend):
1043         (WebCore::InspectorDOMAgent::pushNodeByBackendIdToFrontend):
1044         * inspector/agents/InspectorDOMDebuggerAgent.cpp:
1045         (WebCore::InspectorDOMDebuggerAgent::InspectorDOMDebuggerAgent):
1046         (WebCore::InspectorDOMDebuggerAgent::setBreakpoint):
1047         (WebCore::InspectorDOMDebuggerAgent::removeBreakpoint):
1048         (WebCore::domTypeName):
1049         (WebCore::InspectorDOMDebuggerAgent::pauseOnNativeEventIfNeeded):
1050         * inspector/agents/InspectorDOMStorageAgent.cpp:
1051         (WebCore::InspectorDOMStorageAgent::InspectorDOMStorageAgent):
1052         (WebCore::InspectorDOMStorageAgent::getDOMStorageItems):
1053         (WebCore::InspectorDOMStorageAgent::setDOMStorageItem):
1054         (WebCore::InspectorDOMStorageAgent::removeDOMStorageItem):
1055         (WebCore::InspectorDOMStorageAgent::findStorageArea):
1056         * inspector/agents/InspectorDatabaseAgent.cpp:
1057         (WebCore::InspectorDatabaseAgent::InspectorDatabaseAgent):
1058         (WebCore::InspectorDatabaseAgent::getDatabaseTableNames):
1059         * inspector/agents/InspectorIndexedDBAgent.cpp:
1060         (WebCore::Inspector::idbKeyRangeFromKeyRange):
1061         (WebCore::InspectorIndexedDBAgent::InspectorIndexedDBAgent):
1062         (WebCore::InspectorIndexedDBAgent::requestData):
1063         * inspector/agents/InspectorLayerTreeAgent.cpp:
1064         (WebCore::InspectorLayerTreeAgent::InspectorLayerTreeAgent):
1065         (WebCore::InspectorLayerTreeAgent::layersForNode):
1066         (WebCore::InspectorLayerTreeAgent::reasonsForCompositingLayer):
1067         * inspector/agents/InspectorMemoryAgent.cpp:
1068         (WebCore::InspectorMemoryAgent::InspectorMemoryAgent):
1069         * inspector/agents/InspectorNetworkAgent.cpp:
1070         (WebCore::InspectorNetworkAgent::InspectorNetworkAgent):
1071         (WebCore::InspectorNetworkAgent::getResponseBody):
1072         (WebCore::InspectorNetworkAgent::loadResource):
1073         (WebCore::InspectorNetworkAgent::resolveWebSocket):
1074         (WebCore::InspectorNetworkAgent::createTextDecoder):
1075         (WebCore::InspectorNetworkAgent::searchInRequest):
1076         * inspector/agents/InspectorPageAgent.cpp:
1077         (WebCore::InspectorPageAgent::resourceContent):
1078         (WebCore::InspectorPageAgent::InspectorPageAgent):
1079         (WebCore::InspectorPageAgent::navigate):
1080         (WebCore::InspectorPageAgent::assertFrame):
1081         (WebCore::InspectorPageAgent::assertDocumentLoader):
1082         (WebCore::InspectorPageAgent::snapshotNode):
1083         (WebCore::InspectorPageAgent::snapshotRect):
1084         (WebCore::InspectorPageAgent::archive):
1085         * inspector/agents/InspectorTimelineAgent.cpp:
1086         (WebCore::InspectorTimelineAgent::InspectorTimelineAgent):
1087         (WebCore::InspectorTimelineAgent::setInstruments):
1088         (WebCore::InspectorTimelineAgent::startFromConsole):
1089         (WebCore::InspectorTimelineAgent::stopFromConsole):
1090         (WebCore::InspectorTimelineAgent::didCompleteRecordEntry):
1091         * inspector/agents/InspectorWorkerAgent.cpp:
1092         (WebCore::InspectorWorkerAgent::InspectorWorkerAgent):
1093         (WebCore::InspectorWorkerAgent::initialized):
1094         (WebCore::InspectorWorkerAgent::sendMessageToWorker):
1095         * inspector/agents/WebConsoleAgent.cpp:
1096         (WebCore::WebConsoleAgent::setLoggingChannelLevel):
1097         * inspector/agents/page/PageDebuggerAgent.cpp:
1098         (WebCore::PageDebuggerAgent::injectedScriptForEval):
1099         * inspector/agents/page/PageNetworkAgent.cpp:
1100         (WebCore::PageNetworkAgent::scriptExecutionContext):
1101         * inspector/agents/page/PageRuntimeAgent.cpp:
1102         (WebCore::PageRuntimeAgent::injectedScriptForEval):
1103         * inspector/agents/worker/ServiceWorkerAgent.cpp:
1104         (WebCore::ServiceWorkerAgent::ServiceWorkerAgent):
1105         * inspector/agents/worker/WorkerDebuggerAgent.cpp:
1106         (WebCore::WorkerDebuggerAgent::injectedScriptForEval):
1107         * inspector/agents/worker/WorkerRuntimeAgent.cpp:
1108         (WebCore::WorkerRuntimeAgent::injectedScriptForEval):
1109         * loader/ContentFilter.cpp:
1110         (WebCore::ContentFilter::handleProvisionalLoadFailure):
1111         * loader/CrossOriginAccessControl.cpp:
1112         (WebCore::passesAccessControlCheck):
1113         (WebCore::validatePreflightResponse):
1114         * loader/CrossOriginPreflightChecker.cpp:
1115         (WebCore::CrossOriginPreflightChecker::notifyFinished):
1116         (WebCore::CrossOriginPreflightChecker::doPreflight):
1117         * loader/DocumentLoader.cpp:
1118         (WebCore::isRemoteWebArchive):
1119         (WebCore::DocumentLoader::startIconLoading):
1120         * loader/DocumentThreadableLoader.cpp:
1121         (WebCore::DocumentThreadableLoader::reportRedirectionWithBadScheme):
1122         (WebCore::DocumentThreadableLoader::reportContentSecurityPolicyError):
1123         (WebCore::DocumentThreadableLoader::reportCrossOriginResourceSharingError):
1124         (WebCore::DocumentThreadableLoader::reportIntegrityMetadataError):
1125         * loader/FormSubmission.cpp:
1126         (WebCore::FormSubmission::Attributes::parseEncodingType):
1127         * loader/FormSubmission.h:
1128         (WebCore::FormSubmission::Attributes::methodString):
1129         * loader/FrameLoader.cpp:
1130         (WebCore::FrameLoader::initForSynthesizedDocument):
1131         (WebCore::FrameLoader::loadURLIntoChildFrame):
1132         (WebCore::FrameLoader::defaultSubstituteDataForURL):
1133         (WebCore::FrameLoader::addHTTPUpgradeInsecureRequestsIfNeeded):
1134         (WebCore::FrameLoader::dispatchBeforeUnloadEvent):
1135         * loader/LinkLoader.cpp:
1136         (WebCore::LinkLoader::preconnectIfNeeded):
1137         * loader/NavigationScheduler.cpp:
1138         (WebCore::NavigationScheduler::scheduleLocationChange):
1139         * loader/PingLoader.cpp:
1140         (WebCore::PingLoader::sendViolationReport):
1141         * loader/ResourceLoadStatistics.cpp:
1142         (WebCore::ResourceLoadStatistics::primaryDomain):
1143         (WebCore::ResourceLoadStatistics::areDomainsAssociated):
1144         * loader/ResourceLoader.cpp:
1145         (WebCore::ResourceLoader::loadDataURL):
1146         (WebCore::ResourceLoader::didBlockAuthenticationChallenge):
1147         * loader/SubresourceLoader.cpp:
1148         (WebCore::SubresourceLoader::willSendRequestInternal):
1149         (WebCore::SubresourceLoader::checkRedirectionCrossOriginAccessControl):
1150         * loader/ThreadableLoader.cpp:
1151         (WebCore::ThreadableLoader::logError):
1152         * loader/appcache/ApplicationCacheGroup.cpp:
1153         (WebCore::ApplicationCacheGroup::abort):
1154         (WebCore::ApplicationCacheGroup::didFinishLoadingEntry):
1155         (WebCore::ApplicationCacheGroup::didFinishLoadingManifest):
1156         (WebCore::ApplicationCacheGroup::checkIfLoadIsComplete):
1157         * loader/appcache/ApplicationCacheHost.cpp:
1158         (WebCore::ApplicationCacheHost::createFileURL):
1159         * loader/appcache/ManifestParser.cpp:
1160         (WebCore::parseManifest):
1161         * loader/archive/ArchiveFactory.cpp:
1162         (WebCore::createArchiveMIMETypesMap):
1163         * loader/cache/CachedResource.cpp:
1164         (WebCore::CachedResource::load):
1165         * loader/cache/CachedResourceLoader.cpp:
1166         (WebCore::CachedResourceLoader::canRequest):
1167         (WebCore::CachedResourceLoader::requestResource):
1168         * loader/cache/CachedResourceRequest.cpp:
1169         (WebCore::acceptHeaderValueFromType):
1170         (WebCore::CachedResourceRequest::updateAcceptEncodingHeader):
1171         * loader/cache/CachedScript.cpp:
1172         (WebCore::CachedScript::CachedScript):
1173         * loader/cache/MemoryCache.cpp:
1174         (WebCore::MemoryCache::getOriginsWithCache):
1175         * loader/soup/ResourceLoaderSoup.cpp:
1176         (WebCore::ResourceLoader::loadGResource):
1177         * page/DOMSelection.cpp:
1178         (WebCore::DOMSelection::type const):
1179         * page/DOMWindow.cpp:
1180         (WebCore::DOMWindow::close):
1181         (WebCore::DOMWindow::addEventListener):
1182         (WebCore::DOMWindow::createWindow):
1183         * page/DebugPageOverlays.cpp:
1184         (WebCore::touchEventRegionColors):
1185         * page/DiagnosticLoggingKeys.cpp:
1186         (WebCore::DiagnosticLoggingKeys::mediaLoadedKey):
1187         (WebCore::DiagnosticLoggingKeys::mediaLoadingFailedKey):
1188         (WebCore::DiagnosticLoggingKeys::memoryCacheEntryDecisionKey):
1189         (WebCore::DiagnosticLoggingKeys::memoryCacheUsageKey):
1190         (WebCore::DiagnosticLoggingKeys::missingValidatorFieldsKey):
1191         (WebCore::DiagnosticLoggingKeys::pluginLoadedKey):
1192         (WebCore::DiagnosticLoggingKeys::pluginLoadingFailedKey):
1193         (WebCore::DiagnosticLoggingKeys::postPageBackgroundingCPUUsageKey):
1194         (WebCore::DiagnosticLoggingKeys::postPageBackgroundingMemoryUsageKey):
1195         (WebCore::DiagnosticLoggingKeys::pageHandlesWebGLContextLossKey):
1196         (WebCore::DiagnosticLoggingKeys::postPageLoadCPUUsageKey):
1197         (WebCore::DiagnosticLoggingKeys::postPageLoadMemoryUsageKey):
1198         (WebCore::DiagnosticLoggingKeys::provisionalLoadKey):
1199         (WebCore::DiagnosticLoggingKeys::pageContainsPluginKey):
1200         (WebCore::DiagnosticLoggingKeys::pageContainsAtLeastOnePluginKey):
1201         (WebCore::DiagnosticLoggingKeys::pageContainsMediaEngineKey):
1202         (WebCore::DiagnosticLoggingKeys::pageContainsAtLeastOneMediaEngineKey):
1203         (WebCore::DiagnosticLoggingKeys::pageLoadedKey):
1204         (WebCore::DiagnosticLoggingKeys::playedKey):
1205         (WebCore::DiagnosticLoggingKeys::engineFailedToLoadKey):
1206         (WebCore::DiagnosticLoggingKeys::entryRightlyNotWarmedUpKey):
1207         (WebCore::DiagnosticLoggingKeys::entryWronglyNotWarmedUpKey):
1208         (WebCore::DiagnosticLoggingKeys::navigationKey):
1209         (WebCore::DiagnosticLoggingKeys::needsRevalidationKey):
1210         (WebCore::DiagnosticLoggingKeys::networkCacheKey):
1211         (WebCore::DiagnosticLoggingKeys::networkCacheFailureReasonKey):
1212         (WebCore::DiagnosticLoggingKeys::networkCacheUnusedReasonKey):
1213         (WebCore::DiagnosticLoggingKeys::networkCacheReuseFailureKey):
1214         (WebCore::DiagnosticLoggingKeys::networkKey):
1215         (WebCore::DiagnosticLoggingKeys::networkProcessCrashedKey):
1216         (WebCore::DiagnosticLoggingKeys::neverSeenBeforeKey):
1217         (WebCore::DiagnosticLoggingKeys::noKey):
1218         (WebCore::DiagnosticLoggingKeys::noCacheKey):
1219         (WebCore::DiagnosticLoggingKeys::noStoreKey):
1220         (WebCore::DiagnosticLoggingKeys::nonVisibleStateKey):
1221         (WebCore::DiagnosticLoggingKeys::notInMemoryCacheKey):
1222         (WebCore::DiagnosticLoggingKeys::pageCacheKey):
1223         (WebCore::DiagnosticLoggingKeys::pageCacheFailureKey):
1224         (WebCore::DiagnosticLoggingKeys::noDocumentLoaderKey):
1225         (WebCore::DiagnosticLoggingKeys::noLongerInCacheKey):
1226         (WebCore::DiagnosticLoggingKeys::otherKey):
1227         (WebCore::DiagnosticLoggingKeys::mainDocumentErrorKey):
1228         (WebCore::DiagnosticLoggingKeys::mainResourceKey):
1229         (WebCore::DiagnosticLoggingKeys::isErrorPageKey):
1230         (WebCore::DiagnosticLoggingKeys::isExpiredKey):
1231         (WebCore::DiagnosticLoggingKeys::isReloadIgnoringCacheDataKey):
1232         (WebCore::DiagnosticLoggingKeys::loadingKey):
1233         (WebCore::DiagnosticLoggingKeys::hasPluginsKey):
1234         (WebCore::DiagnosticLoggingKeys::httpsNoStoreKey):
1235         (WebCore::DiagnosticLoggingKeys::imageKey):
1236         (WebCore::DiagnosticLoggingKeys::inMemoryCacheKey):
1237         (WebCore::DiagnosticLoggingKeys::inactiveKey):
1238         (WebCore::DiagnosticLoggingKeys::internalErrorKey):
1239         (WebCore::DiagnosticLoggingKeys::invalidSessionIDKey):
1240         (WebCore::DiagnosticLoggingKeys::isAttachmentKey):
1241         (WebCore::DiagnosticLoggingKeys::isConditionalRequestKey):
1242         (WebCore::DiagnosticLoggingKeys::isDisabledKey):
1243         (WebCore::DiagnosticLoggingKeys::noCurrentHistoryItemKey):
1244         (WebCore::DiagnosticLoggingKeys::quirkRedirectComingKey):
1245         (WebCore::DiagnosticLoggingKeys::rawKey):
1246         (WebCore::DiagnosticLoggingKeys::redirectKey):
1247         (WebCore::DiagnosticLoggingKeys::isLoadingKey):
1248         (WebCore::DiagnosticLoggingKeys::documentLoaderStoppingKey):
1249         (WebCore::DiagnosticLoggingKeys::domainCausingCrashKey):
1250         (WebCore::DiagnosticLoggingKeys::domainCausingEnergyDrainKey):
1251         (WebCore::DiagnosticLoggingKeys::domainCausingJetsamKey):
1252         (WebCore::DiagnosticLoggingKeys::simulatedPageCrashKey):
1253         (WebCore::DiagnosticLoggingKeys::exceededActiveMemoryLimitKey):
1254         (WebCore::DiagnosticLoggingKeys::exceededInactiveMemoryLimitKey):
1255         (WebCore::DiagnosticLoggingKeys::exceededBackgroundCPULimitKey):
1256         (WebCore::DiagnosticLoggingKeys::domainVisitedKey):
1257         (WebCore::DiagnosticLoggingKeys::cannotSuspendActiveDOMObjectsKey):
1258         (WebCore::DiagnosticLoggingKeys::cpuUsageKey):
1259         (WebCore::DiagnosticLoggingKeys::createSharedBufferFailedKey):
1260         (WebCore::DiagnosticLoggingKeys::activeInForegroundTabKey):
1261         (WebCore::DiagnosticLoggingKeys::activeInBackgroundTabOnlyKey):
1262         (WebCore::DiagnosticLoggingKeys::applicationCacheKey):
1263         (WebCore::DiagnosticLoggingKeys::applicationManifestKey):
1264         (WebCore::DiagnosticLoggingKeys::audioKey):
1265         (WebCore::DiagnosticLoggingKeys::backNavigationDeltaKey):
1266         (WebCore::DiagnosticLoggingKeys::canCacheKey):
1267         (WebCore::DiagnosticLoggingKeys::cacheControlNoStoreKey):
1268         (WebCore::DiagnosticLoggingKeys::cachedResourceRevalidationKey):
1269         (WebCore::DiagnosticLoggingKeys::cachedResourceRevalidationReasonKey):
1270         (WebCore::DiagnosticLoggingKeys::deniedByClientKey):
1271         (WebCore::DiagnosticLoggingKeys::deviceMotionKey):
1272         (WebCore::DiagnosticLoggingKeys::deviceOrientationKey):
1273         (WebCore::DiagnosticLoggingKeys::diskCacheKey):
1274         (WebCore::DiagnosticLoggingKeys::diskCacheAfterValidationKey):
1275         (WebCore::DiagnosticLoggingKeys::reloadKey):
1276         (WebCore::DiagnosticLoggingKeys::replaceKey):
1277         (WebCore::DiagnosticLoggingKeys::retrievalRequestKey):
1278         (WebCore::DiagnosticLoggingKeys::resourceLoadedKey):
1279         (WebCore::DiagnosticLoggingKeys::resourceResponseSourceKey):
1280         (WebCore::DiagnosticLoggingKeys::retrievalKey):
1281         (WebCore::DiagnosticLoggingKeys::revalidatingKey):
1282         (WebCore::DiagnosticLoggingKeys::reloadFromOriginKey):
1283         (WebCore::DiagnosticLoggingKeys::reloadRevalidatingExpiredKey):
1284         (WebCore::DiagnosticLoggingKeys::sameLoadKey):
1285         (WebCore::DiagnosticLoggingKeys::scriptKey):
1286         (WebCore::DiagnosticLoggingKeys::serviceWorkerKey):
1287         (WebCore::DiagnosticLoggingKeys::streamingMedia):
1288         (WebCore::DiagnosticLoggingKeys::styleSheetKey):
1289         (WebCore::DiagnosticLoggingKeys::successfulSpeculativeWarmupWithRevalidationKey):
1290         (WebCore::DiagnosticLoggingKeys::successfulSpeculativeWarmupWithoutRevalidationKey):
1291         (WebCore::DiagnosticLoggingKeys::svgDocumentKey):
1292         (WebCore::DiagnosticLoggingKeys::synchronousMessageFailedKey):
1293         (WebCore::DiagnosticLoggingKeys::telemetryPageLoadKey):
1294         (WebCore::DiagnosticLoggingKeys::timedOutKey):
1295         (WebCore::DiagnosticLoggingKeys::canceledLessThan2SecondsKey):
1296         (WebCore::DiagnosticLoggingKeys::canceledLessThan5SecondsKey):
1297         (WebCore::DiagnosticLoggingKeys::canceledLessThan20SecondsKey):
1298         (WebCore::DiagnosticLoggingKeys::canceledMoreThan20SecondsKey):
1299         (WebCore::DiagnosticLoggingKeys::failedLessThan2SecondsKey):
1300         (WebCore::DiagnosticLoggingKeys::failedLessThan5SecondsKey):
1301         (WebCore::DiagnosticLoggingKeys::failedLessThan20SecondsKey):
1302         (WebCore::DiagnosticLoggingKeys::failedMoreThan20SecondsKey):
1303         (WebCore::DiagnosticLoggingKeys::occurredKey):
1304         (WebCore::DiagnosticLoggingKeys::succeededLessThan2SecondsKey):
1305         (WebCore::DiagnosticLoggingKeys::succeededLessThan5SecondsKey):
1306         (WebCore::DiagnosticLoggingKeys::succeededLessThan20SecondsKey):
1307         (WebCore::DiagnosticLoggingKeys::succeededMoreThan20SecondsKey):
1308         (WebCore::DiagnosticLoggingKeys::uncacheableStatusCodeKey):
1309         (WebCore::DiagnosticLoggingKeys::underMemoryPressureKey):
1310         (WebCore::DiagnosticLoggingKeys::unknownEntryRequestKey):
1311         (WebCore::DiagnosticLoggingKeys::unlikelyToReuseKey):
1312         (WebCore::DiagnosticLoggingKeys::unsupportedHTTPMethodKey):
1313         (WebCore::DiagnosticLoggingKeys::unsuspendableDOMObjectKey):
1314         (WebCore::DiagnosticLoggingKeys::unusedKey):
1315         (WebCore::DiagnosticLoggingKeys::unusedReasonCredentialSettingsKey):
1316         (WebCore::DiagnosticLoggingKeys::unusedReasonErrorKey):
1317         (WebCore::DiagnosticLoggingKeys::unusedReasonMustRevalidateNoValidatorKey):
1318         (WebCore::DiagnosticLoggingKeys::unusedReasonNoStoreKey):
1319         (WebCore::DiagnosticLoggingKeys::unusedReasonRedirectChainKey):
1320         (WebCore::DiagnosticLoggingKeys::unusedReasonReloadKey):
1321         (WebCore::DiagnosticLoggingKeys::unusedReasonTypeMismatchKey):
1322         (WebCore::DiagnosticLoggingKeys::usedKey):
1323         (WebCore::DiagnosticLoggingKeys::userZoomActionKey):
1324         (WebCore::DiagnosticLoggingKeys::varyingHeaderMismatchKey):
1325         (WebCore::DiagnosticLoggingKeys::videoKey):
1326         (WebCore::DiagnosticLoggingKeys::visibleNonActiveStateKey):
1327         (WebCore::DiagnosticLoggingKeys::visibleAndActiveStateKey):
1328         (WebCore::DiagnosticLoggingKeys::wastedSpeculativeWarmupWithRevalidationKey):
1329         (WebCore::DiagnosticLoggingKeys::wastedSpeculativeWarmupWithoutRevalidationKey):
1330         (WebCore::DiagnosticLoggingKeys::webViewKey):
1331         (WebCore::DiagnosticLoggingKeys::yesKey):
1332         (WebCore::DiagnosticLoggingKeys::expiredKey):
1333         (WebCore::DiagnosticLoggingKeys::fontKey):
1334         (WebCore::DiagnosticLoggingKeys::prunedDueToMemoryPressureKey):
1335         (WebCore::DiagnosticLoggingKeys::prunedDueToMaxSizeReached):
1336         (WebCore::DiagnosticLoggingKeys::prunedDueToProcessSuspended):
1337         (WebCore::WebCore::DiagnosticLoggingKeys::notHTTPFamilyKey):
1338         (WebCore::WebCore::DiagnosticLoggingKeys::webGLStateKey):
1339         (WebCore::DiagnosticLoggingKeys::memoryUsageToDiagnosticLoggingKey):
1340         (WebCore::DiagnosticLoggingKeys::foregroundCPUUsageToDiagnosticLoggingKey):
1341         (WebCore::DiagnosticLoggingKeys::backgroundCPUUsageToDiagnosticLoggingKey):
1342         (WebCore::DiagnosticLoggingKeys::resourceLoadStatisticsTelemetryKey):
1343         * page/DisabledAdaptations.cpp:
1344         (WebCore::watchAdaptationName):
1345         * page/EventHandler.cpp:
1346         (WebCore::EventHandler::handlePasteGlobalSelection):
1347         (WebCore::convertDragOperationToDropZoneOperation):
1348         * page/EventSource.cpp:
1349         (WebCore::EventSource::EventSource):
1350         * page/History.cpp:
1351         (WebCore::History::stateObjectAdded):
1352         * page/NavigatorBase.cpp:
1353         (WebCore::NavigatorBase::appName):
1354         (WebCore::NavigatorBase::appCodeName):
1355         * page/Page.cpp:
1356         (WebCore::Page::logNavigation):
1357         * page/PageDebuggable.cpp:
1358         (WebCore::PageDebuggable::url const):
1359         * page/PageSerializer.cpp:
1360         (WebCore::PageSerializer::serializeCSSStyleSheet):
1361         * page/PerformanceMark.h:
1362         * page/PerformanceMeasure.h:
1363         * page/PerformanceObserver.cpp:
1364         (WebCore::PerformanceObserver::observe):
1365         * page/PerformanceResourceTiming.cpp:
1366         (WebCore::PerformanceResourceTiming::PerformanceResourceTiming):
1367         * page/PerformanceUserTiming.cpp:
1368         (WebCore::restrictedMarkFunction):
1369         * page/PointerLockController.cpp:
1370         (WebCore::PointerLockController::requestPointerLock):
1371         * page/PrintContext.cpp:
1372         (WebCore::PrintContext::pageProperty):
1373         * page/SecurityOrigin.cpp:
1374         (WebCore::SecurityOrigin::toString const):
1375         * page/SecurityOriginData.cpp:
1376         (WebCore::SecurityOriginData::toString const):
1377         (WebCore::SecurityOriginData::databaseIdentifier const):
1378         * page/cocoa/ResourceUsageOverlayCocoa.mm:
1379         (WebCore::gcTimerString):
1380         * page/csp/ContentSecurityPolicy.cpp:
1381         (WebCore::ContentSecurityPolicy::reportViolation const):
1382         (WebCore::ContentSecurityPolicy::reportUnsupportedDirective const):
1383         * page/linux/ResourceUsageOverlayLinux.cpp:
1384         (WebCore::cpuUsageString):
1385         (WebCore::gcTimerString):
1386         * platform/ContentType.cpp:
1387         (WebCore::ContentType::codecsParameter):
1388         (WebCore::ContentType::profilesParameter):
1389         * platform/Decimal.cpp:
1390         (WebCore::Decimal::toString const):
1391         * platform/MIMETypeRegistry.cpp:
1392         (WebCore::initializeSupportedImageMIMETypes):
1393         (WebCore::typesForCommonExtension):
1394         (WebCore::initializeUnsupportedTextMIMETypes):
1395         (WebCore::MIMETypeRegistry::getNormalizedMIMEType):
1396         * platform/SchemeRegistry.cpp:
1397         (WebCore::SchemeRegistry::canServiceWorkersHandleURLScheme):
1398         * platform/URL.cpp:
1399         (WebCore::mimeTypeFromDataURL):
1400         * platform/UserAgentQuirks.cpp:
1401         (WebCore::UserAgentQuirks::stringForQuirk):
1402         * platform/cocoa/KeyEventCocoa.mm:
1403         (WebCore::keyForCharCode):
1404         * platform/cocoa/NetworkExtensionContentFilter.mm:
1405         (WebCore::NetworkExtensionContentFilter::unblockHandler const):
1406         * platform/cocoa/ParentalControlsContentFilter.mm:
1407         (WebCore::ParentalControlsContentFilter::unblockHandler const):
1408         * platform/cocoa/PasteboardCocoa.mm:
1409         (WebCore::Pasteboard::fileContentState):
1410         * platform/cocoa/RuntimeApplicationChecksCocoa.mm:
1411         (WebCore::MacApplication::isSafari):
1412         (WebCore::MacApplication::isAppleMail):
1413         (WebCore::MacApplication::isIBooks):
1414         (WebCore::MacApplication::isITunes):
1415         (WebCore::MacApplication::isMicrosoftMessenger):
1416         (WebCore::MacApplication::isAdobeInstaller):
1417         (WebCore::MacApplication::isAOLInstantMessenger):
1418         (WebCore::MacApplication::isMicrosoftMyDay):
1419         (WebCore::MacApplication::isMicrosoftOutlook):
1420         (WebCore::MacApplication::isQuickenEssentials):
1421         (WebCore::MacApplication::isAperture):
1422         (WebCore::MacApplication::isVersions):
1423         (WebCore::MacApplication::isHRBlock):
1424         (WebCore::MacApplication::isIAdProducer):
1425         (WebCore::MacApplication::isSolidStateNetworksDownloader):
1426         (WebCore::IOSApplication::isMobileMail):
1427         (WebCore::IOSApplication::isMobileSafari):
1428         (WebCore::IOSApplication::isWebBookmarksD):
1429         (WebCore::IOSApplication::isDumpRenderTree):
1430         (WebCore::IOSApplication::isMobileStore):
1431         (WebCore::IOSApplication::isSpringBoard):
1432         (WebCore::IOSApplication::isWebApp):
1433         (WebCore::IOSApplication::isIBooks):
1434         (WebCore::IOSApplication::isIBooksStorytime):
1435         (WebCore::IOSApplication::isTheSecretSocietyHiddenMystery):
1436         (WebCore::IOSApplication::isCardiogram):
1437         (WebCore::IOSApplication::isNike):
1438         * platform/cocoa/UserAgentCocoa.mm:
1439         (WebCore::userAgentBundleVersion):
1440         * platform/gamepad/cocoa/GameControllerGamepad.mm:
1441         (WebCore::GameControllerGamepad::setupAsExtendedGamepad):
1442         (WebCore::GameControllerGamepad::setupAsGamepad):
1443         * platform/graphics/InbandTextTrackPrivateClient.h:
1444         (WebCore::GenericCueData::toJSONString const):
1445         * platform/graphics/avfoundation/CDMFairPlayStreaming.cpp:
1446         (WebCore::CDMFactoryFairPlayStreaming::supportsKeySystem):
1447         * platform/graphics/avfoundation/objc/CDMInstanceFairPlayStreamingAVFObjC.mm:
1448         (WebCore::isEqual):
1449         (WebCore::CDMInstanceFairPlayStreamingAVFObjC::updateLicense):
1450         (WebCore::CDMInstanceFairPlayStreamingAVFObjC::keySystem const):
1451         * platform/graphics/avfoundation/objc/CDMSessionAVContentKeySession.mm:
1452         (WebCore::CDMSessionAVContentKeySession::generateKeyRequest):
1453         * platform/graphics/avfoundation/objc/CDMSessionAVStreamSession.mm:
1454         (WebCore::CDMSessionAVStreamSession::generateKeyRequest):
1455         * platform/graphics/avfoundation/objc/MediaPlayerPrivateAVFoundationObjC.mm:
1456         (WebCore::MediaPlayerPrivateAVFoundationObjC::shouldWaitForLoadingOfResource):
1457         * platform/graphics/ca/GraphicsLayerCA.cpp:
1458         (WebCore::propertyIdToString):
1459         * platform/graphics/ca/TileController.cpp:
1460         (WebCore::TileController::tileGridContainerLayerName):
1461         (WebCore::TileController::zoomedOutTileGridContainerLayerName):
1462         * platform/graphics/cg/ImageBufferCG.cpp:
1463         (WebCore::ImageBuffer::toDataURL const):
1464         (WebCore::dataURL):
1465         * platform/graphics/cv/VideoTextureCopierCV.cpp:
1466         (WebCore::VideoTextureCopierCV::initializeContextObjects):
1467         (WebCore::VideoTextureCopierCV::initializeUVContextObjects):
1468         * platform/graphics/gstreamer/MediaPlayerPrivateGStreamerBase.cpp:
1469         (WebCore::MediaPlayerPrivateGStreamerBase::handleSyncMessage):
1470         (WebCore::MediaPlayerPrivateGStreamerBase::initializationDataEncountered):
1471         * platform/graphics/iso/ISOVTTCue.cpp:
1472         (WebCore::ISOWebVTTCue::toJSONString const):
1473         * platform/graphics/nicosia/NicosiaPaintingEngineThreaded.cpp:
1474         (Nicosia::PaintingEngineThreaded::PaintingEngineThreaded):
1475         * platform/graphics/opengl/Extensions3DOpenGLCommon.cpp:
1476         (WebCore::Extensions3DOpenGLCommon::initializeAvailableExtensions):
1477         * platform/graphics/opengl/GraphicsContext3DOpenGLCommon.cpp:
1478         (WebCore::GraphicsContext3D::getUnmangledInfoLog):
1479         * platform/graphics/texmap/TextureMapperContextAttributes.cpp:
1480         (WebCore::TextureMapperContextAttributes::get):
1481         * platform/graphics/win/ImageBufferDirect2D.cpp:
1482         (WebCore::ImageBuffer::toDataURL const):
1483         (WebCore::ImageDataToDataURL):
1484         * platform/gtk/PasteboardGtk.cpp:
1485         (WebCore::Pasteboard::typesForLegacyUnsafeBindings):
1486         * platform/gtk/PasteboardHelper.cpp:
1487         * platform/gtk/PlatformKeyboardEventGtk.cpp:
1488         (WebCore::PlatformKeyboardEvent::keyValueForGdkKeyCode):
1489         (WebCore::PlatformKeyboardEvent::keyCodeForHardwareKeyCode):
1490         * platform/image-decoders/bmp/BMPImageDecoder.h:
1491         * platform/image-decoders/gif/GIFImageDecoder.h:
1492         * platform/image-decoders/ico/ICOImageDecoder.h:
1493         * platform/image-decoders/jpeg/JPEGImageDecoder.h:
1494         * platform/image-decoders/png/PNGImageDecoder.h:
1495         * platform/image-decoders/webp/WEBPImageDecoder.h:
1496         * platform/ios/Device.cpp:
1497         (WebCore::deviceName):
1498         * platform/ios/PasteboardIOS.mm:
1499         (WebCore::Pasteboard::addHTMLClipboardTypesForCocoaType):
1500         * platform/ios/PlatformEventFactoryIOS.mm:
1501         (WebCore::keyForKeyEvent):
1502         (WebCore::codeForKeyEvent):
1503         * platform/ios/PlatformPasteboardIOS.mm:
1504         (WebCore::safeTypeForDOMToReadAndWriteForPlatformType):
1505         * platform/mac/PasteboardMac.mm:
1506         (WebCore::Pasteboard::read):
1507         (WebCore::Pasteboard::addHTMLClipboardTypesForCocoaType):
1508         * platform/mac/PlatformEventFactoryMac.mm:
1509         (WebCore::keyForKeyEvent):
1510         (WebCore::codeForKeyEvent):
1511         * platform/mac/PlatformPasteboardMac.mm:
1512         (WebCore::safeTypeForDOMToReadAndWriteForPlatformType):
1513         * platform/mediastream/MediaConstraints.cpp:
1514         (WebCore::addDefaultVideoConstraints):
1515         * platform/mediastream/PeerMediaDescription.h:
1516         * platform/mediastream/RealtimeMediaSource.cpp:
1517         (WebCore::RealtimeMediaSource::applyConstraints):
1518         * platform/mediastream/mac/DisplayCaptureManagerCocoa.cpp:
1519         (WebCore::DisplayCaptureManagerCocoa::screenCaptureDeviceWithPersistentID):
1520         * platform/mock/MockRealtimeMediaSource.cpp:
1521         (WebCore::deviceMap):
1522         (WebCore::MockRealtimeMediaSource::audioDevices):
1523         (WebCore::MockRealtimeMediaSource::videoDevices):
1524         (WebCore::MockRealtimeMediaSource::displayDevices):
1525         * platform/mock/MockRealtimeVideoSource.cpp:
1526         (WebCore::MockRealtimeVideoSource::drawText):
1527         * platform/network/BlobRegistryImpl.cpp:
1528         (WebCore::BlobRegistryImpl::writeBlobsToTemporaryFiles):
1529         * platform/network/DataURLDecoder.cpp:
1530         (WebCore::DataURLDecoder::parseMediaType):
1531         * platform/network/FormData.cpp:
1532         (WebCore::FormData::appendMultiPartFileValue):
1533         * platform/network/HTTPParsers.cpp:
1534         (WebCore::parseHTTPRequestLine):
1535         (WebCore::parseHTTPHeader):
1536         (WebCore::normalizeHTTPMethod):
1537         * platform/network/ResourceRequestBase.cpp:
1538         (WebCore::ResourceRequestBase::redirectedRequest const):
1539         * platform/network/ResourceRequestBase.h:
1540         (WebCore::ResourceRequestBase::ResourceRequestBase):
1541         * platform/network/curl/ResourceHandleCurl.cpp:
1542         (WebCore::ResourceHandle::handleDataURL):
1543         * platform/network/curl/SynchronousLoaderClientCurl.cpp:
1544         (WebCore::SynchronousLoaderClient::platformBadResponseError):
1545         * platform/network/win/DownloadBundleWin.cpp:
1546         (WebCore::DownloadBundle::fileExtension):
1547         * platform/sql/SQLiteDatabase.cpp:
1548         (WebCore::SQLiteDatabase::open):
1549         (WebCore::SQLiteDatabase::setFullsync):
1550         (WebCore::SQLiteDatabase::maximumSize):
1551         (WebCore::SQLiteDatabase::pageSize):
1552         (WebCore::SQLiteDatabase::freeSpaceSize):
1553         (WebCore::SQLiteDatabase::totalSize):
1554         (WebCore::SQLiteDatabase::clearAllTables):
1555         (WebCore::SQLiteDatabase::runVacuumCommand):
1556         (WebCore::SQLiteDatabase::runIncrementalVacuumCommand):
1557         (WebCore::SQLiteDatabase::turnOnIncrementalAutoVacuum):
1558         * platform/sql/SQLiteFileSystem.cpp:
1559         (WebCore::SQLiteFileSystem::deleteDatabaseFile):
1560         * platform/text/LocaleICU.cpp:
1561         (WebCore::LocaleICU::dateFormat):
1562         (WebCore::getFormatForSkeleton):
1563         * platform/text/LocaleNone.cpp:
1564         (WebCore::LocaleNone::dateFormat):
1565         (WebCore::LocaleNone::monthFormat):
1566         (WebCore::LocaleNone::shortMonthFormat):
1567         (WebCore::LocaleNone::timeFormat):
1568         (WebCore::LocaleNone::shortTimeFormat):
1569         (WebCore::LocaleNone::dateTimeFormatWithSeconds):
1570         (WebCore::LocaleNone::dateTimeFormatWithoutSeconds):
1571         * platform/text/LocaleToScriptMappingDefault.cpp:
1572         (WebCore::scriptNameToCode):
1573         (WebCore::localeToScriptCodeForFontSelection):
1574         * platform/text/TextEncodingRegistry.cpp:
1575         (WebCore::defaultTextEncodingNameForSystemLanguage):
1576         * platform/win/FileSystemWin.cpp:
1577         (WebCore::FileSystem::bundleName):
1578         * platform/wpe/RenderThemeWPE.cpp:
1579         (WebCore::RenderThemeWPE::mediaControlsStyleSheet):
1580         * rendering/RenderMenuList.cpp:
1581         (RenderMenuList::setText):
1582         * rendering/RenderThemeIOS.mm:
1583         (WebCore::RenderThemeIOS::extraDefaultStyleSheet):
1584         * svg/SVGComponentTransferFunctionElement.h:
1585         (WebCore::SVGPropertyTraits<ComponentTransferType>::toString):
1586         * svg/SVGFEColorMatrixElement.h:
1587         (WebCore::SVGPropertyTraits<ColorMatrixType>::toString):
1588         * svg/SVGFECompositeElement.h:
1589         (WebCore::SVGPropertyTraits<CompositeOperationType>::toString):
1590         * svg/SVGFEConvolveMatrixElement.h:
1591         (WebCore::SVGPropertyTraits<EdgeModeType>::toString):
1592         * svg/SVGFEDisplacementMapElement.h:
1593         (WebCore::SVGPropertyTraits<ChannelSelectorType>::toString):
1594         * svg/SVGFEMorphologyElement.h:
1595         (WebCore::SVGPropertyTraits<MorphologyOperatorType>::toString):
1596         * svg/SVGFETurbulenceElement.h:
1597         (WebCore::SVGPropertyTraits<SVGStitchOptions>::toString):
1598         (WebCore::SVGPropertyTraits<TurbulenceType>::toString):
1599         * svg/SVGGradientElement.h:
1600         (WebCore::SVGPropertyTraits<SVGSpreadMethodType>::toString):
1601         * svg/SVGLocatable.cpp:
1602         (WebCore::SVGLocatable::getTransformToElement):
1603         * svg/SVGMarkerTypes.h:
1604         (WebCore::SVGPropertyTraits<SVGMarkerUnitsType>::toString):
1605         * svg/SVGMatrixValue.h:
1606         * svg/SVGSVGElement.cpp:
1607         (WebCore::SVGSVGElement::SVGSVGElement):
1608         (WebCore::SVGSVGElement::parseAttribute):
1609         * svg/SVGTextContentElement.h:
1610         (WebCore::SVGPropertyTraits<SVGLengthAdjustType>::toString):
1611         * svg/SVGTextPathElement.h:
1612         (WebCore::SVGPropertyTraits<SVGTextPathMethodType>::toString):
1613         (WebCore::SVGPropertyTraits<SVGTextPathSpacingType>::toString):
1614         * svg/SVGToOTFFontConversion.cpp:
1615         (WebCore::SVGToOTFFontConverter::appendCFFTable):
1616         * svg/SVGUnitTypes.h:
1617         (WebCore::SVGPropertyTraits<SVGUnitTypes::SVGUnitType>::toString):
1618         * svg/SVGUseElement.cpp:
1619         (WebCore::SVGUseElement::toClipPath):
1620         * svg/graphics/SVGImage.cpp:
1621         (WebCore::SVGImage::filenameExtension const):
1622         * testing/InternalSettings.cpp:
1623         (WebCore::InternalSettings::userInterfaceDirectionPolicy):
1624         (WebCore::InternalSettings::systemLayoutDirection):
1625         * testing/Internals.cpp:
1626         (WebCore::Internals::areSVGAnimationsPaused const):
1627         (WebCore::Internals::accessKeyModifiers const):
1628         (WebCore::Internals::setMediaDeviceState):
1629         (WebCore::Internals::audioSessionCategory const):
1630         (WebCore::Internals::systemPreviewRelType):
1631         * testing/MockCDMFactory.cpp:
1632         (WebCore::MockCDM::sanitizeResponse const):
1633         (WebCore::MockCDMInstance::updateLicense):
1634         * testing/MockContentFilter.cpp:
1635         (WebCore::MockContentFilter::unblockRequestDeniedScript const):
1636         * testing/MockCredentialsMessenger.cpp:
1637         (WebCore::MockCredentialsMessenger::~MockCredentialsMessenger):
1638         (WebCore::MockCredentialsMessenger::makeCredential):
1639         (WebCore::MockCredentialsMessenger::getAssertion):
1640         * testing/MockPaymentCoordinator.cpp:
1641         (WebCore::MockPaymentCoordinator::showPaymentUI):
1642         * workers/WorkerRunLoop.cpp:
1643         (WebCore::WorkerRunLoop::debuggerMode):
1644         * workers/WorkerScriptLoader.cpp:
1645         (WebCore::WorkerScriptLoader::loadSynchronously):
1646         (WebCore::WorkerScriptLoader::createResourceRequest):
1647         (WebCore::WorkerScriptLoader::didReceiveData):
1648         * workers/service/ExtendableEvent.cpp:
1649         (WebCore::ExtendableEvent::waitUntil):
1650         * workers/service/FetchEvent.cpp:
1651         (WebCore::FetchEvent::~FetchEvent):
1652         (WebCore::FetchEvent::respondWith):
1653         (WebCore::FetchEvent::promiseIsSettled):
1654         * workers/service/SWClientConnection.cpp:
1655         (WebCore::SWClientConnection::clearPendingJobs):
1656         * workers/service/ServiceWorker.cpp:
1657         (WebCore::ServiceWorker::postMessage):
1658         * workers/service/ServiceWorkerClients.cpp:
1659         (WebCore::ServiceWorkerClients::openWindow):
1660         (WebCore::ServiceWorkerClients::claim):
1661         * workers/service/ServiceWorkerContainer.cpp:
1662         (WebCore::ServiceWorkerContainer::addRegistration):
1663         (WebCore::ServiceWorkerContainer::getRegistration):
1664         (WebCore::ServiceWorkerContainer::startScriptFetchForJob):
1665         * workers/service/ServiceWorkerJob.cpp:
1666         (WebCore::ServiceWorkerJob::fetchScriptWithContext):
1667         (WebCore::ServiceWorkerJob::didReceiveResponse):
1668         * workers/service/ServiceWorkerRegistration.cpp:
1669         (WebCore::ServiceWorkerRegistration::update):
1670         * workers/service/ServiceWorkerWindowClient.cpp:
1671         (WebCore::ServiceWorkerWindowClient::focus):
1672         (WebCore::ServiceWorkerWindowClient::navigate):
1673         * workers/service/context/ServiceWorkerDebuggable.h:
1674         * workers/service/context/ServiceWorkerFetch.cpp:
1675         (WebCore::ServiceWorkerFetch::dispatchFetchEvent):
1676         * workers/service/server/RegistrationDatabase.cpp:
1677         (WebCore::RegistrationDatabase::doPushChanges):
1678         (WebCore::RegistrationDatabase::importRecords):
1679         * workers/service/server/SWServerJobQueue.cpp:
1680         (WebCore::SWServerJobQueue::runRegisterJob):
1681         (WebCore::SWServerJobQueue::runUnregisterJob):
1682         (WebCore::SWServerJobQueue::runUpdateJob):
1683         * xml/XMLErrors.cpp:
1684         (WebCore::createXHTMLParserErrorHeader):
1685         (WebCore::XMLErrors::insertErrorMessageBlock):
1686         * xml/XMLHttpRequest.cpp:
1687         (WebCore::XMLHttpRequest::send):
1688         (WebCore::XMLHttpRequest::responseMIMEType const):
1689         * xml/XMLTreeViewer.cpp:
1690         (WebCore::XMLTreeViewer::transformDocumentToTreeView):
1691         * xml/XPathPredicate.cpp:
1692         (WebCore::XPath::evaluatePredicate):
1693         * xml/XPathValue.cpp:
1694         (WebCore::XPath::Value::toString const):
1695         * xml/parser/CharacterReferenceParserInlines.h:
1696         (WebCore::consumeCharacterReference):
1697
1698 2018-06-22  Youenn Fablet  <youenn@apple.com>
1699
1700         Disable WebSocket in WatchOS
1701         https://bugs.webkit.org/show_bug.cgi?id=186931
1702         <rdar://problem/39584458>
1703
1704         Reviewed by Wenson Hsieh.
1705
1706         Add a runtime flag to enable/disable WebSocket.
1707         By default, flag is on for all platforms except for WatchOS.
1708
1709         Test: fast/dom/Window/watchos/websocket/watchos/no-websocket-in-watchos.html
1710
1711         * Modules/websockets/WebSocket.idl:
1712         * page/RuntimeEnabledFeatures.cpp:
1713         (WebCore::RuntimeEnabledFeatures::RuntimeEnabledFeatures):
1714         * page/RuntimeEnabledFeatures.h:
1715         (WebCore::RuntimeEnabledFeatures::setWebSocketEnabled):
1716         (WebCore::RuntimeEnabledFeatures::webSocketEnabled const):
1717
1718 2018-06-22  Woodrow Wang  <woodrow_wang@apple.com>
1719
1720         SubresourceLoader::didFail() should only log message if state is Initialized
1721         https://bugs.webkit.org/show_bug.cgi?id=185124
1722
1723         Reviewed by Daniel Bates.
1724
1725         Functionality does not change. Moved console logging to be 
1726         after checking state of subresource loader. We only need to 
1727         log if the state is initialized. This is consistent with other
1728         functions in the file. We can also remove a null check for the 
1729         frame pointer (m_frame). The superclass ResourceLoader constructor
1730         takes an lvalue reference and initializes m_frame, ensuring
1731         m_frame cannot be null. It is only set to null by 
1732         ResourceLoader::releaseResources(), which is only called after the 
1733         resource finishes loading or fails to load. Thus, in didFail(), 
1734         m_frame must be non-null when we're logging and up until the end of the function.  
1735
1736         * loader/SubresourceLoader.cpp:
1737         (WebCore::SubresourceLoader::didFail):
1738
1739 2018-06-22  Timothy Hatcher  <timothy@apple.com>
1740
1741         Corner of two scroll bars is white with dark mode enabled.
1742         https://bugs.webkit.org/show_bug.cgi?id=186819
1743         rdar://problem/40434350
1744
1745         Reviewed by Tim Horton.
1746
1747         * Configurations/WebCore.xcconfig:
1748         * WebCore.xcodeproj/project.pbxproj:
1749         * inspector/InspectorOverlay.cpp:
1750         (WebCore::InspectorOverlay::paint): Added LocalDefaultSystemAppearance.
1751         * page/Page.h:
1752         * platform/ScrollView.cpp:
1753         (WebCore::ScrollView::paintScrollCorner): Dropped ScrollView argument.
1754         * platform/ScrollbarTheme.h:
1755         (WebCore::ScrollbarTheme::paintScrollCorner): Ditto.
1756         * platform/ScrollbarThemeComposite.cpp:
1757         (WebCore::ScrollbarThemeComposite::paintScrollCorner): Deleted. Default is the same.
1758         * platform/ScrollbarThemeComposite.h:
1759         * platform/mac/LocalDefaultSystemAppearance.h:
1760         * platform/mac/LocalDefaultSystemAppearance.mm:
1761         (WebCore::LocalDefaultSystemAppearance::LocalDefaultSystemAppearance): Added recursion early return.
1762         (WebCore::LocalDefaultSystemAppearance::~LocalDefaultSystemAppearance): Ditto.
1763         * platform/mac/ScrollbarThemeMac.h:
1764         * platform/mac/ScrollbarThemeMac.mm:
1765         (WebCore::ScrollbarThemeMac::paintScrollCorner): Added.
1766         * rendering/RenderLayer.cpp:
1767         (WebCore::RenderLayer::paintScrollCorner): Call ScrollbarTheme::paintScrollCorner.
1768         * rendering/RenderLayerBacking.cpp:
1769         (WebCore::RenderLayerBacking::paintContents): Added LocalDefaultSystemAppearance.
1770         * rendering/RenderLayerCompositor.cpp:
1771         (WebCore::RenderLayerCompositor::paintContents): Added LocalDefaultSystemAppearance.
1772         * rendering/RenderScrollbarTheme.cpp:
1773         (WebCore::RenderScrollbarTheme::paintScrollCorner): Call ScrollbarTheme::paintScrollCorner.
1774         * rendering/RenderScrollbarTheme.h:
1775         * svg/graphics/SVGImage.cpp:
1776         (WebCore::SVGImage::draw): Added LocalDefaultSystemAppearance.
1777
1778 2018-06-22  Tim Horton  <timothy_horton@apple.com>
1779
1780         Make it possible to add a border around loading or failed-to-load images
1781         https://bugs.webkit.org/show_bug.cgi?id=186614
1782         <rdar://problem/39050152>
1783
1784         Reviewed by Zalan Bujtas.
1785
1786         Tests: http/tests/images/loading-image-border.html
1787                http/tests/images/loading-image-no-border.html
1788
1789         * rendering/RenderImage.cpp:
1790         (WebCore::RenderImage::paintIncompleteImageOutline):
1791         (WebCore::RenderImage::paintReplaced):
1792         * rendering/RenderImage.h:
1793         Factor the missing-image outline out, and - if desired - paint it in
1794         cases where the image is still loading or otherwise pending, not just
1795         when the image fails to load.
1796
1797         * page/Settings.yaml:
1798         * testing/InternalSettings.cpp:
1799         (WebCore::InternalSettings::Backup::Backup):
1800         (WebCore::InternalSettings::Backup::restoreTo):
1801         (WebCore::InternalSettings::setIncompleteImageBorderEnabled):
1802         * testing/InternalSettings.h:
1803         * testing/InternalSettings.idl:
1804         Add and expose a setting to enable the feature.
1805
1806 2018-06-22  Brady Eidson  <beidson@apple.com>
1807
1808         WKURLSchemeHandler doesn't handle sync XHR.
1809         <rdar://problem/40955884> and https://bugs.webkit.org/show_bug.cgi?id=186902
1810
1811         Reviewed by Chris Dumez.
1812
1813         * English.lproj/Localizable.strings:
1814
1815 2018-06-22  Jer Noble  <jer.noble@apple.com>
1816
1817         [Fullscreen] Restore ASSERT_NOT_REACHED() checks in exit fullscreen handler after r231924
1818         https://bugs.webkit.org/show_bug.cgi?id=186945
1819         <rdar://problem/37277469>
1820
1821         Reviewed by Simon Fraser.
1822
1823         * platform/ios/VideoFullscreenInterfaceAVKit.mm:
1824         (VideoFullscreenInterfaceAVKit::exitFullscreen):
1825         (VideoFullscreenInterfaceAVKit::exitFullscreenHandler):
1826         (VideoFullscreenInterfaceAVKit::cleanupFullscreen):
1827
1828 2018-06-22  Per Arne Vollan  <pvollan@apple.com>
1829
1830         Unreviewed build fix on Windows.
1831
1832         * testing/Internals.h:
1833
1834 2018-06-22  Youenn Fablet  <youenn@apple.com>
1835
1836         Incoming G722 doesn't work
1837         https://bugs.webkit.org/show_bug.cgi?id=186307
1838         <rdar://problem/40809745>
1839
1840         Reviewed by Eric Carlson.
1841
1842         WebRTC backends usually does the following:
1843         - Initially call RealtimeIncomingAudioSource with 16KHz data
1844         - Switch to 48KHz when actual data is decoded.
1845         We added a check that was discarding any 16KHz data, but in case of G722, the data remains as 16KHz and is then never read.
1846         The solution is to remove the check that discards 16KHz information.
1847         We then need to fix a bug in AudioTrackPrivateMediaStreamCocoa that was preventing proper handling of change of audio data configuration.
1848
1849         Test: webrtc/audio-peer-connection-g722.html
1850
1851         * platform/mediastream/mac/AudioTrackPrivateMediaStreamCocoa.cpp:
1852         (WebCore::AudioTrackPrivateMediaStreamCocoa::audioSamplesAvailable):
1853         * platform/mediastream/mac/RealtimeIncomingAudioSourceCocoa.cpp:
1854         (WebCore::RealtimeIncomingAudioSourceCocoa::OnData):
1855
1856 2018-06-22  Timothy Hatcher  <timothy@apple.com>
1857
1858         Recalc styles every time defaultAppearance changes.
1859         https://bugs.webkit.org/show_bug.cgi?id=186866
1860         rdar://problem/41309805
1861
1862         Reviewed by Tim Horton.
1863
1864         * page/Page.cpp:
1865         (WebCore::Page::setUseSystemAppearance): Added. Recalc styles and update system colors.
1866         (WebCore::Page::setDefaultAppearance): Added. Ditto.
1867         * page/Page.h:
1868         (WebCore::Page::setUseSystemAppearance): Deleted impl.
1869         (WebCore::Page::setDefaultAppearance): Deleted impl.
1870
1871 2018-06-22  Thibault Saunier  <tsaunier@igalia.com>
1872
1873         [GStreamer] Avoid sending SELECT_STREAM events when nothing changed
1874         https://bugs.webkit.org/show_bug.cgi?id=186678
1875
1876         Reviewed by Philippe Normand.
1877
1878         This avoid extra work in decodebin3 and should work around a crash
1879         in decodebin3 when we send spurious SELECT_STREAM in the mediastream
1880         layout tests.
1881
1882         GStreamer was also missing safe guards in the GstStream APIs which have been
1883         added in gstreamer core in 8833ca942ea21c58c0f63822f0e2b61695b39447
1884         "stream: Add some missing API safe guards".
1885
1886         Should fix following flakes:
1887           - fast/mediastream/MediaStream-video-element-track-stop.html
1888           - fast/mediastream/change-tracks-media-stream-being-played.html
1889
1890         * platform/graphics/gstreamer/MediaPlayerPrivateGStreamer.cpp:
1891         (WebCore::MediaPlayerPrivateGStreamer::enableTrack):
1892
1893 2018-06-22  Michael Catanzaro  <mcatanzaro@igalia.com>
1894
1895         REGRESSION(r230950): [GTK] WebKit::CoordinatedBackingStoreTile::setBackBuffer(): WebKitWebProcess killed by SIGSEGV (ASSERTION FAILED: it != m_tiles.end())
1896         https://bugs.webkit.org/show_bug.cgi?id=186206
1897
1898         Unreviewed manual rollout of r230950
1899
1900         * platform/graphics/texmap/TextureMapperLayer.h:
1901         * platform/graphics/texmap/coordinated/CoordinatedGraphicsLayer.cpp:
1902         (WebCore::CoordinatedGraphicsLayer::shouldHaveBackingStore const):
1903
1904 2018-06-20  Darin Adler  <darin@apple.com>
1905
1906         [Cocoa] Use the isDirectory: variants of NSURL methods more to eliminate unnecessary file system activity
1907         https://bugs.webkit.org/show_bug.cgi?id=186875
1908
1909         Reviewed by Anders Carlsson.
1910
1911         * platform/cocoa/ThemeCocoa.mm:
1912         (WebCore::passKitBundle): Use isDirectory:YES when creating a URL pointing to a framework,
1913         since frameworks are directories.
1914
1915 2018-06-22  Miguel Gomez  <magomez@igalia.com>
1916
1917         [WPE][ThreadedRendering] WPE crashes rendering SVG content when using ThreadedRendering
1918         https://bugs.webkit.org/show_bug.cgi?id=186914
1919
1920         Reviewed by Carlos Garcia Campos.
1921
1922         Add GraphicsContextImpl::clipToImageBuffer() to the interface and the implementors. Forward
1923         the call to GraphicsContext::clipToImageBuffer() to the implementation if possible in the
1924         cairo case.
1925
1926         Covered by existent tests.
1927
1928         * platform/graphics/GraphicsContextImpl.h:
1929         * platform/graphics/cairo/GraphicsContextCairo.cpp:
1930         (WebCore::GraphicsContext::clipToImageBuffer):
1931         * platform/graphics/cairo/GraphicsContextImplCairo.cpp:
1932         (WebCore::GraphicsContextImplCairo::clipToImageBuffer):
1933         * platform/graphics/cairo/GraphicsContextImplCairo.h:
1934         * platform/graphics/displaylists/DisplayListRecorder.cpp:
1935         (WebCore::DisplayList::Recorder::clipToImageBuffer):
1936         * platform/graphics/displaylists/DisplayListRecorder.h:
1937         * platform/graphics/nicosia/cairo/NicosiaCairoOperationRecorder.cpp:
1938         (Nicosia::CairoOperationRecorder::clipToImageBuffer):
1939         * platform/graphics/nicosia/cairo/NicosiaCairoOperationRecorder.h:
1940
1941 2018-06-22  Carlos Garcia Campos  <cgarcia@igalia.com>
1942
1943         [CMake] Generated sources depending on SelectorPseudoClassAndCompatibilityElementMap.in are not regenerated
1944         https://bugs.webkit.org/show_bug.cgi?id=186911
1945
1946         Reviewed by Michael Catanzaro.
1947
1948         This is causing test fullscreen/fullscreen-env.html to fail since it was added in r233066 in the bots that
1949         didn't start a clean build. The problem is that the CMake command to generate
1950         SelectorPseudoClassAndCompatibilityElementMap.cpp doesn't depend on
1951         SelectorPseudoClassAndCompatibilityElementMap.in.
1952
1953         * CMakeLists.txt:
1954
1955 2018-06-22  Miguel Gomez  <magomez@igalia.com>
1956
1957         [WPE][ThreadedRendering] WPE crashes rendering some pieces of text when using ThreadedRendering
1958         https://bugs.webkit.org/show_bug.cgi?id=186886
1959
1960         Reviewed by Žan Doberšek.
1961
1962         Modify DisplayList DrawGlyphs element to use a GraphicsContext for replaying. To do so, modify
1963         GraphicsContext::drawGlyphs() API so it doesn't require a FontCascade, and update all the calls
1964         to it.
1965
1966         Covered by existent tests.
1967
1968         * platform/graphics/FontCascade.cpp:
1969         (WebCore::FontCascade::drawGlyphBuffer const):
1970         * platform/graphics/GraphicsContext.cpp:
1971         (WebCore::GraphicsContext::drawGlyphs):
1972         * platform/graphics/GraphicsContext.h:
1973         * platform/graphics/displaylists/DisplayListItems.cpp:
1974         (WebCore::DisplayList::DrawGlyphs::apply const):
1975         * rendering/mathml/MathOperator.cpp:
1976         (WebCore::MathOperator::paintGlyph):
1977         (WebCore::MathOperator::paint):
1978         * rendering/mathml/RenderMathMLToken.cpp:
1979         (WebCore::RenderMathMLToken::paint):
1980
1981 2018-06-15  Jer Noble  <jer.noble@apple.com>
1982
1983         Address fullscreen api CSS env feedback
1984         https://bugs.webkit.org/show_bug.cgi?id=186684
1985
1986         Reviewed by Simon Fraser.
1987
1988         Test: fullscreen/fullscreen-env.html
1989
1990         + Update the phishing alert text to be more explicit about the specific threats
1991           phishing sites represent.
1992         + Make the top inset static, rather than dynamic.
1993         + Add bottom, left, and right insets for completeness.
1994         + Set the fullscreen animation duration as well as delay.
1995         + Notify the page when the controls show and hide.
1996
1997         * English.lproj/Localizable.strings:
1998         * css/CSSSelector.cpp:
1999         (WebCore::CSSSelector::selectorText const):
2000         * css/CSSSelector.h:
2001         * css/SelectorChecker.cpp:
2002         (WebCore::SelectorChecker::checkOne const):
2003         * css/SelectorCheckerTestFunctions.h:
2004         (WebCore::matchesFullScreenControlsHiddenPseudoClass):
2005         * css/SelectorPseudoClassAndCompatibilityElementMap.in:
2006         * cssjit/SelectorCompiler.cpp:
2007         (WebCore::SelectorCompiler::addPseudoClassType):
2008         * dom/ConstantPropertyMap.cpp:
2009         (WebCore::ConstantPropertyMap::nameForProperty const):
2010         (WebCore::ConstantPropertyMap::updateConstantsForFullscreenInsets):
2011         (WebCore::ConstantPropertyMap::didChangeFullscreenInsets):
2012         (WebCore::ConstantPropertyMap::setFullscreenAutoHideDuration):
2013         (WebCore::ConstantPropertyMap::setFullscreenInsetTop): Deleted.
2014         * dom/ConstantPropertyMap.h:
2015         * dom/Document.cpp:
2016         (WebCore::Document::areFullscreenControlsHidden const):
2017         (WebCore::Document::setFullscreenControlsHidden):
2018         * dom/Document.h:
2019         * page/Page.cpp:
2020         (WebCore::Page::setFullscreenInsets):
2021         (WebCore::Page::setFullscreenAutoHideDuration):
2022         (WebCore::Page::setFullscreenControlsHidden):
2023         (WebCore::Page::setFullscreenInsetTop): Deleted.
2024         * page/Page.h:
2025         (WebCore::Page::fullscreenInsets const):
2026         * testing/Internals.cpp:
2027         (WebCore::Internals::resetToConsistentState):
2028         (WebCore::Internals::setFullscreenInsets):
2029         (WebCore::Internals::setFullscreenAutoHideDuration):
2030         (WebCore::Internals::setFullscreenControlsHidden):
2031         (WebCore::Internals::setFullscreenInsetTop): Deleted.
2032         * testing/Internals.h:
2033         * testing/Internals.idl:
2034
2035 2018-06-21  Jer Noble  <jer.noble@apple.com>
2036
2037         [Fullscreen] Page sometimes ends up with an incorrect zoom level after entering fullscreen
2038         https://bugs.webkit.org/show_bug.cgi?id=186822
2039
2040         Reviewed by Simon Fraser.
2041
2042         * dom/Document.cpp:
2043         (WebCore::Document::setOverrideViewportArguments):
2044         (WebCore::Document::updateViewportArguments):
2045         * dom/Document.h:
2046
2047 2018-06-20  Said Abou-Hallawa  <sabouhallawa@apple.com>
2048
2049         RenderSVGInline has to be inline always regardless of its css display value
2050         https://bugs.webkit.org/show_bug.cgi?id=186656
2051
2052         Reviewed by Zalan Bujtas.
2053
2054         According to https://www.w3.org/TR/SVG2/text.html#TextLayout, the <text>
2055         element has to be laid out as if it were a block element and any <tspan>,
2056         <textPath>, <a> and <tref> descendants were inline elements.
2057
2058         If a css rule, which contains the property "display: block;", is applied
2059         to any of children of a <text> element, this property has to be ignored.
2060
2061         We currently ignore this property in RenderSVGInline::updateFromStyle()
2062         by forcing setInline(true). But we do not do the same thing in 
2063         RenderTreeBuilder::normalizeTreeAfterStyleChange(). In fact we allow
2064         making the children of the <text> element to be non-inline. This puts
2065         the render tree in weired state and causes many assertions to fire while
2066         laying out RenderSVGText. 
2067
2068         Test: svg/dom/svg-inline-text-display-block-crash.html
2069
2070         * rendering/updating/RenderTreeBuilder.cpp:
2071         (WebCore::RenderTreeBuilder::normalizeTreeAfterStyleChange):
2072
2073 2018-06-20  Zalan Bujtas  <zalan@apple.com>
2074
2075         Do not reuse generated inline renderer for the first letter.
2076         https://bugs.webkit.org/show_bug.cgi?id=186657
2077         <rdar://problem/41157892>
2078
2079         Reviewed by Simon Fraser.
2080
2081         When the first letter pseudo element is present, we construct a dedicated subtree for its content like this:
2082
2083         <div><span>foobar</span></div> -> with ::first-letter on the <div>
2084         DIV RenderBlock
2085             SPAN RenderInline
2086                 RenderInline (generated wrapper for the first letter content)
2087                     RenderText (fist letter content)
2088                 RenderText (remaining text content)
2089
2090         "display: contents" on the <span> forces us not to construct a RenderInline for the <span> (or just come up with a wrapper at best).
2091         FirstLetter::createRenderers logic needs to check for such cases and pick the correct parent for the first letter subtree accordingly.
2092
2093         Test: fast/text/first-letter-with-display-contents-crash.html
2094               imported/w3c/web-platform-tests/css/css-display/display-contents-first-letter-002.html is not crashing anymore either.
2095
2096         * rendering/updating/RenderTreeBuilderFirstLetter.cpp:
2097         (WebCore::RenderTreeBuilder::FirstLetter::createRenderers):
2098
2099 2018-06-21  Chris Dumez  <cdumez@apple.com>
2100
2101         JSPerformanceObserverCallback creates a GC strongly-referenced Function that is never cleaned up
2102         https://bugs.webkit.org/show_bug.cgi?id=186873
2103         <rdar://problem/41271574>
2104
2105         Reviewed by Simon Fraser.
2106
2107         Add [IsWeakCallback] to PerformanceObserverCallback interface so that the generated
2108         JSPerformanceObserverCallback uses a JSC::Weak instead of a JSC::Strong to store the
2109         js function. To keep the function alive, add [JSCustomMarkFunction] to PerformanceObserver
2110         interface and have its visitAdditionalChildren() visit the callback's js function.
2111         Finally, because we want the callback to still be called even if the JS does not keep
2112         the PerformanceObserver wrapper alive, add [CustomIsReachable] to PerformanceObserver
2113         interface and have its isReachableFromOpaqueRoots() return true if the observer is
2114         registered (i.e. it may need to call the callback in the future).
2115
2116         I have confirmed locally, that the Performance / PerformanceObserver / Document
2117         objects properly get destroyed if I navigate away from a page that had a performance
2118         observer and trigger a memory pressure warning. Also,
2119         `notifyutil -p com.apple.WebKit.showAllDocuments` no longer shows the old document.
2120
2121         Tests: performance-api/performance-observer-callback-after-gc.html
2122                performance-api/performance-observer-no-document-leak.html
2123
2124         * Sources.txt:
2125         * WebCore.xcodeproj/project.pbxproj:
2126         * bindings/js/JSPerformanceObserverCustom.cpp: Added.
2127         (WebCore::JSPerformanceObserver::visitAdditionalChildren):
2128         (WebCore::JSPerformanceObserverOwner::isReachableFromOpaqueRoots):
2129         * bindings/js/ScriptController.cpp:
2130         * page/PerformanceObserver.cpp:
2131         (WebCore::PerformanceObserver::disassociate):
2132         * page/PerformanceObserver.h:
2133         (WebCore::PerformanceObserver::isRegistered const):
2134         (WebCore::PerformanceObserver::callback):
2135         * page/PerformanceObserver.idl:
2136         * page/PerformanceObserverCallback.h:
2137         * page/PerformanceObserverCallback.idl:
2138
2139 2018-06-20  Antoine Quint  <graouts@apple.com>
2140
2141         [Web Animations] Make imported/mozilla/css-animations/test_animation-ready.html pass reliably
2142         https://bugs.webkit.org/show_bug.cgi?id=183830
2143         <rdar://problem/40997539>
2144
2145         Reviewed by Dean Jackson.
2146
2147         The CSS Animations Level 2 spec explains how the Web Animations API and CSS Animations interact and requires
2148         pending styles changes on the target element of a CSS Animation to be flushed when using a Web Animations API
2149         on it in order to ensure that any animation- CSS property is accounted for.
2150
2151         * animation/CSSAnimation.cpp:
2152         (WebCore::CSSAnimation::bindingsStartTime const):
2153         (WebCore::CSSAnimation::setBindingsStartTime):
2154         (WebCore::CSSAnimation::bindingsCurrentTime const):
2155         (WebCore::CSSAnimation::setBindingsCurrentTime):
2156         (WebCore::CSSAnimation::bindingsPlayState const):
2157         (WebCore::CSSAnimation::bindingsPending const):
2158         (WebCore::CSSAnimation::bindingsReady):
2159         (WebCore::CSSAnimation::bindingsFinished):
2160         (WebCore::CSSAnimation::bindingsPlay):
2161         (WebCore::CSSAnimation::bindingsPause):
2162         (WebCore::CSSAnimation::flushPendingStyleChanges const):
2163         * animation/CSSAnimation.h:
2164         * animation/WebAnimation.h:
2165         (WebCore::WebAnimation::bindingsPlayState const):
2166         (WebCore::WebAnimation::bindingsPending const):
2167         (WebCore::WebAnimation::bindingsReady):
2168         (WebCore::WebAnimation::bindingsFinished):
2169         (WebCore::WebAnimation::bindingsPlay):
2170         (WebCore::WebAnimation::bindingsPause):
2171         * animation/WebAnimation.idl:
2172
2173 2018-06-21  Jer Noble  <jer.noble@apple.com>
2174
2175         [Fullscreen] Suspend page (and pause video) while phishing warning is presented
2176         https://bugs.webkit.org/show_bug.cgi?id=186856
2177         <rdar://problem/41212444>
2178
2179         Reviewed by Tim Horton.
2180
2181         Pause the media element when the page is suspended, and unpause when the page resumes.
2182
2183         * html/HTMLMediaElement.cpp:
2184         (WebCore::HTMLMediaElement::HTMLMediaElement):
2185         (WebCore::HTMLMediaElement::suspend):
2186         (WebCore::HTMLMediaElement::resume):
2187         * html/HTMLMediaElement.h:
2188
2189 2018-06-21  Michael Catanzaro  <mcatanzaro@igalia.com>
2190
2191         Bad optional access in WebCore::ContentSecurityPolicySource::portMatches
2192         https://bugs.webkit.org/show_bug.cgi?id=186535
2193
2194         Reviewed by Daniel Bates.
2195
2196         Make sure the ports have explicit values before dereferencing them.
2197
2198         This is hard to test. If the layout test script-src-parsing-implicit-and-explicit-port-number
2199         continues to pass for WebKitLegacy, then I have at least probably not broken anything. To
2200         reproduce the crash in a layout test that I can run, I think I would need to implement
2201         internals.registerDefaultPortForProtocol for modern WebKit, which is too much work for this
2202         crash. Otherwise, we'd need to run the test server on port 80, which would be unfriendly.
2203
2204         * page/csp/ContentSecurityPolicySource.cpp:
2205         (WebCore::ContentSecurityPolicySource::portMatches const):
2206
2207 2018-06-21  Fujii Hironori  <Hironori.Fujii@sony.com>
2208
2209         [GStreamer] ASSERTION FAILED: end.isValid() in PlatformTimeRanges::add
2210         https://bugs.webkit.org/show_bug.cgi?id=186880
2211
2212         Reviewed by Xabier Rodriguez-Calvar.
2213
2214         Bug 180253 has added assertions the arugments `start` and `end` is
2215         valid MediaTime in PlatformTimeRanges::add. Since then, some
2216         LayoutTests fail due to the assertion failure.
2217
2218         The invalid MediaTime is added into the PlatformTimeRanges in
2219         MediaPlayerPrivateGStreamer::buffered. Before adding MediaTime,
2220         original implementation checks MediaTime::operator bool() returns
2221         true. But, this method returns true if the time value is invalid.
2222         Then, PlatformTimeRanges::add is called with an invalid MediaTime.
2223
2224         No new tests (No behavior change).
2225
2226         * platform/graphics/gstreamer/MediaPlayerPrivateGStreamer.cpp:
2227         (WebCore::MediaPlayerPrivateGStreamer::buffered const): Check
2228         maxTimeLoaded() is valid before adding to `timeRanges`.
2229
2230 2018-06-20  David Kilzer  <ddkilzer@apple.com>
2231
2232         Fix leaks in WebCore found by clang static analyzer in deep mode
2233         <https://webkit.org/b/186865>
2234
2235         Reviewed by Joseph Pecoraro.
2236
2237         * platform/mac/WebCoreNSURLExtras.mm:
2238         (WebCore::mapHostNames): Fix leak of an empty NSMutableArray
2239         during an early return.  RetainPtr<> is not used here since
2240         a pointer to the NSMutableArray * is passed around.
2241         * platform/mediastream/mac/ScreenDisplayCaptureSourceMac.mm:
2242         (WebCore::ScreenDisplayCaptureSourceMac::createDisplayStream):
2243         Fix leak of a CGDisplayModeRef during an early return.
2244
2245 2018-06-20  Wenson Hsieh  <wenson_hsieh@apple.com>
2246
2247         Unreviewed, fix the watchOS build after r233016.
2248
2249         * page/EventHandler.cpp:
2250         (WebCore::EventHandler::selectionExtentRespectingEditingBoundary):
2251
2252         Move this helper out of the ENABLE(DRAG_SUPPORT) guard.
2253
2254         * page/EventHandler.h:
2255
2256 2018-06-20  Simon Fraser  <simon.fraser@apple.com>
2257
2258         AnimationList wastes 60KB of vector capacity
2259         https://bugs.webkit.org/show_bug.cgi?id=186701
2260
2261         Reviewed by Chris Dumez.
2262
2263         AnimationList was the second most wasteful call site for Vector capacity on theverge.com,
2264         wasting almost 60KB. Lists had between 1 and 3 entries, so give AnimationList's vector of
2265         Animations a min capacity of zero so it doesn't grow in increments of 16.
2266         
2267         Also shrink Animation from 88 bytes to 72 bytes by optimizing packing.
2268
2269         * platform/animation/Animation.cpp:
2270         (WebCore::Animation::Animation):
2271         (WebCore::Animation::operator=):
2272         (WebCore::Animation::animationsMatch const):
2273         * platform/animation/Animation.h:
2274         (WebCore::Animation::animationMode const):
2275         (WebCore::Animation::setAnimationMode):
2276         * platform/animation/AnimationList.h:
2277
2278 2018-06-20  Simon Fraser  <simon.fraser@apple.com>
2279
2280         ContentSecurityPolicySourceList wastes 51KB of Vector capacity on cnn.com
2281         https://bugs.webkit.org/show_bug.cgi?id=186706
2282
2283         Reviewed by Chris Dumez.
2284
2285         Make ContentSecurityPolicySourceList::parse() call shrinkToFit() on m_list
2286         after parsing to eliminate wasted vector capacity.
2287         
2288         Shrink ContentSecurityPolicySource down to 40 bytes by optimizing packing.
2289
2290         * page/csp/ContentSecurityPolicySource.cpp:
2291         (WebCore::ContentSecurityPolicySource::ContentSecurityPolicySource):
2292         * page/csp/ContentSecurityPolicySource.h:
2293         * page/csp/ContentSecurityPolicySourceList.cpp:
2294         (WebCore::ContentSecurityPolicySourceList::matches const):
2295         (WebCore::ContentSecurityPolicySourceList::parse):
2296         (WebCore::ContentSecurityPolicySourceList::matches): Deleted.
2297         * page/csp/ContentSecurityPolicySourceList.h:
2298
2299 2018-06-20  Megan Gardner  <megan_gardner@apple.com>
2300
2301         Restrict Selection in contenteditable the extent of that contenteditable
2302         https://bugs.webkit.org/show_bug.cgi?id=186792
2303
2304         Reviewed by Wenson Hsieh.
2305
2306         My system currently will not allow me to run tests. I will add one when I can update.
2307
2308         Expose the already existing funcitonality to restrict a selection to a single contentenditable
2309
2310         * page/EventHandler.cpp:
2311         (WebCore::EventHandler::selectionExtentRespectingEditingBoundary):
2312         (WebCore::selectionExtentRespectingEditingBoundary): Deleted.
2313         * page/EventHandler.h:
2314         * rendering/HitTestResult.h:
2315
2316 2018-06-20  Simon Fraser  <simon.fraser@apple.com>
2317
2318         CSSFontFace wastes 59KB of Vector capacity on nytimes.com
2319         https://bugs.webkit.org/show_bug.cgi?id=186708
2320
2321         Reviewed by Anders Carlsson.
2322
2323         Most CSSFontFace have one or two CSSFontFaceSource so don't allocate
2324         vector capacity in the default 16-size chunks.
2325
2326         * css/CSSFontFace.h:
2327
2328 2018-06-20  Antoine Quint  <graouts@apple.com>
2329
2330         [Web Animations] Make imported/mozilla/css-transitions/test_element-get-animations.html pass reliably
2331         https://bugs.webkit.org/show_bug.cgi?id=183841
2332         <rdar://problem/40998101>
2333
2334         Reviewed by Dean Jackson.
2335
2336         We must ignore CSS Animations with "animation-name: none".
2337
2338         * animation/AnimationTimeline.cpp:
2339         (WebCore::AnimationTimeline::updateCSSAnimationsForElement):
2340
2341 2018-06-20  Miguel Gomez  <magomez@igalia.com>
2342
2343         [GTK][ThreadedRendering][Nicosia] Themed elements cannot be rendered using threaded rendering
2344         https://bugs.webkit.org/show_bug.cgi?id=186840
2345
2346         Reviewed by Carlos Garcia Campos.
2347
2348         Disable threaded rendering for GTK port.
2349
2350         * platform/graphics/nicosia/NicosiaPaintingEngine.cpp:
2351         (Nicosia::PaintingEngine::create):
2352
2353 2018-06-20  Yusuke Suzuki  <utatane.tea@gmail.com>
2354
2355         [GTK][WPE][Nicosia] Add name for Nicosia Painting Threads
2356         https://bugs.webkit.org/show_bug.cgi?id=186836
2357
2358         Reviewed by Carlos Garcia Campos.
2359
2360         Use "PaintingThread" name.
2361
2362         * platform/graphics/nicosia/NicosiaPaintingEngineThreaded.cpp:
2363         (Nicosia::PaintingEngineThreaded::PaintingEngineThreaded):
2364
2365 2018-06-19  Antoine Quint  <graouts@apple.com>
2366
2367         [Web Animations] Make imported/mozilla/css-animations/test_pseudoElement-get-animations.html pass reliably
2368         https://bugs.webkit.org/show_bug.cgi?id=183818
2369         <rdar://problem/40997015>
2370
2371         Reviewed by Dean Jackson.
2372
2373         We add a new opt-in flag to return sorted animations when calling AnimationTimeline::animationsForElement() so that
2374         Element::getAnimations() can opt into returning animations sorted by the rules defined by the CSS Transitions spec.
2375         The rule is that CSS Transitions must be sorted prior to CSS Animations and regular Web Animations, and then sorted
2376         by the time they were generated and, if generated at the same time, sorted alphabetically based on the transitioned
2377         property. To be able to accomodate this, we add a new generationTime() method to CSSTransition.
2378
2379         * animation/AnimationTimeline.cpp:
2380         (WebCore::AnimationTimeline::animationsForElement const):
2381         (WebCore::AnimationTimeline::updateCSSTransitionsForElement):
2382         * animation/AnimationTimeline.h:
2383         * animation/CSSTransition.cpp:
2384         (WebCore::CSSTransition::create):
2385         (WebCore::CSSTransition::CSSTransition):
2386         * animation/CSSTransition.h:
2387         * dom/Element.cpp:
2388         (WebCore::Element::getAnimations):
2389
2390 2018-06-19  Basuke Suzuki  <Basuke.Suzuki@sony.com>
2391
2392         [Curl] Allow passing contents of Root CA data directly.
2393         https://bugs.webkit.org/show_bug.cgi?id=185782
2394
2395         Currently the data must be in a file and set by its path. This patch
2396         allow application to set root CA data by passing binary data directly.
2397
2398         Reviewed by Yusuke Suzuki.
2399
2400         No new tests. Tested internally.
2401
2402         * platform/network/curl/CurlRequest.cpp:
2403         (WebCore::CurlRequest::setupTransfer):
2404         * platform/network/curl/CurlSSLHandle.cpp:
2405         (WebCore::CurlSSLHandle::CurlSSLHandle):
2406         (WebCore::CurlSSLHandle::getCACertPathEnv):
2407         (WebCore::CurlSSLHandle::setCACertPath):
2408         (WebCore::CurlSSLHandle::setCACertData):
2409         (WebCore::CurlSSLHandle::clearCACertInfo):
2410         * platform/network/curl/CurlSSLHandle.h:
2411         (WebCore::CurlSSLHandle::getCipherList const):
2412         (WebCore::CurlSSLHandle::getSignatureAlgorithmsList const):
2413         (WebCore::CurlSSLHandle::getCurvesList const):
2414         (WebCore::CurlSSLHandle::setCipherList):
2415         (WebCore::CurlSSLHandle::setSignatureAlgorithmsList):
2416         (WebCore::CurlSSLHandle::setCurvesList):
2417         (WebCore::CurlSSLHandle::setIgnoreSSLErrors):
2418         (WebCore::CurlSSLHandle::getCACertInfo const):
2419         (WebCore::CurlSSLHandle::getCACertPath const): Deleted.
2420         (WebCore::CurlSSLHandle::setCACertPath): Deleted.
2421         * platform/network/curl/CurlSSLVerifier.cpp:
2422         (WebCore::CurlSSLVerifier::CurlSSLVerifier):
2423
2424 2018-06-19  Dean Jackson  <dino@apple.com>
2425
2426         ARKit badge drop shadow updates its blur radius based on page zoom
2427         https://bugs.webkit.org/show_bug.cgi?id=186829
2428         <rdar://problem/40738779>
2429
2430         Reviewed by Tim Horton.
2431
2432         We need to make sure the shadow blur radius takes into account the
2433         current zoom. Thankfully, the GraphicsContext platform code already
2434         does this, so just use it.
2435
2436         * rendering/RenderThemeIOS.mm:
2437         (WebCore::RenderThemeIOS::paintSystemPreviewBadge):
2438
2439 2018-06-19  Dean Jackson  <dino@apple.com>
2440
2441         Blank viewer comes up and then auto-dismisses when device is not connected to Internet
2442         https://bugs.webkit.org/show_bug.cgi?id=186825
2443         <rdar://problem/40294170>
2444
2445         Reviewed by Tim Horton.
2446
2447         Export isSuccessful() to WebKit.
2448
2449         * platform/network/ResourceResponseBase.h:
2450
2451 2018-06-19  Basuke Suzuki  <Basuke.Suzuki@sony.com>
2452
2453         [Curl] Enable Proxy Authentication.
2454         https://bugs.webkit.org/show_bug.cgi?id=185266
2455
2456         Add support for Proxy Authentication to curl network layer.
2457
2458         Reviewed by Alex Christensen.
2459
2460         No new tests in public. Tested internally.
2461
2462         * platform/network/curl/AuthenticationChallenge.h:
2463         * platform/network/curl/AuthenticationChallengeCurl.cpp:
2464         (WebCore::AuthenticationChallenge::protectionSpaceServerTypeFromURI):
2465         (WebCore::AuthenticationChallenge::protectionSpaceFromHandle):
2466         (WebCore::AuthenticationChallenge::determineProxyPort):
2467         (WebCore::AuthenticationChallenge::authenticationSchemeFromCurlAuth):
2468         (WebCore::AuthenticationChallenge::parseRealm):
2469         * platform/network/curl/CurlContext.cpp:
2470         (WebCore::CurlHandle::enableProxyIfExists):
2471         (WebCore::CurlHandle::getProxyUrl):
2472         (WebCore::CurlHandle::getProxyAuthAvail):
2473         (WebCore::CurlHandle::getPrimaryPort): Deleted.
2474         * platform/network/curl/CurlContext.h:
2475         (WebCore::CurlContext::setDefaultProxyAuthMethod):
2476         (WebCore::CurlContext::setProxyAuthMethod):
2477         * platform/network/curl/CurlProxySettings.cpp:
2478         (WebCore::determineAuthMethod):
2479         (WebCore::CurlProxySettings::setAuthMethod):
2480         (WebCore::protocolIsInSocksFamily):
2481         * platform/network/curl/CurlProxySettings.h:
2482         (WebCore::CurlProxySettings::setDefaultAuthMethod):
2483         (WebCore::CurlProxySettings::authMethod const):
2484         * platform/network/curl/CurlRequest.cpp:
2485         (WebCore::CurlRequest::didReceiveHeader):
2486         * platform/network/curl/CurlResponse.h:
2487         (WebCore::CurlResponse::isolatedCopy const):
2488         * platform/network/curl/ResourceResponse.h:
2489         * platform/network/curl/ResourceResponseCurl.cpp:
2490         (WebCore::ResourceResponse::isProxyAuthenticationRequired const):
2491
2492 2018-06-19  Tim Horton  <timothy_horton@apple.com>
2493
2494         Unpainted area while scrolling in Reader is white
2495         https://bugs.webkit.org/show_bug.cgi?id=186541
2496         <rdar://problem/40471363>
2497
2498         Reviewed by Timothy Hatcher.
2499
2500         New test: tiled-drawing/simple-document-with-dynamic-background-color.html
2501
2502         For platforms that do not use the overhang layer, we depend on
2503         RenderView's background color to fill unpainted space.
2504
2505         RenderView's background color is only updated inside updateRootLayerConfiguration,
2506         and it is possible with a simple enough page to change the document's
2507         background color without running that code.
2508
2509         * page/FrameView.cpp:
2510         (WebCore::FrameView::setTransparent):
2511         (WebCore::FrameView::setBaseBackgroundColor):
2512         Make use of the newly added rootBackgroundColorOrTransparencyChanged.
2513
2514         (WebCore::FrameView::calculateExtendedBackgroundMode const):
2515         Update a comment, since the function it mentioned is no longer.
2516
2517         (WebCore::FrameView::updateTilesForExtendedBackgroundMode):
2518         Remove this code that clears the root extended background color
2519         if using tiles to extend in both directions. Two reasons:
2520         1) it seems harmless to also have a root extended background color
2521         2) this just gets clobbered by the call in RenderView::paintBoxDecorations
2522
2523         * rendering/RenderLayerCompositor.cpp:
2524         (WebCore::RenderLayerCompositor::updateCompositingLayers):
2525         Add a bit that will do a updateConfiguration() on the root layer if no
2526         other work needs to be done, so that we can update the root layer's
2527         transparency or background color without doing a full layer rebuild.
2528
2529         (WebCore::RenderLayerCompositor::rootOrBodyStyleChanged):
2530         Make use of the newly added rootBackgroundColorOrTransparencyChanged.
2531
2532         (WebCore::RenderLayerCompositor::rootBackgroundColorOrTransparencyChanged):
2533         Change rootBackgroundTransparencyChanged to also cover color changes.
2534         Fold setRootExtendedBackgroundColor in here, and make use of
2535         setRootLayerConfigurationNeedsUpdate() instead of doing a full rebuild.
2536         Previously, we would bail if the transparency state hadn't changed;
2537         now, we'll also update the root layer's background color and the
2538         exposed-to-WebKit extended background color if they change too.
2539
2540         (WebCore::RenderLayerCompositor::rootBackgroundTransparencyChanged): Deleted.
2541         (WebCore::RenderLayerCompositor::setRootExtendedBackgroundColor): Deleted.
2542
2543         * rendering/RenderLayerCompositor.h:
2544         Add setRootLayerConfigurationNeedsUpdate, remove setRootExtendedBackgroundColor,
2545         and add both a bit indicating that the root layer configuration needs updating
2546         and the cached view background color to make the early return in
2547         rootBackgroundColorOrTransparencyChanged possible.
2548
2549         * rendering/RenderView.cpp:
2550         (WebCore::RenderView::paintBoxDecorations):
2551         Make use of the newly added rootBackgroundColorOrTransparencyChanged.
2552
2553 2018-06-19  Youenn Fablet  <youenn@apple.com>
2554
2555         Need to properly handle removal of worker in SWServer::unregisterServiceWorkerClient timer lambda
2556         https://bugs.webkit.org/show_bug.cgi?id=186674
2557         <rdar://problem/40974812>
2558
2559         Reviewed by Chris Dumez.
2560
2561         While looping over the running workers map and trying to terminate some of the workers,
2562         there is a chance that the map will be modified synchronously which may affect iterating the map.
2563         This patch removes that potential threat.
2564
2565         * workers/service/server/SWServer.cpp:
2566         (WebCore::SWServer::unregisterServiceWorkerClient):
2567
2568 2018-06-19  Antoine Quint  <graouts@apple.com>
2569
2570         [Web Animations] Make imported/mozilla/css-animations/test_animation-playstate.html pass reliably
2571         https://bugs.webkit.org/show_bug.cgi?id=183828
2572         <rdar://problem/40997469>
2573
2574         Reviewed by Dean Jackson.
2575
2576         We need to ensure pending styles have been resolved prior to returning the play state for a CSS Animation since
2577         it can be controlled by the animation-play-state CSS property. To that end we expose a specific bindings-only
2578         method which we override for CSSAnimation to force a style update.
2579
2580         * animation/CSSAnimation.cpp:
2581         (WebCore::CSSAnimation::bindingsPlayState const):
2582         * animation/CSSAnimation.h:
2583         * animation/WebAnimation.h:
2584         (WebCore::WebAnimation::bindingsPlayState const):
2585         * animation/WebAnimation.idl:
2586
2587 2018-06-19  David Kilzer  <ddkilzer@apple.com>
2588
2589         Revert: Add logging when splashboardd enables WebThread
2590         <https://webkit.org/b/186793>
2591         <rdar://problem/41213255>
2592
2593         Turns out this isn't needed, so reverting r232959.
2594
2595         * platform/RuntimeApplicationChecks.h:
2596         * platform/cocoa/RuntimeApplicationChecksCocoa.mm:
2597         (WebCore::IOSApplication::isSplashBoardd): Deleted.
2598         * platform/ios/wak/WebCoreThread.mm:
2599         (WebThreadEnable):
2600
2601 2018-06-19  Wenson Hsieh  <wenson_hsieh@apple.com>
2602
2603         [WebKit on watchOS] Vend username text content type when using scribble in login fields
2604         https://bugs.webkit.org/show_bug.cgi?id=186791
2605         <rdar://problem/41226935>
2606
2607         Reviewed by Beth Dakin.
2608
2609         Expose AutofillElements' autofillable username input element. See WebKit ChangeLog for more details.
2610
2611         * editing/ios/AutofillElements.h:
2612         (WebCore::AutofillElements::username const):
2613
2614 2018-06-19  Chris Dumez  <cdumez@apple.com>
2615
2616         WebCoreNSURLSessionDataTaskClient::redirectReceived() calls WebCore on non-main thread
2617         https://bugs.webkit.org/show_bug.cgi?id=186805
2618         <rdar://problem/36960714>
2619
2620         Reviewed by Youenn Fablet.
2621
2622         Make sure WebCoreNSURLSessionDataTaskClient::redirectReceived() dispatches to the main
2623         thread before calling its completion handler. Otherwise, we end up calling into WebCore
2624         on a NSOperationQueue background thread and we crash.
2625
2626         * platform/network/cocoa/WebCoreNSURLSession.mm:
2627         (WebCore::WebCoreNSURLSessionDataTaskClient::redirectReceived):
2628
2629 2018-06-19  Chris Dumez  <cdumez@apple.com>
2630
2631         HTTPHeaderMap wastes 226KB of HashTable capacity on cnn.com
2632         https://bugs.webkit.org/show_bug.cgi?id=186735
2633         <rdar://problem/41189164>
2634
2635         Reviewed by Geoffrey Garen.
2636
2637         Resource requests and responses normally do not have a large amount of HTTP headers
2638         (local testing shows 6 common headers on average and 0.3 uncommon ones).
2639         As a result, move the internal representation of HTTPHeaderMap from HashMaps to
2640         Vectors. Given the number of headers, the impact on performance should be negligible.
2641         However, the new implementation uses a lot less memory. In a follow-up, we can save
2642         even more memory by calling HTTPHeaderMap::shrinkToFit() when possible.
2643
2644         * loader/CrossOriginAccessControl.cpp:
2645         (WebCore::createAccessControlPreflightRequest):
2646         * loader/DocumentLoader.cpp:
2647         (WebCore::DocumentLoader::responseReceived):
2648         * loader/cache/CachedRawResource.cpp:
2649         (WebCore::CachedRawResource::canReuse const):
2650         * platform/network/HTTPHeaderMap.cpp:
2651         (WebCore::HTTPHeaderMap::isolatedCopy const):
2652         (WebCore::HTTPHeaderMap::get const):
2653         (WebCore::HTTPHeaderMap::set):
2654         (WebCore::HTTPHeaderMap::add):
2655         (WebCore::HTTPHeaderMap::append):
2656         (WebCore::HTTPHeaderMap::addIfNotPresent):
2657         (WebCore::HTTPHeaderMap::contains const):
2658         (WebCore::HTTPHeaderMap::remove):
2659         * platform/network/HTTPHeaderMap.h:
2660         (WebCore::HTTPHeaderMap::CommonHeader::isolatedCopy const):
2661         (WebCore::HTTPHeaderMap::CommonHeader::operator== const):
2662         (WebCore::HTTPHeaderMap::UncommonHeader::isolatedCopy const):
2663         (WebCore::HTTPHeaderMap::UncommonHeader::operator== const):
2664         (WebCore::HTTPHeaderMap::HTTPHeaderMapConstIterator::HTTPHeaderMapConstIterator):
2665         (WebCore::HTTPHeaderMap::HTTPHeaderMapConstIterator::updateKeyValue):
2666         (WebCore::HTTPHeaderMap::shrinkToFit):
2667         (WebCore::HTTPHeaderMap::commonHeaders const):
2668         (WebCore::HTTPHeaderMap::uncommonHeaders const):
2669         (WebCore::HTTPHeaderMap::commonHeaders):
2670         (WebCore::HTTPHeaderMap::uncommonHeaders):
2671         (WebCore::HTTPHeaderMap::CommonHeader::encode const):
2672         (WebCore::HTTPHeaderMap::CommonHeader::decode):
2673         (WebCore::HTTPHeaderMap::UncommonHeader::encode const):
2674         (WebCore::HTTPHeaderMap::UncommonHeader::decode):
2675         (WebCore::HTTPHeaderMap::encode const):
2676         (WebCore::HTTPHeaderMap::decode):
2677         * platform/network/ResourceResponseBase.cpp:
2678         (WebCore::ResourceResponseBase::filter):
2679         (WebCore::ResourceResponseBase::sanitizeHTTPHeaderFields):
2680
2681 2018-06-19  Youenn Fablet  <youenn@apple.com>
2682
2683         Network Preflights do not show in WebInspector after moving CORS checks to NetworkProcess
2684         https://bugs.webkit.org/show_bug.cgi?id=186312
2685         <rdar://problem/40495434>
2686
2687         Reviewed by Chris Dumez.
2688
2689         Test: http/wpt/fetch/inspect-preflight.html
2690
2691         No change of behavior in regular conditions.
2692         All intermediate requests/responses are now buffered in NetworkProcess if Web inspector shows up.
2693         Add NetworkLoadInformation and NetworkIntermediateLoadInformation for that purpose.
2694
2695         Add a new LoaderStrategy method to grab this information from NetworkProcess synchronously.
2696         Add Internals API for testing the storage by the Network Process and the sending to WebProcess.
2697
2698         * WebCore.xcodeproj/project.pbxproj:
2699         * loader/LoaderStrategy.cpp:
2700         (WebCore::LoaderStrategy::intermediateLoadInformationFromResourceLoadIdentifier):
2701         * loader/LoaderStrategy.h:
2702         * platform/network/NetworkLoadInformation.h: Added.
2703         (WebCore::NetworkTransactionInformation::encode const):
2704         (WebCore::NetworkTransactionInformation::decode):
2705         * testing/Internals.cpp:
2706         (WebCore::Internals::setCaptureExtraNetworkLoadMetricsEnabled):
2707         (WebCore::Internals::ongoingLoadDescriptions):
2708         * testing/Internals.h:
2709         * testing/Internals.idl:
2710
2711 2018-06-19  Antoine Quint  <graouts@apple.com>
2712
2713         [Web Animations] Make imported/mozilla/css-transitions/test_animation-cancel.html pass reliably
2714         https://bugs.webkit.org/show_bug.cgi?id=183821
2715         <rdar://problem/40997034>
2716
2717         Reviewed by Dean Jackson.
2718
2719         If an element gets a "display: none" style RenderTreeUpdater::tearDownRenderers() will be called with a RendererUpdateCancelingAnimations
2720         teardown type on all of its children. We need to ensure all declarative animations, and only those since regular Web Animations should be
2721         kept active regardless of their target's style, are canceled in this situation.
2722
2723         * animation/AnimationTimeline.cpp:
2724         (WebCore::AnimationTimeline::cancelDeclarativeAnimationsForElement):
2725         * animation/AnimationTimeline.h:
2726         * rendering/updating/RenderTreeUpdater.cpp:
2727         (WebCore::RenderTreeUpdater::tearDownRenderers):
2728
2729 2018-06-19  David Kilzer  <ddkilzer@apple.com>
2730
2731         Add logging when splashboardd enables WebThread
2732         <https://webkit.org/b/186793>
2733         <rdar://problem/41213255>
2734
2735         Reviewed by Daniel Bates.
2736
2737         * platform/RuntimeApplicationChecks.h:
2738         (WebCore::IOSApplication::isSplashBoardd): Add declaration.
2739         * platform/cocoa/RuntimeApplicationChecksCocoa.mm:
2740         (WebCore::IOSApplication::isSplashBoardd): Add implementation.
2741         * platform/ios/wak/WebCoreThread.mm:
2742         (WebThreadEnable): Call RELEASE_LOG_FAULT() if this is called by
2743         splashboardd.
2744
2745 2018-06-19  Miguel Gomez  <magomez@igalia.com>
2746
2747         [GTK][WPE][Nicosia] Add environment variable to enable threaded rendering and set the number of painting threads
2748         https://bugs.webkit.org/show_bug.cgi?id=186801
2749
2750         Reviewed by Carlos Garcia Campos.
2751
2752         Add and environment variable to enable the usage of the threaded renderer and define the number
2753         of painting threads.
2754
2755         No new tests.
2756
2757         * platform/graphics/nicosia/NicosiaPaintingEngine.cpp:
2758         (Nicosia::PaintingEngine::create):
2759         * platform/graphics/nicosia/NicosiaPaintingEngineThreaded.cpp:
2760         (Nicosia::PaintingEngineThreaded::PaintingEngineThreaded):
2761         * platform/graphics/nicosia/NicosiaPaintingEngineThreaded.h:
2762
2763 2018-06-19  Youenn Fablet  <youenn@apple.com>
2764
2765         RTCRtpSender.replaceTrack(null) ends current track
2766         https://bugs.webkit.org/show_bug.cgi?id=184911
2767         <rdar://problem/40758138>
2768
2769         Reviewed by Eric Carlson.
2770
2771         Before the patch, when replacing the sender track by null, the previous track was stopped.
2772         Instead of doing that, the track now stays alive and it is the realtime source that is stopped.
2773         This ensures that the data is no longer sent while the track can still be used elsewhere.
2774
2775         Covered by updated and rebased tests.
2776
2777         * Modules/mediastream/PeerConnectionBackend.h:
2778         * Modules/mediastream/RTCPeerConnection.cpp:
2779         (WebCore::RTCPeerConnection::addTransceiver):
2780         (WebCore::RTCPeerConnection::enqueueReplaceTrackTask):
2781         (WebCore::RTCPeerConnection::replaceTrack):
2782         * Modules/mediastream/RTCPeerConnection.h:
2783         * Modules/mediastream/RTCRtpSender.cpp:
2784         (WebCore::RTCRtpSender::replaceTrack):
2785         * Modules/mediastream/libwebrtc/LibWebRTCPeerConnectionBackend.cpp:
2786         (WebCore::updateTrackSource):
2787         (WebCore::LibWebRTCPeerConnectionBackend::replaceTrack):
2788         * Modules/mediastream/libwebrtc/LibWebRTCPeerConnectionBackend.h:
2789
2790 2018-06-18  Chris Dumez  <cdumez@apple.com>
2791
2792         Better pack ResourceRequest
2793         https://bugs.webkit.org/show_bug.cgi?id=186717
2794
2795         Reviewed by Darin Adler.
2796
2797         Better pack ResourceRequest to reduce its size from 240 to 232 bytes
2798         on Mac.
2799
2800         * platform/network/ResourceRequestBase.h:
2801
2802 2018-06-18  Antoine Quint  <graouts@apple.com>
2803
2804         [Web Animations] Implement "Starting of transitions" section from CSS Transitions
2805         https://bugs.webkit.org/show_bug.cgi?id=186517
2806         <rdar://problem/41000798>
2807
2808         Reviewed by Dean Jackson.
2809
2810         We implement the whole section at https://drafts.csswg.org/css-transitions-1/#starting so that we have spec-compliant starting of CSS Transitions.
2811         To correctly implement this we now maintain two maps of transitions for a given property, a set of running transitions (m_elementToRunningCSSTransitionByCSSPropertyID)
2812         and a set of completed transition (m_elementToCompletedCSSTransitionByCSSPropertyID).
2813
2814         * animation/AnimationTimeline.cpp:
2815         (WebCore::removeCSSTransitionFromMap): Add a utility to remove a CSSTransition from one of the two HashMap<Element*, HashMap<CSSPropertyID, RefPtr<CSSTransition>>>
2816         managed by AnimationTimeline (m_elementToRunningCSSTransitionByCSSPropertyID and m_elementToCompletedCSSTransitionByCSSPropertyID).
2817         (WebCore::AnimationTimeline::animationWasRemovedFromElement): Use the new removeCSSTransitionFromMap() utility.
2818         (WebCore::AnimationTimeline::updateCSSAnimationsForElement): We rename "oldStyle" to "currentStyle" to align with the naming used by updateCSSAnimationsForElement().
2819         We also remove an initial check that has been pushed up to Style::TreeResolver::createAnimatedElementUpdate().
2820         (WebCore::propertyInStyleMatchesValueForTransitionInMap): When running the steps mandated by the spec we often need to check whether a given property has a transition
2821         in an AnimationList that matches the value used in a given RenderStyle.
2822         (WebCore::transitionCombinedDuration): We need to compute the combined duration twice while running the steps mandated by the spec, so we have a dedicated utility.
2823         (WebCore::transitionMatchesProperty): New utility that indicates whether a WebCore::Animation matches a given property, by virtue of targeting it directly, targeting
2824         a shorthand for which this property is a longhand, or targeting "all".
2825         (WebCore::AnimationTimeline::updateCSSTransitionsForElement): This is where all of the new implementation for starting transitions happens. We implement the steps
2826         as they appear in the spec.
2827         (WebCore::shouldBackingAnimationBeConsideredForCSSTransition): Deleted.
2828         * animation/AnimationTimeline.h:
2829         * animation/CSSAnimation.cpp:
2830         (WebCore::CSSAnimation::syncPropertiesWithBackingAnimation): Since only CSS Animations respect the delay and duration values as parsed directly in a WebCore:Animation
2831         object, we move code that was previously in DeclarativeAnimation::syncPropertiesWithBackingAnimation to this method. CSS Transitions set those values based on the
2832         delay and duration parameters passed to CSSTransition::create() and computed in AnimationTimeline::updateCSSTransitionsForElement().
2833         * animation/CSSTransition.cpp:
2834         (WebCore::CSSTransition::create): Since the transition's delay and duration is computed in AnimationTimeline::updateCSSTransitionsForElement(), we now require them
2835         to be passed when creating a CSSTransition and pass those to the new setTimingProperties() function. We also expect a target style and reversing-adjusted start style,
2836         as well as a reversing-shortening factor.
2837         (WebCore::CSSTransition::CSSTransition): 
2838         (WebCore::CSSTransition::resolve): We need to be able to query the last style computed by a call to resolve() from AnimationTimeline::updateCSSTransitionsForElement(),
2839         we subclass this newly-virtual WebAnimation method and clone the style after we blended the property targeted by this transition.
2840         (WebCore::CSSTransition::setTimingProperties): Set the transition delay and duration as provided in the call to create().
2841         (WebCore::CSSTransition::canBeListed const): Fix a crash that was found while working on this bug where we could access a null effect.
2842         (WebCore::CSSTransition::initialize): Deleted.
2843         (WebCore::CSSTransition::matchesBackingAnimationAndStyles const): Deleted.
2844         * animation/CSSTransition.h:
2845         * animation/DeclarativeAnimation.cpp:
2846         (WebCore::DeclarativeAnimation::syncPropertiesWithBackingAnimation): This virtual method now has an empty definition since the timing properties are now only set
2847         for CSSAnimation.
2848         * animation/KeyframeEffectReadOnly.cpp:
2849         (WebCore::KeyframeEffectReadOnly::stylesWouldYieldNewCSSTransitionsBlendingKeyframes const): Deleted.
2850         * animation/KeyframeEffectReadOnly.h:
2851         * animation/WebAnimation.h:
2852         * page/animation/CSSPropertyAnimation.cpp:
2853         (WebCore::AnimationPropertyWrapperBase::canInterpolate const): Since we need to be able to determine whether some property values can be interpolated, we add a new
2854         canInterpolate() method to the base wrapper class so the cases where we can't interpolate values (length with an "auto" type) may return false.
2855         (WebCore::LengthPropertyWrapper::LengthPropertyWrapper): Lengths can only be interpolated if both the start and end values are not "auto".
2856         (WebCore::LengthVariantPropertyWrapper::LengthVariantPropertyWrapper):
2857         (WebCore::CSSPropertyAnimationWrapperMap::CSSPropertyAnimationWrapperMap):
2858         (WebCore::CSSPropertyAnimation::canPropertyBeInterpolated):
2859         * page/animation/CSSPropertyAnimation.h:
2860         * style/StyleTreeResolver.cpp:
2861         (WebCore::Style::TreeResolver::createAnimatedElementUpdate): Move a check found in both updateCSSAnimationsForElement() and updateCSSTransitionsForElement() to their
2862         shared call site.
2863
2864 2018-06-18  Nan Wang  <n_wang@apple.com>
2865
2866         AX: [macOS] When zoom is enabled, focus doesn't follow text cursor
2867         https://bugs.webkit.org/show_bug.cgi?id=186697
2868
2869         Reviewed by Darin Adler.
2870
2871         Now that web process doesn't have access to NSScreen. The conversion of the 
2872         rects is wrong. Fixed this by using the right function that's available in
2873         WebCore to get the rects.
2874
2875         * editing/mac/FrameSelectionMac.mm:
2876         (WebCore::accessibilityConvertScreenRect):
2877
2878 2018-06-18  Youenn Fablet  <youenn@apple.com>
2879
2880         Expose RTCPeerConnectionIceEventInit constructor
2881         https://bugs.webkit.org/show_bug.cgi?id=186770
2882
2883         Reviewed by Alex Christensen.
2884
2885         Add event constructor as per specification.
2886         Add support for the url attribute.
2887         For that purpose, we need to pipe that information from LibWebRTCMediaEndpoint
2888         up to RTCPeerConnectionIceEvent.
2889
2890         Covered by rebased test.
2891
2892         * Modules/mediastream/PeerConnectionBackend.cpp:
2893         (WebCore::PeerConnectionBackend::fireICECandidateEvent):
2894         (WebCore::PeerConnectionBackend::disableICECandidateFiltering):
2895         (WebCore::PeerConnectionBackend::newICECandidate):
2896         (WebCore::PeerConnectionBackend::doneGatheringCandidates):
2897         (WebCore::PeerConnectionBackend::finishedRegisteringMDNSName):
2898         * Modules/mediastream/PeerConnectionBackend.h:
2899         * Modules/mediastream/RTCPeerConnectionIceEvent.cpp:
2900         (WebCore::RTCPeerConnectionIceEvent::create):
2901         (WebCore::RTCPeerConnectionIceEvent::RTCPeerConnectionIceEvent):
2902         * Modules/mediastream/RTCPeerConnectionIceEvent.h:
2903         (WebCore::RTCPeerConnectionIceEvent::url const):
2904         * Modules/mediastream/RTCPeerConnectionIceEvent.idl:
2905         * Modules/mediastream/libwebrtc/LibWebRTCMediaEndpoint.cpp:
2906         (WebCore::LibWebRTCMediaEndpoint::OnIceCandidate):
2907         * bindings/js/WebCoreBuiltinNames.h:
2908         * dom/EventNames.in:
2909
2910 2018-06-18  Simon Fraser  <simon.fraser@apple.com>
2911
2912         SVGTransformListValues wastes 127KB of Vector capacity on nytimes.com
2913         https://bugs.webkit.org/show_bug.cgi?id=186704
2914
2915         Reviewed by Said Abou-Hallawa.
2916
2917         SVGTransformListValues has inline capacity 1, and every SVGGraphicsElement has
2918         a SVGSynchronizableAnimatedProperty<WebCore::SVGTransformListValues>, so the inline
2919         capacity wastes space for every SVGGraphicsElement that doesn't have a transform (i.e.
2920         most of them).
2921         
2922         So make SVGTransformListValues have zero inline capacity, and set its min capacity to
2923         2, rather than the default 16, since most transform lists are short.
2924
2925         * svg/SVGTransformListValues.h:
2926
2927 2018-06-18  Said Abou-Hallawa  <sabouhallawa@apple.com>
2928
2929         Document should not be mutated under SMILTimeContainer::updateAnimations()
2930         https://bugs.webkit.org/show_bug.cgi?id=186658
2931
2932         Reviewed by Simon Fraser.
2933
2934         To update the animation of an SVG <animate> element, we call
2935         SVGAnimateElementBase::resetAnimatedType(). It ensures the pointer m_animator
2936         is valid. If it animates a css property, it calls computeCSSPropertyValue()
2937         which calls resolveStyle() via other calls. resolveStyle() may call delayed
2938         callbacks through the destructor of PostResolutionCallbackDisabler. These
2939         callbacks may fire events. These events may execute JS event handlers.
2940         If one of these event handlers deletes the same SVG <animate> we animate,
2941         we will end up calling SVGAnimateElementBase::resetAnimatedPropertyType()
2942         of the same <animate> element. This function  will delete the same m_animator
2943         which resetAnimatedType() still holds and will use later. This code
2944         re-entrance is unexpected and unwanted.
2945
2946         The fix is to disable mutating the DOM while updating the SVG animations.
2947
2948         Test: svg/dom/css-animate-input-foucs-crash.html
2949
2950         * svg/animation/SMILTimeContainer.cpp:
2951         (WebCore::SMILTimeContainer::updateAnimations):
2952
2953 2018-06-18  Commit Queue  <commit-queue@webkit.org>
2954
2955         Unreviewed, rolling out r232935.
2956         https://bugs.webkit.org/show_bug.cgi?id=186783
2957
2958         This patch broke macOS 32-bit build (Requested by n_wang on
2959         #webkit).
2960
2961         Reverted changeset:
2962
2963         "AX: [macOS] When zoom is enabled, focus doesn't follow text
2964         cursor"
2965         https://bugs.webkit.org/show_bug.cgi?id=186697
2966         https://trac.webkit.org/changeset/232935
2967
2968 2018-06-18  Nan Wang  <n_wang@apple.com>
2969
2970         AX: [macOS] When zoom is enabled, focus doesn't follow text cursor
2971         https://bugs.webkit.org/show_bug.cgi?id=186697
2972
2973         Reviewed by Darin Adler.
2974
2975         Now that web process doesn't have access to NSScreen. The conversion of the 
2976         rects is wrong. Fixed this by using the right function that's available in
2977         WebCore to convert the rects.
2978
2979         * editing/mac/FrameSelectionMac.mm:
2980         (WebCore::accessibilityConvertScreenRect):
2981
2982 2018-06-18  Youenn Fablet  <youenn@apple.com>
2983
2984         Validate Cross-Origin-Resource-Policy for resources cached in the MemoryCache
2985         https://bugs.webkit.org/show_bug.cgi?id=186639
2986         <rdar://problem/41106984>
2987
2988         Reviewed by Geoffrey Garen.
2989
2990         Add a method to check CORP.
2991         Make use of it to validate any memory cached resource.
2992         Whitelist CORP header so that it is not filtered out by Network Process.
2993
2994         Test: http/wpt/cross-origin-resource-policy/image-in-iframe-loads.html
2995
2996         * loader/CrossOriginAccessControl.cpp:
2997         (WebCore::shouldCrossOriginResourcePolicyCancelLoad):
2998         (WebCore::validateCrossOriginResourcePolicy):
2999         * loader/CrossOriginAccessControl.h:
3000         * loader/cache/CachedResourceLoader.cpp:
3001         (WebCore::CachedResourceLoader::requestResource):
3002         * platform/network/ResourceResponseBase.cpp:
3003         (WebCore::isSafeRedirectionResponseHeader):
3004         (WebCore::isSafeCrossOriginResponseHeader):
3005
3006 2018-06-18  Carlos Alberto Lopez Perez  <clopez@igalia.com>
3007
3008         [WTF] Remove workarounds needed to support libstdc++-4
3009         https://bugs.webkit.org/show_bug.cgi?id=186762
3010
3011         Reviewed by Michael Catanzaro.
3012
3013         Revert r226299, r226300 r226301 and r226302.
3014
3015         No new tests, no change in behaviour.
3016
3017         * platform/graphics/FontSelectionAlgorithm.h:
3018         (WebCore::FontSelectionValue::clampFloat):
3019         * platform/graphics/avfoundation/cf/MediaPlayerPrivateAVFoundationCF.cpp:
3020         (WebCore::MediaPlayerPrivateAVFoundationCF::currentMediaTime const):
3021         * platform/graphics/win/UniscribeController.cpp:
3022         (WebCore::UniscribeController::shapeAndPlaceItem):
3023
3024 2018-06-18  Karl Leplat  <karl.leplat_ext@softathome.com>
3025
3026         [Threaded paintingEngine] Fix rendering glitches
3027         https://bugs.webkit.org/show_bug.cgi?id=186764
3028
3029         Reviewed by Žan Doberšek.
3030
3031         * platform/graphics/nicosia/NicosiaPaintingEngineBasic.cpp:
3032         (Nicosia::PaintingEngineBasic::paint):
3033         To keep backwards compatibility with no multi-threaded,
3034         we call Nicosia::Buffer functions beginPainting() and completePainting().
3035
3036
3037 2018-06-18  Tomas Popela  <tpopela@redhat.com>
3038
3039         Properly check the sscanf return valua
3040         https://bugs.webkit.org/show_bug.cgi?id=186757
3041
3042         Reviewed by Carlos Garcia Campos.
3043
3044         Check if we matched anything and if we matched the expected amount of
3045         data.
3046
3047         * page/linux/ResourceUsageThreadLinux.cpp:
3048         (WebCore::cpuPeriod):
3049
3050 2018-06-18  Tomas Popela  <tpopela@redhat.com>
3051
3052         [GTK] Wrong variable used in RenderThemeGtk
3053         https://bugs.webkit.org/show_bug.cgi?id=186756
3054
3055         Reviewed by Carlos Garcia Campos.
3056
3057         Use SliderThumbHorizontalPart instead of SliderHorizontalPart.
3058
3059         * rendering/RenderThemeGtk.cpp:
3060         (WebCore::RenderThemeGtk::adjustSliderThumbSize const):
3061
3062 2018-06-18  Philippe Normand  <pnormand@igalia.com>
3063
3064         [GStreamer] Crash when adding in-band text track with playbin3 enabled
3065         https://bugs.webkit.org/show_bug.cgi?id=186654
3066
3067         Reviewed by Xabier Rodriguez-Calvar.
3068
3069         Text track indexes should be relative to the total amount of
3070         in-band text tracks. The previous code would induce the creation
3071         of in-band text tracks with indexes relative to the total amount
3072         of all in-band (audio, video, text) tracks.
3073
3074         * platform/graphics/gstreamer/MediaPlayerPrivateGStreamer.cpp:
3075         (WebCore::MediaPlayerPrivateGStreamer::updateTracks):
3076
3077 2018-06-17  Zalan Bujtas  <zalan@apple.com>
3078
3079         Anonymous block collapsing can destroy the renderer's parent.
3080         https://bugs.webkit.org/show_bug.cgi?id=186655
3081         <rdar://problem/41157554>
3082
3083         Reviewed by Antti Koivisto.
3084
3085         While destroying a chain of renderers (text renderer -> first letter renderer), we need to
3086         check if the anonymous block collapsing destroyed the parent renderer (see webkit.org/b/186746).
3087
3088         Test: fast/text/first-letter-with-anon-wrapper-crash.html
3089
3090         * rendering/updating/RenderTreeBuilder.cpp:
3091         (WebCore::RenderTreeBuilder::destroyAndCleanUpAnonymousWrappers):
3092
3093 2018-06-17  Wenson Hsieh  <wenson_hsieh@apple.com>
3094
3095         [WebKit on watchOS] Upstream watchOS source additions to OpenSource (Part 3)
3096         https://bugs.webkit.org/show_bug.cgi?id=186442
3097         <rdar://problem/40879364>
3098
3099         Reviewed by Darin Adler.
3100
3101         Rename references to "Extra zoom mode". No change in behavior.
3102
3103         * page/DisabledAdaptations.cpp:
3104         (WebCore::watchAdaptationName):
3105         (WebCore::extraZoomModeAdaptationName): Deleted.
3106         * page/DisabledAdaptations.h:
3107         * page/ViewportConfiguration.cpp:
3108         (WebCore::needsUpdateAfterChangingDisabledAdaptations):
3109         (WebCore::ViewportConfiguration::shouldOverrideDeviceWidthAndShrinkToFit const):
3110         * page/WindowFeatures.cpp:
3111         (WebCore::parseDisabledAdaptations):
3112         * testing/Internals.cpp:
3113         (WebCore::Internals::extraZoomModeAdaptationName const): Deleted.
3114         * testing/Internals.h:
3115         * testing/Internals.idl:
3116
3117 2018-06-17  Youenn Fablet  <youenn@apple.com>
3118
3119         Rename Document::hasHadActiveMediaStreamTrack to Document::hasHadCaptureMediaStreamTrack
3120         https://bugs.webkit.org/show_bug.cgi?id=186743
3121         rdar://problem/41151193
3122
3123         Reviewed by Eric Carlson.
3124
3125         Covered by existing tests.
3126
3127         Rename setter and getter to be more accurate.
3128         Move the place to call the setter to when creating a capture stream.
3129
3130         * Modules/mediastream/MediaDevicesRequest.cpp:
3131         (WebCore::MediaDevicesRequest::start):
3132         * Modules/mediastream/MediaStream.cpp:
3133         (WebCore::MediaStream::statusDidChange):
3134         * Modules/mediastream/UserMediaRequest.cpp:
3135         (WebCore::UserMediaRequest::mediaStreamIsReady):
3136         * dom/Document.h:
3137         (WebCore::Document::setHasCaptureMediaStreamTrack):
3138         (WebCore::Document::hasHadCaptureMediaStreamTrack const):
3139         (WebCore::Document::setHasActiveMediaStreamTrack): Deleted.
3140         (WebCore::Document::hasHadActiveMediaStreamTrack const): Deleted.
3141
3142 2018-06-17  Zalan Bujtas  <zalan@apple.com>
3143
3144         [LFC] DisplayBox API should be more clear about height/width vs. contentBoxHeight/width
3145         https://bugs.webkit.org/show_bug.cgi?id=186744
3146
3147         Reviewed by Antti Koivisto.
3148
3149         Display::Box::height/width -> border box size.
3150         Display::Box::contentBoxHeight/width -> content box size.
3151         Display::Box::top/left/bottom/right -> border box position in the containing box's coordinate system.
3152         Display::Box::marginBox/borderBox/paddingBox/contentBox -> relative to border box (border box is { 0, 0 })
3153  
3154         (This patch also removes the box-sizing logic from Display::Box. FormattingContext::Geometry should set the
3155         correct contentBoxSize/borderBoxSize based on the CSS property.)
3156
3157         * layout/FormattingContext.cpp:
3158         (WebCore::Layout::FormattingContext::computeFloatingHeightAndMargin const):
3159         (WebCore::Layout::FormattingContext::computeFloatingWidthAndMargin const):
3160         (WebCore::Layout::FormattingContext::computeOutOfFlowHorizontalGeometry const):
3161         (WebCore::Layout::FormattingContext::computeOutOfFlowVerticalGeometry const):
3162         (WebCore::Layout::FormattingContext::validateGeometryConstraintsAfterLayout const):
3163         * layout/FormattingContextGeometry.cpp:
3164         (WebCore::Layout::FormattingContext::Geometry::outOfFlowNonReplacedHorizontalGeometry):
3165         (WebCore::Layout::FormattingContext::Geometry::outOfFlowReplacedVerticalGeometry):
3166         (WebCore::Layout::FormattingContext::Geometry::outOfFlowReplacedHorizontalGeometry):
3167         (WebCore::Layout::FormattingContext::Geometry::floatingNonReplacedHeightAndMargin):
3168         (WebCore::Layout::FormattingContext::Geometry::floatingNonReplacedWidthAndMargin):
3169         (WebCore::Layout::FormattingContext::Geometry::inlineReplacedHeightAndMargin):
3170         (WebCore::Layout::FormattingContext::Geometry::inlineReplacedWidthAndMargin):
3171         (WebCore::Layout::FormattingContext::Geometry::computedPadding):
3172         (WebCore::Layout::FormattingContext::Geometry::computedNonCollapsedHorizontalMarginValue):
3173         (WebCore::Layout::FormattingContext::Geometry::computedNonCollapsedVerticalMarginValue):
3174         * layout/LayoutContext.cpp:
3175         (WebCore::Layout::LayoutContext::initializeRoot):
3176         * layout/blockformatting/BlockFormattingContext.cpp:
3177         (WebCore::Layout::BlockFormattingContext::computeInFlowHeightAndMargin const):
3178         (WebCore::Layout::BlockFormattingContext::computeInFlowWidthAndMargin const):
3179         * layout/blockformatting/BlockFormattingContextGeometry.cpp:
3180         (WebCore::Layout::BlockFormattingContext::Geometry::inFlowNonReplacedHeightAndMargin):
3181         (WebCore::Layout::BlockFormattingContext::Geometry::inFlowNonReplacedWidthAndMargin):
3182         (WebCore::Layout::BlockFormattingContext::Geometry::staticPosition):
3183         (WebCore::Layout::BlockFormattingContext::Geometry::inFlowPositionedPosition):
3184         * layout/displaytree/DisplayBox.cpp:
3185         (WebCore::Display::Box::marginBox const):
3186         (WebCore::Display::Box::borderBox const):
3187         (WebCore::Display::Box::paddingBox const):
3188         (WebCore::Display::Box::contentBox const):
3189         * layout/displaytree/DisplayBox.h:
3190         (WebCore::Display::Box::top const):
3191         (WebCore::Display::Box::left const):
3192         (WebCore::Display::Box::bottom const):
3193         (WebCore::Display::Box::right const):
3194         (WebCore::Display::Box::topLeft const):
3195         (WebCore::Display::Box::bottomRight const):
3196         (WebCore::Display::Box::size const):
3197         (WebCore::Display::Box::width const):
3198         (WebCore::Display::Box::height const):
3199         (WebCore::Display::Box::rect const):
3200         (WebCore::Display::Box::setTopLeft):
3201         (WebCore::Display::Box::setTop):
3202         (WebCore::Display::Box::setLeft):
3203         (WebCore::Display::Box::moveHorizontally):
3204         (WebCore::Display::Box::moveVertically):
3205         (WebCore::Display::Box::setHasValidContentHeight):
3206         (WebCore::Display::Box::setHasValidContentWidth):
3207         (WebCore::Display::Box::setContentBoxHeight):
3208         (WebCore::Display::Box::setContentBoxWidth):
3209         (WebCore::Display::Box::contentBoxHeight const):
3210         (WebCore::Display::Box::contentBoxWidth const):
3211         (WebCore::Display::Box::setWidth): Deleted.
3212         (WebCore::Display::Box::setHeight): Deleted.
3213         (WebCore::Display::Box::setSize): Deleted.
3214
3215 2018-06-17  Carlos Eduardo Ramalho  <cadubentzen@gmail.com>
3216
3217         [GTK] Correct behavior for dark themes
3218         https://bugs.webkit.org/show_bug.cgi?id=186219
3219
3220         Reviewed by Michael Catanzaro.
3221
3222         Override RenderThemeGtk::isControlStyled() to not style
3223         text inputs if color is set different than default.
3224
3225         No new tests. Manual theme test and existing layout tests already cover it.
3226
3227         * rendering/RenderThemeGtk.cpp:
3228         (WebCore::RenderThemeGtk::isControlStyled const):
3229         * rendering/RenderThemeGtk.h:
3230
3231 2018-06-12  Darin Adler  <darin@apple.com>
3232
3233         [Cocoa] Make some RetainPtr refinements to get more ready for ARC
3234         https://bugs.webkit.org/show_bug.cgi?id=186526
3235
3236         Reviewed by Anders Carlsson.
3237
3238         * platform/ios/UserAgentIOS.mm:
3239         (WebCore::deviceNameForUserAgent): Drop unnecessary use of RetainPtr.
3240
3241         * platform/mac/URLMac.mm:
3242         (WebCore::URL::operator NSURL * const): Use bridgingAutorelease.
3243
3244 2018-06-16  Chris Dumez  <cdumez@apple.com>
3245
3246         Better pack ResourceResponse
3247         https://bugs.webkit.org/show_bug.cgi?id=186718
3248
3249         Reviewed by Simon Fraser.
3250
3251         Better pack ResourceResponse to reduce its size on Mac from 632 to 616 bytes.
3252
3253         * platform/network/ResourceResponseBase.h:
3254
3255 2018-06-15  Chris Dumez  <cdumez@apple.com>
3256
3257         Better pack MediaQuery
3258         https://bugs.webkit.org/show_bug.cgi?id=186716
3259
3260         Reviewed by Simon Fraser.
3261
3262         Better pack MediaQuery to reduce its size from 48 bytes to 40 and save
3263         some memory.
3264
3265         * css/MediaQuery.cpp:
3266         (WebCore::MediaQuery::MediaQuery):
3267         * css/MediaQuery.h:
3268
3269 2018-06-15  Chris Dumez  <cdumez@apple.com>
3270
3271         StyleRuleMedia wastes 158KB of Vector capacity on cnn.com
3272         https://bugs.webkit.org/show_bug.cgi?id=186705
3273         <rdar://problem/41173637>
3274
3275         Reviewed by Simon Fraser.
3276
3277         Call shrinkToFit on RefPtr<StyleRuleBase> vectors in CSSParserImpl, after we're
3278         done parsing and before constructing StyleRuleMedia, StyleRuleSupports and
3279         deferred rules in StyleRuleGroup.
3280
3281         * css/parser/CSSParserImpl.cpp:
3282         (WebCore::CSSParserImpl::parseDeferredRuleList):
3283         (WebCore::CSSParserImpl::consumeMediaRule):
3284         (WebCore::CSSParserImpl::consumeSupportsRule):
3285
3286 2018-06-15  Chris Dumez  <cdumez@apple.com>
3287
3288         MediaQuerySet wastes a lot of vector capacity
3289         https://bugs.webkit.org/show_bug.cgi?id=186696
3290         <rdar://problem/41172850>
3291
3292         Reviewed by Simon Fraser.
3293
3294         Call shrinkToFit() on the MediaQuerySet after we're done parsing it
3295         to avoid wasting memory.
3296
3297         * css/parser/MediaQueryParser.cpp:
3298         (WebCore::MediaQueryParser::parseInternal):
3299
3300 2018-06-15  Chris Dumez  <cdumez@apple.com>
3301
3302         CachedRawResource wastes 57K of Vector capacity
3303         https://bugs.webkit.org/show_bug.cgi?id=186703
3304         <rdar://problem/41173515>
3305
3306         Reviewed by Simon Fraser.
3307
3308         Use 0 as minimum capacity for CachedRawResource::m_redirectChain, instead of the
3309         default value of 16. m_redirectChain usually contains very few items so 16 is
3310         wasteful, especially considering that m_redirectChain contains fairly large
3311         objects (std::pair<ResourceRequest, ResourceResponse>). CachedRawResource are
3312         stored in the memory cache so it is important to not use more memory than
3313         necessary.
3314
3315         We are also not worried about the performance cost of allocations here since
3316         this vector is only populated on HTTP redirects.
3317
3318         * loader/cache/CachedRawResource.h:
3319
3320 2018-06-15  Antti Koivisto  <antti@apple.com>
3321
3322         Semantic colors should not be transformed by color-filter
3323         https://bugs.webkit.org/show_bug.cgi?id=186566
3324         <rdar://problem/40705739>
3325
3326         Reviewed by Simon Fraser.
3327
3328         Test: css3/color-filters/color-filter-ignore-semantic.html
3329
3330         * platform/graphics/Color.h:
3331         (WebCore::Color::Color):
3332         (WebCore::Color::isSemantic const):
3333         (WebCore::Color::setIsSemantic):
3334
3335         Add a bit to Color to indicate it originated from a semantic color name.
3336         Note that a color compares unequal to the semantic version of the same color.
3337
3338         * platform/graphics/filters/FilterOperations.cpp:
3339         (WebCore::FilterOperations::transformColor const):
3340         * platform/graphics/mac/ColorMac.h:
3341         * platform/graphics/mac/ColorMac.mm:
3342         (WebCore::semanticColorFromNSColor):
3343         * rendering/RenderThemeMac.mm:
3344         (WebCore::RenderThemeMac::systemColor const):
3345
3346         Set the bit for semantic system colors.
3347
3348         * rendering/RenderTreeAsText.cpp:
3349         (WebCore::RenderTreeAsText::writeRenderObject):
3350
3351         Fix up the output to avoid unneccary render tree dump changes.
3352
3353 2018-06-15  Chris Dumez  <cdumez@apple.com>
3354
3355         Add API test coverage for SW RegistrationDatabase destruction and fix issues found by the test
3356         https://bugs.webkit.org/show_bug.cgi?id=186681
3357
3358         Reviewed by Brady Eidson.
3359
3360         * workers/service/server/RegistrationDatabase.cpp:
3361         (WebCore::RegistrationDatabase::RegistrationDatabase):
3362         (WebCore::RegistrationDatabase::importRecords):
3363         * workers/service/server/RegistrationDatabase.h:
3364         Rename m_session to m_sessionID for clarity.
3365
3366         * workers/service/server/RegistrationStore.cpp:
3367         (WebCore::RegistrationStore::~RegistrationStore):
3368         Drop bad assertion now that the RegistrationDatabase is refcounted
3369         and can outlive the RegistrationStore. The RegistrationDatabase will
3370         take care of closing / destroying the SQLiteDatabase on the background
3371         thread when destroyed.
3372
3373 2018-06-15  Timothy Hatcher  <timothy@apple.com>
3374
3375         REGRESSION (r232799): Form controls are blank in dark mode.
3376
3377         https://bugs.webkit.org/show_bug.cgi?id=186677
3378         rdar://problem/41162899
3379
3380         Reviewed by Wenson Hsieh.
3381
3382         * rendering/RenderThemeMac.mm:
3383         (-[WebCoreTextFieldCell _adjustedCoreUIDrawOptionsForDrawingBordersOnly:]):
3384         Dark mode controls don't have borders, just a semi-transparent background of shadows.
3385         In the dark mode case we can't disable borders, or we will not paint anything for the control.
3386
3387 2018-06-15  Zalan Bujtas  <zalan@apple.com>
3388
3389         [LFC] Fix static position left/top
3390         https://bugs.webkit.org/show_bug.cgi?id=186640
3391
3392         Reviewed by Antti Koivisto.
3393
3394         In visual formatting model, we normally go like [top, left] while LayoutPoint takes [x, y]. Let's make this less error prone.
3395
3396         *&n