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

Side by Side Diff: Source/core/editing/FrameSelection.cpp

Issue 21235009: Make sure the last selection gets spell checked when focusing different frame. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Check window.internals existence. Created 7 years, 4 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) 2004, 2008, 2009, 2010 Apple Inc. All rights reserved. 2 * Copyright (C) 2004, 2008, 2009, 2010 Apple Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions 5 * modification, are permitted provided that the following conditions
6 * are met: 6 * are met:
7 * 1. Redistributions of source code must retain the above copyright 7 * 1. Redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer. 8 * notice, this list of conditions and the following disclaimer.
9 * 2. Redistributions in binary form must reproduce the above copyright 9 * 2. Redistributions in binary form must reproduce the above copyright
10 * notice, this list of conditions and the following disclaimer in the 10 * notice, this list of conditions and the following disclaimer in the
(...skipping 1716 matching lines...) Expand 10 before | Expand all | Expand 10 after
1727 element->setNeedsStyleRecalc(); 1727 element->setNeedsStyleRecalc();
1728 if (RenderObject* renderer = element->renderer()) { 1728 if (RenderObject* renderer = element->renderer()) {
1729 if (renderer && renderer->style()->hasAppearance()) 1729 if (renderer && renderer->style()->hasAppearance())
1730 renderer->theme()->stateChanged(renderer, FocusState); 1730 renderer->theme()->stateChanged(renderer, FocusState);
1731 } 1731 }
1732 } 1732 }
1733 1733
1734 // Secure keyboard entry is set by the active frame. 1734 // Secure keyboard entry is set by the active frame.
1735 if (m_frame->document()->useSecureKeyboardEntryWhenActive()) 1735 if (m_frame->document()->useSecureKeyboardEntryWhenActive())
1736 setUseSecureKeyboardEntry(activeAndFocused); 1736 setUseSecureKeyboardEntry(activeAndFocused);
1737
1738 m_frame->editor()->respondToChangedFocusedOrActiveState(activeAndFocused);
1737 } 1739 }
1738 1740
1739 void FrameSelection::pageActivationChanged() 1741 void FrameSelection::pageActivationChanged()
1740 { 1742 {
1741 focusedOrActiveStateChanged(); 1743 focusedOrActiveStateChanged();
1742 } 1744 }
1743 1745
1744 void FrameSelection::updateSecureKeyboardEntryIfActive() 1746 void FrameSelection::updateSecureKeyboardEntryIfActive()
1745 { 1747 {
1746 if (m_frame->document() && isFocusedAndActive()) 1748 if (m_frame->document() && isFocusedAndActive())
(...skipping 379 matching lines...) Expand 10 before | Expand all | Expand 10 after
2126 sel.showTreeForThis(); 2128 sel.showTreeForThis();
2127 } 2129 }
2128 2130
2129 void showTree(const WebCore::FrameSelection* sel) 2131 void showTree(const WebCore::FrameSelection* sel)
2130 { 2132 {
2131 if (sel) 2133 if (sel)
2132 sel->showTreeForThis(); 2134 sel->showTreeForThis();
2133 } 2135 }
2134 2136
2135 #endif 2137 #endif
OLDNEW
« Source/core/editing/Editor.cpp ('K') | « Source/core/editing/Editor.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698