Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: c62613f28fb14f10792e769b027f5313d3252adc
      
https://github.com/WebKit/WebKit/commit/c62613f28fb14f10792e769b027f5313d3252adc
  Author: Ahmad Saleem <[email protected]>
  Date:   2026-04-05 (Sun, 05 Apr 2026)

  Changed paths:
    M Source/WebCore/rendering/GridLayoutFunctions.cpp
    M Source/WebCore/rendering/RenderBox.cpp
    M Source/WebCore/rendering/RenderLayer.cpp

  Log Message:
  -----------
  Cache repeated style() and renderer().style() calls in few rendering paths
https://bugs.webkit.org/show_bug.cgi?id=311513
rdar://174104938

Reviewed by Alan Baradlay.

Avoid redundant repeated calls to style() and renderer().style()
by caching the result in a local reference where the same style
is accessed multiple times in a single scope.

* Source/WebCore/rendering/GridLayoutFunctions.cpp:
(WebCore::GridLayoutFunctions::gridItemHasMargin):
* Source/WebCore/rendering/RenderBox.cpp:
(WebCore::RenderBox::hasRelativeDimensions const):
* Source/WebCore/rendering/RenderLayer.cpp:
(WebCore::RenderLayer::minimumSizeForResizing const):
(WebCore::RenderLayer::calculateClipRects const):

Canonical link: https://commits.webkit.org/310611@main



To unsubscribe from these emails, change your notification settings at 
https://github.com/WebKit/WebKit/settings/notifications

Reply via email to