[Webkit-unassigned] [Bug 61344] --webkit-visual-word does not work in multi-line

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Fri Jul 15 10:29:55 PDT 2011


https://bugs.webkit.org/show_bug.cgi?id=61344





--- Comment #17 from Xiaomei Ji <xji at chromium.org>  2011-07-15 10:29:54 PST ---
(From update of attachment 100723)
View in context: https://bugs.webkit.org/attachment.cgi?id=100723&action=review

>> Source/WebCore/editing/visible_units.cpp:1509
>> +    }
> 
> I started to think that these nested loops can be flattened as follows:
> 
> for (RenderObject* renderer = node->renderer(); renderer; renderer = renderer->parent()) {
>     if (renderer->isRenderBlock()) {
>         if (const RenderBlock* blockWithLineBoxes = previousBlockWithLineBoxes(toRenderBlock(renderer->previousSibling()))
>             return blockWithLineBoxes->lastRootBox();
>     }
> }
> 
> no?

Yes, and Thanks!

-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the webkit-unassigned mailing list