Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: ea118352631b8fc50e25235a4b94340460475885
      
https://github.com/WebKit/WebKit/commit/ea118352631b8fc50e25235a4b94340460475885
  Author: Charlie Wolfe <[email protected]>
  Date:   2026-10-09 (Fri, 09 Oct 2026)

  Changed paths:
    M Source/WebCore/style/computed/StyleComputedStyleBase+ConstructionInlines.h
    M Source/WebCore/style/computed/StyleComputedStyleBase+GettersInlines.h
    M Source/WebCore/style/computed/StyleComputedStyleBase+SettersInlines.h
    M Source/WebCore/style/computed/StyleComputedStyleBase.cpp
    M Source/WebCore/style/computed/StyleComputedStyleBase.h
    M Source/WebCore/style/computed/data/StyleNonInheritedRareData.cpp
    M Source/WebCore/style/computed/data/StyleNonInheritedRareData.h

  Log Message:
  -----------
  Move useSVGZoomRulesForLength from NonInheritedRareData to NonInheritedFlags
https://bugs.webkit.org/show_bug.cgi?id=326536
rdar://189324473

Reviewed by Antti Koivisto.

Style resolution sets useSVGZoomRulesForLength on almost every SVG element. 
Because the bit lived in
NonInheritedRareData, each of those writes forced CoW of both NonInheritedData 
and
NonInheritedRareData. Store the bit in NonInheritedFlags instead, which has 
spare room, so setting
it no longer allocates.

* Source/WebCore/style/computed/StyleComputedStyleBase+ConstructionInlines.h:
(WebCore::Style::ComputedStyleBase::ComputedStyleBase):
* Source/WebCore/style/computed/StyleComputedStyleBase+GettersInlines.h:
(WebCore::Style::ComputedStyleBase::useSVGZoomRulesForLength const):
* Source/WebCore/style/computed/StyleComputedStyleBase+SettersInlines.h:
(WebCore::Style::ComputedStyleBase::setUseSVGZoomRulesForLength):
* Source/WebCore/style/computed/StyleComputedStyleBase.cpp:
(WebCore::Style::ComputedStyleBase::NonInheritedFlags::dumpDifferences const):
* Source/WebCore/style/computed/StyleComputedStyleBase.h:
* Source/WebCore/style/computed/data/StyleNonInheritedRareData.cpp:
(WebCore::Style::NonInheritedRareData::NonInheritedRareData):
(WebCore::Style::NonInheritedRareData::operator== const):
(WebCore::Style::NonInheritedRareData::dumpDifferences const):
* Source/WebCore/style/computed/data/StyleNonInheritedRareData.h:

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



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

Reply via email to