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

Side by Side Diff: third_party/WebKit/Source/core/loader/FrameLoader.cpp

Issue 2001083002: Explicit management of FrameSelection availability (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 2016-06-08T18:08:39 Created 4 years, 6 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 unified diff | Download patch
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2006, 2007, 2008, 2009, 2010, 2011 Apple Inc. All rights reserv ed. 2 * Copyright (C) 2006, 2007, 2008, 2009, 2010, 2011 Apple Inc. All rights reserv ed.
3 * Copyright (C) 2008 Nokia Corporation and/or its subsidiary(-ies) 3 * Copyright (C) 2008 Nokia Corporation and/or its subsidiary(-ies)
4 * Copyright (C) 2008, 2009 Torch Mobile Inc. All rights reserved. (http://www.t orchmobile.com/) 4 * Copyright (C) 2008, 2009 Torch Mobile Inc. All rights reserved. (http://www.t orchmobile.com/)
5 * Copyright (C) 2008 Alp Toker <alp@atoker.com> 5 * Copyright (C) 2008 Alp Toker <alp@atoker.com>
6 * Copyright (C) Research In Motion Limited 2009. All rights reserved. 6 * Copyright (C) Research In Motion Limited 2009. All rights reserved.
7 * Copyright (C) 2011 Kris Jordan <krisjordan@gmail.com> 7 * Copyright (C) 2011 Kris Jordan <krisjordan@gmail.com>
8 * Copyright (C) 2011 Google Inc. All rights reserved. 8 * Copyright (C) 2011 Google Inc. All rights reserved.
9 * 9 *
10 * Redistribution and use in source and binary forms, with or without 10 * Redistribution and use in source and binary forms, with or without
(...skipping 286 matching lines...) Expand 10 before | Expand all | Expand 10 after
297 void FrameLoader::clear() 297 void FrameLoader::clear()
298 { 298 {
299 // clear() is called during (Local)Frame detachment or when 299 // clear() is called during (Local)Frame detachment or when
300 // reusing a FrameLoader by putting a new Document within it 300 // reusing a FrameLoader by putting a new Document within it
301 // (DocumentLoader::ensureWriter().) 301 // (DocumentLoader::ensureWriter().)
302 if (m_stateMachine.creatingInitialEmptyDocument()) 302 if (m_stateMachine.creatingInitialEmptyDocument())
303 return; 303 return;
304 304
305 m_frame->editor().clear(); 305 m_frame->editor().clear();
306 m_frame->document()->removeFocusedElementOfSubtree(m_frame->document()); 306 m_frame->document()->removeFocusedElementOfSubtree(m_frame->document());
307 m_frame->selection().prepareForDestruction();
308 m_frame->eventHandler().clear(); 307 m_frame->eventHandler().clear();
309 if (m_frame->view()) 308 if (m_frame->view())
310 m_frame->view()->clear(); 309 m_frame->view()->clear();
311 310
312 m_frame->script().enableEval(); 311 m_frame->script().enableEval();
313 312
314 m_frame->navigationScheduler().cancel(); 313 m_frame->navigationScheduler().cancel();
315 314
316 m_checkTimer.stop(); 315 m_checkTimer.stop();
317 316
(...skipping 1306 matching lines...) Expand 10 before | Expand all | Expand 10 after
1624 tracedValue->setString("documentLoaderURL", m_documentLoader ? m_documentLoa der->url() : String()); 1623 tracedValue->setString("documentLoaderURL", m_documentLoader ? m_documentLoa der->url() : String());
1625 return tracedValue; 1624 return tracedValue;
1626 } 1625 }
1627 1626
1628 inline void FrameLoader::takeObjectSnapshot() const 1627 inline void FrameLoader::takeObjectSnapshot() const
1629 { 1628 {
1630 TRACE_EVENT_OBJECT_SNAPSHOT_WITH_ID("loading", "FrameLoader", this, toTraced Value()); 1629 TRACE_EVENT_OBJECT_SNAPSHOT_WITH_ID("loading", "FrameLoader", this, toTraced Value());
1631 } 1630 }
1632 1631
1633 } // namespace blink 1632 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698