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