[LayoutReloaded] Set inline-block box position.
[WebKit-https.git] / Tools / ChangeLog
1 2018-04-17  Zalan Bujtas  <zalan@apple.com>
2
3         [LayoutReloaded] Set inline-block box position.
4         https://bugs.webkit.org/show_bug.cgi?id=184690
5
6         Reviewed by Antti Koivisto.
7
8         * LayoutReloaded/FormattingContext/InlineFormatting/InlineFormattingContext.js:
9         (InlineFormattingContext.prototype._handleInlineBlock):
10         * LayoutReloaded/Utils.js:
11         (Utils._dumpBox):
12         * LayoutReloaded/test/inline-block-with-fixed-width-height.html:
13
14 2018-04-17  Carlos Garcia Campos  <cgarcia@igalia.com>
15
16         [GLIB] Add API to clear JSCContext uncaught exception
17         https://bugs.webkit.org/show_bug.cgi?id=184685
18
19         Reviewed by Žan Doberšek.
20
21         Add test cases for the new API.
22
23         * TestWebKitAPI/Tests/JavaScriptCore/glib/TestJSC.cpp:
24         (testJSCExceptions):
25
26 2018-04-17  Carlos Garcia Campos  <cgarcia@igalia.com>
27
28         [GLIB] Add API to query, delete and enumerate properties
29         https://bugs.webkit.org/show_bug.cgi?id=184647
30
31         Reviewed by Michael Catanzaro.
32
33         Add test cases for the new API.
34
35         * TestWebKitAPI/Tests/JavaScriptCore/glib/TestJSC.cpp:
36         (testJSCObject):
37         (testJSCClass):
38         (testJSCPrototypes):
39
40 2018-04-16  Zalan Bujtas  <zalan@apple.com>
41
42         [LayoutReloaded] Add support for replaced box.
43         https://bugs.webkit.org/show_bug.cgi?id=184680
44
45         Reviewed by Antti Koivisto.
46
47         Basic support for inline replaced.
48
49         * LayoutReloaded/FormattingContext/InlineFormatting/InlineFormattingContext.js:
50         (InlineFormattingContext.prototype._handleInlineBox):
51         (InlineFormattingContext.prototype._handleInlineBlock):
52         (InlineFormattingContext.prototype._handleReplaced):
53         * LayoutReloaded/FormattingContext/InlineFormatting/Line.js:
54         (Line.prototype.lastLineBox):
55         (Line.prototype.addInlineBox):
56         (Line.prototype.addInlineContainerBox): Deleted.
57         * LayoutReloaded/TreeBuilder.js:
58         (TreeBuilder.prototype._createAndAttachBox):
59         * LayoutReloaded/Utils.js:
60         (Utils._dumpBox):
61         * LayoutReloaded/test/index.html:
62         * LayoutReloaded/test/inline-simple-replaced.html: Added.
63
64 2018-04-16  Zalan Bujtas  <zalan@apple.com>
65
66         [LayoutReloaded] Minor InlineFormattingContext::layout() cleanup.
67         https://bugs.webkit.org/show_bug.cgi?id=184679
68
69         Reviewed by Antti Koivisto.
70
71         * LayoutReloaded/FormattingContext/InlineFormatting/InlineFormattingContext.js:
72         (InlineFormattingContext):
73         (InlineFormattingContext.prototype.layout):
74         (InlineFormattingContext.prototype._handleInlineContainer):
75         (InlineFormattingContext.prototype._handleInlineContent):
76         (InlineFormattingContext.prototype._handleInlineBlock):
77         (InlineFormattingContext.prototype._handleReplacedBox):
78         (InlineFormattingContext.prototype._clearNeedsLayoutAndMoveToNextSibling):
79         (InlineFormattingContext.prototype._handleInlineBlockContainer): Deleted.
80         (InlineFormattingContext.prototype._clearAndMoveToNext): Deleted.
81
82 2018-04-16  Zalan Bujtas  <zalan@apple.com>
83
84         [LayoutReloaded] Introduce fragmentation state/context.
85         https://bugs.webkit.org/show_bug.cgi?id=184677
86
87         Reviewed by Antti Koivisto.
88
89         State/context for fragmented content (multicol, regions, pagination etc).
90
91         * LayoutReloaded/FormattingContext/FragmentationContext.js: Added.
92         (FragmentationContext):
93         * LayoutReloaded/FormattingState/FragmentationState.js: Added.
94         (FragmentationState):
95         (FragmentationState.prototype.formattingState):
96
97 2018-04-16  Andy Estes  <aestes@apple.com>
98
99         [iOS] Enable WKPDFView by default
100         https://bugs.webkit.org/show_bug.cgi?id=184675
101         <rdar://problem/27885452>
102
103         Reviewed by Darin Adler.
104
105         * TestWebKitAPI/Tests/WebKitCocoa/WKPDFView.mm:
106
107 2018-04-16  Leo Balter  <leonardo.balter@gmail.com>
108
109         Perl-based Test262 runner
110         https://bugs.webkit.org/show_bug.cgi?id=183343
111
112         Reviewed by Michael Saboff.
113
114         * Scripts/test262-helpers/README.md: Added.
115         * Scripts/test262-helpers/agent.js: Added.
116         (262.getGlobal):
117         (262.setGlobal):
118         (262.destroy):
119         (262.IsHTMLDDA):
120         * Scripts/test262-helpers/cpanfile: Added.
121         * Scripts/test262-helpers/cpanfile.snapshot: Added.
122         * Scripts/test262-helpers/test262-runner.pl: Added.
123         (main):
124         (processFile):
125         (getScenarios):
126         (addScenario):
127         (compileTest):
128         (runTest):
129         (processResult):
130         (getTempFile):
131         (getContents):
132         (parseData):
133         (getHarness):
134         * Scripts/test262-helpers/tests.log: Added.
135
136 2018-04-15  Andy Estes  <aestes@apple.com>
137
138         [iOS] Add API tests for PDF find-in-page
139         https://bugs.webkit.org/show_bug.cgi?id=184634
140
141         Reviewed by Dan Bernstein.
142
143         * TestWebKitAPI/TestWebKitAPI.xcodeproj/project.pbxproj:
144         * TestWebKitAPI/Tests/WebKit/find.pdf: Added.
145         * TestWebKitAPI/Tests/WebKitCocoa/WKPDFView.mm:
146         (-[TestFindDelegate findString]):
147         (-[TestFindDelegate _webView:didCountMatches:forString:]):
148         (-[TestFindDelegate _webView:didFindMatches:forString:withMatchIndex:]):
149         (-[TestFindDelegate _webView:didFailToFindString:]):
150         (loadWebView):
151         (TEST):
152
153 2018-04-13  Zalan Bujtas  <zalan@apple.com>
154
155         [LayoutReloaded] Update class documentation
156         https://bugs.webkit.org/show_bug.cgi?id=184625
157
158         Reviewed by Antti Koivisto.
159
160         * LayoutReloaded/DisplayTree/Box.js:
161         * LayoutReloaded/FormattingContext/BlockFormatting/BlockFormattingContext.js:
162         * LayoutReloaded/FormattingContext/BlockFormatting/BlockMarginCollapse.js:
163         * LayoutReloaded/FormattingContext/FloatingContext.js:
164         * LayoutReloaded/FormattingContext/FormattingContext.js:
165         * LayoutReloaded/FormattingContext/InlineFormatting/InlineFormattingContext.js:
166         * LayoutReloaded/FormattingContext/InlineFormatting/Line.js:
167         * LayoutReloaded/FormattingState/BlockFormattingState.js:
168         * LayoutReloaded/FormattingState/FloatingState.js:
169         * LayoutReloaded/FormattingState/FormattingState.js:
170         * LayoutReloaded/FormattingState/InlineFormattingState.js:
171         * LayoutReloaded/LayoutState.js:
172         * LayoutReloaded/LayoutTree/BlockContainer.js:
173         * LayoutReloaded/LayoutTree/Box.js:
174         * LayoutReloaded/LayoutTree/Container.js:
175         * LayoutReloaded/LayoutTree/InlineBox.js:
176         * LayoutReloaded/LayoutTree/InlineContainer.js:
177         * LayoutReloaded/LayoutTree/Text.js:
178         * LayoutReloaded/misc/headers/BlockContainer.h: Removed.
179         * LayoutReloaded/misc/headers/BlockFormattingContext.h: Removed.
180         * LayoutReloaded/misc/headers/BlockMarginCollapse.h: Removed.
181         * LayoutReloaded/misc/headers/Box.h: Removed.
182         * LayoutReloaded/misc/headers/Container.h: Removed.
183         * LayoutReloaded/misc/headers/FloatingContext.h: Removed.
184         * LayoutReloaded/misc/headers/FormattingContext.h: Removed.
185         * LayoutReloaded/misc/headers/InitialBlockContainer.h: Removed.
186         * LayoutReloaded/misc/headers/InlineBox.h: Removed.
187         * LayoutReloaded/misc/headers/LayoutContext.h: Removed.
188         * LayoutReloaded/misc/headers/Line.h: Removed.
189         * LayoutReloaded/misc/headers/Text.h: Removed.
190
191 2018-04-13  Zalan Bujtas  <zalan@apple.com>
192
193         [LayoutReloaded] Add simple implementation for FormattingState::markNeedsLayout()
194         https://bugs.webkit.org/show_bug.cgi?id=184621
195
196         Reviewed by Antti Koivisto.
197
198         This is just a simple, mark ancestors dirty implementation.
199
200         * LayoutReloaded/FormattingState/FormattingState.js:
201         (FormattingState.prototype.markNeedsLayout):
202         * LayoutReloaded/LayoutState.js:
203         (LayoutState.prototype.markNeedsLayout):
204         (LayoutState.prototype.setNeedsLayoutById): Deleted.
205         (LayoutState.prototype.setNeedsLayout): Deleted.
206         * LayoutReloaded/TreeBuilder.js:
207         (TreeBuilder.prototype._createAndAttachBox):
208         (TreeBuilder.prototype._findBox): Deleted.
209         * LayoutReloaded/Utils.js:
210         (Utils.layoutBoxById):
211         * LayoutReloaded/test/index.html:
212         * LayoutReloaded/test/simple-incremental-layout-with-static-content.html:
213
214 2018-04-13  Carlos Alberto Lopez Perez  <clopez@igalia.com>
215
216         [WPE] [webkitpy] The driver requirements should be checked before starting the tests
217         https://bugs.webkit.org/show_bug.cgi?id=184595
218
219         Reviewed by Michael Catanzaro.
220
221         Ensure Driver.check_driver() is checked at check_sys_deps() time.
222
223         * Scripts/webkitpy/port/wpe.py:
224         (WPEPort.check_sys_deps):
225
226 2018-04-13  Zalan Bujtas  <zalan@apple.com>
227
228         Rebaseline LayoutReloaded patch file (collectRenderersWithNeedsLayout).
229
230         * LayoutReloaded/misc/LayoutReloadedWebKit.patch:
231
232 2018-04-13  Jonathan Bedard  <jbedard@apple.com>
233
234         Boot fewer simulators in CI/EWS machines
235         https://bugs.webkit.org/show_bug.cgi?id=184594
236         <rdar://problem/39188082>
237
238         Reviewed by Alexey Proskuryakov.
239
240         This is a temporary workaround fro <rdar://problem/39393590>.
241
242         * Scripts/webkitpy/xcode/simulated_device.py:
243         (SimulatedDeviceManager): Treat simulators as taking 6 gigs instead of 2.
244
245 2018-04-13  Brady Eidson  <beidson@apple.com>
246
247         Introduce SuspendedPageProxy to keep old web processes around after their WebPageProxy has been swapped to a new one.
248         https://bugs.webkit.org/show_bug.cgi?id=184559
249
250         Reviewed by Alex Christensen.
251
252         * TestWebKitAPI/Tests/WebKitCocoa/ProcessSwapOnNavigation.mm:
253
254 2018-04-13  Chris Dumez  <cdumez@apple.com>
255
256         input.webkitEntries does not work as expected when folder contains accented chars
257         https://bugs.webkit.org/show_bug.cgi?id=184517
258         <rdar://problem/39265537>
259
260         Reviewed by Alex Christensen.
261
262         Add API test coverage.
263
264         * TestWebKitAPI/Tests/WebCore/FileSystem.cpp:
265         (TestWebKitAPI::TEST_F):
266
267 2018-04-13  Thibault Saunier  <tsaunier@igalia.com>
268
269         Update my emails ordering in contributors.json
270         https://bugs.webkit.org/show_bug.cgi?id=184587
271
272         Rubber-stamped by Philippe Normand.
273
274         Bugzilla seems to pick up tsaunier@igalia.com which is not the one I use there.
275
276         * Scripts/webkitpy/common/config/contributors.json:
277
278 2018-04-13  Michael Catanzaro  <mcatanzaro@igalia.com>
279
280         [WPE] xkbcommon: ERROR: failed to add default include path /home/mcatanzaro/Projects/WebKit/WebKitBuild/DependenciesWPE/Root/share/X11/xkb
281         https://bugs.webkit.org/show_bug.cgi?id=184388
282
283         Reviewed by Carlos Alberto Lopez Perez.
284
285         Remove libxkbcommon from the JHBuild environment. We could alternatively add
286         xkeyboard-config, but there doesn't seem to be any need to build libxkbcommon because I do
287         not believe it depends on anything else in the JHBuild environment.
288
289         * wpe/install-dependencies:
290         * wpe/jhbuild.modules:
291
292 2018-04-12  Antoine Quint  <graouts@apple.com>
293
294         [Web Animations] Turn CSS Animations and CSS Transitions as Web Animations on by default
295         https://bugs.webkit.org/show_bug.cgi?id=184569
296         <rdar://problem/38671301>
297
298         Reviewed by Jon Lee.
299
300         We set the default value for the CSS Animations and CSS Transitions as Web Animations flag to true
301         but override it to be false always in the LayoutTests/legacy-animation-engine directory.
302
303         * DumpRenderTree/TestOptions.h:
304         * DumpRenderTree/mac/DumpRenderTree.mm:
305         (shouldOverrideAndDisableCSSAnimationsAndCSSTransitionsBackedByWebAnimationsPreference):
306         (runTest):
307         * WebKitTestRunner/TestController.cpp:
308         (WTR::TestController::resetPreferencesToConsistentValues):
309         * WebKitTestRunner/TestOptions.cpp:
310         (WTR::isLegacyAnimationEngineTestPath):
311         (WTR::TestOptions::TestOptions):
312         * WebKitTestRunner/TestOptions.h:
313
314 2018-04-13  Carlos Garcia Campos  <cgarcia@igalia.com>
315
316         [GLIB] Tests WTF_RefPtr.ReleaseInNonMainThread and WTF_RefPtr.ReleaseInNonMainThreadDestroyInMainThread are crashing since they were added
317         https://bugs.webkit.org/show_bug.cgi?id=184531
318
319         Reviewed by Michael Catanzaro.
320
321         It's not a bug in WebKit, but in the tests. The problem is that those tests are using RunLoop::main() but main
322         run loop hasn't been initialized. ReleaseInNonMainThread doesn't really need to initialize the main run loop if
323         we change Util::run() to always use RunLop::current() instead of RunLoop::main(). But
324         ReleaseInNonMainThreadDestroyInMainThread ends up scheduling a task to the main thread, and the generic
325         implementation fo that uses RunLoop::main(), so we need to initialize the main loop in this case.
326
327         * TestWebKitAPI/Tests/WTF/RefPtr.cpp:
328         (TestWebKitAPI::TEST): Call RunLoop::initializeMainRunLoop().
329         * TestWebKitAPI/glib/UtilitiesGLib.cpp:
330         (TestWebKitAPI::Util::run): Use RunLop::current() to stop the current run loop.
331         (TestWebKitAPI::Util::sleep): Ditto.
332
333 2018-04-12  Zalan Bujtas  <zalan@apple.com>
334
335         [LayoutReloaded] Add support for incremental layout
336         https://bugs.webkit.org/show_bug.cgi?id=184578
337
338         Reviewed by Antti Koivisto.
339
340         * LayoutReloaded/Layout.js:
341         (layout):
342         * LayoutReloaded/LayoutState.js:
343         (LayoutState.prototype.rootContainer):
344         (LayoutState.prototype.setNeedsLayoutById):
345         * LayoutReloaded/Utils.js:
346         (Utils.layoutTreeDump):
347         * LayoutReloaded/test/TestHarness.js:
348         (verifyLayout):
349         (runLayout):
350         (verifyLayoutTreeDump): Deleted.
351         * LayoutReloaded/test/index.html:
352         * LayoutReloaded/test/simple-incremental-layout-with-static-content.html: Added.
353
354 2018-04-12  Zalan Bujtas  <zalan@apple.com>
355
356         [LayoutReloaded] Move root container ownership to layout state
357         https://bugs.webkit.org/show_bug.cgi?id=184575
358
359         Reviewed by Antti Koivisto.
360
361         Now the root container is on the associated layout state (ICB only at this point though).
362
363         * LayoutReloaded/FormattingContext/BlockFormatting/BlockFormattingContext.js:
364         (BlockFormattingContext.prototype.layout):
365         * LayoutReloaded/FormattingContext/FormattingContext.js:
366         (FormattingContext.prototype._layoutOutOfFlowDescendants):
367         * LayoutReloaded/FormattingContext/InlineFormatting/InlineFormattingContext.js:
368         (InlineFormattingContext.prototype._handleInlineBlockContainer):
369         (InlineFormattingContext.prototype._handleFloatingBox):
370         * LayoutReloaded/Layout.js:
371         (layout):
372         * LayoutReloaded/LayoutState.js:
373         (LayoutState):
374         (LayoutState.prototype.formattingContext):
375         (LayoutState.prototype.establishedFormattingState):
376         (LayoutState.prototype.formattingStateForBox):
377         (LayoutState.prototype.needsLayout):
378         (LayoutState.prototype.displayBox):
379         (LayoutState.prototype._formattingContext):
380         (LayoutState.prototype.layout): Deleted.
381         (LayoutState.prototype.formattingStates): Deleted.
382         (LayoutState.prototype.initialDisplayBox): Deleted.
383         * LayoutReloaded/Utils.js:
384         (Utils._dumpBox):
385         (Utils._findDisplayBox): Deleted.
386
387 2018-04-12  Jonathan Bedard  <jbedard@apple.com>
388
389         Fix --build-directory flag for run-webkit-tests
390         https://bugs.webkit.org/show_bug.cgi?id=184545
391         <rdar://problem/39385080>
392
393         Rubber-stamped by Aakash Jain.
394
395         The --build-directory path does not work with iOS-Simulator.
396
397         * Scripts/webkitpy/port/base.py:
398         (Port._build_path): Use the port configuration to calculate the root directory.
399         * Scripts/webkitpy/port/base_unittest.py:
400         (PortTest.test_build_path): Test build directories for embedded configurations.
401
402 2018-04-12  Ross Kirsling  <ross.kirsling@sony.com>
403
404         pemfile.py should not assume POSIX line endings
405         https://bugs.webkit.org/show_bug.cgi?id=184507
406
407         Reviewed by Daniel Bates.
408
409         * Scripts/webkitpy/common/system/pemfile.py:
410         (_parse_pem_format):
411         * Scripts/webkitpy/common/system/pemfile_unittest.py:
412         (PemFileTest.test_parse_crlf):
413         (PemFileTest.test_parse_cr):
414
415 2018-04-12  Zalan Bujtas  <zalan@apple.com>
416
417         [LayoutReloaded] Minor cleanup in LayoutSate
418         https://bugs.webkit.org/show_bug.cgi?id=184546
419
420         Reviewed by Antti Koivisto.
421
422         * LayoutReloaded/FormattingContext/FormattingContext.js:
423         (FormattingContext.isInFormattingContext):
424         * LayoutReloaded/FormattingState/FormattingState.js:
425         (FormattingState.prototype.displayBoxes):
426         (FormattingState.prototype.displayBox):
427         (FormattingState.prototype._markSubTreeNeedsLayout):
428         (FormattingState):
429         (FormattingState.prototype.displayBoxMap): Deleted.
430         * LayoutReloaded/LayoutState.js:
431         (LayoutState.prototype.formattingStateForBox):
432         (LayoutState.prototype.needsLayout):
433         (LayoutState.prototype.displayBox):
434         (LayoutState.prototype._createFormattingState):
435         (LayoutState):
436         * LayoutReloaded/LayoutTree/Box.js:
437         (Layout.Box.prototype.isFormattingContextDescendant): Deleted.
438         * LayoutReloaded/LayoutTree/Container.js:
439         (Layout.Container.prototype.isContainingBlockDescendant): Deleted.
440         * LayoutReloaded/Utils.js:
441         (Utils._findDisplayBox):
442
443 2018-04-12  Zalan Bujtas  <zalan@apple.com>
444
445         [LayoutReloaded] Introduce needsLayout to InlineFormattingContext
446         https://bugs.webkit.org/show_bug.cgi?id=184538
447
448         Reviewed by Antti Koivisto.
449
450         * LayoutReloaded/FormattingContext/BlockFormatting/BlockFormattingContext.js:
451         (BlockFormattingContext.prototype._adjustBottomWithFIXME):
452         (BlockFormattingContext):
453         (BlockFormattingContext.prototype._firstInFlowChildWithNeedsLayout): Deleted.
454         (BlockFormattingContext.prototype._nextInFlowSiblingWithNeedsLayout): Deleted.
455         * LayoutReloaded/FormattingContext/FormattingContext.js:
456         (FormattingContext.prototype._firstInFlowChildWithNeedsLayout):
457         (FormattingContext.prototype._nextInFlowSiblingWithNeedsLayout):
458         (FormattingContext):
459         * LayoutReloaded/FormattingContext/InlineFormatting/InlineFormattingContext.js:
460         (InlineFormattingContext.prototype.layout):
461         (InlineFormattingContext.prototype._handleInlineContainer):
462         (InlineFormattingContext.prototype._handleInlineBlockContainer):
463         (InlineFormattingContext.prototype._handleInlineContent):
464         (InlineFormattingContext.prototype._clearAndMoveToNext):
465         (InlineFormattingContext):
466
467 2018-04-12  Xabier Rodriguez Calvar  <calvaris@igalia.com>
468
469         [GStreamer] Speed up GStreamer dependency build by removing examples compilation
470         https://bugs.webkit.org/show_bug.cgi?id=184528
471
472         Reviewed by Philippe Normand.
473
474         * gstreamer/jhbuild.modules: Added --disable-examples for GStreamer package.
475
476 2018-04-12  Zan Dobersek  <zdobersek@igalia.com>
477
478         [WPE] Switch testing process to using WPEBackend-fdo
479         https://bugs.webkit.org/show_bug.cgi?id=184357
480
481         Reviewed by Carlos Alberto Lopez Perez.
482
483         Switch WPE testing to using the WPEBackend-fdo implementation that
484         depends on the WL_bind_wayland_display EGL extension, as defined under
485         the freedesktop.org project.
486         https://cgit.freedesktop.org/mesa/mesa/tree/docs/specs/WL_bind_wayland_display.spec
487
488         HeadlessViewBackend is refactored to use the WPEBackend-fdo API, but
489         otherwise is not changed in functionality.
490
491         Unit tests now have to unconditionally use HeadlessViewBackend as a
492         wpe_view_backend provider, since WPEBackend-fdo does not provide a
493         default wpe_view_backend implementation. Unit tests covering that are
494         adjusted to instead use a mock wpe_view_backend interface.
495
496         * Scripts/webkitdirs.pm:
497         (builtDylibPathForName): Fix the libWPEWebKit.so name to also include
498         the API version that was added in r230449.
499         * Scripts/webkitpy/port/waylanddriver.py:
500         (WaylandDriver._setup_environ_for_test): Export EGL_PLATFORM=wayland.
501         * Scripts/webkitpy/port/wpe.py:
502         (WPEPort._driver_class): Use WaylandDriver by default.
503         * TestWebKitAPI/PlatformWebView.h:
504         (): Deleted.
505         * TestWebKitAPI/Tests/WebKitGLib/TestWebKitWebView.cpp:
506         (testWebViewWebBackend):
507         * TestWebKitAPI/glib/WebKitGLib/TestMain.h:
508         (Test::createWebViewBackend):
509         * TestWebKitAPI/wpe/PlatformWebViewWPE.cpp:
510         (TestWebKitAPI::PlatformWebView::~PlatformWebView):
511         (TestWebKitAPI::PlatformWebView::initialize):
512         * wpe/HeadlessViewBackend/CMakeLists.txt:
513         * wpe/HeadlessViewBackend/HeadlessViewBackend.cpp:
514         (getEGLDisplay):
515         (HeadlessViewBackend::HeadlessViewBackend):
516         (HeadlessViewBackend::~HeadlessViewBackend):
517         (HeadlessViewBackend::backend const):
518         (HeadlessViewBackend::createSnapshot):
519         (HeadlessViewBackend::performUpdate):
520         (HeadlessViewBackend::makeCurrent): Deleted.
521         * wpe/HeadlessViewBackend/HeadlessViewBackend.h:
522         * wpe/jhbuild.modules: Module name cleanup. Dyz version is bumped.
523
524 2018-04-12  Carlos Garcia Campos  <cgarcia@igalia.com>
525
526         [GTK] Switch to use always complex text code path
527         https://bugs.webkit.org/show_bug.cgi?id=183285
528
529         Reviewed by Michael Catanzaro.
530
531         Keep the auto mode for the layout tests to avoid having to rebaseline a lot of tests.
532
533         * WebKitTestRunner/gtk/main.cpp:
534         (main): Set WEBKIT_FORCE_COMPLEX_TEXT to 0 unless it's already present in the environment.
535
536 2018-04-11  Carlos Garcia Campos  <cgarcia@igalia.com>
537
538         [GLIB] Handle strings containing null characters
539         https://bugs.webkit.org/show_bug.cgi?id=184450
540
541         Reviewed by Michael Catanzaro.
542
543         Add test case for strings with null characters and update all calls to evaluate to pass the script length.
544
545         * TestWebKitAPI/PlatformGTK.cmake:
546         * TestWebKitAPI/PlatformWPE.cmake:
547         * TestWebKitAPI/Tests/JavaScriptCore/glib/TestJSC.cpp:
548         (testJSCBasic):
549         (testJSCFunction):
550         (testJSCObject):
551         (testJSCClass):
552         (testJSCPrototypes):
553         (testJSCExceptions):
554         (testJSCPromises):
555         (testJSCGarbageCollector):
556         (testJSCWeakValue):
557         (testsJSCVirtualMachine):
558         (testsJSCAutocleanups):
559         * TestWebKitAPI/Tests/JavaScriptCore/glib/script.js: Added.
560         * TestWebKitAPI/Tests/WebKitGLib/DOMElementTest.cpp:
561         (DOMElementTest::testAutoFill):
562         * TestWebKitAPI/Tests/WebKitGLib/EditorTest.cpp:
563         (WebKitWebEditorTest::testSelectionChanged):
564         * TestWebKitAPI/Tests/WebKitGLib/FrameTest.cpp:
565         (WebKitFrameTest::testJavaScriptValues):
566         * TestWebKitAPI/Tests/WebKitGLib/WebExtensionTest.cpp:
567         (consoleMessageSentCallback):
568         (methodCallCallback):
569
570 2018-04-11  Zan Dobersek  <zdobersek@igalia.com>
571
572         [WPE] Make WebKitWebViewBackend object mandatory for webkit_web_view_new*() constructors
573         https://bugs.webkit.org/show_bug.cgi?id=184513
574
575         Reviewed by Michael Catanzaro.
576
577         Update the WPE-specific testWebViewWebBackend() test case, removing the
578         test that passes a null WebKitWebViewBackend object to the
579         webkit_web_view_new() call.
580
581         Helper createWebViewBackend() that's called via Test::createWebView()
582         variations is updated to, in case of not using the headless backend,
583         return a WebKitWebViewBackend instance that wraps around a
584         default wpe_view_backend object.
585
586         * TestWebKitAPI/Tests/WebKitGLib/TestWebKitWebView.cpp:
587         (testWebViewWebBackend):
588         * TestWebKitAPI/glib/WebKitGLib/TestMain.h:
589         (Test::createWebViewBackend):
590
591 2018-04-11  Zalan Bujtas  <zalan@apple.com>
592
593         [LayoutReloaded] Introduce needsLayout flag
594         https://bugs.webkit.org/show_bug.cgi?id=184527
595
596         Reviewed by Antti Koivisto.
597
598         Use the formatting state to mark boxes dirty.
599
600         * LayoutReloaded/FormattingContext/BlockFormatting/BlockFormattingContext.js:
601         (BlockFormattingContext.prototype.layout):
602         (BlockFormattingContext.prototype._firstInFlowChildWithNeedsLayout):
603         (BlockFormattingContext.prototype._nextInFlowSiblingWithNeedsLayout):
604         (BlockFormattingContext):
605         * LayoutReloaded/FormattingContext/FormattingContext.js:
606         (FormattingContext.prototype._layoutOutOfFlowDescendants):
607         * LayoutReloaded/FormattingState/FormattingState.js:
608         (FormattingState):
609         (FormattingState.prototype.markNeedsLayout):
610         (FormattingState.prototype.clearNeedsLayout):
611         (FormattingState.prototype.needsLayout):
612         (FormattingState.prototype.layoutNeeded):
613         (FormattingState.prototype._markSubTreeNeedsLayout):
614         * LayoutReloaded/LayoutState.js:
615         (LayoutState.prototype.formattingStateForBox):
616         (LayoutState.prototype.setNeedsLayout):
617         (LayoutState.prototype.needsLayout):
618         * LayoutReloaded/LayoutTree/Box.js:
619         (Layout.Box.prototype.isFormattingContextDescendant):
620         * LayoutReloaded/LayoutTree/Container.js:
621         (Layout.Container.prototype.isContainingBlockDescendant):
622
623 2018-04-11  Jonathan Bedard  <jbedard@apple.com>
624
625         Fix TestInvocation class for newer versions of clang.
626         https://bugs.webkit.org/show_bug.cgi?id=184508
627         <rdar://problem/39328648>
628
629         Reviewed by Alexey Proskuryakov.
630
631         Declare TestInvocation to be final so it does not require a virtual destructor.
632
633         * WebKitTestRunner/TestInvocation.h:
634
635 2018-04-10  Alex Christensen  <achristensen@webkit.org>
636
637         IDN spoofing with Hebrew combining characters
638         https://bugs.webkit.org/show_bug.cgi?id=184472
639         <rdar://problem/39148687>
640
641         Reviewed by Brent Fulgham.
642
643         * TestWebKitAPI/Tests/WebCore/cocoa/URLExtras.mm:
644         (TestWebKitAPI::TEST):
645
646 2018-04-11  Wenson Hsieh  <wenson_hsieh@apple.com>
647
648         [Extra zoom mode] Missing label when focusing a <select> with a title attribute but no associated <label>
649         https://bugs.webkit.org/show_bug.cgi?id=184352
650         <rdar://problem/39237683>
651
652         Reviewed by Andy Estes.
653
654         Add support for UIScriptController::selectFormPopoverTitle, which returns the title of the current select
655         popover's UITableViewController (for testing purposes).
656
657         * DumpRenderTree/ios/UIScriptControllerIOS.mm:
658         (WTR::UIScriptController::selectFormPopoverTitle const):
659         * TestRunnerShared/UIScriptContext/Bindings/UIScriptController.idl:
660         * TestRunnerShared/UIScriptContext/UIScriptController.cpp:
661         (WTR::UIScriptController::selectFormPopoverTitle const):
662         * TestRunnerShared/UIScriptContext/UIScriptController.h:
663         * WebKitTestRunner/ios/UIScriptControllerIOS.mm:
664         (WTR::UIScriptController::selectFormPopoverTitle const):
665
666 2018-04-10  Nan Wang  <n_wang@apple.com>
667
668         AX: Expose strong password fields on iOS
669         https://bugs.webkit.org/show_bug.cgi?id=184465
670         <rdar://problem/39325104>
671
672         Reviewed by Chris Fleizach.
673
674         * DumpRenderTree/ios/AccessibilityUIElementIOS.mm:
675         (AccessibilityUIElement::boolAttributeValue):
676         * WebKitTestRunner/InjectedBundle/ios/AccessibilityUIElementIOS.mm:
677         (WTR::AccessibilityUIElement::boolAttributeValue):
678
679 2018-04-10  Zalan Bujtas  <zalan@apple.com>
680
681         [LayoutReloaded] Add support for out-of-flow descendants in inline formatting context.
682         https://bugs.webkit.org/show_bug.cgi?id=184454
683
684         Reviewed by Antti Koivisto.
685
686         When the containing block of an out-of-flow positioned element establishes an inline formatting context.
687         This is mostly about moving out-of-flow logic from BlockFormattingContext to the base class.
688
689         * LayoutReloaded/FormattingContext/BlockFormatting/BlockFormattingContext.js:
690         (BlockFormattingContext.prototype._adjustBottomWithFIXME):
691         (BlockFormattingContext):
692         (BlockFormattingContext.prototype._layoutOutOfFlowDescendants): Deleted.
693         (BlockFormattingContext.prototype._computeOutOfFlowWidth): Deleted.
694         (BlockFormattingContext.prototype._computeInFlowWidth): Deleted.
695         (BlockFormattingContext.prototype._computeOutOfFlowHeight): Deleted.
696         (BlockFormattingContext.prototype._computeOutOfFlowPosition): Deleted.
697         (BlockFormattingContext.prototype._shrinkToFitWidth): Deleted.
698         * LayoutReloaded/FormattingContext/FormattingContext.js:
699         (FormattingContext.prototype._placeInFlowPositionedChildren):
700         (FormattingContext.prototype._computeInFlowWidth):
701         (FormattingContext.prototype._layoutOutOfFlowDescendants):
702         (FormattingContext.prototype._computeOutOfFlowWidth):
703         (FormattingContext.prototype._computeOutOfFlowHeight):
704         (FormattingContext.prototype._computeOutOfFlowPosition):
705         (FormattingContext.prototype._shrinkToFitWidth):
706         * LayoutReloaded/FormattingContext/InlineFormatting/InlineFormattingContext.js:
707         (InlineFormattingContext.prototype.layout):
708         (InlineFormattingContext.prototype._handleInlineContainer):
709         (InlineFormattingContext.prototype._handleInlineBlockContainer):
710         (InlineFormattingContext.prototype._placeOutOfFlowDescendants): Deleted.
711         * LayoutReloaded/test/index.html:
712         * LayoutReloaded/test/inline-with-out-of-flow-descendant.html: Added.
713
714 2018-04-09  Zan Dobersek  <zdobersek@igalia.com>
715
716         WKTR: Enable DOM cache, SW registration directory cleanup on non-Cocoa platforms
717         https://bugs.webkit.org/show_bug.cgi?id=184414
718
719         Reviewed by Michael Catanzaro.
720
721         Enable clearServiceWorkerRegistrations(), clearDOMCache() and
722         clearDOMCaches() implementations in WebKitTestRunner's TestController
723         class for non-Cocoa platforms. Implementations depend on the generic
724         WK2 C API that other ports can leverage as well.
725
726         The clearDOMCache() and clearDOMCaches() calls are now operational for
727         tests that invoke them. clearServiceWorkerRegistrations() and
728         clearDOMCaches() are also called between each test, cleaning up relevant
729         resources.
730
731         The TestController::getAllStorageAccessEntries() stub for non-Cocoa
732         platforms is moved into the main !PLATFORM(COCOA) block.
733
734         * WebKitTestRunner/TestController.cpp:
735         (WTR::TestController::getAllStorageAccessEntries):
736         (WTR::clearServiceWorkerRegistrationsCallback):
737         (WTR::TestController::clearServiceWorkerRegistrations):
738         (WTR::clearDOMCacheCallback):
739         (WTR::TestController::clearDOMCache):
740         (WTR::TestController::clearDOMCaches):
741
742 2018-04-09  Zalan Bujtas  <zalan@apple.com>
743
744         [LayoutReloaded] Add support for relatively positioned containers in inline formatting context.
745         https://bugs.webkit.org/show_bug.cgi?id=184439
746
747         Reviewed by Antti Koivisto.
748
749         * LayoutReloaded/FormattingContext/BlockFormatting/BlockFormattingContext.js:
750         (BlockFormattingContext.prototype._placeInFlowPositionedChildren): Deleted.
751         (BlockFormattingContext.prototype._computeInFlowPositionedPosition): Deleted.
752         * LayoutReloaded/FormattingContext/FormattingContext.js:
753         (FormattingContext.prototype._computeInFlowPositionedPosition):
754         (FormattingContext.prototype._placeInFlowPositionedChildren):
755         * LayoutReloaded/FormattingContext/InlineFormatting/InlineFormattingContext.js:
756         (InlineFormattingContext.prototype._placeInFlowPositionedChildren): Deleted.
757         * LayoutReloaded/Utils.js:
758         (Utils._dumpBox):
759         (Utils._dumpLines.):
760         (Utils._dumpLines):
761         (Utils.precisionRoundWithDecimals):
762         (Utils.precisionRound):
763         (Utils):
764         * LayoutReloaded/test/index.html:
765         * LayoutReloaded/test/inline-with-relative-positioning.html: Added.
766
767 2018-04-09  Zalan Bujtas  <zalan@apple.com>
768
769         [LayoutReloaded] Remove Layout.InitialContainingBlock class
770         https://bugs.webkit.org/show_bug.cgi?id=184436
771
772         Reviewed by Antti Koivisto.
773
774         * LayoutReloaded/LayoutTree/Box.js:
775         (Layout.Box.prototype.establishesBlockFormattingContext):
776         * LayoutReloaded/LayoutTree/InitialBlockContainer.js: Removed.
777         * LayoutReloaded/TreeBuilder.js:
778         (TreeBuilder.prototype.createTree):
779         * LayoutReloaded/test/index.html:
780
781 2018-04-09  Zalan Bujtas  <zalan@apple.com>
782
783         [LayoutReloaded] Add support for inline-block.
784         https://bugs.webkit.org/show_bug.cgi?id=184434
785
786         Reviewed by Antti Koivisto.
787
788         * LayoutReloaded/FormattingContext/InlineFormatting/InlineFormattingContext.js:
789         (InlineFormattingContext):
790         (InlineFormattingContext.prototype.layout):
791         (InlineFormattingContext.prototype._handleInlineContainer):
792         (InlineFormattingContext.prototype._handleInlineBlockContainer):
793         (InlineFormattingContext.prototype._handleInlineContent):
794         * LayoutReloaded/FormattingContext/InlineFormatting/Line.js:
795         (Line.prototype.addInlineContainerBox):
796         (Line.prototype.addTextLineBox):
797         (Line):
798         * LayoutReloaded/LayoutTree/Box.js:
799         (Layout.Box.prototype.isInlineBlockBox):
800         * LayoutReloaded/Utils.js:
801         (LayoutRect.prototype.growHorizontally):
802         (Utils.isBlockContainerElement):
803         (Utils.isInlineBlockElement):
804         (Utils._dumpLines.):
805         (Utils._dumpLines):
806         * LayoutReloaded/test/index.html:
807         * LayoutReloaded/test/inline-block-with-fixed-width-height.html: Added.
808
809 2018-04-09  Timothy Hatcher  <timothy@apple.com>
810
811         Add support for setting a background color on WKWebView and WKView
812         https://bugs.webkit.org/show_bug.cgi?id=184426
813
814         Reviewed by Wenson Hsieh.
815
816         * TestWebKitAPI/TestWebKitAPI.xcodeproj/project.pbxproj:
817         * TestWebKitAPI/Tests/mac/BackgroundColor.mm: Added.
818
819 2018-04-09  Charlie Turner  <cturner@igalia.com>
820
821         [WPE] Add some missing install dependencies
822         https://bugs.webkit.org/show_bug.cgi?id=184383
823
824         Reviewed by Michael Catanzaro.
825
826         * wpe/install-dependencies:
827
828 2018-04-09  Sihui Liu  <sihui_liu@apple.com>
829
830         REGRESSION(r229929): localStorage is broken for WebInspector
831         https://bugs.webkit.org/show_bug.cgi?id=184382
832         <rdar://problem/39257355>
833
834         Reviewed by Chris Dumez.
835
836         * TestWebKitAPI/Tests/WebKitCocoa/LocalStoragePersistence.mm:
837         (TEST):
838         * TestWebKitAPI/Tests/WebKitCocoa/localstorage-empty-string-value.html:
839
840 2018-04-09  Zan Dobersek  <zdobersek@igalia.com>
841
842         Unreviewed follow-up to r230389.
843
844         * WebKitTestRunner/TestController.cpp:
845         (WTR::TestController::platformAdjustContext): Use the 'ServiceWorkers'
846         subdirectory for the temporary testing-purpose SW registration directory
847         like it's used in Cocoa's TestController, addressing the review comment
848         that I forgot about.
849
850 2018-04-08  Zan Dobersek  <zdobersek@igalia.com>
851
852         Non-Cocoa ports use default directory for ServiceWorker data during testing
853         https://bugs.webkit.org/show_bug.cgi?id=183784
854
855         Reviewed by Youenn Fablet.
856
857         * WebKitTestRunner/TestController.cpp:
858         (WTR::TestController::platformAdjustContext): Set the service worker registration
859         directory through the new WKWebsiteDataStore API for non-Cocoa ports.
860
861 2018-04-08  Zalan Bujtas  <zalan@apple.com>
862
863         [LayoutReloaded] Adjust line with inline container's margin border and padding
864         https://bugs.webkit.org/show_bug.cgi?id=184409
865
866         Reviewed by Antti Koivisto.
867
868         * LayoutReloaded/FormattingContext/InlineFormatting/InlineFormattingContext.js:
869         (InlineFormattingContext.prototype.layout):
870         (InlineFormattingContext.prototype._handleFloatingBox):
871         (InlineFormattingContext.prototype._adjustLineForInlineContainerStart):
872         (InlineFormattingContext.prototype._adjustLineForInlineContainerEnd):
873         * LayoutReloaded/FormattingContext/InlineFormatting/Line.js:
874         (Line.prototype.shrink):
875         (Line.prototype.adjustWithOffset):
876         (Line.prototype.moveContentHorizontally):
877         (Line.prototype.addTextLineBox):
878         (Line):
879         (Line.prototype.addFloatingBox): Deleted.
880         * LayoutReloaded/misc/LayoutReloadedWebKit.patch:
881         * LayoutReloaded/test/index.html:
882         * LayoutReloaded/test/inline-with-padding-border-margin-offsets.html: Added.
883
884 2018-04-07  Zalan Bujtas  <zalan@apple.com>
885
886         [LayoutReloaded] Add support for InlineContainer
887         https://bugs.webkit.org/show_bug.cgi?id=184394
888
889         Reviewed by Antti Koivisto.
890
891         * LayoutReloaded/FormattingContext/FormattingContext.js:
892         (FormattingContext.prototype._addToLayoutQueue):
893         * LayoutReloaded/FormattingContext/InlineFormatting/InlineFormattingContext.js:
894         (InlineFormattingContext.prototype.layout):
895         (InlineFormattingContext.prototype._handleInlineContent):
896         (InlineFormattingContext.prototype._handleFloatingBox):
897         (InlineFormattingContext.prototype._adjustLineForInlineContainerStart):
898         (InlineFormattingContext.prototype._adjustLineForInlineContainerEnd):
899         (InlineFormattingContext.prototype._placeInFlowPositionedChildren):
900         (InlineFormattingContext.prototype._placeOutOfFlowDescendants):
901         (InlineFormattingContext.prototype._createNewLine):
902         (InlineFormattingContext.prototype._handleContent): Deleted.
903         * LayoutReloaded/LayoutState.js:
904         (LayoutState.prototype._createFormattingState):
905         * LayoutReloaded/LayoutTree/Box.js:
906         (Layout.Box.prototype.isContainer):
907         (Layout.Box.prototype.isInlineContainer):
908         (Layout.Box.prototype.isInlineBox):
909         * LayoutReloaded/LayoutTree/Container.js:
910         (Layout.Container.prototype.isContainer): Deleted.
911         * LayoutReloaded/LayoutTree/InlineContainer.js: Added.
912         (Layout.InlineContainer):
913         * LayoutReloaded/TreeBuilder.js:
914         (TreeBuilder.prototype._createAndAttachBox):
915         * LayoutReloaded/Utils.js:
916         (Utils._dumpBox):
917         (Utils.precisionRound):
918         (Utils):
919         * LayoutReloaded/test/index.html:
920         * LayoutReloaded/test/inline-content-simple2.html: Added.
921         * LayoutReloaded/test/inline-floating1.html: Added.
922         * LayoutReloaded/test/inline-formatting-context-floats1.html: Added.
923         * LayoutReloaded/test/inline-formatting-context-floats2.html: Added.
924
925 2018-04-07  Timothy Hatcher  <timothy@apple.com>
926
927         Use the system's link color when system appearance is desired for a WebView.
928
929         https://bugs.webkit.org/show_bug.cgi?id=184353
930         rdar://problem/9420053
931
932         Reviewed by Wenson Hsieh.
933
934         * TestWebKitAPI/TestWebKitAPI.xcodeproj/project.pbxproj:
935         * TestWebKitAPI/Tests/WebKitCocoa/SystemColors.mm: Added.
936         (TestWebKitAPI::WebKit::LinkColor):
937         (TestWebKitAPI::WebKit::LinkColorWithSystemAppearance):
938
939 2018-04-06  Zalan Bujtas  <zalan@apple.com>
940
941         Rebaseline LayoutReloaded patch file.
942
943         * LayoutReloaded/misc/LayoutReloadedWebKit.patch:
944
945 2018-04-06  Fujii Hironori  <Hironori.Fujii@sony.com>
946
947         [Win][WebCore] Expose a constant for scrollbar pixels per line (cScrollbarPixelsPerLine)
948         https://bugs.webkit.org/show_bug.cgi?id=184296
949
950         Reviewed by Alex Christensen.
951
952         * DumpRenderTree/win/EventSender.cpp:
953         (mouseScrollBy): Removed the duplicated cScrollbarPixelsPerLine
954         definition. Use WebCore::cScrollbarPixelsPerLine.
955
956 2018-04-06  Zalan Bujtas  <zalan@apple.com>
957
958         Rebaseline LayoutReloaded patch file.
959
960         * LayoutReloaded/misc/LayoutReloadedWebKit.patch:
961
962 2018-04-05  Youenn Fablet  <youenn@apple.com>
963
964         Test expectation updater should handle Win bot results
965         https://bugs.webkit.org/show_bug.cgi?id=184274
966
967         Reviewed by Ryosuke Niwa.
968
969         Add processing of win bot results.
970         They will update platform/win results.
971
972         Updated the script so that if there is no mac-wk2 results, it will still process specific results.
973
974         * Scripts/webkitpy/common/net/bugzilla/test_expectation_updater.py:
975         (TestExpectationUpdater.__init__):
976         (TestExpectationUpdater._bot_type):
977         (TestExpectationUpdater.do_update):
978         * Scripts/webkitpy/common/net/bugzilla/test_expectation_updater_unittest.py:
979         (MockAttachment):
980         (MockAttachment.__init__):
981         (MockAttachment.contents):
982         (MockBugzilla):
983         (MockBugzilla.__init__):
984         (MockBugzilla.fetch_bug):
985         (MockBugzilla.attachments):
986         (MockZip):
987         (MockZip.__init__):
988         (MockZip.unzip):
989         (MockZip.read):
990         (TestExpectationUpdaterTest.test_update_test_expectations):
991         (TestExpectationUpdaterTest):
992         (TestExpectationUpdaterTest.test_update_win_future_test_expectations):
993
994 2018-04-05  Zalan Bujtas  <zalan@apple.com>
995
996         [LayoutReloaded] Fix static position for floating boxes when they don't fit the current line
997         https://bugs.webkit.org/show_bug.cgi?id=184354
998
999         Reviewed by Antti Koivisto.
1000
1001         Do not shrink the current line with the floating box unless it is on the current line.
1002
1003         * LayoutReloaded/FormattingContext/InlineFormatting/InlineFormattingContext.js:
1004         (InlineFormattingContext.prototype._handleFloatingBox):
1005         (InlineFormattingContext.prototype._mapFloatingVerticalPosition):
1006         * LayoutReloaded/FormattingContext/InlineFormatting/Line.js:
1007         (Line.prototype.addFloatingBox):
1008         (Line):
1009         * LayoutReloaded/test/index.html:
1010         * LayoutReloaded/test/inline-with-right-floats3.html: Added.
1011
1012 2018-04-05  Zalan Bujtas  <zalan@apple.com>
1013
1014         [LayoutReloaded] Add support for right floating boxes in inline formatting context
1015         https://bugs.webkit.org/show_bug.cgi?id=184351
1016
1017         Reviewed by Antti Koivisto.
1018
1019         * LayoutReloaded/FormattingContext/InlineFormatting/InlineFormattingContext.js:
1020         (InlineFormattingContext.prototype._handleFloatingBox):
1021         (InlineFormattingContext.prototype._mapFloatingVerticalPosition):
1022         * LayoutReloaded/FormattingContext/InlineFormatting/Line.js:
1023         (Line.prototype.addFloatingBox):
1024         (Line):
1025         * LayoutReloaded/test/index.html:
1026         * LayoutReloaded/test/inline-with-right-float-simple.html: Added.
1027         * LayoutReloaded/test/inline-with-right-floats2.html: Added.
1028
1029 2018-04-05  Zalan Bujtas  <zalan@apple.com>
1030
1031         [LayoutReloaded] Move floating box to the next line when needed
1032         https://bugs.webkit.org/show_bug.cgi?id=184349
1033
1034         Reviewed by Antti Koivisto.
1035
1036         * LayoutReloaded/FormattingContext/InlineFormatting/InlineFormattingContext.js:
1037         (InlineFormattingContext.prototype.layout):
1038         (InlineFormattingContext.prototype._handleContent):
1039         (InlineFormattingContext.prototype._handleText):
1040         (InlineFormattingContext.prototype._handleFloatingBox):
1041         (InlineFormattingContext.prototype._mapFloatingHorizontalPosition):
1042         (InlineFormattingContext):
1043         (InlineFormattingContext.prototype._handleFloatingBoxes): Deleted.
1044         (InlineFormattingContext.prototype._floatingBoxes): Deleted.
1045         * LayoutReloaded/FormattingContext/InlineFormatting/Line.js:
1046         (Line.prototype.addTextLineBox):
1047         (Line.prototype.addFloatingBox):
1048         (Line):
1049         * LayoutReloaded/Utils.js:
1050         (LayoutRect.prototype.moveHorizontally):
1051         (LayoutRect.prototype.moveVertically):
1052         * LayoutReloaded/test/index.html:
1053         * LayoutReloaded/test/inline-with-floats-when-they-dont-fit.html: Added.
1054
1055 2018-04-05  Brady Eidson  <beidson@apple.com>
1056
1057         Process Swap on Navigation causes many webpages to hang due to attempted process swap for iframe navigations.
1058         <rdar://problem/39162236> and https://bugs.webkit.org/show_bug.cgi?id=184318
1059
1060         Reviewed by Andy Estes.
1061
1062         * TestWebKitAPI/Tests/WebKitCocoa/ProcessSwapOnNavigation.mm:
1063         (-[PSONMessageHandler userContentController:didReceiveScriptMessage:]):
1064         (-[PSONScheme addMappingFromURLString:toData:]):
1065         (-[PSONScheme webView:startURLSchemeTask:]):
1066
1067 2018-04-05  Yusuke Suzuki  <utatane.tea@gmail.com>
1068
1069         [WTF] Remove StaticLock
1070         https://bugs.webkit.org/show_bug.cgi?id=184332
1071
1072         Reviewed by Mark Lam.
1073
1074         * DumpRenderTree/JavaScriptThreading.cpp:
1075
1076 2018-04-05  Zalan Bujtas  <zalan@apple.com>
1077
1078         [LayoutReloaded] Find the correct left edge for a line when floating boxes are in parent formatting context.
1079         https://bugs.webkit.org/show_bug.cgi?id=184330
1080
1081         Reviewed by Antti Koivisto.
1082
1083         In inline formatting context, the floating boxes can come from the parent (block) formatting context. Let's
1084         take them into account when computing the line edges.
1085
1086         * LayoutReloaded/FormattingContext/FloatingContext.js:
1087         (FloatingContext.prototype.left):
1088         (FloatingContext.prototype.right):
1089         * LayoutReloaded/FormattingContext/InlineFormatting/InlineFormattingContext.js:
1090         (InlineFormattingContext.prototype._createNewLine):
1091         (InlineFormattingContext.prototype._mapFloatingVerticalPosition):
1092         (InlineFormattingContext.prototype._mapFloatingHorizontalPosition):
1093         (InlineFormattingContext.prototype._mapFloatingPosition): Deleted.
1094         * LayoutReloaded/test/index.html:
1095         * LayoutReloaded/test/multiple-left-floats-on-line-from-parent-formatting-context.html: Added.
1096
1097 2018-04-05  Zalan Bujtas  <zalan@apple.com>
1098
1099         [LayoutReloaded] Collect floating boxes in inline formatting context and layout them first.
1100         https://bugs.webkit.org/show_bug.cgi?id=184329
1101
1102         Reviewed by Antti Koivisto.
1103
1104         Let's do this for now. There might be some cases where this violates layout.
1105
1106         * LayoutReloaded/FormattingContext/FormattingContext.js:
1107         (FormattingContext.prototype._outOfFlowDescendants):
1108         (FormattingContext):
1109         * LayoutReloaded/FormattingContext/InlineFormatting/InlineFormattingContext.js:
1110         (InlineFormattingContext.prototype.layout):
1111         (InlineFormattingContext.prototype._handleFloatingBoxes):
1112         (InlineFormattingContext.prototype._handleFloatingBox):
1113         (InlineFormattingContext.prototype._floatingBoxes):
1114         (InlineFormattingContext):
1115         * LayoutReloaded/test/index.html:
1116         * LayoutReloaded/test/multiple-left-floats-on-line-simple.html: Added.
1117
1118 2018-04-04  Youenn Fablet  <youenn@apple.com>
1119
1120         WebRTC data channel only applications require capture permissions for direct connections
1121         https://bugs.webkit.org/show_bug.cgi?id=174500
1122         <rdar://problem/34134281>
1123
1124         Reviewed by Eric Carlson.
1125
1126         Adding options to enable MDNS ICE candidates.
1127
1128         * WebKitTestRunner/InjectedBundle/Bindings/TestRunner.idl:
1129         * WebKitTestRunner/InjectedBundle/TestRunner.cpp:
1130         (WTR::TestRunner::setMediaDevicesEnabled):
1131         (WTR::TestRunner::setMDNSICECandidatesEnabled):
1132         * WebKitTestRunner/InjectedBundle/TestRunner.h:
1133         * WebKitTestRunner/TestController.cpp:
1134         (WTR::TestController::resetPreferencesToConsistentValues):
1135
1136 2018-04-04  Ryan Haddad  <ryanhaddad@apple.com>
1137
1138         Disable failing WKWebViewAutofillTests
1139         https://bugs.webkit.org/show_bug.cgi?id=184196
1140
1141         Unreviewed test gardening.
1142
1143         * TestWebKitAPI/Tests/ios/WKWebViewAutofillTests.mm:
1144         (TestWebKitAPI::TEST):
1145
1146 2018-04-04  Youenn Fablet  <youenn@apple.com>
1147
1148         Introduce a ThreadSafeRefCounted parameter to ensure being destroyed on the main thread
1149         https://bugs.webkit.org/show_bug.cgi?id=183988
1150
1151         Reviewed by Darin Adler.
1152
1153         * TestWebKitAPI/Tests/WTF/RefPtr.cpp:
1154         (TestWebKitAPI::ThreadSafeRefCountedObject::create):
1155         (TestWebKitAPI::ThreadSafeRefCountedObject::~ThreadSafeRefCountedObject):
1156         (TestWebKitAPI::MainThreadSafeRefCountedObject::create):
1157         (TestWebKitAPI::MainThreadSafeRefCountedObject::~MainThreadSafeRefCountedObject):
1158         (TestWebKitAPI::TEST):
1159
1160 2018-04-04  Ms2ger  <Ms2ger@igalia.com>
1161
1162         Test gardening for GTK.
1163         https://bugs.webkit.org/show_bug.cgi?id=184298
1164
1165         Unreviewed test gardening.
1166
1167         * WebKitTestRunner/InjectedBundle/InjectedBundlePage.cpp: Add pointer to
1168         https://bugs.webkit.org/show_bug.cgi?id=184295.
1169
1170 2018-04-03  Carlos Garcia Campos  <cgarcia@igalia.com>
1171
1172         ASSERTION FAILED: !m_mainFrame->coreFrame()->loader().frameHasLoaded() || !m_pendingNavigationID when reloading page while a page is loading
1173         https://bugs.webkit.org/show_bug.cgi?id=153210
1174
1175         Reviewed by Alex Christensen.
1176
1177         Add unit tests to WebKit C API and WebKitGLib.
1178
1179         * TestWebKitAPI/Tests/WebKit/PageLoadBasic.cpp:
1180         (TestWebKitAPI::TEST):
1181         * TestWebKitAPI/Tests/WebKitGLib/TestLoaderClient.cpp:
1182         (LoadTwiceAndReloadTest::reloadOnFinishLoad):
1183         (LoadTwiceAndReloadTest::LoadTwiceAndReloadTest):
1184         (LoadTwiceAndReloadTest::~LoadTwiceAndReloadTest):
1185         (LoadTwiceAndReloadTest::waitUntilFinished):
1186         (testWebViewLoadTwiceAndReload):
1187         (beforeAll):
1188
1189 2018-04-03  Carlos Garcia Campos  <cgarcia@igalia.com>
1190
1191         [GTK] Test /webkit/WebKitWebPage/context-menu is failing since r229831
1192         https://bugs.webkit.org/show_bug.cgi?id=184260
1193
1194         Reviewed by Michael Catanzaro.
1195
1196         This is not a regression introduced in r229831, though, it's a bug in the test itself revealed by r229831. We
1197         should wait for the load to complete before trying to show the context menu.
1198
1199         * TestWebKitAPI/Tests/WebKitGtk/TestContextMenu.cpp:
1200         (testContextMenuWebExtensionMenu):
1201
1202 2018-04-03  Zalan Bujtas  <zalan@apple.com>
1203
1204         [LayoutReloaded] Introduce floating to InlineFormattingContext
1205         https://bugs.webkit.org/show_bug.cgi?id=184288
1206
1207         Reviewed by Antti Koivisto.
1208
1209         * LayoutReloaded/FormattingContext/BlockFormatting/BlockFormattingContext.js:
1210         (BlockFormattingContext.prototype._computeFloatingWidth): Deleted.
1211         (BlockFormattingContext.prototype._computeFloatingHeight): Deleted.
1212         * LayoutReloaded/FormattingContext/FormattingContext.js:
1213         (FormattingContext.prototype._computeFloatingWidth):
1214         (FormattingContext.prototype._computeFloatingHeight):
1215         * LayoutReloaded/FormattingContext/InlineFormatting/InlineFormattingContext.js:
1216         (InlineFormattingContext.prototype.layout):
1217         (InlineFormattingContext.prototype._handleFloatingBox):
1218         * LayoutReloaded/FormattingContext/InlineFormatting/Line.js:
1219         (Line.prototype.addFloatingBox):
1220         (Line):
1221         * LayoutReloaded/test/float-is-inside-inline-formatting-context-simple.html: Added.
1222         * LayoutReloaded/test/index.html:
1223
1224 2018-04-03  Youenn Fablet  <youenn@apple.com>
1225
1226         NetworkResourceLoader does not need to expose all redirect response headers
1227         https://bugs.webkit.org/show_bug.cgi?id=184114
1228         <rdar://problem/39010557>
1229
1230         Reviewed by Ryosuke Niwa.
1231
1232         Add an option to dump the number of headers in a response.
1233         This allows validating that filtering does happen or not.
1234
1235         * WebKitTestRunner/InjectedBundle/Bindings/TestRunner.idl:
1236         * WebKitTestRunner/InjectedBundle/InjectedBundlePage.cpp:
1237         (WTR::dumpResponseDescriptionSuitableForTestResult):
1238         (WTR::InjectedBundlePage::responseHeaderCount):
1239         (WTR::InjectedBundlePage::willSendRequestForFrame):
1240         * WebKitTestRunner/InjectedBundle/InjectedBundlePage.h:
1241         * WebKitTestRunner/InjectedBundle/TestRunner.h:
1242         (WTR::TestRunner::dumpAllHTTPRedirectedResponseHeaders):
1243         (WTR::TestRunner::shouldDumpAllHTTPRedirectedResponseHeaders const):
1244         * WebKitTestRunner/InjectedBundle/cocoa/InjectedBundlePageCocoa.mm:
1245         (WTR::InjectedBundlePage::responseHeaderCount):
1246         * WebKitTestRunner/TestController.cpp:
1247         (WTR::TestController::resetPreferencesToConsistentValues):
1248
1249 2018-04-03  Andy Estes  <aestes@apple.com>
1250
1251         [Mac] Prioritize file promises over filenames during drag and drop
1252         https://bugs.webkit.org/show_bug.cgi?id=184237
1253         <rdar://problem/38278076>
1254
1255         Reviewed by Wenson Hsieh.
1256
1257         * DumpRenderTree/mac/EventSendingController.mm:
1258         (-[EventSendingController beginDragWithFilePromises:]):
1259
1260 2018-04-03  Brady Eidson  <beidson@apple.com>
1261
1262         Make SessionStorage work with process swapping.
1263         https://bugs.webkit.org/show_bug.cgi?id=184270
1264
1265         Reviewed by Andy Estes.
1266
1267         * TestWebKitAPI/Tests/WebKitCocoa/ProcessSwapOnNavigation.mm:
1268         (-[PSONMessageHandler userContentController:didReceiveScriptMessage:]):
1269
1270 2018-04-03  Chris Dumez  <cdumez@apple.com>
1271
1272         Drop MainFrame class
1273         https://bugs.webkit.org/show_bug.cgi?id=184191
1274
1275         Reviewed by Darin Adler.
1276
1277         * TestWebKitAPI/Tests/WebCore/cocoa/WebCoreNSURLSession.mm:
1278
1279 2018-04-03  Charlie Turner  <cturner@igalia.com>
1280
1281         [WPE] Add WPE port to garden-o-matic
1282         https://bugs.webkit.org/show_bug.cgi?id=182998
1283
1284         Reviewed by Michael Catanzaro.
1285
1286         * BuildSlaveSupport/build.webkit.org-config/public_html/TestFailures/scripts/config.js:
1287         Add WPE as a port to check.
1288         (config.kPlatforms.string_appeared_here._builderApplies): Use less
1289         surprising equality operator.
1290         (config.kPlatforms.string_appeared_here.resultsDirectoryNameFromBuilderName):
1291         Ditto.
1292         (config.kPlatforms.string_appeared_here.resultsDirectoryForBuildNumber):
1293         Ditto.
1294
1295 2018-04-03  Adrian Perez de Castro  <aperez@igalia.com>
1296
1297         [GTK][JHBuild] Tools/gtk/install-dependencies: Replace libxfont with libxfont2 in Arch Linux
1298         https://bugs.webkit.org/show_bug.cgi?id=184258
1299
1300         Reviewed by Carlos Alberto Lopez Perez.
1301
1302         * gtk/install-dependencies: Use libxfont2 on Arch Linux as well.
1303
1304 2018-04-02  Brady Eidson  <beidson@apple.com>
1305
1306         Process swapping on navigation needs to handle server redirects.
1307         <rdar://problem/38690465> and https://bugs.webkit.org/show_bug.cgi?id=184142
1308
1309         Reviewed by Alex Christensen.
1310
1311         * TestWebKitAPI/Tests/WebKitCocoa/ProcessSwapOnNavigation.mm:
1312         (-[PSONNavigationDelegate webView:didFinishNavigation:]):
1313         (-[PSONNavigationDelegate webView:decidePolicyForNavigationAction:decisionHandler:]):
1314         (-[PSONNavigationDelegate webView:didReceiveServerRedirectForProvisionalNavigation:]):
1315         (-[PSONScheme addRedirectFromURLString:toURLString:]):
1316         (-[PSONScheme webView:startURLSchemeTask:]):
1317
1318 2018-04-02  Daniel Bates  <dabates@apple.com>
1319
1320         Add infrastructure to relax SSL for allowed hosts in DumpRenderTree and WebKitTestRunner
1321         https://bugs.webkit.org/show_bug.cgi?id=184239
1322
1323         Reviewed by Alexey Proskuryakov.
1324
1325         Adds a new optional command line option --allow-any-certificate-for-allowed-hosts (defaults to disabled)
1326         to allow the allowed hosts to accept any HTTPS certificate. You can specify an allowed host
1327         by using the existing command line option --allowed-host.
1328
1329         Currently both DumpRenderTree and WebKitTestRunner relax SSL certificate validation
1330         for 127.0.0.1 and localhost so that we can run HTTPS tests from these hosts using
1331         a self-signed certificate. They do not relax these restrictions for any allowed host,
1332         specified using the optional command line option --allowed-host. For testing purposes
1333         it is useful to be able to run a local HTTPS server with a self-signed certificate and
1334         mimic a non-localhost hostname (by adding an alias(es) for 127.0.0.1 to /etc/hosts).
1335         We should support relaxing SSL restrictions for such testing purposes.
1336
1337         For example, to allow host example.test to present any HTTPS certificate when running
1338         tests you would invoke:
1339
1340             run-webkit-tests --allowed-host example.test --additional-drt-flag '--allow-any-certificate-for-allowed-hosts'
1341
1342         * DumpRenderTree/mac/DumpRenderTree.mm:
1343         (initializeGlobalsFromCommandLineOptions): Parse the command line option --allow-any-certificate-for-allowed-hosts.
1344         (dumpRenderTree): Allow any HTTPS certificate from each allowed host.
1345         * WebKitTestRunner/InjectedBundle/InjectedBundle.cpp:
1346         (WTR::InjectedBundle::didReceiveMessageToPage): Clear out the existing list of allowed hosts
1347         before appending entries to it to avoid growing the list of allowed hosts without bound. Call
1348         platformAllowAnyHTTPSCertificateForAllowedHosts() to apply SSL relaxation for each allowed host.
1349         * WebKitTestRunner/Options.cpp:
1350         (WTR::handleOptionAllowAnyHTTPSCertificateForAllowedHosts): Added.
1351         (WTR::handleOptionAllowedHost): Update code as needed now that Options::allowedHosts is a std::set.
1352         (WTR::OptionsHandler::OptionsHandler):
1353         * WebKitTestRunner/Options.h: Change the data type of allowedHosts from a std::vector to a std::set
1354         so that we can make use of the convenience functon std::set::find() in TestController::canAuthenticateAgainstProtectionSpace().
1355         * WebKitTestRunner/TestController.cpp:
1356         (WTR::TestController::initialize):
1357         (WTR::TestController::canAuthenticateAgainstProtectionSpace): Allow any HTTPS certificate from each allowed host.
1358         * WebKitTestRunner/TestController.h:
1359
1360 2018-04-02  Ryan Haddad  <ryanhaddad@apple.com>
1361
1362         Unreviewed, rolling out r230174.
1363
1364         Caused LayoutTests to exit early with assertion failures.
1365
1366         Reverted changeset:
1367
1368         "Process swapping on navigation needs to handle server
1369         redirects."
1370         https://bugs.webkit.org/show_bug.cgi?id=184142
1371         https://trac.webkit.org/changeset/230174
1372
1373 2018-04-02  Daniel Bates  <dabates@apple.com>
1374
1375         Remove pre-Network Session code path for allowing any HTTPS certificate on Mac and iOS
1376         https://bugs.webkit.org/show_bug.cgi?id=184242
1377
1378         Reviewed by Alexey Proskuryakov.
1379
1380         Following r227364 we use the Network Session (NSURLSession) code path by default in
1381         modern WebKit on Mac and iOS. That is, we no longer use {CF, NS}URLConnection in modern
1382         WebKit on these platforms. So, we can remove code that used NSURLRequest SPI to allow
1383         any HTTPS certificate from localhost and 127.0.0.1 when using {CF, NS}URLConnection.
1384         The equivalent functionality is implemented in TestController::canAuthenticateAgainstProtectionSpace().
1385
1386         * WebKitTestRunner/InjectedBundle/ios/InjectedBundleIOS.mm:
1387         (WTR::InjectedBundle::platformInitialize):
1388         * WebKitTestRunner/InjectedBundle/mac/InjectedBundleMac.mm:
1389         (WTR::InjectedBundle::platformInitialize):
1390
1391 2018-04-02  Brady Eidson  <beidson@apple.com>
1392
1393         Process swapping on navigation needs to handle server redirects.
1394         <rdar://problem/38690465> and https://bugs.webkit.org/show_bug.cgi?id=184142
1395
1396         Reviewed by Alex Christensen.
1397
1398         * TestWebKitAPI/Tests/WebKitCocoa/ProcessSwapOnNavigation.mm:
1399         (-[PSONNavigationDelegate webView:didFinishNavigation:]):
1400         (-[PSONNavigationDelegate webView:decidePolicyForNavigationAction:decisionHandler:]):
1401         (-[PSONNavigationDelegate webView:didReceiveServerRedirectForProvisionalNavigation:]):
1402         (-[PSONScheme addRedirectFromURLString:toURLString:]):
1403         (-[PSONScheme webView:startURLSchemeTask:]):
1404
1405 2018-04-02  Thibault Saunier  <tsaunier@igalia.com>
1406
1407         webkitpy: Use current environment value for GST_DEBUG(_FILE) and DOT_DIR env vars
1408         https://bugs.webkit.org/show_bug.cgi?id=184036
1409
1410         Reviewed by Philippe Normand.
1411
1412         Those variables are for debug purpose and should not change the behaviour
1413         itself, and developers expect them to have effect.
1414
1415         * Scripts/webkitpy/port/gtk.py:
1416         (GtkPort.setup_environ_for_server):
1417
1418 2018-04-02  Daniel Bates  <dabates@apple.com>
1419
1420         Remove Options constructor and use internal linkage for option handlers
1421         https://bugs.webkit.org/show_bug.cgi?id=184229
1422
1423         Reviewed by Andy Estes.
1424
1425         Use C++11 default initializer syntax to remove the need to explicitly have a constructor
1426         for the struct Options. Use internal linkage for option handler functions as these
1427         are never invoked outside the translation unit they are defined in.
1428
1429         * WebKitTestRunner/Options.cpp:
1430         (WTR::handleOptionNoTimeout):
1431         (WTR::handleOptionVerbose):
1432         (WTR::handleOptionGcBetweenTests):
1433         (WTR::handleOptionPixelTests):
1434         (WTR::handleOptionPrintSupportedFeatures):
1435         (WTR::handleOptionComplexText):
1436         (WTR::handleOptionAcceleratedDrawing):
1437         (WTR::handleOptionRemoteLayerTree):
1438         (WTR::handleOptionShowWebView):
1439         (WTR::handleOptionShowTouches):
1440         (WTR::handleOptionAllowedHost):
1441         (WTR::handleOptionUnmatched):
1442         (WTR::Options::Options): Deleted.
1443         * WebKitTestRunner/Options.h:
1444
1445 2018-04-02  Alejandro G. Castro  <alex@igalia.com>
1446
1447         Unreviewed GTK port dependencies fix after r230152.
1448
1449         Add alsa library dependency for gtk.
1450
1451         * gtk/install-dependencies:
1452
1453 2018-04-02  Alejandro G. Castro  <alex@igalia.com>
1454
1455         [GTK] Make libwebrtc backend buildable for GTK  port
1456         https://bugs.webkit.org/show_bug.cgi?id=178860
1457
1458         Reviewed by Youenn Fablet.
1459
1460         * gstreamer/jhbuild.modules: Modified the libvpx module for the
1461         libwebrtc compilation.
1462         * gtk/install-dependencies: Add libevent as a system requirement.
1463         * Scripts/webkitpy/style/checker.py: Added libwebrtc to the list of third
1464         party libraries with reduced style checks.
1465
1466 2018-04-01  Zalan Bujtas  <zalan@apple.com>
1467
1468         [LayoutReloaded] Use containing block's contentBox left edge when the float is to the right.
1469         https://bugs.webkit.org/show_bug.cgi?id=184230
1470
1471         Reviewed by Antti Koivisto.
1472
1473         * LayoutReloaded/FormattingContext/InlineFormatting/InlineFormattingContext.js:
1474         (InlineFormattingContext.prototype._mapFloatingPosition):
1475         (InlineFormattingContext):
1476         * LayoutReloaded/test/index.html:
1477         * LayoutReloaded/test/inline-formatting-context-with-floats2.html: Added.
1478
1479 2018-04-01  Zalan Bujtas  <zalan@apple.com>
1480
1481         [LayoutReloaded] Right floating box reduces available line width.
1482         https://bugs.webkit.org/show_bug.cgi?id=184226
1483
1484         Reviewed by Antti Koivisto.
1485
1486         * LayoutReloaded/FormattingContext/InlineFormatting/InlineFormattingContext.js:
1487         (InlineFormattingContext.prototype._createNewLine):
1488         * LayoutReloaded/test/index.html:
1489         * LayoutReloaded/test/inline-with-floats-right-left-simple.html: Added.
1490
1491 2018-03-31  Zalan Bujtas  <zalan@apple.com>
1492
1493         [LayoutReloaded] Floating box reduces line with in inline formatting context
1494         https://bugs.webkit.org/show_bug.cgi?id=184223
1495
1496         Reviewed by Antti Koivisto.
1497
1498         * LayoutReloaded/FormattingContext/FloatingContext.js:
1499         (FloatingContext.prototype.left):
1500         (FloatingContext.prototype.right):
1501         (FloatingContext.prototype._mapDisplayMarginBoxToFormattingRoot):
1502         (FloatingContext.prototype._mapBorderBoxToFormattingRoot):
1503         (FloatingContext.prototype._mapContentBoxToFormattingRoot):
1504         (FloatingContext.prototype.formattingRoot):
1505         (FloatingContext.prototype._floatingState):
1506         (FloatingContext.prototype._formattingRoot): Deleted.
1507         * LayoutReloaded/FormattingContext/InlineFormatting/InlineFormattingContext.js:
1508         (InlineFormattingContext.prototype._createNewLine):
1509         (InlineFormattingContext.prototype._mapFloatingPosition):
1510         (InlineFormattingContext):
1511         * LayoutReloaded/FormattingState/FormattingState.js:
1512         (FormattingState.prototype.displayBox):
1513         (FormattingState):
1514         * LayoutReloaded/test/index.html:
1515         * LayoutReloaded/test/inline-formatting-context-with-floats.html: Added.
1516
1517 2018-03-31  Zalan Bujtas  <zalan@apple.com>
1518
1519         [LayoutReloaded] InlineFormattingState should inherit the floating state from its parent formatting state
1520         https://bugs.webkit.org/show_bug.cgi?id=184220
1521
1522         Reviewed by Antti Koivisto.
1523
1524         If the block container box that initiates an inline formatting context also establishes a block context,
1525         create a new float state, otherwise use the existing one.
1526
1527         * LayoutReloaded/FormattingContext/BlockFormatting/BlockFormattingContext.js:
1528         (BlockFormattingContext.prototype._contentHeight):
1529         * LayoutReloaded/FormattingState/InlineFormattingState.js:
1530         (InlineFormattingState):
1531         * LayoutReloaded/LayoutState.js:
1532         (LayoutState.prototype.establishedFormattingState):
1533         (LayoutState.prototype.formattingStateForBox):
1534         (LayoutState.prototype.formattingState): Deleted.
1535         * LayoutReloaded/Utils.js:
1536
1537 2018-03-31  Zalan Bujtas  <zalan@apple.com>
1538
1539         [LayoutReloaded] FloatingContext does not need a parent formatting context.
1540         https://bugs.webkit.org/show_bug.cgi?id=184219
1541
1542         Reviewed by Antti Koivisto.
1543
1544         We don't need the formatting context in the FloatingContext now that margins are moved over to Display.Box.
1545         This is in preparation for being able to create a FloatingContext for an inline formatting context,
1546         when the inline context actually inherits the floating state from its formatting root.
1547
1548         * LayoutReloaded/FormattingContext/FloatingContext.js:
1549         (FloatingContext):
1550         (FloatingContext.prototype._availableSpace):
1551         (FloatingContext.prototype._adjustedFloatingPosition):
1552         (FloatingContext.prototype._addFloatingBox):
1553         (FloatingContext.prototype._formattingContext): Deleted.
1554         * LayoutReloaded/FormattingContext/FormattingContext.js:
1555         (FormattingContext):
1556
1557 2018-03-31  Zalan Bujtas  <zalan@apple.com>
1558
1559         [LayoutReloaded] Do not clone Display.Box for FloatingState stacks.
1560         https://bugs.webkit.org/show_bug.cgi?id=184218
1561
1562         Reviewed by Antti Koivisto.
1563
1564         Now that Display.Box is in a tree context, we can't just clone it for the purpose of caching its absolute position.
1565
1566         * LayoutReloaded/DisplayTree/Box.js:
1567         (Display.Box.prototype.clone): Deleted.
1568         * LayoutReloaded/FormattingContext/FloatingContext.js:
1569         (FloatingContext.prototype._positionForFloating):
1570         (FloatingContext.prototype._moveToNextVerticalPosition):
1571         (FloatingContext.prototype._availableSpace):
1572         (FloatingContext.prototype._findFloatingAtVerticalPosition):
1573         (FloatingContext.prototype._adjustedFloatingPosition):
1574         (FloatingContext.prototype._bottom):
1575         (FloatingContext.prototype._addFloatingBox):
1576         (FloatingContext.prototype._mapMarginBoxToFormattingRoot):
1577         (FloatingContext.prototype._mapDisplayMarginBoxToFormattingRoot):
1578         * LayoutReloaded/FormattingState/FloatingState.js:
1579         (FloatingState.prototype.addFloating):
1580
1581 2018-03-31  Zalan Bujtas  <zalan@apple.com>
1582
1583         [LayoutReloaded] Remove all FormattingContext::absolute*Box functions.
1584         https://bugs.webkit.org/show_bug.cgi?id=184215
1585
1586         Reviewed by Antti Koivisto.
1587
1588         Use Display.Box instead.
1589
1590         * LayoutReloaded/FormattingContext/BlockFormatting/BlockFormattingContext.js:
1591         (BlockFormattingContext.prototype._computeOutOfFlowPosition):
1592         * LayoutReloaded/FormattingContext/FloatingContext.js:
1593         (FloatingContext.prototype._availableSpace):
1594         (FloatingContext.prototype._adjustedFloatingPosition):
1595         (FloatingContext.prototype._mapBorderBoxToFormattingRoot):
1596         (FloatingContext.prototype._mapContentBoxToFormattingRoot):
1597         * LayoutReloaded/FormattingContext/FormattingContext.js:
1598         (FormattingContext.prototype.absoluteBorderBox): Deleted.
1599         (FormattingContext.prototype.absolutePaddingBox): Deleted.
1600         (FormattingContext.prototype.absoluteContentBox): Deleted.
1601         (FormattingContext.prototype._toAbsolutePosition): Deleted.
1602         (FormattingContext.prototype._toRootAbsolutePosition): Deleted.
1603         * LayoutReloaded/Utils.js:
1604         (Utils.mapPosition):
1605         (Utils.marginBox):
1606         (Utils.borderBox):
1607         (Utils.contentBox):
1608
1609 2018-03-31  Zalan Bujtas  <zalan@apple.com>
1610
1611         [LayoutReloaded] Remove FormattingContext::absoluteMarginBox
1612         https://bugs.webkit.org/show_bug.cgi?id=184213
1613
1614         Reviewed by Antti Koivisto.
1615
1616         Display.Box already has the margin values.
1617
1618         * LayoutReloaded/FormattingContext/FloatingContext.js:
1619         (FloatingContext.prototype._positionForFloating):
1620         (FloatingContext.prototype._addFloatingBox):
1621         (FloatingContext.prototype._mapMarginBoxToFormattingRoot):
1622         (FloatingContext.prototype._formattingRoot):
1623         * LayoutReloaded/FormattingContext/FormattingContext.js:
1624         (FormattingContext.prototype.absoluteMarginBox): Deleted.
1625         * LayoutReloaded/Utils.js:
1626         (Utils.marginBox):
1627
1628 2018-03-31  Zalan Bujtas  <zalan@apple.com>
1629
1630         [layoutReloaded] Introduce margin to Display.Box
1631         https://bugs.webkit.org/show_bug.cgi?id=184212
1632
1633         Reviewed by Antti Koivisto.
1634
1635         This is in preparation for moving margin box out of formatting context to Display.Box.
1636
1637         * LayoutReloaded/DisplayTree/Box.js:
1638         (Display.Box):
1639         (Display.Box.prototype.setRect):
1640         (Display.Box.prototype.setTopLeft):
1641         (Display.Box.prototype.setTop):
1642         (Display.Box.prototype.setLeft):
1643         (Display.Box.prototype.setSize):
1644         (Display.Box.prototype.setWidth):
1645         (Display.Box.prototype.setHeight):
1646         (Display.Box.prototype.width):
1647         (Display.Box.prototype.setMarginTop):
1648         (Display.Box.prototype.setMarginLeft):
1649         (Display.Box.prototype.setMarginBottom):
1650         (Display.Box.prototype.setMarginRight):
1651         (Display.Box.prototype.marginTop):
1652         (Display.Box.prototype.marginLeft):
1653         (Display.Box.prototype.marginBottom):
1654         (Display.Box.prototype.marginRight):
1655         (Display.Box.prototype.marginBox):
1656         * LayoutReloaded/FormattingContext/FormattingContext.js:
1657         (FormattingContext.prototype.absoluteMarginBox):
1658         (FormattingContext.prototype._addToLayoutQueue):
1659         * LayoutReloaded/FormattingState/FormattingState.js:
1660         (FormattingState.prototype.createDisplayBox):
1661
1662 2018-03-31  Zalan Bujtas  <zalan@apple.com>
1663
1664         [LayoutReloaded] Add tree context to Display.Box
1665         https://bugs.webkit.org/show_bug.cgi?id=184211
1666
1667         Reviewed by Antti Koivisto.
1668
1669         This is preparation for using the Display.Box tree to resolve absolute coordinates.
1670
1671         * LayoutReloaded/DisplayTree/Box.js:
1672         (Display.Box):
1673         (Display.Box.prototype.setParent):
1674         (Display.Box.prototype.setNextSibling):
1675         (Display.Box.prototype.setPreviousSibling):
1676         (Display.Box.prototype.setFirstChild):
1677         (Display.Box.prototype.setLastChild):
1678         (Display.Box.prototype.parent):
1679         (Display.Box.prototype.nextSibling):
1680         (Display.Box.prototype.previousSibling):
1681         (Display.Box.prototype.firstChild):
1682         (Display.Box.prototype.lastChild):
1683         * LayoutReloaded/FormattingState/FormattingState.js:
1684         (FormattingState.prototype.createDisplayBox):
1685
1686 2018-03-30  Ryosuke Niwa  <rniwa@webkit.org>
1687
1688         Copying a list from Microsoft Word to TinyMCE fails when mso-list is the first property
1689         https://bugs.webkit.org/show_bug.cgi?id=182938
1690         <rdar://problem/37683007>
1691
1692         Reviewed by Wenson Hsieh.
1693
1694         Added more assertions to PasteHTML.PreservesMSOList for preserving an inline style which starts with mso-list
1695         or the one which line-breaks right before it.
1696
1697         * TestWebKitAPI/Tests/WebKitCocoa/PasteHTML.mm:
1698         * TestWebKitAPI/Tests/WebKitCocoa/mso-list.html:
1699
1700 2018-03-29  Ryosuke Niwa  <rniwa@webkit.org>
1701
1702         Copying a list from Microsoft Word to TinyMCE fails when mso-list is on tags other than P
1703         https://bugs.webkit.org/show_bug.cgi?id=182954
1704         <rdar://problem/37713141>
1705
1706         Reviewed by Wenson Hsieh.
1707
1708         Added a test case for a HTML generated by Microsoft Word which sets mso-list on h4.
1709
1710         * TestWebKitAPI/TestWebKitAPI.xcodeproj/project.pbxproj:
1711         * TestWebKitAPI/Tests/WebKitCocoa/PasteHTML.mm:
1712         * TestWebKitAPI/Tests/WebKitCocoa/mso-list-compat-mode.html: Fixed the file path.
1713         * TestWebKitAPI/Tests/WebKitCocoa/mso-list-on-h4.html: Added.
1714
1715 2018-03-29  Ross Kirsling  <ross.kirsling@sony.com>
1716
1717         run-jsc-benchmarks should recognize Windows-style build directory structure.
1718         https://bugs.webkit.org/show_bug.cgi?id=184117
1719
1720         Reviewed by Yusuke Suzuki.
1721
1722         * Scripts/run-jsc-benchmarks:
1723         Allow not only bin/jsc but also bin64/jsc.exe.
1724
1725 2018-03-29  Zalan Bujtas  <zalan@apple.com>
1726
1727         [LayoutReloaded] Decouple formatting state and context lifetime.
1728         https://bugs.webkit.org/show_bug.cgi?id=184136
1729
1730         Reviewed by Antti Koivisto.
1731
1732         FormattingContext is about the layout logic. We don't need to hold on to it.
1733
1734         * LayoutReloaded/FormattingContext/FloatingContext.js:
1735         (FloatingContext):
1736         (FloatingContext.prototype.computePosition):
1737         (FloatingContext.prototype._positionForClear):
1738         (FloatingContext.prototype._computePositionToAvoidIntrudingFloats):
1739         (FloatingContext.prototype._addFloatingBox):
1740         (FloatingContext.prototype._formattingContext):
1741         (FloatingContext.prototype._formattingState):
1742         * LayoutReloaded/FormattingContext/FormattingContext.js:
1743         (FormattingContext):
1744         * LayoutReloaded/FormattingState/BlockFormattingState.js:
1745         (BlockFormattingState):
1746         * LayoutReloaded/FormattingState/FloatingState.js:
1747         (FloatingState):
1748         (FloatingState.prototype.addFloating):
1749         (FloatingState.prototype.formattingState):
1750         (FloatingState.prototype.formattingContext): Deleted.
1751         * LayoutReloaded/FormattingState/FormattingState.js:
1752         (FormattingState):
1753         (FormattingState.prototype.formattingContext): Deleted.
1754         * LayoutReloaded/FormattingState/InlineFormattingState.js:
1755         (InlineFormattingState):
1756         * LayoutReloaded/LayoutState.js:
1757         (LayoutState.prototype.layout):
1758         (LayoutState.prototype.formattingContext):
1759
1760 2018-03-28  Zalan Bujtas  <zalan@apple.com>
1761
1762         [LayoutReloaded] Introduce FloatingState.
1763         https://bugs.webkit.org/show_bug.cgi?id=184126
1764
1765         Reviewed by Antti Koivisto.
1766
1767         It holds the floating state (left/right floating stack) for a given formatting state (Block or Inline).
1768         (FormattingState -> FloatingState/FormattingContext -> FloatingContext)
1769
1770         * LayoutReloaded/FormattingContext/BlockFormatting/BlockFormattingContext.js:
1771         (BlockFormattingContext):
1772         * LayoutReloaded/FormattingContext/FloatingContext.js:
1773         (FloatingContext):
1774         (FloatingContext.prototype.computePosition):
1775         (FloatingContext.prototype.bottom):
1776         (FloatingContext.prototype._positionForFloating):
1777         (FloatingContext.prototype._positionForClear):
1778         (FloatingContext.prototype._findInnerMostLeftAndRight):
1779         (FloatingContext.prototype._isEmpty):
1780         (FloatingContext.prototype._floatingState):
1781         (FloatingContext.prototype._formattingContext):
1782         (FloatingContext.prototype._lastFloating):
1783         (FloatingContext.prototype._leftFloatingStack):
1784         (FloatingContext.prototype._rightFloatingStack):
1785         (FloatingContext.prototype._addFloating): Deleted.
1786         * LayoutReloaded/FormattingContext/FormattingContext.js:
1787         (FormattingContext):
1788         * LayoutReloaded/FormattingContext/InlineFormatting/InlineFormattingContext.js:
1789         (InlineFormattingContext):
1790         * LayoutReloaded/FormattingState/BlockFormattingState.js:
1791         (BlockFormattingState):
1792         * LayoutReloaded/FormattingState/FloatingState.js: Copied from Tools/LayoutReloaded/FormattingState/InlineFormattingState.js.
1793         (FloatingState):
1794         (FloatingState.prototype.addFloating):
1795         (FloatingState.prototype.leftFloatingStack):
1796         (FloatingState.prototype.rightFloatingStack):
1797         (FloatingState.prototype.lastFloating):
1798         (FloatingState.prototype.formattingContext):
1799         * LayoutReloaded/FormattingState/FormattingState.js:
1800         (FormattingState):
1801         (FormattingState.prototype.floatingState):
1802         * LayoutReloaded/FormattingState/InlineFormattingState.js:
1803         (InlineFormattingState):
1804         * LayoutReloaded/test/index.html:
1805
1806 2018-03-28  Zalan Bujtas  <zalan@apple.com>
1807
1808         [LayoutReloaded] Convert floating left/right stack display boxes absolute to the formatting context's root.
1809         https://bugs.webkit.org/show_bug.cgi?id=184123
1810
1811         Reviewed by Antti Koivisto.
1812
1813         1. The left/right floating array should hold the Display.Box (and not the Layout.Box)
1814         2. Clone the Display.Box and convert its rect absolute to the formatting context's root so that we
1815         don't have to keep converting the coordinates while computing the positions. 
1816
1817         * LayoutReloaded/DisplayTree/Box.js:
1818         (Display.Box.prototype.clone):
1819         (Display.Box.prototype.setRect):
1820         * LayoutReloaded/FormattingContext/FloatingContext.js:
1821         (FloatingContext.prototype.computePosition):
1822         (FloatingContext.prototype._positionForFloating):
1823         (FloatingContext.prototype._addFloating):
1824         (FloatingContext.prototype._moveToNextVerticalPosition):
1825         (FloatingContext.prototype._availableSpace):
1826         (FloatingContext.prototype._findFloatingAtVerticalPosition):
1827         (FloatingContext.prototype._adjustedFloatingPosition):
1828         (FloatingContext.prototype._bottom):
1829
1830 2018-03-28  Chris Dumez  <cdumez@apple.com>
1831
1832         Unreviewed iOS build fix after r230060.
1833
1834         * TestWebKitAPI/Tests/WebKitCocoa/ProcessSwapOnNavigation.mm:
1835
1836 2018-03-28  Chris Dumez  <cdumez@apple.com>
1837
1838         Unreviewed, disable new window.open() API tests introduced in r230051 on iOS.
1839
1840         I will investigate if this is testable on iOS.
1841
1842         * TestWebKitAPI/Tests/WebKitCocoa/ProcessSwapOnNavigation.mm:
1843
1844 2018-03-28  Chris Dumez  <cdumez@apple.com>
1845
1846         Do process swap when opening a cross-origin URL via window.open(url, '_blank', 'noopener')
1847         https://bugs.webkit.org/show_bug.cgi?id=183962
1848         <rdar://problem/38817833>
1849
1850         Reviewed by Brady Eidson.
1851
1852         Add API test coverage.
1853
1854         * TestWebKitAPI/Tests/WebKitCocoa/ProcessSwapOnNavigation.mm:
1855         (-[PSONUIDelegate initWithNavigationDelegate:]):
1856         (-[PSONUIDelegate webView:createWebViewWithConfiguration:forNavigationAction:windowFeatures:]):
1857
1858 2018-03-28  Carlos Eduardo Ramalho  <cadubentzen@gmail.com>
1859
1860         Add Carlos Eduardo Ramalho as contributor
1861         https://bugs.webkit.org/show_bug.cgi?id=184082
1862
1863         Reviewed by Carlos Alberto Lopez Perez.
1864
1865         * Scripts/webkitpy/common/config/contributors.json:
1866
1867 2018-03-28  Wenson Hsieh  <wenson_hsieh@apple.com>
1868
1869         [Extra zoom mode] Make boosted text autosizing values switchable at runtime
1870         https://bugs.webkit.org/show_bug.cgi?id=184092
1871         <rdar://problem/38939917>
1872
1873         Reviewed by Tim Horton.
1874
1875         Add an API test to check that toggling the boosted text autosizing preference causes text to lay out larger than
1876         it would with normal text autosizing.
1877
1878         * TestWebKitAPI/TestWebKitAPI.xcodeproj/project.pbxproj:
1879         * TestWebKitAPI/Tests/ios/TextAutosizingBoost.mm: Added.
1880         (TEST):
1881
1882 2018-03-28  Zalan Bujtas  <zalan@apple.com>
1883
1884         [LayoutReloaded] InlineFormattingContext::_handleText should support runs on multiple lines
1885         https://bugs.webkit.org/show_bug.cgi?id=184101
1886
1887         Reviewed by Antti Koivisto.
1888
1889         * LayoutReloaded/FormattingContext/InlineFormatting/InlineFormattingContext.js:
1890         (InlineFormattingContext):
1891         (InlineFormattingContext.prototype.layout):
1892         (InlineFormattingContext.prototype._handleText):
1893         (InlineFormattingContext.prototype._createNewLine):
1894         * LayoutReloaded/test/index.html:
1895         * LayoutReloaded/test/simple-multiline-text.html: Added.
1896
1897 2018-03-28  Zalan Bujtas  <zalan@apple.com>
1898
1899         [LayoutReloaded] Add InlineTextBreaker::skipLeadingWhitespaceIfNeeded
1900         https://bugs.webkit.org/show_bug.cgi?id=184099
1901
1902         Reviewed by Antti Koivisto.
1903
1904         * LayoutReloaded/misc/LayoutReloadedWebKit.patch:
1905
1906 2018-03-27  Carlos Garcia Campos  <cgarcia@igalia.com>
1907
1908         [GLIB] Add JSCWeakValue to JavaScriptCore GLib API
1909         https://bugs.webkit.org/show_bug.cgi?id=184041
1910
1911         Reviewed by Michael Catanzaro.
1912
1913         Add test case for JSCWeakValue.
1914
1915         * TestWebKitAPI/Tests/JavaScriptCore/glib/TestJSC.cpp:
1916         (weakValueClearedCallback):
1917         (testJSCWeakValue):
1918         (main):
1919
1920 2018-03-27  Zalan Bujtas  <zalan@apple.com>
1921
1922         [LayoutReloaded] Start using window.collectTextRuns() to layout text lines in inline formatting context
1923         https://bugs.webkit.org/show_bug.cgi?id=184070
1924
1925         Reviewed by Antti Koivisto.
1926
1927         * LayoutReloaded/FormattingContext/InlineFormatting/InlineFormattingContext.js:
1928         (InlineFormattingContext.prototype._handleText):
1929         (InlineFormattingContext.prototype._commitLine):
1930         * LayoutReloaded/FormattingContext/InlineFormatting/Line.js:
1931         (Line.prototype.addTextLineBox):
1932         (Line):
1933         (Line.prototype.addLineBox): Deleted.
1934         * LayoutReloaded/FormattingState/BlockFormattingState.js:
1935         (BlockFormattingState):
1936         * LayoutReloaded/FormattingState/FormattingState.js:
1937         (FormattingState.prototype.displayBox):
1938         (FormattingState):
1939         (FormattingState.prototype._setFormattingContext): Deleted.
1940         * LayoutReloaded/FormattingState/InlineFormattingState.js:
1941         (InlineFormattingState):
1942         * LayoutReloaded/LayoutTree/Text.js:
1943         (Text.prototype.content):
1944         * LayoutReloaded/Utils.js:
1945         (Utils.textRuns):
1946         (Utils.textRunsForLine):
1947         (Utils._dumpLines.):
1948         (Utils._dumpLines):
1949         * LayoutReloaded/test/simple-inline-text.html:
1950
1951 2018-03-27  Eric Carlson  <eric.carlson@apple.com>
1952
1953         https://bugs.webkit.org/show_bug.cgi?id=183876
1954         <rdar://problem/38726459>
1955         
1956         Unreviewed, fix for the test added in r229995 in the iOS simulator.
1957
1958         * TestWebKitAPI/Tests/WebKitCocoa/AVFoundationPreference.mm:
1959         (TestWebKitAPI::AVFoundationPref::testWithPreference):
1960
1961 2018-03-27  Jiewen Tan  <jiewen_tan@apple.com>
1962
1963         [WebAuthN] Implement authenticatorGetAssertion
1964         https://bugs.webkit.org/show_bug.cgi?id=183881
1965         <rdar://problem/37258628>
1966
1967         Reviewed by Brent Fulgham.
1968
1969         * TestWebKitAPI/Tests/ios/LocalAuthenticator.mm:
1970         (TestWebKitAPI::getTestKey):
1971         (TestWebKitAPI::addTestKeyToKeychain):
1972         (TestWebKitAPI::LAEvaluatePolicyFailedSwizzler::evaluatePolicyFailed):
1973         (TestWebKitAPI::LAEvaluatePolicyPassedSwizzler::evaluatePolicyPassed):
1974         (TestWebKitAPI::LAEvaluateAccessControlFailedSwizzler::LAEvaluateAccessControlFailedSwizzler):
1975         (TestWebKitAPI::LAEvaluateAccessControlFailedSwizzler::evaluateAccessControlFailed):
1976         (TestWebKitAPI::LAEvaluateAccessControlPassedSwizzler::LAEvaluateAccessControlPassedSwizzler):
1977         (TestWebKitAPI::LAEvaluateAccessControlPassedSwizzler::evaluateAccessControlPassed):
1978         (TestWebKitAPI::TEST):
1979
1980 2018-03-27  Brian Burg  <bburg@apple.com>
1981
1982         REGRESSION(r229937): WebDriver tests no longer run, test runner hangs when launching wpt web server
1983         https://bugs.webkit.org/show_bug.cgi?id=184056
1984         <rdar://problem/38925058>
1985
1986         Reviewed by Timothy Hatcher and Youenn Fablet.
1987
1988         * Scripts/webkitpy/webdriver_tests/webdriver_w3c_web_server.py:
1989         (WebDriverW3CWebServer.start):
1990         The config key used in upstream WPT has changed from 'host' to 'browser_host'.
1991
1992 2018-03-27  Timothy Hatcher  <timothy@hatcher.name>
1993
1994         Update my email address in contributors.json and scripts
1995         https://bugs.webkit.org/show_bug.cgi?id=184054
1996
1997         * Scripts/validate-committer-lists:
1998         (CommitterListFromGit):
1999         * Scripts/webkitpy/common/config/contributors.json:
2000
2001 2018-03-27  Eric Carlson  <eric.carlson@apple.com>
2002
2003         Make AVFoundationEnabled preference available on iOS
2004         https://bugs.webkit.org/show_bug.cgi?id=183876
2005         <rdar://problem/38726459>
2006
2007         Reviewed by Youenn Fablet.
2008
2009         * TestWebKitAPI/TestWebKitAPI.xcodeproj/project.pbxproj:
2010         * TestWebKitAPI/Tests/WebKit/video.html: Added.
2011         * TestWebKitAPI/Tests/WebKitCocoa/AVFoundationPreference.mm: Added.
2012         (-[PreferenceTestMessageHandler userContentController:didReceiveScriptMessage:]):
2013         (TestWebKitAPI::AVFoundationPref::SetUp):
2014         (TestWebKitAPI::AVFoundationPref::testWithPreference):
2015         (TestWebKitAPI::TEST_F):
2016
2017 2018-03-26  Brent Fulgham  <bfulgham@apple.com>
2018
2019         Warn against cookie access in the WebContent process using ProcessPrivilege assertions
2020         https://bugs.webkit.org/show_bug.cgi?id=183911
2021         <rdar://problem/38762306>
2022
2023         Reviewed by Youenn Fablet.
2024
2025         Add a set of ProcessPrivilege assertions to enforce the rule that the WebContent process
2026         should never call Cookie API directly. That should only happen in the Networking or
2027         UIProcess. 
2028
2029         * DumpRenderTree/mac/DumpRenderTree.mm:
2030         (DumpRenderTreeMain):
2031         * TestWebKitAPI/TestsController.cpp:
2032         (TestWebKitAPI::TestsController::TestsController):
2033         * WebKitTestRunner/TestController.cpp:
2034         (WTR::TestController::initialize):
2035
2036 2018-03-26  Zalan Bujtas  <zalan@apple.com>
2037
2038         [LayoutReloaded] Add InlineText DOM interface and dependencies
2039         https://bugs.webkit.org/show_bug.cgi?id=184010
2040
2041         Reviewed by Antti Koivisto.
2042
2043         to help inline text layout.
2044
2045         * LayoutReloaded/misc/LayoutReloadedWebKit.patch:
2046
2047 2018-03-25  Carlos Garcia Campos  <cgarcia@igalia.com>
2048
2049         [GTK][WPE] Add API to convert between DOM and JSCValue
2050         https://bugs.webkit.org/show_bug.cgi?id=183448
2051
2052         Reviewed by Michael Catanzaro.
2053
2054         Add unit tests for non-deprecated DOM API and switch existing tests to use non-deprecated API except for the
2055         ones that test the deprecated API.
2056
2057         * TestWebKitAPI/Tests/WebKitGLib/DOMElementTest.cpp: Added.
2058         (DOMElementTest::create):
2059         (DOMElementTest::testAutoFill):
2060         (registerTests):
2061         * TestWebKitAPI/Tests/WebKitGLib/EditorTest.cpp: Added.
2062         (WebKitWebEditorTest::create):
2063         (WebKitWebEditorTest::selectionChangedCallback):
2064         (WebKitWebEditorTest::testSelectionchanged):
2065         (registerTests):
2066         * TestWebKitAPI/Tests/WebKitGLib/FrameTest.cpp:
2067         (WebKitFrameTest::testJavaScriptValues):
2068         (registerTests):
2069         * TestWebKitAPI/Tests/WebKitGLib/TestDOMElement.cpp: Renamed from Source/WebKit/WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMObjectPrivate.h.
2070         (testWebKitDOMElementAutoFill):
2071         (beforeAll):
2072         (afterAll):
2073         * TestWebKitAPI/Tests/WebKitGLib/TestEditor.cpp: Renamed from Tools/TestWebKitAPI/Tests/WebKitGtk/TestEditor.cpp.
2074         * TestWebKitAPI/Tests/WebKitGLib/TestFrame.cpp:
2075         (testWebKitFrameJavaScriptValues):
2076         (beforeAll):
2077         * TestWebKitAPI/Tests/WebKitGLib/TestWebExtensions.cpp:
2078         (inputElementIsUserEdited):
2079         (testWebExtensionInputElementIsUserEdited):
2080         (testWebExtensionFormSubmissionSteps):
2081         (beforeAll):
2082         * TestWebKitAPI/Tests/WebKitGLib/WebExtensionTest.cpp:
2083         (documentLoadedCallback):
2084         (serializeNode):
2085         (contextMenuCallback):
2086         (consoleMessageSentCallback):
2087         (formControlsAssociatedCallback):
2088         (willSubmitFormCallback):
2089         (pageCreatedCallback):
2090         (methodCallCallback):
2091         * TestWebKitAPI/Tests/WebKitGLib/WebProcessTest.cpp:
2092         (checkLeaks):
2093         (webProcessTestRunnerFinalize):
2094         (checkLeaksAtExit):
2095         * TestWebKitAPI/Tests/WebKitGtk/AutocleanupsTest.cpp:
2096         (AutocleanupsTest::testWebProcessAutocleanups):
2097         * TestWebKitAPI/Tests/WebKitGtk/DOMClientRectTest.cpp:
2098         * TestWebKitAPI/Tests/WebKitGtk/DOMNodeFilterTest.cpp:
2099         * TestWebKitAPI/Tests/WebKitGtk/DOMNodeTest.cpp:
2100         * TestWebKitAPI/Tests/WebKitGtk/DOMXPathNSResolverTest.cpp:
2101         * TestWebKitAPI/Tests/WebKitGtk/EditorTest.cpp: Removed.
2102         * TestWebKitAPI/glib/CMakeLists.txt:
2103         * TestWebKitAPI/glib/PlatformGTK.cmake:
2104         * TestWebKitAPI/glib/PlatformWPE.cmake:
2105
2106 2018-03-24  Jonathan Bedard  <jbedard@apple.com>
2107
2108         webkitpy: Unrecognized mac versions always use WebKitTestRunner
2109         https://bugs.webkit.org/show_bug.cgi?id=183681
2110         <rdar://problem/38509162>
2111
2112         Reviewed by Daniel Bates.
2113
2114         When an unrecognized version is used, we were unconditionally adding '-wk2'
2115         to the mac version name. This would mean that the port object would always
2116         use WebKitTestRunner as the driver, even if DumpRenderTree was explicitly
2117         requested.
2118
2119         * Scripts/webkitpy/port/apple.py:
2120         (ApplePort.determine_full_port_name): Only add wk2 to port names if
2121         WebKitTestRunner is specified.
2122         * Scripts/webkitpy/port/mac.py:
2123         (MacPort.__init__): Compare length of split string, and do not treat wk2 as a
2124         version name.
2125         * Scripts/webkitpy/port/mac_unittest.py:
2126         (MacTest):
2127         (MacTest.test_factory_with_future_version): Confirm that future versions correctly
2128         assign the driver and have undefined version names.
2129         (MacTest.test_factory_with_portname_version): Confirm that general versions correctly assign
2130         the driver and have defined versions.
2131         (MacTest.test_factory_with_portname_wk2): Ensure that mac ports ending in 'wk2' set
2132         the driver to be WebKitTestRunner even if webkit_test_runner=False.
2133
2134 2018-03-23  Zan Dobersek  <zdobersek@igalia.com>
2135
2136         Fix the run-benchmark script, properly specifying the plan directory
2137         where the Skipped file is located.
2138
2139         Rubber-stamped by Carlos Alberto Lopez Perez.
2140
2141         * Scripts/webkitpy/benchmark_runner/run_benchmark.py:
2142         (start):
2143
2144 2018-03-23  Tim Horton  <timothy_horton@apple.com>
2145
2146         Fix the build with no pasteboard
2147         https://bugs.webkit.org/show_bug.cgi?id=183973
2148
2149         Reviewed by Dan Bernstein.
2150
2151         * TestWebKitAPI/Configurations/FeatureDefines.xcconfig:
2152
2153 2018-03-23  Youenn Fablet  <youenn@apple.com>
2154
2155         Update WPT tools to a1ec330
2156         https://bugs.webkit.org/show_bug.cgi?id=183934
2157
2158         Reviewed by Chris Dumez.
2159
2160         Update script to run WPT server  according updated WPT tools.
2161
2162         * Scripts/webkitpy/layout_tests/servers/web_platform_test_launcher.py:
2163         (main):
2164         * Scripts/webkitpy/layout_tests/servers/web_platform_test_server.py:
2165         (base_http_url):
2166         (base_https_url):
2167
2168 2018-03-23  Sihui Liu  <sihui_liu@apple.com>
2169
2170         Local storage getItem() for an empty string returned UNDEFINED value.
2171         https://bugs.webkit.org/show_bug.cgi?id=69138
2172         <rdar://problem/13410974>
2173
2174         Reviewed by Brady Eidson.
2175
2176         Add API test coverage.
2177
2178         * TestWebKitAPI/TestWebKitAPI.xcodeproj/project.pbxproj:
2179         * TestWebKitAPI/Tests/WebKitCocoa/LocalStoragePersistence.mm: Added.
2180         (-[LocalStorageMessageHandler userContentController:didReceiveScriptMessage:]):
2181         (TEST):
2182         * TestWebKitAPI/Tests/WebKitCocoa/localstorage-empty-string-value.html: Added.
2183
2184 2018-03-23  Chris Dumez  <cdumez@apple.com>
2185
2186         Promptly terminate service worker processes when they are no longer needed
2187         https://bugs.webkit.org/show_bug.cgi?id=183873
2188         <rdar://problem/38676995>
2189
2190         Reviewed by Youenn Fablet.
2191
2192         Add API test coverage.
2193
2194         * TestWebKitAPI/Tests/WebKitCocoa/ServiceWorkerBasic.mm:
2195
2196 2018-03-23  Brady Eidson  <beidson@apple.com>
2197
2198         Go to back/forward list items after a process-swapped navigation.
2199         <rdar://problem/38690544> and https://bugs.webkit.org/show_bug.cgi?id=183920
2200
2201         Reviewed by Andy Estes.
2202
2203         Add a new API test that does some process-swapping navigations (including a back navigation)
2204         and verifies the state of the engine afterwards.
2205
2206         * TestWebKitAPI/Tests/WebKitCocoa/ProcessSwapOnNavigation.mm:
2207         (-[PSONMessageHandler userContentController:didReceiveScriptMessage:]):
2208         (-[PSONScheme initWithBytes:]):
2209         (-[PSONScheme webView:startURLSchemeTask:]):
2210         (log):
2211         (function):
2212         (TEST): Deleted.
2213
2214 2018-03-23  Brendan McLoughlin  <brendan@bocoup.com>
2215
2216         Lint web-platform-tests changes with the wpt linter before exporting
2217         https://bugs.webkit.org/show_bug.cgi?id=183796
2218
2219         Reviewed by Youenn Fablet.
2220
2221         * Scripts/webkitpy/w3c/test_exporter.py:
2222         (TestExporter.__init__):
2223         (TestExporter.do_export):
2224         * Scripts/webkitpy/w3c/test_exporter_unittest.py:
2225         (TestExporterTest.MockWPTLinter):
2226         (TestExporterTest.MockWPTLinter.__init__):
2227         (TestExporterTest.MockWPTLinter.lint):
2228         (TestExporterTest.test_export):
2229         (TestExporterTest.test_export_with_specific_branch):
2230         * Scripts/webkitpy/w3c/wpt_linter.py: Added.
2231         (WPTLinter):
2232         (WPTLinter.__init__):
2233         (WPTLinter.lint):
2234
2235 2018-03-23  David Kilzer  <ddkilzer@apple.com>
2236
2237         Stop using dispatch_set_target_queue()
2238         <https://webkit.org/b/183908>
2239         <rdar://problem/33553533>
2240
2241         Reviewed by Daniel Bates.
2242
2243         * Scripts/webkitpy/style/checkers/cpp.py:
2244         (check_language): Add check for use of
2245         dispatch_set_target_queue().
2246         (CppChecker): Add 'runtime/dispatch_set_target_queue' category.
2247         * Scripts/webkitpy/style/checkers/cpp_unittest.py:
2248         (CppStyleTest): Add test.
2249
2250 2018-03-23  Youenn Fablet  <youenn@apple.com>
2251
2252         Allow fully whitelisted plug-ins to match non HTTP URLs
2253         https://bugs.webkit.org/show_bug.cgi?id=183938
2254         rdar://problem/38534312
2255
2256         Reviewed by Chris Dumez.
2257
2258         * TestWebKitAPI/Tests/WebCore/URL.cpp:
2259         (TestWebKitAPI::TEST_F):
2260
2261 2018-03-23  JF Bastien  <jfbastien@apple.com>
2262
2263         dump-class-layout is just wrong
2264         https://bugs.webkit.org/show_bug.cgi?id=183939
2265
2266         Reviewed by Yusuke Suzuki.
2267
2268         Looks like r229291 contained a half-renamed variable in it, so it
2269         just doesn't work.
2270
2271         * Scripts/dump-class-layout:
2272         (verify_type):
2273         (verify_type_recursive):
2274
2275 2018-03-23  Carlos Garcia Campos  <cgarcia@igalia.com>
2276
2277         Unreviewed. Run JSC GLib API tests in GTK+ and WPE bots.
2278
2279         The test runners were still considering the JSC tests as google tests, but they are now GLib tests.
2280
2281         * Scripts/run-gtk-tests:
2282         (GtkTestRunner.is_glib_test):
2283         (GtkTestRunner.is_google_test):
2284         * Scripts/run-wpe-tests:
2285         (WPETestRunner.is_glib_test):
2286         (WPETestRunner.is_google_test):
2287
2288 2018-03-22  Daniel Bates  <dabates@apple.com>
2289
2290         Expose SchemeRegistry::registerAsCanDisplayOnlyIfCanRequest() as WebKit SPI
2291         https://bugs.webkit.org/show_bug.cgi?id=183907
2292         <rdar://problem/38759127>
2293
2294         Reviewed by Alex Christensen.
2295
2296         Adds unit tests for the modern Objective-C and C SPI to ensure we do not regress it.
2297
2298         We use the deprecated -[WKBrowsingContextController registerSchemeForCustomProtocol:]
2299         in both the modern Objective-C API and C API tests to share code. Once we no longer
2300         need to support the C API we should remove the tests and transition the modern Objective-
2301         C tests to use -[WKWebViewConfiguration setURLSchemeHandler:forURLScheme:].
2302
2303         * TestWebKitAPI/TestWebKitAPI.xcodeproj/project.pbxproj:
2304         * TestWebKitAPI/Tests/WebKitCocoa/SchemeRegistry.mm: Added.
2305         (+[EchoURLProtocol canInitWithRequest:]):
2306         (+[EchoURLProtocol canonicalRequestForRequest:]):
2307         (+[EchoURLProtocol requestIsCacheEquivalent:toRequest:]):
2308         (-[EchoURLProtocol startLoading]):
2309         (-[EchoURLProtocol stopLoading]):
2310         (-[WKContextRegisterURLSchemeAsCanDisplayOnlyIfCanRequestLoadDelegate browsingContextController:didFailProvisionalLoadWithError:]):
2311         (-[WKContextRegisterURLSchemeAsCanDisplayOnlyIfCanRequestLoadDelegate browsingContextControllerDidFinishLoad:]):
2312         (TestWebKitAPI::TEST):
2313
2314 2018-03-22  Adrian Perez de Castro  <aperez@igalia.com>
2315
2316         [WPE] Enable WOFF2 support
2317         https://bugs.webkit.org/show_bug.cgi?id=178158
2318
2319         Reviewed by Frédéric Wang.
2320
2321         * wpe/jhbuild.modules: Add "brotli" and "woff2" to the JHBuild moduleset.
2322
2323 2018-03-22  Brendan McLoughlin  <brendan@bocoup.com>
2324
2325         Do not export web-platform-test files generated by the wpt importer to assist the webkit test runner
2326         https://bugs.webkit.org/show_bug.cgi?id=183916
2327
2328         Reviewed by Youenn Fablet.
2329
2330         * Scripts/webkitpy/w3c/test_exporter.py:
2331         (TestExporter.create_branch_with_patch):
2332         * Scripts/webkitpy/w3c/test_exporter_unittest.py:
2333         (TestExporterTest.test_export):
2334         (TestExporterTest.test_export_with_specific_branch):
2335
2336 2018-03-22  Tim Horton  <timothy_horton@apple.com>
2337
2338         Improve readability of WebCore's OTHER_LDFLAGS
2339         https://bugs.webkit.org/show_bug.cgi?id=183909
2340         <rdar://problem/38760992>
2341
2342         Reviewed by Dan Bernstein.
2343
2344         * TestWebKitAPI/Configurations/Base.xcconfig:
2345         * TestWebKitAPI/Configurations/FeatureDefines.xcconfig:
2346
2347 2018-03-21  Fujii Hironori  <Hironori.Fujii@sony.com>
2348
2349         Unreviewed. Marked myself as a committer.
2350
2351         * Scripts/webkitpy/common/config/contributors.json:
2352
2353 2018-03-21  Yoshiaki Jitsukawa  <yoshiaki.jitsukawa@sony.com>
2354
2355         Unreviewed, make the email address of Yoshiaki Jitsukawa all lower case.
2356
2357         * Scripts/webkitpy/common/config/contributors.json:
2358
2359 2018-03-21  Yoshiaki Jitsukawa  <Yoshiaki.Jitsukawa@sony.com>
2360
2361         Unreviewed, add myself as a WebKit committer.
2362
2363         * Scripts/webkitpy/common/config/contributors.json:
2364
2365 2018-03-21  Chris Dumez  <cdumez@apple.com>
2366
2367         ScrollViewInsetTests.RestoreInitialContentOffsetAfterCrash API test is failing with async delegates
2368         https://bugs.webkit.org/show_bug.cgi?id=183787
2369
2370         Reviewed by Wenson Hsieh.
2371
2372         Add API test coverage.
2373
2374         * TestWebKitAPI/Tests/ios/ScrollViewInsetTests.mm:
2375         (-[AsyncPolicyDelegateForInsetTest webView:didFinishNavigation:]):
2376         (-[AsyncPolicyDelegateForInsetTest webView:decidePolicyForNavigationAction:decisionHandler:]):
2377         (-[AsyncPolicyDelegateForInsetTest webView:decidePolicyForNavigationResponse:decisionHandler:]):
2378         (-[AsyncPolicyDelegateForInsetTest webViewWebContentProcessDidTerminate:]):
2379         (TestWebKitAPI::TEST):
2380
2381 2018-03-21  Chris Dumez  <cdumez@apple.com>
2382
2383         Fix DataInteractionTests.InjectedBundleAllowPerformTwoStepDrop to use synchronouslyLoadTestPageNamed
2384         https://bugs.webkit.org/show_bug.cgi?id=183858
2385
2386         Reviewed by Wenson Hsieh.
2387
2388         Fix DataInteractionTests.InjectedBundleAllowPerformTwoStepDrop to use synchronouslyLoadTestPageNamed
2389         instead of loadTestPageNamed because injecting script.
2390
2391         * TestWebKitAPI/Tests/ios/DataInteractionTests.mm:
2392         (TestWebKitAPI::TEST):
2393
2394 2018-03-21  Zalan Bujtas  <zalan@apple.com>
2395
2396         [LayoutReloaded] Enable formatting state for InlineFormattingContext
2397         https://bugs.webkit.org/show_bug.cgi?id=183853
2398
2399         Reviewed by Antti Koivisto.
2400
2401         * LayoutReloaded/FormattingContext/BlockFormatting/BlockFormattingContext.js:
2402         (BlockFormattingContext.prototype._contentHeight):
2403         * LayoutReloaded/FormattingContext/InlineFormatting/InlineFormattingContext.js:
2404         (InlineFormattingContext):
2405         (InlineFormattingContext.prototype.layout):
2406         (InlineFormattingContext.prototype._createNewLine):
2407         * LayoutReloaded/LayoutState.js:
2408         (LayoutState.prototype.formattingState):
2409         * LayoutReloaded/README.md:
2410         * LayoutReloaded/Utils.js:
2411         (Utils._dumpTree):
2412         * LayoutReloaded/test/index.html:
2413         * LayoutReloaded/test/simple-inline-text.html: Added.
2414
2415 2018-03-21  Zalan Bujtas  <zalan@apple.com>
2416
2417         [LayoutReloaded] Move inline lines to InlineFormattingState.
2418         https://bugs.webkit.org/show_bug.cgi?id=183814
2419
2420         Reviewed by Antti Koivisto.
2421
2422         InlineFormattingContext is not supposed to hold state.
2423
2424         * LayoutReloaded/FormattingContext/InlineFormatting/InlineFormattingContext.js:
2425         (InlineFormattingContext):
2426         (InlineFormattingContext.prototype._commitLine):
2427         (InlineFormattingContext.prototype._createNewLine):
2428         (InlineFormattingContext.prototype.lines): Deleted.
2429         (InlineFormattingContext.prototype._initializeLine): Deleted.
2430         * LayoutReloaded/FormattingState/InlineFormattingState.js:
2431         (InlineFormattingState):
2432         (InlineFormattingState.prototype.lines):
2433         (InlineFormattingState.prototype.appendLine):
2434
2435 2018-03-21  Ms2ger  <Ms2ger@igalia.com>
2436
2437         [WPE] Disable most of TestWebKitFaviconDatabase.
2438         https://bugs.webkit.org/show_bug.cgi?id=183813
2439
2440         Unreviewed test gardening.
2441
2442         The relevant APIs were mostly removed in r223953, making this test
2443         time out consistently.
2444
2445         * TestWebKitAPI/Tests/WebKitGLib/TestWebKitFaviconDatabase.cpp:
2446
2447 2018-03-21  Carlos Garcia Campos  <cgarcia@igalia.com>
2448
2449         [GTK][WPE] JSC bindings not introspectable
2450         https://bugs.webkit.org/show_bug.cgi?id=136989
2451
2452         Reviewed by Michael Catanzaro.
2453
2454         Use the new API instead of the deprecated one.
2455
2456         * MiniBrowser/gtk/main.c:
2457         (aboutDataScriptMessageReceivedCallback):
2458         * TestWebKitAPI/Tests/WebKitGLib/FrameTest.cpp:
2459         (WebKitFrameTest::testJavaScriptContext):
2460         * TestWebKitAPI/Tests/WebKitGLib/TestWebKitWebView.cpp:
2461         (testWebViewRunJavaScript):
2462         * TestWebKitAPI/Tests/WebKitGLib/WebExtensionTest.cpp:
2463         (consoleMessageSentCallback):
2464         (echoCallback):
2465         (windowObjectCleared):
2466         (methodCallCallback):
2467         * TestWebKitAPI/Tests/WebKitGLib/WebProcessTest.cpp:
2468         (runTest):
2469         (webProcessTestRunnerFinalize):
2470         (windowObjectClearedCallback):
2471         * TestWebKitAPI/glib/PlatformGTK.cmake:
2472         * TestWebKitAPI/glib/WebKitGLib/WebViewTest.cpp:
2473         (WebViewTest::javascriptResultToCString):
2474         (WebViewTest::javascriptResultToNumber):
2475         (WebViewTest::javascriptResultToBoolean):
2476         (WebViewTest::javascriptResultIsNull):
2477         (WebViewTest::javascriptResultIsUndefined):
2478
2479 2018-03-21  Carlos Garcia Campos  <cgarcia@igalia.com>
2480
2481         [GTK][WPE] Initial implementation of JavaScriptCore glib bindings
2482         https://bugs.webkit.org/show_bug.cgi?id=164061
2483
2484         Reviewed by Michael Catanzaro.
2485
2486         Add unit tests for the new API and generate the API documentation with generate-gtkdoc.
2487
2488         * Scripts/webkitpy/style/checker.py: Ignore some style errors in public GLib API headers.
2489         * TestWebKitAPI/PlatformGTK.cmake:
2490         * TestWebKitAPI/PlatformWPE.cmake:
2491         * TestWebKitAPI/Tests/JavaScriptCore/glib/TestJSC.cpp: Added.
2492         (LeakChecker::~LeakChecker):
2493         (LeakChecker::watch):
2494         (ExceptionHandler::ExceptionHandler):
2495         (ExceptionHandler::~ExceptionHandler):
2496         (ExceptionHandler::push):
2497         (ExceptionHandler::pop):
2498         (jscContextGarbageCollect):
2499         (testJSCBasic):
2500         (testJSCTypes):
2501         (foo):
2502         (callback):
2503         (doubleAndSetInResult):
2504         (sumFunction):
2505         (testJSCFunction):
2506         (testJSCObject):
2507         (fooCreate):
2508         (fooCreateWithFoo):
2509         (fooFree):
2510         (setFoo):
2511         (getFoo):
2512         (setSibling):
2513         (getSibling):
2514         (multiplyFoo):
2515         (getMultiplyFoo):
2516         (getMultiplyFooAsync):
2517         (bazCreate):
2518         (testJSCClass):
2519         (barCreate):
2520         (barFree):
2521         (setBar):
2522         (getBar):
2523         (testJSCPrototypes):
2524         (createError):
2525         (testJSCExceptions):
2526         (testJSCPromises):
2527         (fooFreeAndLog):
2528         (testJSCGarbageCollector):
2529         (testsJSCVirtualMachine):
2530         (testsJSCAutocleanups):
2531         (main):
2532         * gtk/generate-gtkdoc:
2533         (get_generator_for_config):
2534
2535 2018-03-20  Tim Horton  <timothy_horton@apple.com>
2536
2537         Enable the minimal simulator feature flag when appropriate
2538         https://bugs.webkit.org/show_bug.cgi?id=183807
2539
2540         Reviewed by Dan Bernstein.
2541
2542         * TestWebKitAPI/Configurations/FeatureDefines.xcconfig:
2543
2544 2018-03-20  Zalan Bujtas  <zalan@apple.com>
2545
2546         [LayoutReloaded] Disconnect Display.Box from Layout.Box
2547         https://bugs.webkit.org/show_bug.cgi?id=183805
2548
2549         Reviewed by Antti Koivisto.
2550
2551         Display.Box is only accessed through the FormattingState.
2552
2553         * LayoutReloaded/FormattingContext/BlockFormatting/BlockFormattingContext.js:
2554         (BlockFormattingContext):
2555         (BlockFormattingContext.prototype.layout):
2556         (BlockFormattingContext.prototype._placeInFlowPositionedChildren):
2557         (BlockFormattingContext.prototype._layoutOutOfFlowDescendants):
2558         (BlockFormattingContext.prototype._adjustBottomWithFIXME):
2559         (BlockFormattingContext.prototype._computeOutOfFlowPosition):
2560         * LayoutReloaded/FormattingContext/FormattingContext.js:
2561         (FormattingContext):
2562         (FormattingContext.prototype.formattingRoot):
2563         (FormattingContext.prototype.formattingState):
2564         (FormattingContext.prototype.layoutState):
2565         (FormattingContext.prototype._toAbsolutePosition):
2566         (FormattingContext.prototype._toRootAbsolutePosition):
2567         (FormattingContext.prototype._addToLayoutQueue):
2568         (FormattingContext.prototype.displayBox):
2569         (FormattingContext.prototype._outOfFlowDescendants):
2570         (FormattingContext.prototype.rootContainer): Deleted.
2571         (FormattingContext.prototype.layoutContext): Deleted.
2572         * LayoutReloaded/FormattingContext/InlineFormatting/InlineFormattingContext.js:
2573         (InlineFormattingContext):
2574         (InlineFormattingContext.prototype.layout):
2575         (InlineFormattingContext.prototype._initializeLine):
2576         * LayoutReloaded/FormattingState/BlockFormattingState.js:
2577         (BlockFormattingState):
2578         * LayoutReloaded/FormattingState/FormattingState.js:
2579         (FormattingState):
2580         (FormattingState.prototype.formattingRoot):
2581         (FormattingState.prototype.layoutState):
2582         (FormattingState.prototype.createDisplayBox):
2583         (FormattingState.prototype.displayBoxMap):
2584         (FormattingState.prototype.displayBox):
2585         (FormattingState.prototype.layoutContext): Deleted.
2586         * LayoutReloaded/FormattingState/InlineFormattingState.js:
2587         (InlineFormattingState):
2588         * LayoutReloaded/Layout.js:
2589         (layout):
2590         * LayoutReloaded/LayoutReloaded.xcworkspace/contents.xcworkspacedata:
2591         * LayoutReloaded/LayoutState.js: Renamed from Tools/LayoutReloaded/LayoutContext.js.
2592         (LayoutState):
2593         (LayoutState.prototype.layout):
2594         (LayoutState.prototype._createFormattingState):
2595         (LayoutState.prototype.formattingStates):
2596         (LayoutState.prototype.initialDisplayBox):
2597         * LayoutReloaded/LayoutTree/Box.js:
2598         (Layout.Box.prototype.isOutOfFlowPositioned):
2599         (Layout.Box.prototype.containingBlock):
2600         (Layout.Box.prototype.setDisplayBox): Deleted.
2601         (Layout.Box.prototype.displayBox): Deleted.
2602         * LayoutReloaded/Utils.js:
2603         (Utils.layoutTreeDump):
2604         (Utils._findDisplayBox):
2605         (Utils._dumpBox):
2606         (Utils._dumpTree):
2607         * LayoutReloaded/misc/headers/BlockFormattingContext.h:
2608         * LayoutReloaded/misc/headers/FormattingContext.h:
2609         * LayoutReloaded/misc/headers/LayoutContext.h:
2610         * LayoutReloaded/test/index.html:
2611
2612 2018-03-19  Ryosuke Niwa  <rniwa@webkit.org>
2613
2614         Expose content attributes on _WKLinkIconParameters
2615         https://bugs.webkit.org/show_bug.cgi?id=183768
2616
2617         Reviewed by Alex Christensen.
2618
2619         Expanded the basic test case for _WKLinkIconParameters's properties including newly added "attributes".
2620
2621         * TestWebKitAPI/Tests/WebKitCocoa/IconLoadingDelegate.mm:
2622         (IconLoading.DefaultFavicon):
2623
2624 2018-03-20  Wenson Hsieh  <wenson_hsieh@apple.com>
2625
2626         Add AssistedNodeInformation plumbing for form control placeholder text and label text
2627         https://bugs.webkit.org/show_bug.cgi?id=183802
2628         <rdar://problem/38686273>
2629
2630         Reviewed by Tim Horton.
2631
2632         Adds a new API test to exercise new placeholder and label SPI on _WKFocusedFormElement.
2633
2634         * TestWebKitAPI/Tests/WebKitCocoa/_WKInputDelegate.mm:
2635         (-[InputDelegate _webView:focusShouldStartInputSession:]):
2636         (-[InputDelegate shouldStartInputSessionHandler]):
2637         (-[InputDelegate setShouldStartInputSessionHandler:]):
2638         (TEST):
2639         (-[FormSubmissionDelegate webView:startURLSchemeTask:]): Deleted.
2640         (-[FormSubmissionDelegate webView:stopURLSchemeTask:]): Deleted.
2641         (-[FormSubmissionDelegate _webView:willSubmitFormValues:userObject:submissionHandler:]): Deleted.
2642
2643 2018-03-20  Basuke Suzuki  <Basuke.Suzuki@sony.com>
2644
2645         [WinCairo] Fix to run-webkit-httpd from native Windows.
2646         https://bugs.webkit.org/show_bug.cgi?id=183605
2647
2648         Reviewed by Daniel Bates.
2649
2650         This fix is to run Apache HTTP server from native Windows. The environment is different
2651         from cygwin, which is used for AppleWin, in following points:
2652         - A temporary file behaves differently. It cannot reopen by anybody when indicated as 
2653           delete on close. To solve this situation, filesystem.mkdtemp() is used instead.
2654         - It's not unix so that `tail` command is not available. Replaced with python equivalent
2655           function.
2656
2657         * Scripts/webkitpy/common/system/filesystem.py:
2658         (FileSystem.mkdtemp.TemporaryDirectory.__init__):
2659         (FileSystem.mkdtemp.TemporaryDirectory.__exit__): The existing contents would be deleted.
2660         (FileSystem.mkdtemp):
2661         * Scripts/webkitpy/layout_tests/servers/run_webkit_httpd.py:
2662         (parse_args):
2663         (run_server):
2664         (run_server_with_log_file):
2665         (follow_file):
2666
2667 2018-03-20  Brady Eidson  <beidson@apple.com>
2668
2669         First piece of process swapping on navigation.
2670         https://bugs.webkit.org/show_bug.cgi?id=183665
2671
2672         Reviewed by Andy Estes.
2673
2674         Expose the "swaps processes on navigation" setting in MiniBrowser UI for testing:
2675
2676         * MiniBrowser/mac/AppDelegate.m:
2677         (defaultConfiguration):
2678         * MiniBrowser/mac/SettingsController.h:
2679         * MiniBrowser/mac/SettingsController.m:
2680         (-[SettingsController _populateMenu]):
2681         (-[SettingsController validateMenuItem:]):
2682         (-[SettingsController processSwapOnNavigationEnabled]):
2683         (-[SettingsController toggleProcessSwapOnNavigation:]):
2684
2685         Makes sure the current behavior is tested:
2686         * TestWebKitAPI/TestWebKitAPI.xcodeproj/project.pbxproj:
2687         * TestWebKitAPI/Tests/WebKitCocoa/ProcessSwapOnNavigation.mm: Added.
2688         (-[PSONNavigationDelegate webView:didFinishNavigation:]):
2689         (-[PSONScheme webView:startURLSchemeTask:]):
2690         (-[PSONScheme webView:stopURLSchemeTask:]):
2691         (TEST):
2692
2693 2018-03-20  Chris Dumez  <cdumez@apple.com>
2694
2695         QuickLook.NavigationDelegate API test is failing on iOS with async policy delegates
2696         https://bugs.webkit.org/show_bug.cgi?id=183791
2697
2698         Reviewed by Alex Christensen.
2699
2700         Add API test coverage.
2701
2702         * TestWebKitAPI/Tests/WebKitCocoa/QuickLook.mm:
2703         (-[QuickLookAsyncNavigationDelegate webView:decidePolicyForNavigationResponse:decisionHandler:]):
2704         (-[QuickLookAsyncNavigationDelegate _webView:didStartLoadForQuickLookDocumentInMainFrameWithFileName:uti:]):
2705         (-[QuickLookAsyncNavigationDelegate _webView:didFinishLoadForQuickLookDocumentInMainFrame:]):
2706         (-[QuickLookAsyncNavigationDelegate webView:didFinishNavigation:]):
2707         (TEST):
2708
2709 2018-03-20  Tim Horton  <timothy_horton@apple.com>
2710
2711         Add and adopt WK_PLATFORM_NAME and adjust default feature defines
2712         https://bugs.webkit.org/show_bug.cgi?id=183758
2713         <rdar://problem/38017644>
2714
2715         Reviewed by Dan Bernstein.
2716
2717         * TestWebKitAPI/Configurations/FeatureDefines.xcconfig:
2718
2719 2018-03-20  Chris Dumez  <cdumez@apple.com>
2720
2721         Unreviewed, rolling out r229726 and r229763.
2722
2723         Caused some API test failures on iOS
2724
2725         Reverted changesets:
2726
2727         "Make policy decisions asynchronous"
2728         https://bugs.webkit.org/show_bug.cgi?id=180568
2729         https://trac.webkit.org/changeset/229726
2730
2731         "Rebaseline three webarchive tests for WK2 after r229726."
2732         https://bugs.webkit.org/show_bug.cgi?id=180568
2733         https://trac.webkit.org/changeset/229763
2734
2735 2018-03-20  Zalan Bujtas  <zalan@apple.com>
2736
2737         [LayoutReloaded] Move Display.Box handling from FormattingContext to FormattingState
2738         https://bugs.webkit.org/show_bug.cgi?id=183779
2739
2740         Reviewed by Antti Koivisto.
2741
2742         * LayoutReloaded/FormattingContext/BlockFormatting/BlockFormattingContext.js:
2743         (BlockFormattingContext.prototype._computeStaticPosition):
2744         (BlockFormattingContext.prototype._computeOutOfFlowWidth):
2745         (BlockFormattingContext.prototype._computeFloatingWidth):
2746         (BlockFormattingContext.prototype._computeInFlowWidth):
2747         (BlockFormattingContext.prototype._computeOutOfFlowHeight):
2748         (BlockFormattingContext.prototype._computeFloatingHeight):
2749         (BlockFormattingContext.prototype._computeInFlowHeight):
2750         (BlockFormattingContext.prototype._horizontalConstraint):
2751         (BlockFormattingContext.prototype._contentHeight):
2752         (BlockFormattingContext.prototype._adjustBottomWithFIXME):
2753         (BlockFormattingContext.prototype._computeInFlowPositionedPosition):
2754         (BlockFormattingContext.prototype._computeOutOfFlowPosition):
2755         * LayoutReloaded/FormattingContext/FloatingContext.js:
2756         (FloatingContext.prototype.computePosition):
2757         (FloatingContext.prototype._positionForClear):
2758         (FloatingContext.prototype._computePositionToAvoidIntrudingFloats):
2759         (FloatingContext.prototype._availableSpace):
2760         (FloatingContext.prototype._adjustedFloatingPosition):
2761         * LayoutReloaded/FormattingContext/FormattingContext.js:
2762         (FormattingContext):
2763         (FormattingContext.prototype.absoluteMarginBox):
2764         (FormattingContext.prototype.absoluteBorderBox):
2765         (FormattingContext.prototype.absolutePaddingBox):
2766         (FormattingContext.prototype.absoluteContentBox):
2767         (FormattingContext.prototype._toAbsolutePosition):
2768         (FormattingContext.prototype._toRootAbsolutePosition):
2769         (FormattingContext.prototype._addToLayoutQueue):
2770         (FormattingContext.prototype.displayBox):
2771         (FormattingContext.prototype._createDisplayBox): Deleted.
2772         (FormattingContext.prototype.toDisplayBox): Deleted.
2773         (FormattingContext.prototype.toLayoutBox): Deleted.
2774         * LayoutReloaded/FormattingState/FormattingState.js:
2775         (FormattingState):
2776         (FormattingState.prototype.createDisplayBox):
2777         (FormattingState.prototype.displayBox):
2778
2779 2018-03-20  Zalan Bujtas  <zalan@apple.com>
2780
2781         [LayoutReloaded] Introduce FormattingState (Block/Inline/etc)
2782         https://bugs.webkit.org/show_bug.cgi?id=183777
2783
2784         Reviewed by Antti Koivisto.
2785
2786         This is in preparation for moving out states from the formatting contexts.
2787
2788         * LayoutReloaded/FormattingContext/BlockFormatting/BlockFormattingContext.js:
2789         (BlockFormattingContext):
2790         * LayoutReloaded/FormattingContext/FormattingContext.js:
2791         (FormattingContext):
2792         (FormattingContext.prototype.layoutState):
2793         (FormattingContext.prototype.layoutContext):
2794         (FormattingContext.prototype.layout):
2795         * LayoutReloaded/FormattingContext/InlineFormatting/InlineFormattingContext.js:
2796         (InlineFormattingContext):
2797         * LayoutReloaded/FormattingState/BlockFormattingState.js: Copied from Tools/LayoutReloaded/LayoutContext.js.
2798         (BlockFormattingState):
2799         * LayoutReloaded/FormattingState/FormattingState.js: Copied from Tools/LayoutReloaded/LayoutContext.js.
2800         (FormattingState):
2801         (FormattingState.prototype.formattingContext):
2802         (FormattingState.prototype.layoutContext):
2803         (FormattingState.prototype._setFormattingContext):
2804         * LayoutReloaded/FormattingState/InlineFormattingState.js: Copied from Tools/LayoutReloaded/LayoutContext.js.
2805         (InlineFormattingState):
2806         * LayoutReloaded/LayoutContext.js:
2807         (LayoutContext):
2808         (LayoutContext.prototype.layout):
2809         (LayoutContext.prototype._createFormattingState):
2810         (LayoutContext.prototype._createFormattingContext): Deleted.
2811         * LayoutReloaded/LayoutReloaded.xcworkspace/contents.xcworkspacedata:
2812         * LayoutReloaded/test/index.html:
2813
2814 2018-03-19  Zalan Bujtas  <zalan@apple.com>
2815
2816         [LayoutReloaded] Layout.Box should not create the formatting context.
2817         https://bugs.webkit.org/show_bug.cgi?id=183766
2818
2819         Reviewed by Antti Koivisto.
2820
2821         Since the formattingContext's lifetime is tied to the layout, the LayoutContext
2822         should construct it instead.
2823
2824         * LayoutReloaded/FormattingContext/BlockFormatting/BlockFormattingContext.js:
2825         (BlockFormattingContext):
2826         (BlockFormattingContext.prototype.layout):
2827         (BlockFormattingContext.prototype._layoutOutOfFlowDescendants):
2828         (BlockFormattingContext.prototype._contentHeight):
2829         * LayoutReloaded/FormattingContext/FormattingContext.js:
2830         (FormattingContext):
2831         (FormattingContext.prototype.layoutContext):
2832         (FormattingContext.prototype.toDisplayBox):
2833         (FormattingContext.prototype._outOfFlowDescendants):
2834         * LayoutReloaded/FormattingContext/InlineFormatting/InlineFormattingContext.js:
2835         (InlineFormattingContext):
2836         (InlineFormattingContext.prototype.layout):
2837         * LayoutReloaded/Layout.js:
2838         (layout):
2839         * LayoutReloaded/LayoutContext.js:
2840         (LayoutContext.prototype.layout):
2841         (LayoutContext.prototype._createFormattingContext):
2842         (LayoutContext):
2843         (LayoutContext.prototype.layoutFormattingContext): Deleted.
2844         * LayoutReloaded/LayoutTree/Box.js:
2845         (Layout.Box):
2846         (Layout.Box.prototype.establishedFormattingContext): Deleted.
2847         * LayoutReloaded/misc/headers/Box.h:
2848
2849 2018-03-19  Chris Dumez  <cdumez@apple.com>
2850
2851         Have one service worker process per security origin
2852         https://bugs.webkit.org/show_bug.cgi?id=183600
2853         <rdar://problem/35280128>
2854
2855         Reviewed by Brady Eidson.
2856
2857         Add API test coverage.
2858
2859         * TestWebKitAPI/Tests/WebKitCocoa/ServiceWorkerBasic.mm:
2860
2861 2018-03-19  Zalan Bujtas  <zalan@apple.com>
2862
2863         [LayoutReloaded] Remove border/padding/contentBox() functions from Layout.Box
2864         https://bugs.webkit.org/show_bug.cgi?id=183761
2865
2866         Reviewed by Antti Koivisto.
2867
2868         Display.Box has them.
2869
2870         * LayoutReloaded/FormattingContext/BlockFormatting/BlockFormattingContext.js:
2871         (BlockFormattingContext.prototype._computeOutOfFlowWidth):
2872         (BlockFormattingContext.prototype._computeOutOfFlowHeight):
2873         (BlockFormattingContext.prototype._horizontalConstraint):
2874         (BlockFormattingContext.prototype._contentHeight):
2875         (BlockFormattingContext.prototype._adjustBottomWithFIXME):
2876         (BlockFormattingContext.prototype._computeOutOfFlowPosition):
2877         * LayoutReloaded/FormattingContext/FloatingContext.js:
2878         (FloatingContext.prototype._availableSpace):
2879         * LayoutReloaded/FormattingContext/FormattingContext.js:
2880         (FormattingContext.prototype.absoluteBorderBox):
2881         (FormattingContext.prototype.absolutePaddingBox):
2882         (FormattingContext.prototype.absoluteContentBox):
2883         * LayoutReloaded/LayoutTree/Box.js:
2884         (Layout.Box.prototype.isDescendantOf):
2885         (Layout.Box):
2886         (Layout.Box.prototype.borderBox): Deleted.
2887         (Layout.Box.prototype.paddingBox): Deleted.
2888         (Layout.Box.prototype.contentBox): Deleted.
2889
2890 2018-03-19  Jiewen Tan  <jiewen_tan@apple.com>
2891
2892         Unreviewed, another quick fix for r229699
2893
2894         Restricts ENABLE_WEB_AUTHN to only macOS and iOS.
2895
2896         * TestWebKitAPI/Configurations/FeatureDefines.xcconfig:
2897         * TestWebKitAPI/Tests/ios/LocalAuthenticator.mm:
2898
2899 2018-03-19  Zalan Bujtas  <zalan@apple.com>
2900
2901         [LayoutReloaded] Move statically positioned absolute box positioning to _computeOutOfFlowPosition
2902         https://bugs.webkit.org/show_bug.cgi?id=183750
2903
2904         Reviewed by Antti Koivisto.
2905
2906         * LayoutReloaded/DisplayTree/Box.js:
2907         (Display.Box.prototype.setTop):
2908         (Display.Box.prototype.paddingBox):
2909         (Display.Box.prototype.contentBox):
2910         (Display.Box):
2911         * LayoutReloaded/FormattingContext/BlockFormatting/BlockFormattingContext.js:
2912         (BlockFormattingContext.prototype._computeStaticPosition):
2913         (BlockFormattingContext.prototype._layoutOutOfFlowDescendants):
2914         (BlockFormattingContext.prototype._computeOutOfFlowPosition):
2915         * LayoutReloaded/FormattingContext/FormattingContext.js:
2916         (FormattingContext.prototype.absoluteMarginBox):
2917         (FormattingContext.prototype.absoluteBorderBox):
2918         (FormattingContext.prototype.absolutePaddingBox):
2919         (FormattingContext.prototype.absoluteContentBox):
2920         (FormattingContext.prototype._toAbsolutePosition):
2921         (FormattingContext.prototype._toRootAbsolutePosition):
2922         (FormattingContext.prototype.toDisplayBox):
2923         * LayoutReloaded/LayoutTree/InitialBlockContainer.js:
2924         (Layout.InitialBlockContainer.prototype.establishesBlockFormattingContext):
2925         (Layout.InitialBlockContainer):
2926         (Layout.InitialBlockContainer.prototype.paddingBox): Deleted.
2927         (Layout.InitialBlockContainer.prototype.contentBox): Deleted.
2928         * LayoutReloaded/Utils.js:
2929         (Utils.isStaticallyPositioned):
2930
2931 2018-03-19  Chris Dumez  <cdumez@apple.com>
2932
2933         WebKit.WebsitePoliciesAutoplayQuirks API test times out with async policy delegates
2934         https://bugs.webkit.org/show_bug.cgi?id=183702
2935         <rdar://problem/38566060>
2936
2937         Reviewed by Alex Christensen.
2938
2939         Add API test coverage.
2940
2941         * TestWebKitAPI/Tests/WebKitCocoa/WebsitePolicies.mm:
2942         (-[AsyncAutoplayPoliciesDelegate webView:decidePolicyForNavigationAction:decisionHandler:]):
2943         (-[AsyncAutoplayPoliciesDelegate _webView:decidePolicyForNavigationAction:decisionHandler:]):
2944         (-[AsyncAutoplayPoliciesDelegate _webView:handleAutoplayEvent:withFlags:]):
2945         (TEST):
2946
2947 2018-03-19  Daniel Bates  <dabates@apple.com>
2948
2949         test-webkitpy no longer runs WebKit2 tests
2950         https://bugs.webkit.org/show_bug.cgi?id=183724
2951
2952         Reviewed by Alexey Proskuryakov.
2953
2954         The WebKit2 tests have seen been moved from Source/WebKit2/Scripts/webkit2 to Source/WebKit/Scripts/webkit.
2955
2956         * Scripts/webkitpy/test/main.py:
2957         (main):
2958
2959 2018-03-19  Daniel Bates  <dabates@apple.com>
2960
2961         Make run-webkit-app work for non-GUI apps
2962         https://bugs.webkit.org/show_bug.cgi?id=183701
2963
2964         Reviewed by Lucas Forschler.
2965
2966         Launch the app directly if it is an executable file. Otherwise, assume it is an app bundle
2967         and launch it using open(1) as we currently do.
2968
2969         Note that open(1) is meant for launching GUI apps. Standard output and standard error are
2970         not sent to the tty when using open(1) to launch a non-GUI app.
2971
2972         * Scripts/run-webkit-app: We make the assumption that 
2973         * Scripts/webkitdirs.pm:
2974             - Define and export constant DO_NOT_USE_OPEN_COMMAND.
2975
2976 2018-03-19  Daniel Bates  <dabates@apple.com>
2977
2978         run-webkit-app -g does not work
2979         https://bugs.webkit.org/show_bug.cgi?id=183699
2980
2981         Reviewed by Lucas Forschler.
2982
2983         Check for the optional command line argument -g/--guard-malloc before taking the
2984         first argument passed to be the path to the app to run.
2985
2986         * Scripts/run-webkit-app:
2987
2988 2018-03-18  Commit Queue  <commit-queue@webkit.org>
2989
2990         Unreviewed, rolling out r229689.
2991         https://bugs.webkit.org/show_bug.cgi?id=183735
2992
2993         Causes fast/loader/inner-iframe-loads-data-url-into-parent-on-
2994         unload-crash.html to fail with async delegates (Requested by
2995         cdumez_ on #webkit).
2996
2997         Reverted changeset:
2998
2999         "WebKit.WebsitePoliciesAutoplayQuirks API test times out with
3000         async policy delegates"
3001         https://bugs.webkit.org/show_bug.cgi?id=183702
3002         https://trac.webkit.org/changeset/229689
3003
3004 2018-03-18  Zalan Bujtas  <zalan@apple.com>
3005
3006         [LayoutReloaded] Remove left/right width/height getters from Layout.Box
3007         https://bugs.webkit.org/show_bug.cgi?id=183734
3008
3009         Reviewed by Antti Koivisto.
3010
3011         ...and use Display.Box instead.
3012
3013         * LayoutReloaded/DisplayTree/Box.js:
3014         (Display.Box.prototype.bottomRight):
3015         (Display.Box.prototype.size):
3016         (Display.Box.prototype.height):
3017         (Display.Box.prototype.width):
3018         * LayoutReloaded/FormattingContext/BlockFormatting/BlockFormattingContext.js:
3019         (BlockFormattingContext.prototype._computeStaticPosition):
3020         (BlockFormattingContext.prototype._adjustBottomWithFIXME):
3021         (BlockFormattingContext.prototype._computeInFlowPositionedPosition):
3022         (BlockFormattingContext.prototype._computeOutOfFlowPosition):
3023         * LayoutReloaded/FormattingContext/FloatingContext.js:
3024         (FloatingContext.prototype._positionForClear):
3025         (FloatingContext.prototype._computePositionToAvoidIntrudingFloats):
3026         (FloatingContext.prototype._adjustedFloatingPosition):
3027         * LayoutReloaded/FormattingContext/FormattingContext.js:
3028         (FormattingContext.prototype.absoluteMarginBox):
3029         (FormattingContext.prototype.absoluteBorderBox):
3030         (FormattingContext.prototype.absolutePaddingBox):
3031         (FormattingContext.prototype.absoluteContentBox):
3032         (FormattingContext.prototype._toAbsolutePosition):
3033         (FormattingContext.prototype._toRootAbsolutePosition):
3034         * LayoutReloaded/LayoutTree/Box.js:
3035         (Layout.Box.prototype.rect): Deleted.
3036         (Layout.Box.prototype.topLeft): Deleted.
3037         (Layout.Box.prototype.bottomRight): Deleted.
3038         * LayoutReloaded/Utils.js:
3039         (Utils._dumpBox):
3040         (Utils.mapToContainer): Deleted.
3041
3042 2018-03-18  Zalan Bujtas  <zalan@apple.com>
3043
3044         [LayoutReloaded] Remove left/right width/height setters from Layout.Box
3045         https://bugs.webkit.org/show_bug.cgi?id=183731
3046
3047         Reviewed by Antti Koivisto.
3048
3049         ...and use Display.Box instead.
3050
3051         * LayoutReloaded/FormattingContext/BlockFormatting/BlockFormattingContext.js:
3052         (BlockFormattingContext.prototype._computeStaticPosition):
3053         (BlockFormattingContext.prototype._computeOutOfFlowWidth):
3054         (BlockFormattingContext.prototype._computeFloatingWidth):
3055         (BlockFormattingContext.prototype._computeInFlowWidth):
3056         (BlockFormattingContext.prototype._computeOutOfFlowHeight):
3057         (BlockFormattingContext.prototype._computeFloatingHeight):
3058         (BlockFormattingContext.prototype._computeInFlowHeight):
3059         (BlockFormattingContext.prototype._computeInFlowPositionedPosition):
3060         (BlockFormattingContext.prototype._computeOutOfFlowPosition):
3061         * LayoutReloaded/FormattingContext/FloatingContext.js:
3062         (FloatingContext.prototype.computePosition):
3063         * LayoutReloaded/FormattingContext/FormattingContext.js:
3064         (FormattingContext.prototype._toDisplayBox):
3065         (FormattingContext.prototype._toLayoutBox):
3066         * LayoutReloaded/Layout.js:
3067         (layout):
3068         * LayoutReloaded/LayoutTree/Box.js:
3069         (Layout.Box.prototype.setTopLeft): Deleted.
3070         (Layout.Box.prototype.setSize): Deleted.
3071         (Layout.Box.prototype.setWidth): Deleted.
3072         (Layout.Box.prototype.setHeight): Deleted.
3073
3074 2018-03-18  Zalan Bujtas  <zalan@apple.com>
3075
3076         [LayoutReloaded] Collect out-of-flow positioned boxes for a given formatting context.
3077         https://bugs.webkit.org/show_bug.cgi?id=183730
3078
3079         Reviewed by Antti Koivisto.
3080
3081         Collect and layout out-of-flow positioned boxes as the final step of the formatting context layout.
3082
3083         * LayoutReloaded/FormattingContext/BlockFormatting/BlockFormattingContext.js:
3084         (BlockFormattingContext.prototype.layout):
3085         (BlockFormattingContext.prototype._placeInFlowPositionedChildren):
3086         (BlockFormattingContext.prototype._layoutOutOfFlowDescendants):
3087         (BlockFormattingContext.prototype._placePositionedDescendants): Deleted.
3088         (BlockFormattingContext.prototype._placeOutOfFlowDescendants): Deleted.
3089         * LayoutReloaded/FormattingContext/FormattingContext.js:
3090         (FormattingContext.prototype._toAbsolutePosition):
3091         (FormattingContext.prototype._outOfFlowDescendants):
3092         (FormattingContext):
3093         * LayoutReloaded/LayoutTree/Box.js:
3094         (Layout.Box.prototype.nextInFlowOrFloatSibling):
3095         (Layout.Box.prototype.isDescendantOf):
3096         * LayoutReloaded/LayoutTree/Container.js:
3097         (Layout.Container.prototype.firstInFlowOrFloatChild):
3098         (Layout.Container.prototype.hasInFlowOrFloatChild):
3099         (Layout.Container.prototype.outOfFlowDescendants):
3100         (Layout.Container):
3101         * LayoutReloaded/Utils.js:
3102         (Utils.isDescendantOf): Deleted.
3103         (Utils.collectOutOfFlowDescendants): Deleted.
3104
3105 2018-03-17  Jiewen Tan  <jiewen_tan@apple.com>
3106
3107         [WebAuthN] Implement authenticatorMakeCredential
3108         https://bugs.webkit.org/show_bug.cgi?id=183527
3109         <rdar://problem/35275886>
3110
3111         Reviewed by Brent Fulgham.
3112
3113         * TestWebKitAPI/TestWebKitAPI.xcodeproj/project.pbxproj:
3114         * TestWebKitAPI/Tests/ios/LocalAuthenticator.mm: Added.
3115         (TestWebKitAPI::getTestKey):
3116         (TestWebKitAPI::cleanUpKeychain):
3117         (TestWebKitAPI::LACantEvaluatePolicySwizzler::LACantEvaluatePolicySwizzler):
3118         (TestWebKitAPI::LACantEvaluatePolicySwizzler::cantEvaluatePolicy):
3119         (TestWebKitAPI::LACanEvaluatePolicySwizzler::LACanEvaluatePolicySwizzler):
3120         (TestWebKitAPI::LACanEvaluatePolicySwizzler::canEvaluatePolicy):
3121         (TestWebKitAPI::LAEvaluatePolicyFailedSwizzler::LAEvaluatePolicyFailedSwizzler):
3122         (TestWebKitAPI::LAEvaluatePolicyFailedSwizzler::evaluatePolicyFailed):
3123         (TestWebKitAPI::LAEvaluatePolicyPassedSwizzler::LAEvaluatePolicyPassedSwizzler):
3124         (TestWebKitAPI::LAEvaluatePolicyPassedSwizzler::evaluatePolicyPassed):
3125         (TestWebKitAPI::TestLocalAuthenticator::setFailureFlag):
3126         (TestWebKitAPI::TEST):
3127
3128 2018-03-17  Zalan Bujtas  <zalan@apple.com>
3129
3130         [LayoutReloaded] BlockFormattingContext::placePositionedDescendants takes care of both in- and out-of-flow placement
3131         https://bugs.webkit.org/show_bug.cgi?id=183727
3132
3133         Reviewed by Antti Koivisto.
3134
3135         * LayoutReloaded/FormattingContext/BlockFormatting/BlockFormattingContext.js:
3136         (BlockFormattingContext.prototype.layout):
3137         (BlockFormattingContext.prototype._placePositionedDescendants):
3138         (BlockFormattingContext.prototype._placeInFlowPositionedChildren):
3139         (BlockFormattingContext.prototype._placeOutOfFlowDescendants):
3140         * LayoutReloaded/test/absolute-position-when-containing-block-is-not-in-the-formatting-context.html: Added.
3141         * LayoutReloaded/test/absolute-position-when-containing-block-is-not-in-the-formatting-context2.html: Added.
3142         * LayoutReloaded/test/index.html:
3143         * LayoutReloaded/test/relative-position-when-containing-block-is-not-in-the-formatting-context.html: Added.
3144
3145 2018-03-17  Zalan Bujtas  <zalan@apple.com>
3146
3147         [LayoutReloaded] Ensure that positioning happens within the formatting context
3148         https://bugs.webkit.org/show_bug.cgi?id=183722
3149
3150         Reviewed by Antti Koivisto.
3151
3152         All sizing and positioning need to happen in the formatting context that the box lives in
3153         including the final position of in- and out-of-flow descendants.
3154
3155         * LayoutReloaded/FormattingContext/BlockFormatting/BlockFormattingContext.js:
3156         (BlockFormattingContext.prototype.layout):
3157         (BlockFormattingContext.prototype._placeInFlowPositionedChildren):
3158         * LayoutReloaded/LayoutTree/Box.js:
3159         (Layout.Box.prototype.establishesBlockFormattingContext):
3160         (Layout.Box.prototype.isPositioned):
3161         (Layout.Box.prototype.isRelativelyPositioned):
3162         (Layout.Box.prototype.isAbsolutelyPositioned):
3163         (Layout.Box.prototype.isOutOfFlowPositioned):
3164         (Layout.Box.prototype.containingBlock):
3165         (Layout.Box.prototype.isRelativePositioned): Deleted.
3166         (Layout.Box.prototype.isAbsolutePositioned): Deleted.
3167         * LayoutReloaded/Utils.js:
3168         (Utils.isRelativelyPositioned):
3169         (Utils.isAbsolutelyPositioned):
3170         (Utils.isRelativePositioned): Deleted.
3171         (Utils.isAbsolutePositioned): Deleted.
3172         * LayoutReloaded/misc/headers/Box.h:
3173
3174 2018-03-16  Wenson Hsieh  <wenson_hsieh@apple.com>
3175
3176         Unreviewed, rolling out r229688.
3177
3178         There's a solution that doesn't require this SPI.
3179
3180         Reverted changeset:
3181
3182         "Add SPI to expose width and height anchors for WKWebView's
3183         content view"
3184         https://bugs.webkit.org/show_bug.cgi?id=183711
3185         https://trac.webkit.org/changeset/229688
3186
3187 2018-03-16  Zalan Bujtas  <zalan@apple.com>
3188
3189         [LayoutReloaded] Move move functions to the base class from BlockFormattingContext
3190         https://bugs.webkit.org/show_bug.cgi?id=183719
3191
3192         Reviewed by Antti Koivisto.
3193
3194         * LayoutReloaded/FormattingContext/BlockFormatting/BlockFormattingContext.js:
3195         (BlockFormattingContext):
3196         (BlockFormattingContext.prototype.layout):
3197         (BlockFormattingContext.prototype._shrinkToFitWidth):
3198         (BlockFormattingContext.prototype._toAbsolutePosition): Deleted.
3199         (BlockFormattingContext.prototype._needsLayout): Deleted.
3200         (BlockFormattingContext.prototype._addToLayoutQueue): Deleted.
3201         (BlockFormattingContext.prototype._nextInLayoutQueue): Deleted.
3202         (BlockFormattingContext.prototype._removeFromLayoutQueue): Deleted.
3203         (BlockFormattingContext.prototype._createDisplayBox): Deleted.
3204         (BlockFormattingContext.prototype._toDisplayBox): Deleted.
3205         (BlockFormattingContext.prototype._toLayoutBox): Deleted.
3206         * LayoutReloaded/FormattingContext/FormattingContext.js:
3207         (FormattingContext):
3208         (FormattingContext.prototype._toAbsolutePosition):
3209         (FormattingContext.prototype._descendantNeedsLayout):
3210         (FormattingContext.prototype._addToLayoutQueue):
3211         (FormattingContext.prototype._nextInLayoutQueue):
3212         (FormattingContext.prototype._removeFromLayoutQueue):
3213         (FormattingContext.prototype._createDisplayBox):
3214         (FormattingContext.prototype._toDisplayBox):
3215         (FormattingContext.prototype._toLayoutBox):
3216         * LayoutReloaded/FormattingContext/InlineFormatting/InlineFormattingContext.js:
3217         (InlineFormattingContext.prototype.layout):
3218
3219 2018-03-16  Chris Dumez  <cdumez@apple.com>
3220
3221         WebKit.WebsitePoliciesAutoplayQuirks API test times out with async policy delegates
3222         https://bugs.webkit.org/show_bug.cgi?id=183702
3223
3224         Reviewed by Alex Christensen.
3225
3226         Add API test coverage.
3227
3228         * TestWebKitAPI/Tests/WebKitCocoa/WebsitePolicies.mm:
3229         (-[AsyncAutoplayPoliciesDelegate webView:decidePolicyForNavigationAction:decisionHandler:]):
3230         (-[AsyncAutoplayPoliciesDelegate _webView:decidePolicyForNavigationAction:decisionHandler:]):
3231         (-[AsyncAutoplayPoliciesDelegate _webView:handleAutoplayEvent:withFlags:]):
3232         (TEST):
3233
3234 2018-03-16  Wenson Hsieh  <wenson_hsieh@apple.com>
3235
3236         Add SPI to expose width and height anchors for WKWebView's content view
3237         https://bugs.webkit.org/show_bug.cgi?id=183711
3238         <rdar://problem/38562899>
3239
3240         Reviewed by Tim Horton.
3241
3242         Adds an API test exercising the new SPI.
3243
3244         * TestWebKitAPI/Tests/WebKitCocoa/AutoLayoutIntegration.mm:
3245         (checkCGRect):
3246         (TEST):
3247
3248 2018-03-16  Chris Dumez  <cdumez@apple.com>
3249
3250         WebKit.RestoreSessionStateContainingScrollRestorationDefault API test is failing with async policy delegates
3251         https://bugs.webkit.org/show_bug.cgi?id=183679
3252
3253         Reviewed by Alex Christensen.
3254
3255         Add API test coverage.
3256
3257         * TestWebKitAPI/Tests/WebKit/RestoreSessionState.cpp:
3258         (TestWebKitAPI::decidePolicyForNavigationAction):
3259         (TestWebKitAPI::decidePolicyForResponse):
3260         (TestWebKitAPI::TEST):
3261
3262 2018-03-16  Zalan Bujtas  <zalan@apple.com>
3263
3264         [LayoutReloaded] Introduce Display.Box
3265         https://bugs.webkit.org/show_bug.cgi?id=183700
3266
3267         Reviewed by Antti Koivisto.
3268
3269         Display.Box objects will end up in the display(box) tree. Currently
3270         they are just hanging off of the Layout.Box objects.
3271
3272         * LayoutReloaded/DisplayTree/Box.js: Added.
3273         (Display.Box):
3274         (Display.Box.prototype.rect):
3275         (Display.Box.prototype.top):
3276         (Display.Box.prototype.left):
3277         (Display.Box.prototype.bottom):
3278         (Display.Box.prototype.right):
3279         (Display.Box.prototype.topLeft):
3280         (Display.Box.prototype.bottomRight):
3281         (Display.Box.prototype.setTopLeft):
3282         (Display.Box.prototype.setSize):
3283         (Display.Box.prototype.setWidth):
3284         (Display.Box.prototype.setHeight):
3285         (Display.Box.prototype.borderBox):
3286         (Display.Box.prototype.paddingBox):
3287         (Display.Box.prototype.contentBox):
3288         * LayoutReloaded/FormattingContext/BlockFormatting/BlockFormattingContext.js:
3289         (BlockFormattingContext):
3290         (BlockFormattingContext.prototype.layout):
3291         (BlockFormattingContext.prototype._toAbsolutePosition):
3292         (BlockFormattingContext.prototype._needsLayout):
3293         (BlockFormattingContext.prototype._addToLayoutQueue):
3294         (BlockFormattingContext.prototype._nextInLayoutQueue):
3295         (BlockFormattingContext.prototype._removeFromLayoutQueue):
3296         (BlockFormattingContext.prototype._createDisplayBox):
3297         (BlockFormattingContext.prototype._toDisplayBox):
3298         (BlockFormattingContext.prototype._toLayoutBox):
3299         * LayoutReloaded/Layout.js:
3300         (layout):
3301         * LayoutReloaded/LayoutReloaded.xcworkspace/contents.xcworkspacedata:
3302         * LayoutReloaded/LayoutTree/Box.js:
3303         (Layout.Box):
3304         (Layout.Box.prototype.setDisplayBox):
3305         (Layout.Box.prototype.displayBox):
3306         (Layout.Box.prototype.rect):
3307         (Layout.Box.prototype.setTopLeft):
3308         (Layout.Box.prototype.setSize):
3309         (Layout.Box.prototype.setWidth):
3310         (Layout.Box.prototype.setHeight):
3311         (Layout.Box.prototype.borderBox):
3312         (Layout.Box.prototype.paddingBox):
3313         (Layout.Box.prototype.contentBox):
3314         * LayoutReloaded/test/index.html:
3315
3316 2018-03-16  Chris Dumez  <cdumez@apple.com>
3317
3318         URLSchemeHandler.Basic API test fails with async policy delegates
3319         https://bugs.webkit.org/show_bug.cgi?id=183678
3320
3321         Reviewed by Alex Christensen.
3322
3323         Add API test coverage.
3324
3325         * TestWebKitAPI/Tests/WebKitCocoa/WKURLSchemeHandler-1.mm:
3326         (-[URLSchemeHandlerAsyncNavigationDelegate webView:decidePolicyForNavigationAction:decisionHandler:]):
3327         (-[URLSchemeHandlerAsyncNavigationDelegate webView:decidePolicyForNavigationResponse:decisionHandler:]):
3328         (TEST):
3329
3330 2018-03-16  Zalan Bujtas  <zalan@apple.com>
3331
3332         [LayoutReloaded] Utils.computed* functions should just take node instead of box.
3333         https://bugs.webkit.org/show_bug.cgi?id=183697
3334
3335         Reviewed by Antti Koivisto.
3336
3337         This is in preparation for introducing the display tree.
3338
3339         * LayoutReloaded/FormattingContext/BlockFormatting/BlockFormattingContext.js:
3340         (BlockFormattingContext.prototype._computeOutOfFlowWidth):
3341         (BlockFormattingContext.prototype._computeFloatingWidth):
3342         (BlockFormattingContext.prototype._computeInFlowWidth):
3343         (BlockFormattingContext.prototype._computeOutOfFlowHeight):
3344         (BlockFormattingContext.prototype._computeFloatingHeight):
3345         (BlockFormattingContext.prototype._computeInFlowHeight):
3346         (BlockFormattingContext.prototype._shrinkToFitWidth):
3347         * LayoutReloaded/FormattingContext/BlockFormatting/BlockMarginCollapse.js:
3348         (BlockMarginCollapse._nonCollapsedMarginTop):
3349         (BlockMarginCollapse._nonCollapsedMarginBottom):
3350         (BlockMarginCollapse._collapsedMarginTopFromFirstChild):
3351         (BlockMarginCollapse._collapsedMarginBottomFromLastChild):
3352         * LayoutReloaded/FormattingContext/FormattingContext.js:
3353         (FormattingContext.prototype.marginTop):
3354         (FormattingContext.prototype.marginLeft):
3355         (FormattingContext.prototype.marginBottom):
3356         (FormattingContext.prototype.marginRight):
3357         * LayoutReloaded/LayoutTree/Box.js:
3358         (Layout.Box.prototype.paddingBox):
3359         (Layout.Box.prototype.contentBox):
3360         (Layout.Box):
3361         * LayoutReloaded/Utils.js:
3362         (Utils.computedMarginTop):
3363         (Utils.computedMarginLeft):
3364         (Utils.computedMarginBottom):
3365         (Utils.computedMarginRight):
3366         (Utils.computedBorderTopLeft):
3367         (Utils.computedBorderBottomRight):
3368         (Utils.computedPaddingTopLeft):
3369         (Utils.computedPaddingBottomRight):
3370         (Utils.computedBorderAndPaddingTop):
3371         (Utils.computedBorderAndPaddingLeft):
3372         (Utils.computedBorderAndPaddingBottom):
3373         (Utils.computedBorderAndPaddingRight):
3374         (Utils.computedHorizontalBorderAndPadding):
3375         (Utils.computedVerticalBorderAndPadding):
3376         (Utils.computedLineHeight):
3377         (Utils.hasClearLeft):
3378         (Utils.hasClearRight):
3379         (Utils.hasClearBoth):
3380
3381 2018-03-15  Zalan Bujtas  <zalan@apple.com>
3382
3383         [LayoutReloaded] Should never need to go beyond the root container when asking for the containing block.
3384         https://bugs.webkit.org/show_bug.cgi?id=183691
3385
3386         Reviewed by Antti Koivisto.
3387
3388         While laying out the boxes in a block formatting context, if we happen to need
3389         to get to the containing block of a box to compute geometry, it should always be a
3390         descendant of the root container (or the root container itself).
3391         Nothing outside of the formatting context should be able to impact the boxes inside.
3392
3393         * LayoutReloaded/FormattingContext/BlockFormatting/BlockFormattingContext.js:
3394         (BlockFormattingContext.prototype._computeOutOfFlowPosition):
3395         (BlockFormattingContext.prototype._toAbsolutePosition):
3396         (BlockFormattingContext):
3397         * LayoutReloaded/FormattingContext/BlockFormatting/BlockMarginCollapse.js:
3398         (BlockMarginCollapse._isMarginTopCollapsedWithParent):
3399         (BlockMarginCollapse._isMarginBottomCollapsedWithParent):
3400         * LayoutReloaded/LayoutTree/Box.js:
3401         (Layout.Box.prototype.isRootBox):
3402         (Layout.Box.prototype.isRootElement): Deleted.
3403         * LayoutReloaded/Utils.js:
3404         (Utils.isDescendantOf):
3405         (Utils.mapStaticToAbsolute): Deleted.
3406         * LayoutReloaded/misc/headers/Box.h:
3407
3408 2018-03-15  Wenson Hsieh  <wenson_hsieh@apple.com>
3409
3410         [iOS WK2] Hit-testing fails when specifying a large top content inset
3411         https://bugs.webkit.org/show_bug.cgi?id=183648
3412         <rdar://problem/38421894>
3413
3414         Reviewed by Tim Horton.
3415
3416         Adds four new API tests to verify that adding top or bottom content insets to the WKWebView's scroll view does
3417         not cause the DOMWindow's innerHeight to shrink. Currently, doing so would cause the innerHeight to be reported
3418         as (viewHeight - inset.top) or (viewHeight - inset.bottom).
3419
3420         See WebKit ChangeLog for more details.
3421
3422         * TestWebKitAPI/TestWebKitAPI.xcodeproj/project.pbxproj:
3423         * TestWebKitAPI/Tests/ios/ScrollViewInsetTests.mm: Added.
3424         (TestWebKitAPI::TEST):
3425
3426 2018-03-15  Aakash Jain  <aakash_jain@apple.com>
3427
3428         Add unit-test for NetworkTransaction URLError handling
3429         https://bugs.webkit.org/show_bug.cgi?id=183664
3430
3431         Reviewed by Alexey Proskuryakov.
3432
3433         * Scripts/webkitpy/common/net/networktransaction_unittest.py:
3434         (NetworkTransactionTest._raise_URLError): Method to raise URLError.
3435         (NetworkTransactionTest.test_retry_on_HTTPError): Renamed from test_retry.
3436         (NetworkTransactionTest.test_retry_on_URLError): unit-test for testing URLError handling.
3437
3438 2018-03-15  Aakash Jain  <aakash_jain@apple.com>
3439
3440         EWS should print the URL in logs on URLError
3441         https://bugs.webkit.org/show_bug.cgi?id=183651
3442
3443         Reviewed by Alexey Proskuryakov.
3444
3445         * Scripts/webkitpy/common/net/bugzilla/bugzilla.py:
3446         (Bugzilla.open_url): Pass the url.
3447         * Scripts/webkitpy/common/net/networktransaction.py:
3448         (NetworkTransaction.run): Accept optional url parameter and print it on URLError.
3449
3450 2018-03-15  Zalan Bujtas  <zalan@apple.com>
3451
3452         [LayoutReloaded] Introduce Layout namespace
3453         https://bugs.webkit.org/show_bug.cgi?id=183659
3454
3455         Reviewed by Antti Koivisto.
3456
3457         This is in preparation for introducing the display tree.
3458         Box -> Layout.Box
3459
3460         * LayoutReloaded/FormattingContext/BlockFormatting/BlockFormattingContext.js:
3461         (BlockFormattingContext.prototype.layout):
3462         (BlockFormattingContext.prototype.computeWidth):
3463         (BlockFormattingContext.prototype.computeHeight):
3464         (BlockFormattingContext.prototype.marginTop):
3465         (BlockFormattingContext.prototype.marginBottom):
3466         (BlockFormattingContext.prototype._computeStaticPosition):
3467         (BlockFormattingContext.prototype._placeInFlowPositionedChildren):
3468         (BlockFormattingContext.prototype._placeOutOfFlowDescendants):
3469         (BlockFormattingContext.prototype._computeOutOfFlowWidth):
3470         (BlockFormattingContext.prototype._computeFloatingWidth):
3471         (BlockFormattingContext.prototype._computeInFlowWidth):
3472         (BlockFormattingContext.prototype._computeOutOfFlowHeight):
3473         (BlockFormattingContext.prototype._computeFloatingHeight):
3474         (BlockFormattingContext.prototype._computeInFlowHeight):
3475         (BlockFormattingContext.prototype._horizontalConstraint):
3476         (BlockFormattingContext.prototype._contentHeight):
3477         (BlockFormattingContext.prototype._adjustBottomWithFIXME):
3478         (BlockFormattingContext.prototype._computeInFlowPositionedPosition):
3479         (BlockFormattingContext.prototype._computeOutOfFlowPosition):
3480         (BlockFormattingContext.prototype._shrinkToFitWidth):
3481         (BlockFormattingContext):
3482         (BlockFormattingContext.prototype._computeHorizontalConstraint): Deleted.
3483         (BlockFormattingContext.prototype._computeContentHeight): Deleted.
3484         * LayoutReloaded/FormattingContext/BlockFormatting/BlockMarginCollapse.js:
3485         (BlockMarginCollapse.marginTop):
3486         (BlockMarginCollapse.marginBottom):
3487         (BlockMarginCollapse._isMarginTopCollapsedWithSibling):
3488         (BlockMarginCollapse._isMarginBottomCollapsedWithSibling):
3489         (BlockMarginCollapse._isMarginTopCollapsedWithParent):
3490         (BlockMarginCollapse._isMarginBottomCollapsedWithParent):
3491         (BlockMarginCollapse._nonCollapsedMarginTop):
3492         (BlockMarginCollapse._nonCollapsedMarginBottom):
3493         (BlockMarginCollapse._collapsedMarginTopFromFirstChild):
3494         (BlockMarginCollapse._collapsedMarginBottomFromLastChild):
3495         (BlockMarginCollapse._hasAdjoiningMarginTopAndBottom):
3496         (BlockMarginCollapse):
3497         * LayoutReloaded/FormattingContext/FloatingContext.js:
3498         (FloatingContext.prototype.computePosition):
3499         (FloatingContext.prototype._positionForClear):
3500         (FloatingContext.prototype._computePositionToAvoidIntrudingFloats):
3501         * LayoutReloaded/FormattingContext/FormattingContext.js:
3502         (FormattingContext.prototype.computeWidth):
3503         (FormattingContext.prototype.computeHeight):
3504         (FormattingContext.prototype.marginTop):
3505         (FormattingContext.prototype.marginLeft):
3506         (FormattingContext.prototype.marginBottom):
3507         (FormattingContext.prototype.marginRight):
3508         (FormattingContext.prototype.absoluteMarginBox):
3509         (FormattingContext.prototype.absoluteBorderBox):
3510         (FormattingContext.prototype.absolutePaddingBox):
3511         (FormattingContext.prototype.absoluteContentBox):
3512         (FormattingContext):
3513         * LayoutReloaded/FormattingContext/InlineFormatting/InlineFormattingContext.js:
3514         (InlineFormattingContext.prototype.layout):
3515         * LayoutReloaded/LayoutTree/BlockContainer.js:
3516         (BlockContainer): Deleted.
3517         (BlockContainer.prototype.establishesInlineFormattingContext): Deleted.
3518         * LayoutReloaded/LayoutTree/Box.js:
3519         (Box): Deleted.
3520         (Box.prototype.id): Deleted.
3521         (Box.prototype.setRendererName): Deleted.
3522         (Box.prototype.name): Deleted.
3523         (Box.prototype.node): Deleted.
3524         (Box.prototype.parent): Deleted.
3525         (Box.prototype.nextSibling): Deleted.
3526         (Box.prototype.nextInFlowSibling): Deleted.
3527         (Box.prototype.previousSibling): Deleted.
3528         (Box.prototype.previousInFlowSibling): Deleted.
3529         (Box.prototype.setParent): Deleted.
3530         (Box.prototype.setNextSibling): Deleted.
3531         (Box.prototype.setPreviousSibling): Deleted.
3532         (Box.prototype.rect): Deleted.
3533         (Box.prototype.topLeft): Deleted.
3534         (Box.prototype.bottomRight): Deleted.
3535         (Box.prototype.setTopLeft): Deleted.
3536         (Box.prototype.setSize): Deleted.
3537         (Box.prototype.setWidth): Deleted.
3538         (Box.prototype.setHeight): Deleted.
3539         (Box.prototype.isContainer): Deleted.
3540         (Box.prototype.isBlockLevelBox): Deleted.
3541         (Box.prototype.isBlockContainerBox): Deleted.
3542         (Box.prototype.isInlineLevelBox): Deleted.
3543         (Box.prototype.setIsAnonymous): Deleted.
3544         (Box.prototype.isAnonymous): Deleted.
3545         (Box.prototype.establishesFormattingContext): Deleted.
3546         (Box.prototype.establishedFormattingContext): Deleted.
3547         (Box.prototype.establishesBlockFormattingContext): Deleted.
3548         (Box.prototype.establishesInlineFormattingContext): Deleted.
3549         (Box.prototype.isPositioned): Deleted.
3550         (Box.prototype.isRelativePositioned): Deleted.
3551         (Box.prototype.isAbsolutePositioned): Deleted.
3552         (Box.prototype.isFixedPositioned): Deleted.
3553         (Box.prototype.isInFlow): Deleted.
3554         (Box.prototype.isOutOfFlowPositioned): Deleted.
3555         (Box.prototype.isInFlowPositioned): Deleted.
3556         (Box.prototype.isFloatingPositioned): Deleted.
3557         (Box.prototype.isFloatingOrOutOfFlowPositioned): Deleted.
3558         (Box.prototype.isRootElement): Deleted.
3559         (Box.prototype.containingBlock): Deleted.
3560         (Box.prototype.borderBox): Deleted.
3561         (Box.prototype.paddingBox): Deleted.
3562         (Box.prototype.contentBox): Deleted.
3563         * LayoutReloaded/LayoutTree/Container.js:
3564         (Container): Deleted.
3565         (Container.prototype.isContainer): Deleted.
3566         (Container.prototype.setFirstChild): Deleted.
3567         (Container.prototype.setLastChild): Deleted.
3568         (Container.prototype.firstChild): Deleted.
3569         (Container.prototype.firstInFlowChild): Deleted.
3570         (Container.prototype.lastChild): Deleted.
3571         (Container.prototype.lastInFlowChild): Deleted.
3572         (Container.prototype.hasChild): Deleted.
3573         (Container.prototype.hasInFlowChild): Deleted.
3574         * LayoutReloaded/LayoutTree/InitialBlockContainer.js:
3575         (InitialBlockContainer): Deleted.
3576         (InitialBlockContainer.prototype.establishesBlockFormattingContext): Deleted.
3577         (InitialBlockContainer.prototype.paddingBox): Deleted.
3578         (InitialBlockContainer.prototype.contentBox): Deleted.
3579         * LayoutReloaded/LayoutTree/InlineBox.js:
3580         (InlineBox): Deleted.
3581         (InlineBox.prototype.setText): Deleted.
3582         (InlineBox.prototype.text): Deleted.
3583         * LayoutReloaded/TreeBuilder.js:
3584         (TreeBuilder.prototype.createTree):
3585         (TreeBuilder.prototype._createAndAttachBox):
3586         * LayoutReloaded/Utils.js:
3587         (Utils._dumpBox):
3588
3589 2018-03-14  Chris Fleizach  <cfleizach@apple.com>
3590
3591         AX: Implement accessible dismiss action on iOS
3592         https://bugs.webkit.org/show_bug.cgi?id=183352
3593         <rdar://problem/38161500>
3594
3595         Reviewed by Zalan Bujtas.
3596
3597         * WebKitTestRunner/InjectedBundle/AccessibilityUIElement.cpp:
3598         (WTR::AccessibilityUIElement::dismiss const):
3599         * WebKitTestRunner/InjectedBundle/AccessibilityUIElement.h:
3600         * WebKitTestRunner/InjectedBundle/Bindings/AccessibilityUIElement.idl:
3601         * WebKitTestRunner/InjectedBundle/ios/AccessibilityUIElementIOS.mm:
3602         (WTR::AccessibilityUIElement::dismiss):
3603
3604 2018-03-14  Youenn Fablet  <youenn@apple.com>
3605
3606         Update libwebrtc up to 36af4e9614f707f733eb2340fae66d6325aaac5b
3607         https://bugs.webkit.org/show_bug.cgi?id=183481
3608
3609         Reviewed by Eric Carlson.
3610
3611         * Scripts/webkitpy/style/checker.py: Do not check style.
3612
3613 2018-03-14  Brendan McLoughlin  <brendan@bocoup.com>
3614
3615         Add label on github when exporting wpt tests to w3c/web-platform-test repo
3616         https://bugs.webkit.org/show_bug.cgi?id=183575
3617
3618         Reviewed by Youenn Fablet.
3619
3620         * Scripts/webkitpy/w3c/test_exporter.py:
3621         (TestExporter.make_pull_request):
3622         (parse_args):
3623         * Scripts/webkitpy/w3c/test_exporter_unittest.py:
3624         (TestExporterTest.test_export):
3625
3626 2018-03-14  Zalan Bujtas  <zalan@apple.com>
3627
3628         [LayoutReloaded] Add InlineBox dump
3629         https://bugs.webkit.org/show_bug.cgi?id=183625
3630
3631         Reviewed by Antti Koivisto.
3632
3633         Right now line boxes live off of the inline formatting context but that's temporary and
3634         they will be moved over to the BoxTree.
3635
3636         * LayoutReloaded/FormattingContext/BlockFormatting/BlockFormattingContext.js:
3637         (BlockFormattingContext.prototype._computeContentHeight):
3638         * LayoutReloaded/FormattingContext/InlineFormatting/InlineFormattingContext.js:
3639         (InlineFormattingContext):
3640         (InlineFormattingContext.prototype.lines):
3641         (InlineFormattingContext.prototype.layout):
3642         (InlineFormattingContext.prototype._handleText):
3643         (InlineFormattingContext.prototype._commitLine):
3644         (InlineFormattingContext.prototype._initializeLine):
3645         * LayoutReloaded/FormattingContext/InlineFormatting/Line.js:
3646         (Line):
3647