[webkit-changes] [WebKit/WebKit] ae09dd: Cleanup / micro-optimize RenderLayers accumulateOf...

Nikolas Zimmermann noreply at github.com
Tue Sep 20 05:05:08 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: ae09dde3f987f7d22a753377fb2a371d84da7549
      https://github.com/WebKit/WebKit/commit/ae09dde3f987f7d22a753377fb2a371d84da7549
  Author: Nikolas Zimmermann <nzimmermann at igalia.com>
  Date:   2022-09-20 (Tue, 20 Sep 2022)

  Changed paths:
    M Source/WebCore/rendering/RenderLayer.cpp

  Log Message:
  -----------
  Cleanup / micro-optimize RenderLayers accumulateOffsetTowardsAncestor helper
https://bugs.webkit.org/show_bug.cgi?id=245395

Reviewed by Rob Buis.

Avoid unnecessary LayoutPoint -> LayoutSize conversions (e.g. when applying
scroll offset, or when moving 'location' by the result of 'localToAbsolute').

Use auto in a few more places, where it helps readability.

Covered by existing tests.

* Source/WebCore/rendering/RenderLayer.cpp:
(WebCore::accumulateOffsetTowardsAncestor):

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




More information about the webkit-changes mailing list