[webkit-changes] [WebKit/WebKit] aceae8: Change lengths to reference throughout `table` layout

Commit Queue noreply at github.com
Thu Jul 25 14:34:03 PDT 2024


  Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: aceae875e5eb85de5c5ce8a50dc7908f9bdaae65
      https://github.com/WebKit/WebKit/commit/aceae875e5eb85de5c5ce8a50dc7908f9bdaae65
  Author: Ahmad Saleem <ahmad.saleem792 at gmail.com>
  Date:   2024-07-25 (Thu, 25 Jul 2024)

  Changed paths:
    M Source/WebCore/rendering/AutoTableLayout.cpp
    M Source/WebCore/rendering/FixedTableLayout.cpp
    M Source/WebCore/rendering/RenderTable.cpp
    M Source/WebCore/rendering/RenderTableCell.cpp
    M Source/WebCore/rendering/RenderTableCell.h
    M Source/WebCore/rendering/RenderTableCellInlines.h
    M Source/WebCore/rendering/RenderTableSection.cpp

  Log Message:
  -----------
  Change lengths to reference throughout `table` layout

https://bugs.webkit.org/show_bug.cgi?id=277039

Reviewed by Alan Baradlay.

This is just more of code health fixes to change Lengths to references
to avoid copying.

* Source/WebCore/rendering/RenderTable.cpp:
(WebCore::RenderTable::updateLogicalWidth):
(WebCore::RenderTable::layout):
* Source/WebCore/rendering/RenderTableCell.cpp:
(WebCore::RenderTableCell::logicalWidthFromColumns const):
(WebCore::RenderTableCell::computePreferredLogicalWidths):
* Source/WebCore/rendering/RenderTableCell.h:
* Source/WebCore/rendering/RenderTableCellInlines.h:
(WebCore::RenderTableCell::styleOrColLogicalWidth const):
* Source/WebCore/rendering/RenderTableSection.cpp:
(WebCore::updateLogicalHeightForCell):
* Source/WebCore/rendering/AutoTableLayout.cpp:
(WebCore::shouldScaleColumnsForSelf):
* Source/WebCore/rendering/FixedTableLayout.cpp:
(WebCore::FixedTableLayout::applyPreferredLogicalWidthQuirks const):

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