[Webkit-unassigned] [Bug 75171] NULL ptr in WebCore::TextIterator::rangeFromLocationAndLength

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Wed Jan 4 15:10:07 PST 2012


https://bugs.webkit.org/show_bug.cgi?id=75171





--- Comment #2 from Ryosuke Niwa <rniwa at webkit.org>  2012-01-04 15:10:07 PST ---
(From update of attachment 121168)
View in context: https://bugs.webkit.org/attachment.cgi?id=121168&action=review

> Source/WebCore/editing/ApplyBlockElementCommand.cpp:84
> +    // startOfSelection and endOfSelection can be null when
> +    // "-webkit-user-select: none" style attribute is specified.
> +    if (startOfSelection.isNull() || endOfSelection.isNull())

You should just call isNonOrphanedCaretOrRange on selection.

-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the webkit-unassigned mailing list