[webkit-changes] [WebKit/WebKit] 5e4a6f: Factor Shape computation into a standalone function

Antti Koivisto noreply at github.com
Fri Mar 3 13:56:53 PST 2023


  Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 5e4a6f09f5f94236200aee53d376984ed905e897
      https://github.com/WebKit/WebKit/commit/5e4a6f09f5f94236200aee53d376984ed905e897
  Author: Antti Koivisto <antti at apple.com>
  Date:   2023-03-03 (Fri, 03 Mar 2023)

  Changed paths:
    M Source/WebCore/rendering/RenderBlockFlow.cpp
    M Source/WebCore/rendering/shapes/ShapeOutsideInfo.cpp
    M Source/WebCore/rendering/shapes/ShapeOutsideInfo.h

  Log Message:
  -----------
  Factor Shape computation into a standalone function
https://bugs.webkit.org/show_bug.cgi?id=253313
rdar://106194842

Reviewed by Alan Baradlay.

This will help in supporting shape-outside in LFC.

* Source/WebCore/rendering/RenderBlockFlow.cpp:
(WebCore::RenderBlockFlow::positionNewFloats):
* Source/WebCore/rendering/shapes/ShapeOutsideInfo.cpp:
(WebCore::referenceBox):
(WebCore::computeLogicalBoxSize):
(WebCore::ShapeOutsideInfo::invalidateForSizeChangeIfNeeded):
(WebCore::makeShapeForShapeOutside):
(WebCore::checkShapeImageOrigin):
(WebCore::ShapeOutsideInfo::computedShape const):
(WebCore::ShapeOutsideInfo::setReferenceBoxLogicalSize): Deleted.
(WebCore::ShapeOutsideInfo::createShapeForImage const): Deleted.
* Source/WebCore/rendering/shapes/ShapeOutsideInfo.h:

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




More information about the webkit-changes mailing list