Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: fe99c70a993ec06462b97825a2ce58222bbc2363
      
https://github.com/WebKit/WebKit/commit/fe99c70a993ec06462b97825a2ce58222bbc2363
  Author: Ahmad Saleem <[email protected]>
  Date:   2026-04-04 (Sat, 04 Apr 2026)

  Changed paths:
    M Source/WebCore/rendering/RenderElement.cpp
    M Source/WebCore/rendering/RenderTableSection.cpp

  Log Message:
  -----------
  Use last() and removeLast() instead of redundant size()-based indexing in 
rendering code
https://bugs.webkit.org/show_bug.cgi?id=311500
rdar://174094367

Reviewed by Alan Baradlay.

Replace verbose vec[vec.size() - 1] patterns with last() and
removeAt(vec.size() - 1) with removeLast() for clarity.

* Source/WebCore/rendering/RenderElement.cpp:
(WebCore::RenderElement::adjustComputedFontSizesOnBlocks):
(WebCore::RenderElement::resetTextAutosizing):
* Source/WebCore/rendering/RenderTableSection.cpp:
(WebCore::RenderTableSection::dirtiedRows const):
(WebCore::RenderTableSection::dirtiedColumns const):

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



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

Reply via email to