[Webkit-unassigned] [Bug 52380] Lazily generate and store logical ordering of InlineBoxes

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Fri Jan 14 14:54:05 PST 2011


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


Eric Seidel <eric at webkit.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
  Attachment #79005|review?                     |review+
               Flag|                            |




--- Comment #7 from Eric Seidel <eric at webkit.org>  2011-01-14 14:54:04 PST ---
(From update of attachment 79005)
View in context: https://bugs.webkit.org/attachment.cgi?id=79005&action=review

Looks good.  tis OK as is, but we could go another round now, or we can clean up more of this (old ugly!) code in later patches.

> Source/WebCore/rendering/RootInlineBox.cpp:209
> +void RootInlineBox::childAdded()

Seems if we're adding this method we might as well pass the InlineBox*, even if it's ignored.

> Source/WebCore/rendering/RootInlineBox.cpp:587
> +        if (r->bidiLevel() > maxLevel)
> +            maxLevel = r->bidiLevel();
> +        if (r->bidiLevel() < minLevel)
> +            minLevel = r->bidiLevel();

Hah.  These are just std::min, std::max :)

> Source/WebCore/rendering/RootInlineBox.cpp:615
> +            while (iter != end) {
> +                if ((*iter)->bidiLevel() >= minLevel)
> +                    break;
> +                ++iter;
> +            }

This is repeated twice and should be an inline which returns a bool or similar maybe?

> Source/WebCore/rendering/RootInlineBox.h:79
>      void childRemoved(InlineBox* box);

"box" can be removed.

-- 
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