Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: d4c0d8e82a8360b9c9b8e617cd6f1e8d9895c1c3
https://github.com/WebKit/WebKit/commit/d4c0d8e82a8360b9c9b8e617cd6f1e8d9895c1c3
Author: Alan Baradlay <[email protected]>
Date: 2026-05-04 (Mon, 04 May 2026)
Changed paths:
M Source/WebCore/layout/floats/FloatingContext.cpp
Log Message:
-----------
[cleanup] Move helper lambdas from FloatingContext::constraints to local
static functions
https://bugs.webkit.org/show_bug.cgi?id=313943
Reviewed by Antti Koivisto.
The FloatingContext::constraints function had two helper lambdas (`contains` and
`computeFloatEdgeAndBottom`) defined inline. These lambdas captured local
variables
and made the already long function harder to read.
* Source/WebCore/layout/floats/FloatingContext.cpp:
(WebCore::Layout::floatContainsLine):
(WebCore::Layout::computeShapeEdge):
(WebCore::Layout::computeFloatEdgeAndBottom):
(WebCore::Layout::FloatingContext::constraints const):
Canonical link: https://commits.webkit.org/312536@main
To unsubscribe from these emails, change your notification settings at
https://github.com/WebKit/WebKit/settings/notifications