Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 6ba1b6ef0a321c87ad71fa9eec8469d8263f139c
      
https://github.com/WebKit/WebKit/commit/6ba1b6ef0a321c87ad71fa9eec8469d8263f139c
  Author: Chris Dumez <[email protected]>
  Date:   2026-10-13 (Tue, 13 Oct 2026)

  Changed paths:
    M Source/WebCore/SaferCPPExpectations/UncheckedCallArgsCheckerExpectations
    M Source/WebCore/style/StyleBuilderState.cpp
    M Source/WebCore/style/StyleBuilderState.h
    M Source/WebCore/style/StyleBuilderStateInlines.h

  Log Message:
  -----------
  Address Safer C++ static analysis warnings in StyleBuilderGenerated.cpp
https://bugs.webkit.org/show_bug.cgi?id=327330

Reviewed by Anne van Kesteren.

Make BuilderState::m_style a const CheckedRef instead of a raw reference so that
the generated and custom style builder code calling through 
BuilderState::style()
is trusted by the static analyzer.

This tested as performance neutral on Speedometer and MotionMark once
PGO profiles are regenerated.

* Source/WebCore/style/StyleBuilderState.cpp:
* Source/WebCore/style/StyleBuilderState.h:
* Source/WebCore/style/StyleBuilderStateInlines.h:

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



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

Reply via email to