Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 086b82e63015f9370e6815077e69c23e27eaa93d
      
https://github.com/WebKit/WebKit/commit/086b82e63015f9370e6815077e69c23e27eaa93d
  Author: Alan Baradlay <[email protected]>
  Date:   2025-02-10 (Mon, 10 Feb 2025)

  Changed paths:
    M Source/WebCore/layout/integration/inline/LayoutIntegrationInlineContent.h
    M 
Source/WebCore/layout/integration/inline/LayoutIntegrationInlineContentBuilder.cpp
    M Source/WebCore/layout/integration/inline/LayoutIntegrationLineLayout.cpp

  Log Message:
  -----------
  [IFC] LineLayout::collectOverflow should avoid iterating over lines each time
https://bugs.webkit.org/show_bug.cgi?id=287332

Reviewed by Antti Koivisto.

Both ink and scrollable overflows are computed while running 
InlineContentBuilder. Let's cache
these values and use them in LineLayout::collectOverflow.

* Source/WebCore/layout/integration/inline/LayoutIntegrationInlineContent.h:
(WebCore::LayoutIntegration::InlineContent::displayContent const):
(WebCore::LayoutIntegration::InlineContent::scrollableOverflow const):
(WebCore::LayoutIntegration::InlineContent::inkOverflow const):
(WebCore::LayoutIntegration::InlineContent::hasInkOverflow const):
(WebCore::LayoutIntegration::InlineContent::setInkOverflow):
(WebCore::LayoutIntegration::InlineContent::setScrollableOverflow):
(WebCore::LayoutIntegration::InlineContent::setHasInkOverflow): Deleted.
* 
Source/WebCore/layout/integration/inline/LayoutIntegrationInlineContentBuilder.cpp:
(WebCore::LayoutIntegration::InlineContentBuilder::adjustDisplayLines const):
* Source/WebCore/layout/integration/inline/LayoutIntegrationLineLayout.cpp:
(WebCore::LayoutIntegration::LineLayout::collectOverflow):

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



To unsubscribe from these emails, change your notification settings at 
https://github.com/WebKit/WebKit/settings/notifications
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to