Changeset 251977 in webkit


Ignore:
Timestamp:
Nov 3, 2019 3:39:01 PM (4 years ago)
Author:
Alan Bujtas
Message:

[LFC][Verification] Forced line break display runs don't have TextContext
https://bugs.webkit.org/show_bug.cgi?id=203779
<rdar://problem/56839710>

Reviewed by Antti Koivisto.

Display::Run's optional TextContext is not available for forced line breaks (since they are not text runs).

  • layout/Verification.cpp:

(WebCore::Layout::checkForMatchingTextRuns):

Location:
trunk/Source/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r251975 r251977  
     12019-11-03  Zalan Bujtas  <zalan@apple.com>
     2
     3        [LFC][Verification] Forced line break display runs don't have TextContext
     4        https://bugs.webkit.org/show_bug.cgi?id=203779
     5        <rdar://problem/56839710>
     6
     7        Reviewed by Antti Koivisto.
     8
     9        Display::Run's optional TextContext is not available for forced line breaks (since they are not text runs).
     10
     11        * layout/Verification.cpp:
     12        (WebCore::Layout::checkForMatchingTextRuns):
     13
    1142019-11-03  Ryosuke Niwa  <rniwa@webkit.org>
    215
  • trunk/Source/WebCore/layout/Verification.cpp

    r251238 r251977  
    126126        && areEssentiallyEqual(inlineTextBox.logicalTop(), inlineRun.logicalTop())
    127127        && areEssentiallyEqual(inlineTextBox.logicalBottom(), inlineRun.logicalBottom())
    128         && inlineTextBox.start() == inlineRun.textContext()->start()
    129         && inlineTextBox.end() == inlineRun.textContext()->end();
     128        && (inlineTextBox.isLineBreak() || (inlineTextBox.start() == inlineRun.textContext()->start() && inlineTextBox.end() == inlineRun.textContext()->end()));
    130129}
    131130
Note: See TracChangeset for help on using the changeset viewer.