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

Unified Diff: Source/core/frame/FrameView.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/frame/Frame.cpp ('k') | Source/core/frame/Location.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/frame/FrameView.cpp
diff --git a/Source/core/frame/FrameView.cpp b/Source/core/frame/FrameView.cpp
index b89cae5ee435d356198c1f00299dbba44680e03a..ba3d5374feb866c87cf67143a3e10150918c6356 100644
--- a/Source/core/frame/FrameView.cpp
+++ b/Source/core/frame/FrameView.cpp
@@ -429,7 +429,7 @@ void FrameView::setFrameRect(const IntRect& newRect)
if (newRect.width() != oldRect.width()) {
Page* page = m_frame->page();
if (isMainFrame() && page->settings().textAutosizingEnabled()) {
- for (Frame* frame = page->mainFrame(); frame; frame = frame->tree()->traverseNext())
+ for (Frame* frame = page->mainFrame(); frame; frame = frame->tree().traverseNext())
m_frame->document()->textAutosizer()->recalculateMultipliers();
}
}
@@ -1250,7 +1250,7 @@ bool FrameView::useSlowRepaintsIfNotOverlapped() const
void FrameView::updateCanBlitOnScrollRecursively()
{
- for (Frame* frame = m_frame.get(); frame; frame = frame->tree()->traverseNext(m_frame.get())) {
+ for (Frame* frame = m_frame.get(); frame; frame = frame->tree().traverseNext(m_frame.get())) {
if (FrameView* view = frame->view())
view->setCanBlitOnScroll(!view->useSlowRepaints());
}
@@ -1852,7 +1852,7 @@ void FrameView::doDeferredRepaints()
bool FrameView::shouldUseLoadTimeDeferredRepaintDelay() const
{
// Don't defer after the initial load of the page has been completed.
- if (m_frame->tree()->top()->document()->loadEventFinished())
+ if (m_frame->tree().top()->document()->loadEventFinished())
return false;
Document* document = m_frame->document();
if (!document)
@@ -2025,7 +2025,7 @@ void FrameView::unscheduleRelayout()
void FrameView::serviceScriptedAnimations(double monotonicAnimationStartTime)
{
- for (RefPtr<Frame> frame = m_frame; frame; frame = frame->tree()->traverseNext()) {
+ for (RefPtr<Frame> frame = m_frame; frame; frame = frame->tree().traverseNext()) {
frame->view()->serviceScrollAnimations();
if (!RuntimeEnabledFeatures::webAnimationsCSSEnabled())
frame->animation().serviceAnimations();
@@ -2034,7 +2034,7 @@ void FrameView::serviceScriptedAnimations(double monotonicAnimationStartTime)
}
Vector<RefPtr<Document> > documents;
- for (Frame* frame = m_frame.get(); frame; frame = frame->tree()->traverseNext())
+ for (Frame* frame = m_frame.get(); frame; frame = frame->tree().traverseNext())
documents.append(frame->document());
for (size_t i = 0; i < documents.size(); ++i)
@@ -2080,7 +2080,7 @@ void FrameView::setBaseBackgroundColor(const Color& backgroundColor)
void FrameView::updateBackgroundRecursively(const Color& backgroundColor, bool transparent)
{
- for (Frame* frame = m_frame.get(); frame; frame = frame->tree()->traverseNext(m_frame.get())) {
+ for (Frame* frame = m_frame.get(); frame; frame = frame->tree().traverseNext(m_frame.get())) {
if (FrameView* view = frame->view()) {
view->setTransparent(transparent);
view->setBaseBackgroundColor(backgroundColor);
@@ -2852,7 +2852,7 @@ FrameView* FrameView::parentFrameView() const
if (!parent())
return 0;
- if (Frame* parentFrame = m_frame->tree()->parent())
+ if (Frame* parentFrame = m_frame->tree().parent())
return parentFrame->view();
return 0;
@@ -3313,7 +3313,7 @@ void FrameView::setTracksRepaints(bool trackRepaints)
if (trackRepaints == m_isTrackingRepaints)
return;
- for (Frame* frame = m_frame->tree()->top(); frame; frame = frame->tree()->traverseNext()) {
+ for (Frame* frame = m_frame->tree().top(); frame; frame = frame->tree().traverseNext()) {
if (RenderView* renderView = frame->contentRenderer())
renderView->compositor()->setTracksRepaints(trackRepaints);
}
« no previous file with comments | « Source/core/frame/Frame.cpp ('k') | Source/core/frame/Location.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698