Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 3c71c8f9aac6094355a88f2109a2dce5e82a07f1
      
https://github.com/WebKit/WebKit/commit/3c71c8f9aac6094355a88f2109a2dce5e82a07f1
  Author: Sam Weinig <[email protected]>
  Date:   2026-01-14 (Wed, 14 Jan 2026)

  Changed paths:
    M Source/WebCore/rendering/style/RenderStyleBase.h

  Log Message:
  -----------
  Delegate CanMakeCheckedPtr in RenderStyleBase to Style::ComputedStyleBase to 
recoup size regression
https://bugs.webkit.org/show_bug.cgi?id=305434

Reviewed by Antti Koivisto.

When splitting `Style::ComputedStyle` from `RenderStyle`, making 
`Style::ComputedStyleBase`
inherit from `CanMakeCheckedPtr` while also having `RenderStyle` inherit from 
`CanMakeCheckedPtr`,
caused all `RenderStyles` to grow.

We can resolve this by having `RenderStyle` delegate to the 
`Style::ComputedStyle` for
`CheckedPtr` functionality. Credit goes to Antti Koivisto for the idea.

* Source/WebCore/rendering/style/RenderStyleBase.h:

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



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

Reply via email to