[webkit-changes] [WebKit/WebKit] d30c0a: Simplify paint rect calculations in RenderReplaced...
Ahmad Saleem
noreply at github.com
Wed Nov 9 19:51:25 PST 2022
Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: d30c0aeee94bcc5f57bfe808c4d379fe6fb575a4
https://github.com/WebKit/WebKit/commit/d30c0aeee94bcc5f57bfe808c4d379fe6fb575a4
Author: Ahmad Saleem <ahmad.saleem792+github at gmail.com>
Date: 2022-11-09 (Wed, 09 Nov 2022)
Changed paths:
M Source/WebCore/rendering/RenderReplaced.cpp
Log Message:
-----------
Simplify paint rect calculations in RenderReplaced::shouldPaint
Simplify paint rect calculations in RenderReplaced::shouldPaint
https://bugs.webkit.org/show_bug.cgi?id=247698
Reviewed by Alan Baradlay.
Merge - https://src.chromium.org/viewvc/blink?revision=198240&view=revision
Compute a paint rectangle based on visualOverflowRect() once, and then
reuse that where needed to avoid calling said method four times.
This change does not change any functionality but just refactor code. Hence, no new test added.
* Source/WebCore/rendering/RenderReplaced.cpp:
(RenderReplaced::shouldPaint): Refactor code to reduce calls to "visualOverflowRect"
Canonical link: https://commits.webkit.org/256521@main
More information about the webkit-changes
mailing list