[webkit-changes] [WebKit/WebKit] 2d5429: BackgroundPainter code cleanup

Simon Fraser noreply at github.com
Thu Aug 15 22:22:53 PDT 2024


  Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 2d5429a008fa6ae99cfa9a45015116489fe06a8f
      https://github.com/WebKit/WebKit/commit/2d5429a008fa6ae99cfa9a45015116489fe06a8f
  Author: Simon Fraser <simon.fraser at apple.com>
  Date:   2024-08-15 (Thu, 15 Aug 2024)

  Changed paths:
    M Source/WebCore/rendering/BackgroundPainter.cpp
    M Source/WebCore/rendering/BackgroundPainter.h

  Log Message:
  -----------
  BackgroundPainter code cleanup
https://bugs.webkit.org/show_bug.cgi?id=278209
rdar://134007965

Reviewed by Matt Woodrow and Tim Nguyen.

Make BackgroundPainter member functions `const`.

Rename the `box` argument to `inlineBoxIterator` to reduce confusion.

* Source/WebCore/rendering/BackgroundPainter.cpp:
(WebCore::BackgroundPainter::paintBackground const):
(WebCore::BackgroundPainter::paintRootBoxFillLayers const):
(WebCore::BackgroundPainter::paintFillLayers const):
(WebCore::BackgroundPainter::paintFillLayer const):
(WebCore::BackgroundPainter::backgroundRoundedRectAdjustedForBleedAvoidance const):
(WebCore::BackgroundPainter::backgroundRoundedRect const):
(WebCore::BackgroundPainter::paintBoxShadow const):
(WebCore::BackgroundPainter::paintBackground): Deleted.
(WebCore::BackgroundPainter::paintRootBoxFillLayers): Deleted.
(WebCore::BackgroundPainter::paintFillLayers): Deleted.
(WebCore::BackgroundPainter::paintFillLayer): Deleted.
(WebCore::BackgroundPainter::paintBoxShadow): Deleted.
* Source/WebCore/rendering/BackgroundPainter.h:
(WebCore::BackgroundPainter::paintFillLayer):

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