-
Notifications
You must be signed in to change notification settings - Fork 1.8k
REGRESSION (262243@main): LFC enters a broken, semi-enabled state after rendering scrollbars #12987
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Collaborator
|
EWS run on previous version of this PR (hash 15239fa) Details |
alanbaradlay
approved these changes
Apr 20, 2023
smfr
reviewed
Apr 20, 2023
Collaborator
|
EWS run on previous version of this PR (hash ebad8af) Details |
Collaborator
|
EWS run on current version of this PR (hash 4b4e531) Details |
smfr
approved these changes
Apr 21, 2023
…er rendering scrollbars https://bugs.webkit.org/show_bug.cgi?id=255741 rdar://108112443 Reviewed by Simon Fraser and Alan Baradlay. When GPU process and UI-side compositing on macOS are enabled, 262243@main had inadvertently added a call to `LocalFrameView::displayView()` in the process of asking for the current page scale; this instantiates a `m_displayView` in the process, the existence of which causes us to reattach or detach the root layer in `LocalFrameView::setIsInWindow()`. `Display::View` was not intended to be used outside of LFC, so we should avoid instantiating it unless necessary; to fix this bug, we instead add a `deviceScaleFactor()` override hook to `ScrollableArea`, implement it in all relevant subclasses by asking the `Page`, and then plumbing this information at paint time to `Scrollbar`, through `ScrollableArea`. This is done (as opposed to adding a method that reads off of the `FrameView` or `Page` directly in scrollbar) to avoid layering violations due to accessing non-platform WebCore logic from within `platform/`. Additionally, we enforce this moving forward by asserting that LFC is enabled when asking for `Display::View`, which would have fired in the previous test I added in 262243@main. * Source/WebCore/page/LocalFrameView.cpp: (WebCore::LocalFrameView::displayView): (WebCore::LocalFrameView::deviceScaleFactor const): * Source/WebCore/page/LocalFrameView.h: * Source/WebCore/platform/ScrollableArea.h: (WebCore::ScrollableArea::deviceScaleFactor const): * Source/WebCore/platform/Scrollbar.cpp: (WebCore::Scrollbar::deviceScaleFactor const): * Source/WebCore/rendering/RenderLayerCompositor.cpp: (WebCore::RenderLayerCompositor::deviceScaleFactor const): * Source/WebCore/rendering/RenderLayerScrollableArea.cpp: (WebCore::RenderLayerScrollableArea::deviceScaleFactor const): * Source/WebCore/rendering/RenderLayerScrollableArea.h: * Source/WebCore/rendering/RenderListBox.cpp: (WebCore::RenderListBox::deviceScaleFactor const): * Source/WebCore/rendering/RenderListBox.h: Canonical link: https://commits.webkit.org/263241@main
4b4e531 to
337e6be
Compare
Collaborator
|
Committed 263241@main (337e6be): https://commits.webkit.org/263241@main Reviewed commits have been landed. Closing PR #12987 and removing active labels. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
337e6be
4b4e531