Skip to content

Commit

Permalink
Revert "Apply patch. rdar://problem/108008629"
Browse files Browse the repository at this point in the history
This reverts commit 84d7397.

Identifier: 259548.686@safari-7615-branch
  • Loading branch information
drobson1005 committed Apr 25, 2023
1 parent 84d7397 commit 1d51b2f
Show file tree
Hide file tree
Showing 16 changed files with 8 additions and 1,368 deletions.

This file was deleted.

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
<!DOCTYPE html> <!-- webkit-test-runner [ useFlexibleViewport=true obscuredInset.top=50 ] -->
<html>
<meta name="viewport" content="width=device-width, initial-scale=1">
<head>
<script src="../../../resources/js-test.js"></script>
<script src="../../../resources/ui-helper.js"></script>
<head>
<style>
body, html {
width: 100%;
Expand Down
92 changes: 0 additions & 92 deletions LayoutTests/resources/ui-helper.js
Original file line number Diff line number Diff line change
Expand Up @@ -1623,98 +1623,6 @@ window.UIHelper = class UIHelper {
});
}

static async pinch(firstStartX, firstStartY, secondStartX, secondStartY, firstEndX, firstEndY, secondEndX, secondEndY)
{
await UIHelper.sendEventStream({
events: [
{
interpolate : "linear",
timestep : 0.01,
coordinateSpace : "content",
startEvent : {
inputType : "hand",
timeOffset : 0,
touches : [
{ inputType : "finger", phase : "began", id : 1, x : firstStartX, y : firstStartY, pressure : 0 },
{ inputType : "finger", phase : "began", id : 2, x : secondStartX, y : secondStartY, pressure : 0 }
]
},
endEvent : {
inputType : "hand",
timeOffset : 0.01,
touches : [
{ inputType : "finger", phase : "began", id : 1, x : firstStartX, y : firstStartY, pressure : 0 },
{ inputType : "finger", phase : "began", id : 2, x : secondStartX, y : secondStartY, pressure : 0 }
]
}
},
{
interpolate : "linear",
timestep : 0.01,
coordinateSpace : "content",
startEvent : {
inputType : "hand",
timeOffset : 0.01,
touches : [
{ inputType : "finger", phase : "moved", id : 1, x : firstStartX, y : firstStartY, pressure : 0 },
{ inputType : "finger", phase : "moved", id : 2, x : secondStartX, y : secondStartY, pressure : 0 }
]
},
endEvent : {
inputType : "hand",
timeOffset : 0.9,
touches : [
{ inputType : "finger", phase : "moved", id : 1, x : firstEndX, y : firstEndY, pressure : 0 },
{ inputType : "finger", phase : "moved", id : 2, x : secondEndX, y : secondEndY, pressure : 0 }
]
}
},
{
interpolate : "linear",
timestep : 0.01,
coordinateSpace : "content",
startEvent : {
inputType : "hand",
timeOffset : 0.9,
touches : [
{ inputType : "finger", phase : "stationary", id : 1, x : firstEndX, y : firstEndY, pressure : 0 },
{ inputType : "finger", phase : "stationary", id : 2, x : secondEndX, y : secondEndY, pressure : 0 }
]
},
endEvent : {
inputType : "hand",
timeOffset : 0.99,
touches : [
{ inputType : "finger", phase : "stationary", id : 1, x : firstEndX, y : firstEndY, pressure : 0 },
{ inputType : "finger", phase : "stationary", id : 2, x : secondEndX, y : secondEndY, pressure : 0 }
]
}
},
{
interpolate : "linear",
timestep : 0.01,
coordinateSpace : "content",
startEvent : {
inputType : "hand",
timeOffset : 0.99,
touches : [
{ inputType : "finger", phase : "ended", id : 1, x : firstEndX, y : firstEndY, pressure : 0 },
{ inputType : "finger", phase : "ended", id : 2, x : secondEndX, y : secondEndY, pressure : 0 }
]
},
endEvent : {
inputType : "hand",
timeOffset : 1,
touches : [
{ inputType : "finger", phase : "ended", id : 1, x : firstEndX, y : firstEndY, pressure : 0 },
{ inputType : "finger", phase : "ended", id : 2, x : secondEndX, y : secondEndY, pressure : 0 }
]
}
}
]
});
}

static setWindowIsKey(isKey)
{
const script = `uiController.windowIsKey = ${isKey}`;
Expand Down
2 changes: 0 additions & 2 deletions Source/WebCore/page/ChromeClient.h
Original file line number Diff line number Diff line change
Expand Up @@ -635,8 +635,6 @@ class ChromeClient {
virtual void classifyModalContainerControls(Vector<String>&& texts, CompletionHandler<void(Vector<ModalContainerControlType>&&)>&&) = 0;

virtual void decidePolicyForModalContainer(OptionSet<ModalContainerControlType>, CompletionHandler<void(ModalContainerDecision)>&&) = 0;

virtual bool isInStableState() const { return true; }

protected:
WEBCORE_EXPORT ChromeClient();
Expand Down
7 changes: 0 additions & 7 deletions Source/WebCore/page/FrameView.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3018,13 +3018,6 @@ bool FrameView::isRubberBandInProgress() const
return false;
}

bool FrameView::isInStableState() const
{
if (auto* page = m_frame->page())
return page->chrome().client().isInStableState();
return AbstractFrameView::isInStableState();
}

bool FrameView::requestStartKeyboardScrollAnimation(const KeyboardScroll& scrollData)
{
if (auto scrollingCoordinator = this->scrollingCoordinator())
Expand Down
Loading

0 comments on commit 1d51b2f

Please sign in to comment.