Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 24a0d87c127b8100328f18d5259d997aee06c555
      
https://github.com/WebKit/WebKit/commit/24a0d87c127b8100328f18d5259d997aee06c555
  Author: Sam Weinig <[email protected]>
  Date:   2025-06-27 (Fri, 27 Jun 2025)

  Changed paths:
    M Source/WebCore/css/CSSPrimitiveValue.cpp
    M Source/WebCore/css/CSSPrimitiveValue.h
    M Source/WebCore/css/CSSPrimitiveValueMappings.h
    M Source/WebCore/css/CSSProperties.json
    M Source/WebCore/css/CSSToStyleMap.cpp
    M Source/WebCore/style/StyleBuilderConverter.h
    M Source/WebCore/style/StyleBuilderCustom.h
    M Source/WebCore/style/TransformOperationsBuilder.cpp
    M Source/WebCore/style/values/transforms/StyleTranslate.cpp

  Log Message:
  -----------
  [Style] Switch all Length conversion to use Style::BuilderConverter helpers
https://bugs.webkit.org/show_bug.cgi?id=294742

Reviewed by Darin Adler.

Replace all uses of CSSPrimitiveValue::convertToLength with 
BuilderConverter::convertLength
(except in TransformOperationsBuilder.cpp where a slight variation of that 
function is needed
to maintain existing clamping behavior) and its ilk.

This allows us to handle invalid length-percentage values in a consistent 
manner.

* Source/WebCore/css/CSSPrimitiveValue.cpp:
* Source/WebCore/css/CSSPrimitiveValue.h:
* Source/WebCore/css/CSSPrimitiveValueMappings.h:
* Source/WebCore/css/CSSProperties.json:
* Source/WebCore/css/CSSToStyleMap.cpp:
* Source/WebCore/style/StyleBuilderConverter.h:
* Source/WebCore/style/StyleBuilderCustom.h:
* Source/WebCore/style/TransformOperationsBuilder.cpp:
* Source/WebCore/style/values/transforms/StyleTranslate.cpp:

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



To unsubscribe from these emails, change your notification settings at 
https://github.com/WebKit/WebKit/settings/notifications
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to