Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: e888c45ca558a6567929a48ea5838fc372d95ddf
      
https://github.com/WebKit/WebKit/commit/e888c45ca558a6567929a48ea5838fc372d95ddf
  Author: Antti Koivisto <an...@apple.com>
  Date:   2025-04-07 (Mon, 07 Apr 2025)

  Changed paths:
    M Source/WebCore/css/CSSToLengthConversionData.cpp
    M Source/WebCore/css/CSSToLengthConversionData.h
    M Source/WebCore/style/StyleBuilderState.cpp
    M Source/WebCore/style/StyleBuilderState.h
    M Source/WebCore/style/StyleResolver.cpp

  Log Message:
  -----------
  Remove m_viewportDependencyDetectionStyle hack from CSSToLengthConversionData
https://bugs.webkit.org/show_bug.cgi?id=291188
rdar://148731894

Reviewed by Tim Nguyen.

We have mutable style builder state available, use that for setting the 
viewport unit bit.

* Source/WebCore/css/CSSToLengthConversionData.cpp:
(WebCore::CSSToLengthConversionData::CSSToLengthConversionData):
(WebCore::CSSToLengthConversionData::defaultViewportFactor const):
(WebCore::CSSToLengthConversionData::smallViewportFactor const):
(WebCore::CSSToLengthConversionData::largeViewportFactor const):
(WebCore::CSSToLengthConversionData::dynamicViewportFactor const):
(WebCore::CSSToLengthConversionData::setUsesContainerUnits const):
* Source/WebCore/css/CSSToLengthConversionData.h:
* Source/WebCore/style/StyleBuilderState.cpp:
(WebCore::Style::BuilderState::setUsesViewportUnits):
(WebCore::Style::BuilderState::setUsesContainerUnits):
* Source/WebCore/style/StyleBuilderState.h:
* Source/WebCore/style/StyleResolver.cpp:
(WebCore::Style::Resolver::styleForElement):
(WebCore::Style::Resolver::styleForElementWithCachedMatchResult):
(WebCore::Style::Resolver::styleForPseudoElement):
(WebCore::Style::Resolver::applyMatchedProperties):

Move setting the document bit to a single place.

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



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

Reply via email to