[webkit-changes] [WebKit/WebKit] 77c067: Document::updateStyleIfNeeded() should instantiate...
Ryosuke Niwa
noreply at github.com
Thu May 4 21:45:16 PDT 2023
Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: 77c067951b8264aed906fd9c276c2baf5c6494e4
https://github.com/WebKit/WebKit/commit/77c067951b8264aed906fd9c276c2baf5c6494e4
Author: Ryosuke Niwa <rniwa at webkit.org>
Date: 2023-05-04 (Thu, 04 May 2023)
Changed paths:
M Source/WebCore/dom/Document.cpp
Log Message:
-----------
Document::updateStyleIfNeeded() should instantiate ScriptDisallowedScope::InMainThread for its entirety
https://bugs.webkit.org/show_bug.cgi?id=256346
Reviewed by Simon Fraser.
Add ScriptDisallowedScope::InMainThread for the entirety of updateStyleIfNeeded
instead of asserting that isSafeToUpdateStyleOrLayout returns true.
* Source/WebCore/dom/Document.cpp:
(WebCore::isSafeToUpdateLayout): Renamed from isSafeToUpdateStyleOrLayout.
(WebCore::Document::updateStyleIfNeeded):
(WebCore::Document::updateLayout):
Canonical link: https://commits.webkit.org/263708@main
More information about the webkit-changes
mailing list