Skip to content

Commit

Permalink
Unreviewed, reverting 278591@main.
Browse files Browse the repository at this point in the history
https://bugs.webkit.org/show_bug.cgi?id=274023

Speculative revert due to performance regression

Reverted changeset:

"[Site Isolation] Properly create scrolling tree for web process with multiple root frames"
https://bugs.webkit.org/show_bug.cgi?id=272721
https://commits.webkit.org/278591@main

Canonical link: https://commits.webkit.org/278631@main
  • Loading branch information
webkit-commit-queue authored and Constellation committed May 10, 2024
1 parent a16353a commit 262ca15
Show file tree
Hide file tree
Showing 38 changed files with 101 additions and 554 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -22,4 +22,4 @@
testRunner.notifyDone();
}, false);
</script>
<iframe width="300" height="300" src="http://localhost:8000/site-isolation/scrolling/resources/empty-iframe.html"></iframe>
<iframe width="300" height="300" src="http://localhost:8000/site-isolation/scrolling/resources/empty-iframe.html"></iframe>

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

2 changes: 1 addition & 1 deletion LayoutTests/platform/ios/TestExpectations
Original file line number Diff line number Diff line change
Expand Up @@ -4646,7 +4646,7 @@ webkit.org/b/257904 http/tests/site-isolation/page-zoom.html [ Skip ]
webkit.org/b/257904 http/tests/site-isolation/selection-focus.html [ Skip ]
webkit.org/b/257904 http/tests/site-isolation/basic-iframe-render-output.html [ Failure Timeout Pass ]

webkit.org/b/269550 http/tests/site-isolation/scrolling/ [ Skip ]
webkit.org/b/269550 http/tests/site-isolation/scrolling/basic-scrolling-tree.html [ Skip ]

# This test can't be enabled on iOS until EventSenderProxyIOS::keyDown() is implemented.
http/tests/site-isolation/key-events.html [ Skip ]
Expand Down
4 changes: 0 additions & 4 deletions Source/WTF/WTF.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -853,7 +853,6 @@
E4A0AD3D1A96253C00536DF6 /* WorkQueueCocoa.cpp in Sources */ = {isa = PBXBuildFile; fileRef = E4A0AD3C1A96253C00536DF6 /* WorkQueueCocoa.cpp */; };
EB2C86D9267B275D0052CB9A /* CPUTimePOSIX.cpp in Sources */ = {isa = PBXBuildFile; fileRef = EB2C86D8267B275C0052CB9A /* CPUTimePOSIX.cpp */; };
EB61EDC72409CCC1001EFE36 /* SystemTracingCocoa.cpp in Sources */ = {isa = PBXBuildFile; fileRef = EB61EDC62409CCC0001EFE36 /* SystemTracingCocoa.cpp */; };
FA0C387B2BEAD56B00583842 /* SmallMap.h in Headers */ = {isa = PBXBuildFile; fileRef = FA0C387A2BEAD56B00583842 /* SmallMap.h */; settings = {ATTRIBUTES = (Private, ); }; };
FE032AD22463E43B0012D7C7 /* WTFConfig.cpp in Sources */ = {isa = PBXBuildFile; fileRef = FE032AD02463E43B0012D7C7 /* WTFConfig.cpp */; };
FE03831C2ABC04F700A576A2 /* TZoneMallocInlines.h in Headers */ = {isa = PBXBuildFile; fileRef = FE03831A2ABC04F700A576A2 /* TZoneMallocInlines.h */; settings = {ATTRIBUTES = (Private, ); }; };
FE03831D2ABC04F700A576A2 /* TZoneMalloc.h in Headers */ = {isa = PBXBuildFile; fileRef = FE03831B2ABC04F700A576A2 /* TZoneMalloc.h */; settings = {ATTRIBUTES = (Private, ); }; };
Expand Down Expand Up @@ -1819,7 +1818,6 @@
EF7D6CD59D8642A8A0DA86AD /* StackTrace.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = StackTrace.h; sourceTree = "<group>"; };
F6D67D3226F90142006E0349 /* Int128.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = Int128.h; sourceTree = "<group>"; };
F72BBDB107FA424886178B9E /* SymbolImpl.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = SymbolImpl.cpp; sourceTree = "<group>"; };
FA0C387A2BEAD56B00583842 /* SmallMap.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = SmallMap.h; sourceTree = "<group>"; };
FE032AD02463E43B0012D7C7 /* WTFConfig.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = WTFConfig.cpp; sourceTree = "<group>"; };
FE032AD12463E43B0012D7C7 /* WTFConfig.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = WTFConfig.h; sourceTree = "<group>"; };
FE03831A2ABC04F700A576A2 /* TZoneMallocInlines.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = TZoneMallocInlines.h; sourceTree = "<group>"; };
Expand Down Expand Up @@ -2384,7 +2382,6 @@
A748744F17A0BDAE00FA04CB /* SixCharacterHash.cpp */,
A748745017A0BDAE00FA04CB /* SixCharacterHash.h */,
A8A4730C151A825B004123FF /* SizeLimits.cpp */,
FA0C387A2BEAD56B00583842 /* SmallMap.h */,
0FA6F39220CC73A200A03DCD /* SmallSet.cpp */,
7936D6A91C99F8AE000D1AED /* SmallSet.h */,
A30D412D1F0DE13F00B71954 /* SoftLinking.h */,
Expand Down Expand Up @@ -3430,7 +3427,6 @@
DD3DC89627A4BF8E007E5B61 /* SinglyLinkedList.h in Headers */,
DD3DC99427A4BF8E007E5B61 /* SinglyLinkedListWithTail.h in Headers */,
DD3DC92F27A4BF8E007E5B61 /* SixCharacterHash.h in Headers */,
FA0C387B2BEAD56B00583842 /* SmallMap.h in Headers */,
DD3DC8DE27A4BF8E007E5B61 /* SmallSet.h in Headers */,
DDF3076727C086CD006A526F /* SoftLinking.h in Headers */,
DD3DC8D727A4BF8E007E5B61 /* SoftLinking.h in Headers */,
Expand Down
1 change: 0 additions & 1 deletion Source/WTF/wtf/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -265,7 +265,6 @@ set(WTF_PUBLIC_HEADERS
SinglyLinkedList.h
SinglyLinkedListWithTail.h
SixCharacterHash.h
SmallMap.h
SmallSet.h
SoftLinking.h
SortedArrayMap.h
Expand Down
116 changes: 0 additions & 116 deletions Source/WTF/wtf/SmallMap.h

This file was deleted.

2 changes: 1 addition & 1 deletion Source/WebCore/dom/Document.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6716,7 +6716,7 @@ void Document::setBackForwardCacheState(BackForwardCacheState state)
if (page && m_frame->isMainFrame()) {
frameView->resetScrollbarsAndClearContentsSize();
if (RefPtr scrollingCoordinator = page->scrollingCoordinator())
scrollingCoordinator->clearAllNodes(m_frame->rootFrame().frameID());
scrollingCoordinator->clearAllNodes();
}
}

Expand Down
5 changes: 1 addition & 4 deletions Source/WebCore/page/LocalFrame.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -233,11 +233,8 @@ LocalFrame::~LocalFrame()
localMainFrame->selfOnlyDeref();

if (isRootFrame()) {
if (RefPtr page = this->page()) {
if (RefPtr page = this->page())
page->removeRootFrame(*this);
if (auto* scrollingCoordinator = page->scrollingCoordinator())
scrollingCoordinator->rootFrameWasRemoved(frameID());
}
}
}

Expand Down
5 changes: 0 additions & 5 deletions Source/WebCore/page/LocalFrameView.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6197,11 +6197,6 @@ void LocalFrameView::scrollbarStyleDidChange()
scrollbarsController().updateScrollbarStyle();
}

FrameIdentifier LocalFrameView::rootFrameID() const
{
return m_frame->rootFrame().frameID();
}

} // namespace WebCore

#undef PAGE_ID
Expand Down
2 changes: 0 additions & 2 deletions Source/WebCore/page/LocalFrameView.h
Original file line number Diff line number Diff line change
Expand Up @@ -724,8 +724,6 @@ class LocalFrameView final : public FrameView {

WEBCORE_EXPORT void scrollbarStyleDidChange();

FrameIdentifier rootFrameID() const final;

private:
explicit LocalFrameView(LocalFrame&);

Expand Down
Loading

0 comments on commit 262ca15

Please sign in to comment.