Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 3317fbd4635cd622d3b7a1e9a9b9f54fc94999da
      
https://github.com/WebKit/WebKit/commit/3317fbd4635cd622d3b7a1e9a9b9f54fc94999da
  Author: Alan Bujtas <[email protected]>
  Date:   2022-09-22 (Thu, 22 Sep 2022)

  Changed paths:
    M Source/WebCore/layout/integration/LayoutIntegrationCoverage.cpp
    M Source/WebCore/layout/integration/inline/LayoutIntegrationLineLayout.cpp

  Log Message:
  -----------
  [IFC][Integration] Enable intrusive floats coming from rtl inline direction
https://bugs.webkit.org/show_bug.cgi?id=245528

Reviewed by Antti Koivisto.

Let's convert the incoming, intrusive float's directions (left, right, 
inline-start, inline-end) and coordinates to logical values (e.g. a left float 
should treated as "right" when the inline direction is rtl).
This enables the following type of content:
  <div style="direction: rtl">
    <img float-left>
    <div>this is rtl inline direction content with intrusive float box</div>
  </div>

* Source/WebCore/layout/integration/LayoutIntegrationCoverage.cpp:
(WebCore::LayoutIntegration::canUseForLineLayoutWithReason):
* Source/WebCore/layout/integration/inline/LayoutIntegrationLineLayout.cpp:
(WebCore::LayoutIntegration::LineLayout::prepareFloatingState):

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


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

Reply via email to