[Webkit-unassigned] [Bug 36037] typing at the end of a line in designMode documents is *very* slow

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Fri Mar 12 10:34:17 PST 2010


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





--- Comment #8 from Enrica Casucci <enrica at apple.com>  2010-03-12 10:34:16 PST ---
(In reply to comment #7)
> So, it turns out that without the extra early return added in r51522, we still
> loop over every node in the body element, but we do so much much faster. It's
> the call to Position(*this).atEditingBoundary() that takes almost all the time.
> Not sure what's so slow about it.
> 
> Also, it really sucks that we loop over every node in the body element just to
> find the end of the block. Seems like that should be fixable.

I changed the code to support a scenario that was not covered before. There is
not much that can be done in that place if we want to be able to support
sophisticated mix of editable and non editable elements and be able to place
the caret in empty editable elements.

The right fix is to avoid looping through every node.

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