Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: ea8db722e368819f20a0c2da48172c2cb15c1b9b
      
https://github.com/WebKit/WebKit/commit/ea8db722e368819f20a0c2da48172c2cb15c1b9b
  Author: Taher Ali <[email protected]>
  Date:   2025-10-09 (Thu, 09 Oct 2025)

  Changed paths:
    M 
Source/WebCore/style/values/primitives/StyleLengthWrapper+CSSValueConversion.h
    M 
Source/WebCore/style/values/primitives/StylePrimitiveNumericOrKeyword+Conversions.h

  Log Message:
  -----------
  [Style] Fix LengthWrapperBase should respect evaluation-time flag
https://bugs.webkit.org/show_bug.cgi?id=300443
rdar://162279773

Reviewed by Antti Koivisto.

For properties that derive from LengthWrapperBase and are marked with
`Unzoomed`, there was bug causing incorrect getComputedStyle() results.

LengthWrapperBase CSSValueConversion was always storing unzoomed values
(zoom=1.0f) regardless of the evaluation-time flag. It should store
zoomed values when the flag is OFF to preserve trunk behavior.

* 
Source/WebCore/style/values/primitives/StyleLengthWrapper+CSSValueConversion.h:
(WebCore::Style::CSSValueConversion<T>::selectConversionData):

* 
Source/WebCore/style/values/primitives/StylePrimitiveNumericOrKeyword+Conversions.h:
We were calling adjustForZoom() unconditionally. We should only adjust
when evaluation-time zoom flag is OFF.

Canonical link: https://commits.webkit.org/301279@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