Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 58d688191f045a2b017fa1ce74fa9963b5b01021
      
https://github.com/WebKit/WebKit/commit/58d688191f045a2b017fa1ce74fa9963b5b01021
  Author: Sam Weinig <[email protected]>
  Date:   2026-02-04 (Wed, 04 Feb 2026)

  Changed paths:
    M Source/WebCore/Headers.cmake
    M Source/WebCore/WebCore.xcodeproj/project.pbxproj
    M Source/WebCore/css/CSSPrimitiveValue.cpp
    M Source/WebCore/css/CSSPrimitiveValue.h
    M Source/WebCore/html/shadow/TextControlInnerElements.cpp
    M Source/WebCore/rendering/cocoa/RenderThemeCocoa.mm
    M Source/WebCore/rendering/ios/RenderThemeIOS.mm
    M Source/WebCore/rendering/style/RenderStyle+GettersInlines.h
    M Source/WebCore/style/values/filter-effects/StyleDropShadowFunction.cpp
    M Source/WebCore/style/values/non-standard/StyleWebKitTextStrokeWidth.cpp
    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
    A 
Source/WebCore/style/values/primitives/StylePrimitiveNumericTypes+Rounding.h

  Log Message:
  -----------
  [Style] Add utility to perform em-to-px conversions
https://bugs.webkit.org/show_bug.cgi?id=306792

Reviewed by Antti Koivisto.

Adds utility functions, `emToPx`, to perform em-to-px conversions,
replacing the existing method which used CSSPrimitiveValue to do it.

Also moves numeric rounding function to its own file so it can be
used without including CSSPrimitiveValue.h.

* Source/WebCore/Headers.cmake:
* Source/WebCore/WebCore.xcodeproj/project.pbxproj:
* Source/WebCore/css/CSSPrimitiveValue.cpp:
* Source/WebCore/css/CSSPrimitiveValue.h:
* Source/WebCore/html/shadow/TextControlInnerElements.cpp:
* Source/WebCore/rendering/cocoa/RenderThemeCocoa.mm:
* Source/WebCore/rendering/ios/RenderThemeIOS.mm:
* Source/WebCore/rendering/style/RenderStyle+GettersInlines.h:
* Source/WebCore/style/values/filter-effects/StyleDropShadowFunction.cpp:
* Source/WebCore/style/values/non-standard/StyleWebKitTextStrokeWidth.cpp:
* 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+Rounding.h: 
Added.

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



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

Reply via email to