Changeset 277202 in webkit
- Timestamp:
- May 7, 2021, 2:54:02 PM (5 years ago)
- Location:
- trunk
- Files:
-
- 2 added
- 7 edited
-
LayoutTests/ChangeLog (modified) (1 diff)
-
LayoutTests/editing/inserting/insert-text-force-repaint-on-load-crash-expected.txt (added)
-
LayoutTests/editing/inserting/insert-text-force-repaint-on-load-crash.html (added)
-
Source/WebCore/ChangeLog (modified) (1 diff)
-
Source/WebCore/editing/DeleteSelectionCommand.cpp (modified) (1 diff)
-
Tools/ChangeLog (modified) (1 diff)
-
Tools/WebKitTestRunner/InjectedBundle/Bindings/TestRunner.idl (modified) (1 diff)
-
Tools/WebKitTestRunner/InjectedBundle/InjectedBundlePage.cpp (modified) (1 diff)
-
Tools/WebKitTestRunner/InjectedBundle/TestRunner.h (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r277200 r277202 1 2021-05-07 Carlos Garcia Campos <cgarcia@igalia.com> 2 3 Do not try to remove and already removed node while deleting selection 4 https://bugs.webkit.org/show_bug.cgi?id=224893 5 6 Reviewed by Ryosuke Niwa. 7 8 * editing/inserting/insert-text-force-repaint-on-load-crash-expected.txt: Added. 9 * editing/inserting/insert-text-force-repaint-on-load-crash.html: Added. 10 1 11 2021-05-07 Robert Jenner <jenner@apple.com> 2 12 -
trunk/Source/WebCore/ChangeLog
r277196 r277202 1 2021-05-07 Carlos Garcia Campos <cgarcia@igalia.com> 2 3 Do not try to remove and already removed node while deleting selection 4 https://bugs.webkit.org/show_bug.cgi?id=224893 5 6 Reviewed by Ryosuke Niwa. 7 8 Test: editing/inserting/insert-text-force-repaint-on-load-crash.html 9 10 * editing/DeleteSelectionCommand.cpp: 11 (WebCore::DeleteSelectionCommand::removeNode): Return early if the given node doesn't have a parent anymore. 12 1 13 2021-05-07 Wenson Hsieh <wenson_hsieh@apple.com> 2 14 -
trunk/Source/WebCore/editing/DeleteSelectionCommand.cpp
r277163 r277202 512 512 void DeleteSelectionCommand::removeNode(Node& node, ShouldAssumeContentIsAlwaysEditable shouldAssumeContentIsAlwaysEditable) 513 513 { 514 if (!node.parentNode()) 515 return; 516 514 517 Ref<Node> protectedNode = node; 515 518 if (m_startRoot != m_endRoot && !(node.isDescendantOf(m_startRoot.get()) && node.isDescendantOf(m_endRoot.get()))) { -
trunk/Tools/ChangeLog
r277201 r277202 1 2021-05-07 Carlos Garcia Campos <cgarcia@igalia.com> 2 3 Do not try to remove and already removed node while deleting selection 4 https://bugs.webkit.org/show_bug.cgi?id=224893 5 6 Reviewed by Ryosuke Niwa. 7 8 Add new API to allow tests to trigger a force repaint on load finished. 9 10 * WebKitTestRunner/InjectedBundle/Bindings/TestRunner.idl: 11 * WebKitTestRunner/InjectedBundle/InjectedBundlePage.cpp: 12 (WTR::InjectedBundlePage::frameDidChangeLocation): 13 * WebKitTestRunner/InjectedBundle/TestRunner.h: 14 (WTR::TestRunner::displayOnLoadFinish): 15 (WTR::TestRunner::shouldDisplayOnLoadFinish): 16 1 17 2021-05-07 Brent Fulgham <bfulgham@apple.com> 2 18 -
trunk/Tools/WebKitTestRunner/InjectedBundle/Bindings/TestRunner.idl
r276853 r277202 114 114 undefined display(); 115 115 undefined displayAndTrackRepaints(); 116 undefined displayOnLoadFinish(); 116 117 117 118 // Failed load condition testing -
trunk/Tools/WebKitTestRunner/InjectedBundle/InjectedBundlePage.cpp
r273966 r277202 1861 1861 injectedBundle.setTopLoadingFrame(nullptr); 1862 1862 1863 if (injectedBundle.testRunner()->shouldDisplayOnLoadFinish()) { 1864 if (auto page = InjectedBundle::singleton().page()) 1865 WKBundlePageForceRepaint(page->page()); 1866 } 1867 1863 1868 if (injectedBundle.testRunner()->shouldWaitUntilDone()) 1864 1869 return; -
trunk/Tools/WebKitTestRunner/InjectedBundle/TestRunner.h
r276853 r277202 129 129 void display(); 130 130 void displayAndTrackRepaints(); 131 void displayOnLoadFinish() { m_displayOnLoadFinish = true; } 132 bool shouldDisplayOnLoadFinish() { return m_displayOnLoadFinish; } 131 133 132 134 // UserContent testing. … … 576 578 bool m_testRepaint { false }; 577 579 bool m_testRepaintSweepHorizontally { false }; 580 bool m_displayOnLoadFinish { false }; 578 581 bool m_isPrinting { false }; 579 582 bool m_willSendRequestReturnsNull { false };
Note:
See TracChangeset
for help on using the changeset viewer.