| Summary: | Navigating to www.apple.com hits assertion in WebCore::TextIteratorCopyableText::set() | ||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| Product: | WebKit | Reporter: | zalan <zalan> | ||||||||
| Component: | Layout and Rendering | Assignee: | zalan <zalan> | ||||||||
| Status: | RESOLVED FIXED | ||||||||||
| Severity: | Normal | CC: | commit-queue, joepeck, koivisto | ||||||||
| Priority: | P2 | Keywords: | InRadar | ||||||||
| Version: | 528+ (Nightly build) | ||||||||||
| Hardware: | Unspecified | ||||||||||
| OS: | Unspecified | ||||||||||
| Attachments: |
|
||||||||||
|
Description
zalan
2015-05-05 09:34:20 PDT
Created attachment 252389 [details]
Patch
Created attachment 252390 [details]
Patch
Comment on attachment 252390 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=252390&action=review > Source/WebCore/editing/TextIterator.cpp:620 > + } Should not we have a loop here to collect all the prefix tabs and newlines in one emitText() instead of emitting each one in emitCharacter()? Comment on attachment 252390 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=252390&action=review >> Source/WebCore/editing/TextIterator.cpp:620 >> + } > > Should not we have a loop here to collect all the prefix tabs and newlines in one emitText() instead of emitting each one in emitCharacter()? Whitespace is usually collapsed. Comment on attachment 252390 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=252390&action=review >>> Source/WebCore/editing/TextIterator.cpp:620 >>> + } >> >> Should not we have a loop here to collect all the prefix tabs and newlines in one emitText() instead of emitting each one in emitCharacter()? > > Whitespace is usually collapsed. Non-collapsed case is handled separately. (see TextIterator::handleTextNode -> if (!renderer.style().collapseWhiteSpace())) Created attachment 252406 [details]
Patch
Comment on attachment 252406 [details]
Patch
r=me
Comment on attachment 252406 [details] Patch Clearing flags on attachment: 252406 Committed r183835: <http://trac.webkit.org/changeset/183835> All reviewed patches have been landed. Closing bug. |