Summary: | InlineTextBox's m_len can be an unsigned (rather than an unsigned short) | ||||||||
---|---|---|---|---|---|---|---|---|---|
Product: | WebKit | Reporter: | Myles C. Maxfield <mmaxfield> | ||||||
Component: | Layout and Rendering | Assignee: | Myles C. Maxfield <mmaxfield> | ||||||
Status: | RESOLVED FIXED | ||||||||
Severity: | Normal | CC: | commit-queue, dbates, esprehn+autocc, glenn, kling, kondapallykalyan, zalan | ||||||
Priority: | P2 | ||||||||
Version: | 528+ (Nightly build) | ||||||||
Hardware: | Unspecified | ||||||||
OS: | Unspecified | ||||||||
Attachments: |
|
Description
Myles C. Maxfield
2014-06-22 10:36:41 PDT
Created attachment 233669 [details]
Patch
Comment on attachment 233669 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=233669&action=review > Source/WebCore/ChangeLog:8 > + After Zalan's talks with Antti, it seems that the simple line layout code Whoops. Looks like this was Kling. Created attachment 233670 [details]
Patch
Comment on attachment 233670 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=233670&action=review OK > Source/WebCore/rendering/InlineTextBox.h:38 > +const unsigned cNoTruncation = UINT_MAX; > +const unsigned cFullTruncation = UINT_MAX - 1; We should take this opportunity to substitute the C++ idiom of std::numeric_limits<unsigned>::max() for UINT_MAX in these lines. |