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

Changeset 284665 in webkit


Ignore:
Timestamp:
Oct 21, 2021, 9:52:50 PM (5 years ago)
Author:
commit-queue@webkit.org
Message:

Two null box iterators from different paths fail to compare equal
https://bugs.webkit.org/show_bug.cgi?id=232093

Patch by Gabriel Nava Marino <gnavamarino@apple.com> on 2021-10-21
Reviewed by Antti Koivisto.

Source/WebCore:

Test: fast/clip/clip-hit-null-iterator-path-comparison.html

  • layout/integration/InlineIteratorBox.cpp:

(WebCore::InlineIterator::BoxIterator::operator== const):

LayoutTests:

  • fast/clip/clip-hit-null-iterator-path-comparison-expected.txt: Added.
  • fast/clip/clip-hit-null-iterator-path-comparison.html: Added.
Location:
trunk
Files:
2 added
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/LayoutTests/ChangeLog

    r284660 r284665  
     12021-10-21  Gabriel Nava Marino  <gnavamarino@apple.com>
     2
     3        Two null box iterators from different paths fail to compare equal
     4        https://bugs.webkit.org/show_bug.cgi?id=232093
     5
     6        Reviewed by Antti Koivisto.
     7
     8        * fast/clip/clip-hit-null-iterator-path-comparison-expected.txt: Added.
     9        * fast/clip/clip-hit-null-iterator-path-comparison.html: Added.
     10
    1112021-10-21  Chris Dumez  <cdumez@apple.com>
    212
  • trunk/Source/WebCore/ChangeLog

    r284664 r284665  
     12021-10-21  Gabriel Nava Marino  <gnavamarino@apple.com>
     2
     3        Two null box iterators from different paths fail to compare equal
     4        https://bugs.webkit.org/show_bug.cgi?id=232093
     5
     6        Reviewed by Antti Koivisto.
     7
     8        Test: fast/clip/clip-hit-null-iterator-path-comparison.html
     9
     10        * layout/integration/InlineIteratorBox.cpp:
     11        (WebCore::InlineIterator::BoxIterator::operator== const):
     12
    1132021-10-21  Saam Barati  <sbarati@apple.com>
    214
  • trunk/Source/WebCore/layout/integration/InlineIteratorBox.cpp

    r284269 r284665  
    4949bool BoxIterator::operator==(const BoxIterator& other) const
    5050{
     51    if (atEnd() && other.atEnd())
     52        return true;
     53
    5154    return m_box.m_pathVariant == other.m_box.m_pathVariant;
    5255}
Note: See TracChangeset for help on using the changeset viewer.