[webkit-changes] [WebKit/WebKit] f54fc4: [Flex] Fix imported/w3c/web-platform-tests/css/css...

Alan Baradlay noreply at github.com
Fri Jul 26 20:38:34 PDT 2024


  Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: f54fc433d1ded8aa429558c3c60ecc6f4915f9a1
      https://github.com/WebKit/WebKit/commit/f54fc433d1ded8aa429558c3c60ecc6f4915f9a1
  Author: Alan Baradlay <zalan at apple.com>
  Date:   2024-07-26 (Fri, 26 Jul 2024)

  Changed paths:
    M LayoutTests/TestExpectations
    M Source/WebCore/rendering/RenderBox.cpp
    M Source/WebCore/rendering/RenderBox.h
    M Source/WebCore/rendering/RenderFlexibleBox.cpp
    M Source/WebCore/rendering/RenderReplaced.cpp
    M Source/WebCore/rendering/RenderTable.cpp

  Log Message:
  -----------
  [Flex] Fix imported/w3c/web-platform-tests/css/css-flexbox/table-as-item-min-height-1.html
https://bugs.webkit.org/show_bug.cgi?id=277119

Reviewed by Antti Koivisto.

1. maybeCacheFlexItemMainIntrinsicSize is part of flex base size computation which means min/max width/height should be ignored (see https://drafts.csswg.org/css-flexbox-1/#algo-main-item
2. only ignore min/max width/height in main axis direction
3. apply this rule to tables when they are flex items

* LayoutTests/TestExpectations:
* Source/WebCore/rendering/RenderBox.cpp:
(WebCore::RenderBox::computeReplacedLogicalWidthRespectingMinMaxWidth const):
(WebCore::RenderBox::shouldIgnoreLogicalMinMaxWidthSizes const):
(WebCore::RenderBox::shouldIgnoreLogicalMinMaxHeightSizes const):
(WebCore::RenderBox::shouldIgnoreMinMaxSizes const): Deleted.
* Source/WebCore/rendering/RenderBox.h:
* Source/WebCore/rendering/RenderFlexibleBox.cpp:
(WebCore::RenderFlexibleBox::computeFlexBaseSizeForFlexItem):
* Source/WebCore/rendering/RenderReplaced.cpp:
(WebCore::RenderReplaced::paint):
* Source/WebCore/rendering/RenderTable.cpp:
(WebCore::RenderTable::layout):

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



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


More information about the webkit-changes mailing list