Bug 68331

Summary: [chromium] frameContentAsPlainText shouldn't be using TextIterator
Product: WebKit Reporter: Ryosuke Niwa <rniwa>
Component: WebKit Misc.Assignee: Nobody <webkit-unassigned>
Status: RESOLVED WONTFIX    
Severity: Normal CC: morrita, schenney, sullivan, tkent, tony
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: Unspecified   
OS: Unspecified   
Bug Depends on:    
Bug Blocks: 68333    

Ryosuke Niwa
Reported 2011-09-18 20:46:18 PDT
We should avoid using TextIterator directly in WebKit layer code. Justification for not using plainText is that: " // The text iterator will walk nodes giving us text. This is similar to // the plainText() function in TextIterator.h, but we implement the maximum // size and also copy the results directly into a wstring, avoiding the // string conversion." However, this comment is not true at all as the function currently takes Vector<UChar>.
Attachments
Note You need to log in before you can comment on or make changes to this bug.