Skip to content

Commit

Permalink
Remove superfluous updateStyleIfNeeded call
Browse files Browse the repository at this point in the history
https://bugs.webkit.org/show_bug.cgi?id=259686

Reviewed by Darin Adler.

Remove superfluous updateStyleIfNeeded call, updateLayoutIgnorePendingStylesheets
calls updateStyleIfNeeded internally.

* Source/WebCore/page/LocalFrameView.cpp:
(WebCore::LocalFrameView::performFixedWidthAutoSize):

Canonical link: https://commits.webkit.org/266508@main
  • Loading branch information
rwlbuis committed Aug 2, 2023
1 parent 47e8182 commit d66c046
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion Source/WebCore/page/LocalFrameView.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3999,7 +3999,6 @@ void LocalFrameView::performFixedWidthAutoSize()
resize(m_autoSizeConstraint.width(), m_autoSizeConstraint.height());

Ref<LocalFrameView> protectedThis(*this);
document->updateStyleIfNeeded();
document->updateLayoutIgnorePendingStylesheets();
// While the final content size could slightly be different after the next resize/layout (see below), we intentionally save and report
// the current value to avoid unstable layout (e.g. content "height: 100%").
Expand Down

0 comments on commit d66c046

Please sign in to comment.