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

Unified Diff: third_party/WebKit/Source/core/frame/FrameView.cpp

Issue 1903163002: Don't compute a composited selection for a detached frame (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/core/frame/FrameView.cpp
diff --git a/third_party/WebKit/Source/core/frame/FrameView.cpp b/third_party/WebKit/Source/core/frame/FrameView.cpp
index 864a48ab8f89a7f26355693749fd482c95961591..bdfc0511dc17d0aaf016c70cff5ee1f1ba54b9e5 100644
--- a/third_party/WebKit/Source/core/frame/FrameView.cpp
+++ b/third_party/WebKit/Source/core/frame/FrameView.cpp
@@ -1623,7 +1623,7 @@ void FrameView::updateLayersAndCompositingAfterScrollIfNeeded()
bool FrameView::computeCompositedSelection(LocalFrame& frame, CompositedSelection& selection)
{
- if (frame.view()->shouldThrottleRendering())
+ if (!frame.view() || frame.view()->shouldThrottleRendering())
return false;
const VisibleSelection& visibleSelection = frame.selection().selection();
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698