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

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

Issue 31063004: Have Frame::loader() return a reference (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 2 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/svg/graphics/SVGImage.cpp ('k') | Source/core/testing/MockPagePopupDriver.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 cc9320a53dab84cb7cfe929d2f06ca5173294307..d5bd98b07a07353965548471c359e84d8154dc0d 100644
--- a/Source/core/testing/Internals.cpp
+++ b/Source/core/testing/Internals.cpp
@@ -691,7 +691,7 @@ void Internals::selectColorInColorChooser(Element* element, const String& colorV
Vector<String> Internals::formControlStateOfPreviousHistoryItem(ExceptionState& es)
{
- HistoryItem* mainItem = frame()->loader()->history()->previousItem();
+ HistoryItem* mainItem = frame()->loader().history()->previousItem();
if (!mainItem) {
es.throwUninformativeAndGenericDOMException(InvalidAccessError);
return Vector<String>();
@@ -706,7 +706,7 @@ Vector<String> Internals::formControlStateOfPreviousHistoryItem(ExceptionState&
void Internals::setFormControlStateOfPreviousHistoryItem(const Vector<String>& state, ExceptionState& es)
{
- HistoryItem* mainItem = frame()->loader()->history()->previousItem();
+ HistoryItem* mainItem = frame()->loader().history()->previousItem();
if (!mainItem) {
es.throwUninformativeAndGenericDOMException(InvalidAccessError);
return;
@@ -2058,8 +2058,8 @@ PassRefPtr<TypeConversions> Internals::typeConversions() const
Vector<String> Internals::getReferencedFilePaths() const
{
- frame()->loader()->history()->saveDocumentAndScrollState();
- return FormController::getReferencedFilePaths(frame()->loader()->history()->currentItem()->documentState());
+ frame()->loader().history()->saveDocumentAndScrollState();
+ return FormController::getReferencedFilePaths(frame()->loader().history()->currentItem()->documentState());
}
void Internals::startTrackingRepaints(Document* document, ExceptionState& es)
@@ -2214,7 +2214,7 @@ PassRefPtr<SerializedScriptValue> Internals::deserializeBuffer(PassRefPtr<ArrayB
void Internals::forceReload(bool endToEnd)
{
- frame()->loader()->reload(endToEnd ? EndToEndReload : NormalReload);
+ frame()->loader().reload(endToEnd ? EndToEndReload : NormalReload);
}
PassRefPtr<ClientRect> Internals::selectionBounds(ExceptionState& es)
« no previous file with comments | « Source/core/svg/graphics/SVGImage.cpp ('k') | Source/core/testing/MockPagePopupDriver.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698