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

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

Issue 33353003: Have Frame::tree() return a reference (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rebase on master 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/SVGSVGElement.cpp ('k') | Source/core/xml/parser/XMLDocumentParser.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 c2ef314dda4b5127935600a80b2e75771bc4b8db..97120a42e2f9ace7b6262f985b72e69cb2d5fd20 100644
--- a/Source/core/testing/Internals.cpp
+++ b/Source/core/testing/Internals.cpp
@@ -693,7 +693,7 @@ Vector<String> Internals::formControlStateOfPreviousHistoryItem(ExceptionState&
es.throwUninformativeAndGenericDOMException(InvalidAccessError);
return Vector<String>();
}
- String uniqueName = frame()->tree()->uniqueName();
+ String uniqueName = frame()->tree().uniqueName();
if (mainItem->target() != uniqueName && !mainItem->childItemWithTarget(uniqueName)) {
es.throwUninformativeAndGenericDOMException(InvalidAccessError);
return Vector<String>();
@@ -708,7 +708,7 @@ void Internals::setFormControlStateOfPreviousHistoryItem(const Vector<String>& s
es.throwUninformativeAndGenericDOMException(InvalidAccessError);
return;
}
- String uniqueName = frame()->tree()->uniqueName();
+ String uniqueName = frame()->tree().uniqueName();
if (mainItem->target() == uniqueName)
mainItem->setDocumentState(state);
else if (HistoryItem* subItem = mainItem->childItemWithTarget(uniqueName))
@@ -1617,7 +1617,7 @@ unsigned Internals::numberOfScrollableAreas(Document* document, ExceptionState&)
if (frame->view()->scrollableAreas())
count += frame->view()->scrollableAreas()->size();
- for (Frame* child = frame->tree()->firstChild(); child; child = child->tree()->nextSibling()) {
+ for (Frame* child = frame->tree().firstChild(); child; child = child->tree().nextSibling()) {
if (child->view() && child->view()->scrollableAreas())
count += child->view()->scrollableAreas()->size();
}
« no previous file with comments | « Source/core/svg/SVGSVGElement.cpp ('k') | Source/core/xml/parser/XMLDocumentParser.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698