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