⚠ Archived content — this site is no longer maintained.   Current WebKit documentation is at docs.webkit.org.

Changeset 268817 in webkit


Ignore:
Timestamp:
Oct 21, 2020, 12:29:59 PM (6 years ago)
Author:
Alan Bujtas
Message:

[LFC][Integration] Remove redundant vertical position snapping in the iterator interface
https://bugs.webkit.org/show_bug.cgi?id=218039

Reviewed by Antti Koivisto.

Snapping is done during display content construction.

  • layout/integration/LayoutIntegrationRunIteratorModernPath.h:

(WebCore::LayoutIntegration::RunIteratorModernPath::rect const):
(WebCore::LayoutIntegration::verticallyRoundedRect): Deleted.

Location:
trunk/Source/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r268816 r268817  
     12020-10-21  Zalan Bujtas  <zalan@apple.com>
     2
     3        [LFC][Integration] Remove redundant vertical position snapping in the iterator interface
     4        https://bugs.webkit.org/show_bug.cgi?id=218039
     5
     6        Reviewed by Antti Koivisto.
     7
     8        Snapping is done during display content construction.
     9
     10        * layout/integration/LayoutIntegrationRunIteratorModernPath.h:
     11        (WebCore::LayoutIntegration::RunIteratorModernPath::rect const):
     12        (WebCore::LayoutIntegration::verticallyRoundedRect): Deleted.
     13
    1142020-10-21  Peng Liu  <peng.liu6@apple.com>
    215
  • trunk/Source/WebCore/layout/integration/LayoutIntegrationRunIteratorModernPath.h

    r268798 r268817  
    3535namespace LayoutIntegration {
    3636
    37 inline FloatRect verticallyRoundedRect(const FloatRect& rect)
    38 {
    39     return { FloatPoint(rect.x(), roundf(rect.y())), rect.size() };
    40 }
    41 
    4237class RunIteratorModernPath {
    4338public:
     
    5550    bool isText() const { return !!run().textContent(); }
    5651
    57     FloatRect rect() const { return verticallyRoundedRect(run().rect()); }
     52    FloatRect rect() const { return run().rect(); }
    5853
    5954    bool isHorizontal() const { return true; }
Note: See TracChangeset for help on using the changeset viewer.