| Index: third_party/WebKit/WebCore/dom/Document.cpp
|
| ===================================================================
|
| --- third_party/WebKit/WebCore/dom/Document.cpp (revision 9118)
|
| +++ third_party/WebKit/WebCore/dom/Document.cpp (working copy)
|
| @@ -4019,7 +4019,7 @@
|
| Vector<String> Document::formElementsState() const
|
| {
|
| Vector<String> stateVector;
|
| - stateVector.reserveCapacity(m_formElementsWithState.size() * 3);
|
| + stateVector.reserveInitialCapacity(m_formElementsWithState.size() * 3);
|
| typedef ListHashSet<FormControlElementWithState*>::const_iterator Iterator;
|
| Iterator end = m_formElementsWithState.end();
|
| for (Iterator it = m_formElementsWithState.begin(); it != end; ++it) {
|
| @@ -4418,22 +4418,6 @@
|
| m_haveExplicitlyDisabledDNSPrefetch = true;
|
| }
|
|
|
| -void Document::addTimeout(int timeoutId, DOMTimer* timer)
|
| -{
|
| - ASSERT(!m_timeouts.contains(timeoutId));
|
| - m_timeouts.set(timeoutId, timer);
|
| -}
|
| -
|
| -void Document::removeTimeout(int timeoutId)
|
| -{
|
| - m_timeouts.remove(timeoutId);
|
| -}
|
| -
|
| -DOMTimer* Document::findTimeout(int timeoutId)
|
| -{
|
| - return m_timeouts.get(timeoutId);
|
| -}
|
| -
|
| void Document::reportException(const String& errorMessage, int lineNumber, const String& sourceURL)
|
| {
|
| if (DOMWindow* window = domWindow())
|
|
|