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

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

Issue 241643006: Remove more dead code from core/ folder (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 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 | « Source/core/page/FocusController.h ('k') | Source/core/page/PrintContext.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/page/FocusController.cpp
diff --git a/Source/core/page/FocusController.cpp b/Source/core/page/FocusController.cpp
index a75d57d3133212b33f5bc2a06b9c2ae0bed5029f..f84cd1284f9efe47ae081cc163a6e2057be7b46d 100644
--- a/Source/core/page/FocusController.cpp
+++ b/Source/core/page/FocusController.cpp
@@ -224,7 +224,6 @@ FocusController::FocusController(Page* page)
, m_isActive(false)
, m_isFocused(false)
, m_isChangingFocusedFrame(false)
- , m_containingWindowIsVisible(false)
{
}
@@ -693,45 +692,6 @@ void FocusController::setActive(bool active)
toLocalFrame(focusedOrMainFrame())->selection().pageActivationChanged();
}
-static void contentAreaDidShowOrHide(ScrollableArea* scrollableArea, bool didShow)
-{
- if (didShow)
- scrollableArea->contentAreaDidShow();
- else
- scrollableArea->contentAreaDidHide();
-}
-
-void FocusController::setContainingWindowIsVisible(bool containingWindowIsVisible)
-{
- if (m_containingWindowIsVisible == containingWindowIsVisible)
- return;
-
- m_containingWindowIsVisible = containingWindowIsVisible;
-
- FrameView* view = m_page->mainFrame()->view();
- if (!view)
- return;
-
- contentAreaDidShowOrHide(view, containingWindowIsVisible);
-
- for (LocalFrame* frame = m_page->mainFrame(); frame; frame = frame->tree().traverseNext()) {
- FrameView* frameView = frame->view();
- if (!frameView)
- continue;
-
- const HashSet<ScrollableArea*>* scrollableAreas = frameView->scrollableAreas();
- if (!scrollableAreas)
- continue;
-
- for (HashSet<ScrollableArea*>::const_iterator it = scrollableAreas->begin(), end = scrollableAreas->end(); it != end; ++it) {
- ScrollableArea* scrollableArea = *it;
- ASSERT(scrollableArea->scrollbarsCanBeActive());
-
- contentAreaDidShowOrHide(scrollableArea, containingWindowIsVisible);
- }
- }
-}
-
static void updateFocusCandidateIfNeeded(FocusType type, const FocusCandidate& current, FocusCandidate& candidate, FocusCandidate& closest)
{
ASSERT(candidate.visibleNode->isElementNode());
« no previous file with comments | « Source/core/page/FocusController.h ('k') | Source/core/page/PrintContext.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698