Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: c8f6b5dd3c606881b439608695a0bf620e285d2e
      
https://github.com/WebKit/WebKit/commit/c8f6b5dd3c606881b439608695a0bf620e285d2e
  Author: Sam Weinig <[email protected]>
  Date:   2026-08-19 (Wed, 19 Aug 2026)

  Changed paths:
    M 
Source/WebCore/SaferCPPExpectations/UncountedLambdaCapturesCheckerExpectations
    M Source/WebCore/css/CSSFontFace.cpp
    M Source/WebCore/css/CSSPrimitiveValue.cpp
    M Source/WebCore/css/calc/CSSCalcTree.h
    M Source/WebCore/css/calc/CSSCalcValue.cpp
    M Source/WebCore/css/calc/CSSCalcValue.h
    M Source/WebCore/css/parser/CSSParserFastPaths.cpp
    M Source/WebCore/css/values/primitives/CSSUnevaluatedCalc.cpp
    M Source/WebCore/css/values/primitives/CSSUnevaluatedCalc.h
    M Source/WebCore/style/values/primitives/StyleLengthResolution.cpp
    M Source/WebCore/style/values/primitives/StyleLengthResolution.h
    M 
Source/WebCore/style/values/primitives/StylePrimitiveNumericTypes+Conversions.h
    M 
Source/WebCore/style/values/primitives/StylePrimitiveNumericTypes+TypedCSSOMConversions.h

  Log Message:
  -----------
  [Cleanup] Move logic from CSSCalc::Value to CSS::UnevaluatedCalcBase
https://bugs.webkit.org/show_bug.cgi?id=322066

Reviewed by Darin Adler.

Get's rid of most of the interface of CSSCalc::Value, moving things
to CSS::UnevaluatedCalcBase. Most callers should be using the typed
parent, CSS::UnevaluatedCalc<>, so making CSSCalc::Value just be the
boxing type helps to make that clear.

Also finished the set overload sets on CSS::UnevaluatedCalcBase to
all have Style::BuilderState variants. This, along with an overload
of Style::resolveLength that takes a Style::BuilderState allows us
to simplify the numeric conversion code to the point where it no
longer needs to ever reference a specific conversion data type.

* Source/WebCore/css/CSSFontFace.cpp:
* Source/WebCore/css/CSSPrimitiveValue.cpp:
* Source/WebCore/css/calc/CSSCalcTree.h:
* Source/WebCore/css/calc/CSSCalcValue.cpp:
* Source/WebCore/css/calc/CSSCalcValue.h:
* Source/WebCore/css/values/primitives/CSSUnevaluatedCalc.cpp:
* Source/WebCore/css/values/primitives/CSSUnevaluatedCalc.h:
* Source/WebCore/style/values/primitives/StyleLengthResolution.cpp:
* Source/WebCore/style/values/primitives/StyleLengthResolution.h:
* 
Source/WebCore/style/values/primitives/StylePrimitiveNumericTypes+Conversions.h:
* 
Source/WebCore/style/values/primitives/StylePrimitiveNumericTypes+TypedCSSOMConversions.h:

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



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

Reply via email to