Bug 7692

Summary: Should use an iterator in CompositeEditCommand::doUnapply()
Product: WebKit Reporter: Justin Garcia <justin.garcia>
Component: HTML EditingAssignee: Justin Garcia <justin.garcia>
Status: RESOLVED FIXED    
Severity: Normal    
Priority: P2    
Version: 420+   
Hardware: Mac   
OS: OS X 10.4   
Attachments:
Description Flags
patch adele: review+

Description Justin Garcia 2006-03-09 21:49:48 PST
About 25% of the time during an Undo is spent getting the ith EditCommand out of m_cmds:

    for (int i = m_cmds.count() - 1; i >= 0; --i)
        m_cmds[i]->unapply();

We should use an iterator.
Comment 1 Justin Garcia 2006-03-09 21:57:08 PST
Created attachment 6974 [details]
patch
Comment 2 Adele Peterson 2006-03-09 22:38:08 PST
Comment on attachment 6974 [details]
patch

Assuming all tests pass, r=me.