Bug 57335 - Clean up bidiNext by abstracting repeated code
Summary: Clean up bidiNext by abstracting repeated code
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: New Bugs (show other bugs)
Version: 528+ (Nightly build)
Hardware: Other OS X 10.5
: P2 Normal
Assignee: Eric Seidel (no email)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-03-29 07:04 PDT by Eric Seidel (no email)
Modified: 2011-03-29 11:12 PDT (History)
5 users (show)

See Also:


Attachments
Patch (6.23 KB, patch)
2011-03-29 07:05 PDT, Eric Seidel (no email)
no flags Details | Formatted Diff | Diff
Patch for landing (6.21 KB, patch)
2011-03-29 09:06 PDT, Eric Seidel (no email)
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Eric Seidel (no email) 2011-03-29 07:04:15 PDT
Clean up bidiNext by abstracting repeated code
Comment 1 Eric Seidel (no email) 2011-03-29 07:05:40 PDT
Created attachment 87310 [details]
Patch
Comment 2 Ryosuke Niwa 2011-03-29 07:15:31 PDT
Comment on attachment 87310 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=87310&action=review

> Source/WebCore/rendering/InlineIterator.h:91
> +    using namespace WTF::Unicode;

Is it a common practice in WebKit to do "using namespace" inside a function?

> Source/WebCore/rendering/InlineIterator.h:111
> +    if (!resolver || !object->isRenderInline())

We should assert that object is not NULL or add an early exit.
Comment 3 Eric Seidel (no email) 2011-03-29 07:19:51 PDT
(In reply to comment #2)
> (From update of attachment 87310 [details])
> View in context: https://bugs.webkit.org/attachment.cgi?id=87310&action=review
> 
> > Source/WebCore/rendering/InlineIterator.h:91
> > +    using namespace WTF::Unicode;
> 
> Is it a common practice in WebKit to do "using namespace" inside a function?

No.  But it seems common in the bidi code.

> > Source/WebCore/rendering/InlineIterator.h:111
> > +    if (!resolver || !object->isRenderInline())
> 
> We should assert that object is not NULL or add an early exit.

OK.  will do.
Comment 4 Eric Seidel (no email) 2011-03-29 09:06:24 PDT
Created attachment 87340 [details]
Patch for landing
Comment 5 WebKit Commit Bot 2011-03-29 10:33:42 PDT
Comment on attachment 87340 [details]
Patch for landing

Clearing flags on attachment: 87340

Committed r82275: <http://trac.webkit.org/changeset/82275>
Comment 6 WebKit Commit Bot 2011-03-29 10:33:46 PDT
All reviewed patches have been landed.  Closing bug.
Comment 7 WebKit Review Bot 2011-03-29 11:12:31 PDT
http://trac.webkit.org/changeset/82275 might have broken Leopard Intel Debug (Tests)