Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(190)

Unified Diff: Source/core/testing/Internals.cpp

Issue 239993011: Lazily generate HistoryItem's serialized form state (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Merged to trunk Created 6 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Source/core/loader/HistoryItem.cpp ('k') | Source/web/WebHistoryItem.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/testing/Internals.cpp
diff --git a/Source/core/testing/Internals.cpp b/Source/core/testing/Internals.cpp
index 9deea7376d457a6166ae539f223d096a702cc7e6..e21dde42bad0d5c76827adbe32bfa4ee358764dd 100644
--- a/Source/core/testing/Internals.cpp
+++ b/Source/core/testing/Internals.cpp
@@ -721,6 +721,7 @@ void Internals::setFormControlStateOfHistoryItem(const Vector<String>& state, Ex
exceptionState.throwDOMException(InvalidAccessError, "No history item is available.");
return;
}
+ mainItem->clearDocumentState();
mainItem->setDocumentState(state);
}
@@ -2061,8 +2062,7 @@ PassRefPtrWillBeRawPtr<TypeConversions> Internals::typeConversions() const
Vector<String> Internals::getReferencedFilePaths() const
{
- frame()->loader().saveDocumentState();
- return FormController::getReferencedFilePaths(frame()->loader().currentItem()->documentState());
+ return frame()->loader().currentItem()->getReferencedFilePaths();
}
void Internals::startTrackingRepaints(Document* document, ExceptionState& exceptionState)
« no previous file with comments | « Source/core/loader/HistoryItem.cpp ('k') | Source/web/WebHistoryItem.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698