Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 8be5cfd53e57e5c2cc6ec1e9629b62b1069aefeb
      
https://github.com/WebKit/WebKit/commit/8be5cfd53e57e5c2cc6ec1e9629b62b1069aefeb
  Author: Alan Baradlay <[email protected]>
  Date:   2022-12-21 (Wed, 21 Dec 2022)

  Changed paths:
    M Source/WebCore/layout/formattingContexts/inline/InlineLine.cpp
    M Source/WebCore/layout/formattingContexts/inline/InlineLine.h

  Log Message:
  -----------
  [IFC][hanging punctuation] Line::HangingContent should take "StopOrComma" 
trailing type
https://bugs.webkit.org/show_bug.cgi?id=249695

Reviewed by Antti Koivisto.

This is in preparation for supporting "hanging-punctuation: allow-end", where 
"A stop or comma at the end of a line conditionally hangs".
(This patch also refactors Line::handleTrailingHangingContent to make it read 
closer to the spec language.)

* Source/WebCore/layout/formattingContexts/inline/InlineLine.cpp:
(WebCore::Layout::Line::handleTrailingHangingContent):
* Source/WebCore/layout/formattingContexts/inline/InlineLine.h:
(WebCore::Layout::Line::HangingContent::isTrailingContentWhitespace const):
(WebCore::Layout::Line::HangingContent::isTrailingContentStopOrComa const):
(WebCore::Layout::Line::HangingContent::setTrailingStopOrComa):
(WebCore::Layout::Line::HangingContent::resetTrailingPunctuation):

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


_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to