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

Unified Diff: Source/core/page/FocusController.cpp

Issue 348833005: [DO NOT COMMIT] Random hacks to unblock work on replication. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 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 side-by-side diff with in-line comments
Download patch
Index: Source/core/page/FocusController.cpp
diff --git a/Source/core/page/FocusController.cpp b/Source/core/page/FocusController.cpp
index a637e983a914dbf640ab5a8fdc4937a86ac407f4..7e3aecfda8a959c6ccbcfbc57c3b5e4c5f901c1a 100644
--- a/Source/core/page/FocusController.cpp
+++ b/Source/core/page/FocusController.cpp
@@ -727,7 +727,9 @@ void FocusController::setActive(bool active)
view->updateControlTints();
}
- toLocalFrame(focusedOrMainFrame())->selection().pageActivationChanged();
+ Frame* frame = focusedOrMainFrame();
+ if (frame->isLocalFrame())
+ toLocalFrame(frame)->selection().pageActivationChanged();
}
static void updateFocusCandidateIfNeeded(FocusType type, const FocusCandidate& current, FocusCandidate& candidate, FocusCandidate& closest)
« no previous file with comments | « no previous file | Source/modules/geolocation/GeolocationController.cpp » ('j') | Source/web/WebLocalFrameImpl.cpp » ('J')

Powered by Google App Engine
This is Rietveld 408576698