The assertion was guarded by a #ifndef ASSERT_DISABLED. ASSERT_DISABLED is always defined, either as 0 or 1. Hence, this assertion code is never ever built. Changing the #ifndef ASSERT_DISABLED to #if !ASSERT_DISABLED results in a build error. We should either fix this assertion, or remove it.
Created attachment 386653 [details] proposed patch.
Comment on attachment 386653 [details] proposed patch. I think this was valuable assertion code; too bad it was left turned off. I understand the code didn’t compile when enabled, but it shouldn’t be too hard to fix. I think it’s likely worth fixing rather than deleting.
Comment on attachment 386653 [details] proposed patch. Let's fix the assertion instead of deleting it as Darin requested.
By the way, there's a chance that when we turn on the assertion we'll see failures, which will mean we'll have to turn it back off again until someone can investigate!
Created attachment 387618 [details] Enables the assertion
Created attachment 387621 [details] Fixed GTK+ builds
Comment on attachment 387621 [details] Fixed GTK+ builds View in context: https://bugs.webkit.org/attachment.cgi?id=387621&action=review > Source/WebCore/html/HTMLTextFormControlElement.cpp:647 > // https://bugs.webkit.org/show_bug.cgi?id=205706. Please remove the above FIXME and bug url comment now that you’re fixing it.
(In reply to Mark Lam from comment #7) > Comment on attachment 387621 [details] > Fixed GTK+ builds > > View in context: > https://bugs.webkit.org/attachment.cgi?id=387621&action=review > > > Source/WebCore/html/HTMLTextFormControlElement.cpp:647 > > // https://bugs.webkit.org/show_bug.cgi?id=205706. > > Please remove the above FIXME and bug url comment now that you’re fixing it. Oh oops, removed that.
Created attachment 387625 [details] Updated
Comment on attachment 387625 [details] Updated View in context: https://bugs.webkit.org/attachment.cgi?id=387625&action=review > Source/WebCore/accessibility/AccessibilityRenderObject.cpp:2035 > + return WebCore::indexForVisiblePosition(*node, position, { TextIteratorLegnthOption::GenerateSpacesForReplacedElements }); Typo here: "legnth". > Source/WebCore/editing/TextIteratorBehavior.h:64 > typedef unsigned short TextIteratorBehavior; Should move this one to OptionSet too later, right?
Created attachment 387747 [details] Patch for landing
Comment on attachment 387747 [details] Patch for landing Wait for EWS.
(In reply to Darin Adler from comment #10) > Comment on attachment 387625 [details] > Updated > > View in context: > https://bugs.webkit.org/attachment.cgi?id=387625&action=review > > > Source/WebCore/accessibility/AccessibilityRenderObject.cpp:2035 > > + return WebCore::indexForVisiblePosition(*node, position, { TextIteratorLegnthOption::GenerateSpacesForReplacedElements }); > > Typo here: "legnth". Fixed. > > Source/WebCore/editing/TextIteratorBehavior.h:64 > > typedef unsigned short TextIteratorBehavior; > > Should move this one to OptionSet too later, right? Yes, but in a separate patch.
Created attachment 387751 [details] Patch for landing
Comment on attachment 387751 [details] Patch for landing Wait for EWS again.
Committed r254557: <https://trac.webkit.org/changeset/254557>
<rdar://problem/58595369>
Re-opened since this is blocked by bug 207725