[webkit-changes] [WebKit/WebKit] 2fb6b6: Move physicalToFlowRelativeDirection from RenderBo...

Alan Baradlay noreply at github.com
Tue Apr 25 06:58:06 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 2fb6b67825702db7105f0b934899dc6b558709db
      https://github.com/WebKit/WebKit/commit/2fb6b67825702db7105f0b934899dc6b558709db
  Author: Alan Baradlay <zalan at apple.com>
  Date:   2023-04-25 (Tue, 25 Apr 2023)

  Changed paths:
    M Source/WebCore/css/ComputedStyleExtractor.cpp
    M Source/WebCore/rendering/RenderBox.cpp
    M Source/WebCore/rendering/RenderBox.h

  Log Message:
  -----------
  Move physicalToFlowRelativeDirection from RenderBox to ComputedStyleExtractor
https://bugs.webkit.org/show_bug.cgi?id=255884

Reviewed by Antti Koivisto.

This function (and friends) does not need to be on RenderBox. It's also in preparation for using it in isLayoutDependent to support shorthand properties.

* Source/WebCore/css/ComputedStyleExtractor.cpp:
(WebCore::physicalToFlowRelativeDirection):
(WebCore::toMarginTrimType):
(WebCore::ComputedStyleExtractor::valueForPropertyInStyle):
* Source/WebCore/rendering/RenderBox.cpp:
(WebCore::RenderBox::physicalToFlowRelativeDirectionMapping const): Deleted.
(WebCore::flowRelativeDirectionToMarginTrimType): Deleted.
* Source/WebCore/rendering/RenderBox.h:

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




More information about the webkit-changes mailing list