Bug 101122 - TextBreakIterator should use typedefs in a common header instead of reinterpret_cast
Summary: TextBreakIterator should use typedefs in a common header instead of reinterpr...
Status: NEW
Alias: None
Product: WebKit
Classification: Unclassified
Component: Layout and Rendering (show other bugs)
Version: 528+ (Nightly build)
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Glenn Adams
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-11-02 16:20 PDT by Eric Seidel (no email)
Modified: 2012-11-02 16:25 PDT (History)
3 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Eric Seidel (no email) 2012-11-02 16:20:50 PDT
TextBreakIterator should use typedefs in a common header instead of reinterpret_cast

The ICU code has lots of:
UBreakIterator* ubrkIter = reinterpret_cast<UBreakIterator*>(iterator);

TextBreakIterator is just forward declared and never defined.  This is different from how say PlatformGraphicsContext or the other graphics types work where they have a set of #ifdef lines which typedef from the appropriate platform pointer type to the shared type.

This was found as part of reviewing bug 89235.