Bug 55139 - [Qt] Remove bogus optimizations in TextBreakIteratorQt
Summary: [Qt] Remove bogus optimizations in TextBreakIteratorQt
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: Layout and Rendering (show other bugs)
Version: 528+ (Nightly build)
Hardware: All All
: P2 Normal
Assignee: Andreas Kling
URL:
Keywords: Qt, QtTriaged
: 55215 61619 (view as bug list)
Depends on:
Blocks:
 
Reported: 2011-02-24 06:38 PST by Andreas Kling
Modified: 2011-05-27 02:09 PDT (History)
4 users (show)

See Also:


Attachments
Proposed patch (2.76 KB, patch)
2011-02-24 06:40 PST, Andreas Kling
kenneth: review+
Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Andreas Kling 2011-02-24 06:38:43 PST
TextBreakIteratorQt is currently quite broken, see bug 46695 for more details.
While we wait for an ideal fix, let's remove the optimizations that are causing the crashiness.
Comment 1 Andreas Kling 2011-02-24 06:40:08 PST
Created attachment 83646 [details]
Proposed patch
Comment 2 Simon Hausmann 2011-02-24 07:01:18 PST
For the record: Move the deep string copy until after the comparision fails, to avoid a deep copy when we hit the "cache" :)
Comment 3 Andreas Kling 2011-02-24 07:17:31 PST
(In reply to comment #2)
> For the record: Move the deep string copy until after the comparision fails, to avoid a deep copy when we hit the "cache" :)

I'm a stupidface. Of course. :)
Comment 4 Andreas Kling 2011-02-24 08:09:34 PST
Committed r79567: <http://trac.webkit.org/changeset/79567>
Comment 5 Andreas Kling 2011-02-25 06:22:43 PST
*** Bug 55215 has been marked as a duplicate of this bug. ***
Comment 6 Andreas Kling 2011-05-27 02:09:12 PDT
*** Bug 61619 has been marked as a duplicate of this bug. ***