Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 8586b1981cad4612936a587a89fab96433aeb4f9
      
https://github.com/WebKit/WebKit/commit/8586b1981cad4612936a587a89fab96433aeb4f9
  Author: Alan Baradlay <[email protected]>
  Date:   2026-10-10 (Sat, 10 Oct 2026)

  Changed paths:
    M Source/WebCore/rendering/RenderElement.h

  Log Message:
  -----------
  [line-clamp] Make the forced-hidden bit a line-clamp state
https://bugs.webkit.org/show_bug.cgi?id=327037
<rdar://problem/189653139>

Reviewed by Antti Koivisto.

Within a line-clamp container, floats which have not been made into invisible 
boxes "must be visually clipped to the unshaped
block-end content edge of the line-clamp container".
https://drafts.csswg.org/css-overflow-4/#line-clamp-containers

A box is either an invisible box of a line-clamp container, a float clipped by 
it, or neither, so turn the forced-hidden bit
into a 2-bit line-clamp state (None, ForceHidden, Clipped) and add 
isClippedByLineClamp for the floats.
No change in functionality.

* Source/WebCore/rendering/RenderElement.h:
(WebCore::RenderElement::isForceHiddenByLineClamp const):
(WebCore::RenderElement::setIsForceHiddenByLineClamp):
(WebCore::RenderElement::isClippedByLineClamp const):
(WebCore::RenderElement::setIsClippedByLineClamp):
(WebCore::RenderElement::lineClampState const):
(WebCore::RenderElement::setLineClampState):

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



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

Reply via email to